From: Sachin Sant <sachinp@in.ibm.com>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Question on shared storage volumes.
Date: Thu Jul 10 03:43:02 2003 [thread overview]
Message-ID: <3F0D2788.76BB0BCB@in.ibm.com> (raw)
I have a SCSI storage unit shared between two machines M1 and M2. On one
of the machine M1 i create a volume group HA_VG , create a LV vol1 and
filesystem using the LV vol1.
--- >vgcreate HA_VG /dev/sdd /dev/sde /dev/sdf
--- >lvcreate -i 3 -I 8 -L 100 -n vol1 HA_VG
--- >mkfs /dev/HA_VG/vol1
--- >mount /dev/HA_VG/vol1 /mnt
Now for some reason machine M1 dies and the VG is not exported. Using
the second machine M2 if i try to forcefully import the vg , vgimport
command coredumps.
--- >vgimport -f HA_VG /dev/sdd /dev/sde /dev/sdf
Segmentation fault
Should vgimport coredump here. I guess this is not the right way to
recove the VG . [ I can recover the VG on machine M2 using vgscan /
vgchange -a y HA_VG ]
I believe the problem might be with the following piece of code in
vgimport.c
strncpy ( vg_name_this,
pv_this[0]->vg_name,
strlen ( pv_this[0]->vg_name) - strlen ( EXPORTED));
Here the difference between strlen will be calculated as -1 in the above
senario.
May be the right way would be just print a error message instead of a
core dump.
Just let me know your thoughts.
-Sachin
next reply other threads:[~2003-07-10 3:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-10 3:43 Sachin Sant [this message]
2003-07-10 4:32 ` [linux-lvm] Question on shared storage volumes Heinz J . Mauelshagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F0D2788.76BB0BCB@in.ibm.com \
--to=sachinp@in.ibm.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.