Skip to contentSkip to conversation

vgchange segfault

linux-lvm Charles J. Fisher 1 participant 2 messages Dec 9, 2005 – Dec 12, 2005

lore
Share & tools
lore
#0 lore raw

I am running CentOS 4, and my lvm partition will no longer mount. I don't have any backup files that I can use with a vgcfgrestore. Both vgchange and vgscan terminate with a segmentation violation.

I can still see the contents of the lvm with explore2fs under Windows 2000. It is on hda4.

I have attached the output of a vgscan below (it was run under rescue mode).

Any help is greatly appreciated.

File descriptor 3 left open
File descriptor 4 left open
File descriptor 6 left open
File descriptor 7 left open
File descriptor 8 left open
File descriptor 9 left open
File descriptor 10 left open
File descriptor 11 left open
File descriptor 13 left open
File descriptor 14 left open
File descriptor 17 left open
File descriptor 18 left open
File descriptor 19 left open
File descriptor 20 left open
File descriptor 21 left open
File descriptor 23 left open
#lvmcmdline.c:835 Processing: vgscan -vvvvvvvvv
#lvmcmdline.c:838 O_DIRECT will be used
#config/config.c:778 global/locking_type not found in config: defaulting to 1 #config/config.c:764 global/locking_dir not found in config: defaulting to /var/lock/lvm #locking/locking.c:137 File-based locking enabled.
#vgscan.c:51 Wiping cache of LVM-capable devices
#device/dev-cache.c:343 /dev/adb: Not a block device #device/dev-cache.c:343 /dev/agpgart: Not a block device
...
#device/dev-io.c:400 Closed /dev/loop3
#label/label.c:278 <backtrace>
#filters/filter-sysfs.c:250 /dev/md3: Skipping (sysfs) #device/dev-io.c:369 Opened /dev/hda4 RO
#device/dev-io.c:400 Closed /dev/hda4
#device/dev-io.c:248 /dev/hda4: size is 7663005 sectors #device/dev-io.c:369 Opened /dev/hda4 RO
#device/dev-io.c:134 /dev/hda4: block size is 512 bytes #device/dev-io.c:400 Closed /dev/hda4
#filters/filter-composite.c:31 Using /dev/hda4
#device/dev-io.c:369 Opened /dev/hda4 RO
#device/dev-io.c:134 /dev/hda4: block size is 512 bytes
#label/label.c:168 /dev/hda4: lvm2 label detected
#device/dev-io.c:400 Closed /dev/hda4
Segmentation Violation

    ---------------------------------------------------------------------------
   / Charles J. Fisher   | I'm all in favor of keeping dangerous weapons out /
  /  [email protected] |  of the hands of fools. Let's start with         /
 /   http://rhadmin.org  |  typewriters. --Frank Lloyd Wright              /

---------------------------------------------------------------------------

#1 lore raw
Quoted 7 lines · Charles J. Fisher

I am running CentOS 4, and my lvm partition will no longer mount. I don't have any backup files that I can use with a vgcfgrestore. Both vgchange and vgscan terminate with a segmentation violation.
I can still see the contents of the lvm with explore2fs under Windows 2000. It is on hda4.
I have attached the output of a vgscan below (it was run under rescue mode).

Well, I don't really understand what happened to my volume group, but I'm wiping out this system and replacing it with ext3 on raw partitions, and I'll be very hesitant to use LVM in the future.

How am I supposed to feel about my Linux Oracle instances on LVM? I'll be migrating them if at all possible; Solaris looks very attractive at this point.

    ---------------------------------------------------------------------------
   / Charles J. Fisher     | "If Tyranny and Oppression come to this land,   /
  /  [email protected]   |   it will be in the guise of fighting a        /
 /   http://rhadmin.org    |   foreign enemy." - James Madison             /

---------------------------------------------------------------------------

Quoted 40 lines

File descriptor 3 left open
File descriptor 4 left open
File descriptor 6 left open
File descriptor 7 left open
File descriptor 8 left open
File descriptor 9 left open
File descriptor 10 left open
File descriptor 11 left open
File descriptor 13 left open
File descriptor 14 left open
File descriptor 17 left open
File descriptor 18 left open
File descriptor 19 left open
File descriptor 20 left open
File descriptor 21 left open
File descriptor 23 left open
#lvmcmdline.c:835 Processing: vgscan -vvvvvvvvv
#lvmcmdline.c:838 O_DIRECT will be used
#config/config.c:778 global/locking_type not found in config: defaulting to 1 #config/config.c:764 global/locking_dir not found in config: defaulting to /var/lock/lvm #locking/locking.c:137 File-based locking enabled.
#vgscan.c:51 Wiping cache of LVM-capable devices
#device/dev-cache.c:343 /dev/adb: Not a block device #device/dev-cache.c:343 /dev/agpgart: Not a block device
...
#device/dev-io.c:400 Closed /dev/loop3
#label/label.c:278 <backtrace>
#filters/filter-sysfs.c:250 /dev/md3: Skipping (sysfs) #device/dev-io.c:369 Opened /dev/hda4 RO
#device/dev-io.c:400 Closed /dev/hda4
#device/dev-io.c:248 /dev/hda4: size is 7663005 sectors #device/dev-io.c:369 Opened /dev/hda4 RO
#device/dev-io.c:134 /dev/hda4: block size is 512 bytes #device/dev-io.c:400 Closed /dev/hda4
#filters/filter-composite.c:31 Using /dev/hda4
#device/dev-io.c:369 Opened /dev/hda4 RO
#device/dev-io.c:134 /dev/hda4: block size is 512 bytes
#label/label.c:168 /dev/hda4: lvm2 label detected
#device/dev-io.c:400 Closed /dev/hda4
Segmentation Violation