All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Question on shared storage volumes.
@ 2003-07-10  3:43 Sachin Sant
  2003-07-10  4:32 ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Sant @ 2003-07-10  3:43 UTC (permalink / raw)
  To: linux-lvm

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-10  4:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-10  3:43 [linux-lvm] Question on shared storage volumes Sachin Sant
2003-07-10  4:32 ` Heinz J . Mauelshagen

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.