Skip to contentSkip to conversation

re-patition problem

linux-lvm netxiong 3 participants 5 messages Apr 1, 2002 – Apr 6, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 3C4690E7.000029.23123@smtp2

netxiong

author
#1 lore raw

I encounter a problem,I make a lvm VG on /dev/hda7,but after a re-patition,/dev/hda7 becomes /dev/hda6, my lvm doesn't work,how can I get back my lvm VG????,I think I didn't touch the data stored on previous /dev/hda7.I don't know if my data on the VG can be retrieved??

author
#2 lore raw

[linux-lvm] why I can't find lvm VG after reboot

In reply to a message not in the archive

I have setup a VG on a softraid system consist of 3 disks,I name the VG as lvmraid and make a ext2 file system on it,It can be mounted to a dirctory and work well,but after I reboot the system,I can't find the VG,the proc system also doesn't show it and I can't use vgremove to remove it. what is wrong with it,helllllllllllllllllllllp!!!this has troubled me for two days

#3 lore raw

Re: [linux-lvm] why I can't find lvm VG after reboot

Quoted 3 lines · netxiong

I have setup a VG on a softraid system consist of 3 disks,I name the VG as lvmraid and make a ext2 file system on it,It can be mounted to a dirctory and work well,but after I reboot the system,I can't find the VG,the proc system also doesn't show it and I can't use vgremove to remove it. what is wrong with it,helllllllllllllllllllllp!!!this has troubled me for two days

is there a "vgchange -ay" somewhere in your init procedure? is LVM a module or is it compiled staticly into the kernel?

http://www.sistina.com/lvm_howtos/lvm_howto/
Look at section 7.5

Signature · 4 lines
Ben Lutgens		http://people.sistina.com/~blutgens/	
Sistina Software Inc.
 (mail -s "get -info" [email protected]) for my gpg key, IM info
etc.
#4 lore raw

Re: [linux-lvm] why I can't find lvm VG after reboot

In reply to netxiong
Quoted 4 lines · netxiong

I have setup a VG on a softraid system consist of 3 disks,I name the VG as lvmraid and make a ext2 file system on it,It can be mounted to a dirctory and work well,but after I reboot the system,I can't find the VG,the proc system also doesn't show it and I can't use vgremove to remove it. what is wrong with it,helllllllllllllllllllllp!!!this has troubled me for two days

Are the following two lines in your rc.sysinit?

Do that after you activate your raid.

# activating volume manager
vgscan
vgchange -a y

When you shutdown you must....

vgchange -a n

do that just before
mount -n -o remount,ro /

author
#5 lore raw

[linux-lvm] It doesn't work

In reply to a message not in the archive
Quoted 15 lines · At 02-4-3 12:51:00 you wrote:
Quoted 4 lines · netxiong

I have setup a VG on a softraid system consist of 3 disks,I name the VG as lvmraid and make a ext2 file system on it,It can be mounted to a dirctory and work well,but after I reboot the system,I can't find the VG,the proc system also doesn't show it and I can't use vgremove to remove it. what is wrong with it,helllllllllllllllllllllp!!!this has troubled me for two days

Are the following two lines in your rc.sysinit?

Do that after you activate your raid.

# activating volume manager
vgscan
vgchange -a y
Quoted 7 lines

When you shutdown you must....

vgchange -a n

do that just before
mount -n -o remount,ro /

think for your reply,I have added those commands in rc.sysinit,but it still doesn't work. vgscan cann't find the volume set up on softraid partitions.