Error on lvcreate or lvremove!
Hello,
I did not have this kind of problem before but I installed LVM1.1-rc2, I am experiencing the following errors;
Problem1) could not create an LV from RAID1 vol group
[root@localhost /]# lvcreate -l 496 -n lvraid1 volRaid1
lvcreate -- ERROR "Operation not permitted" opening logical volume "/dev/volRaid1/lvraid1"
Problem2) I could not remove it
[root@localhost /]# lvremove /dev/volRaid1/lvraid1
lvremove -- do you really want to remove "/dev/volRaid1/lvraid1"? [y/n]: y lvremove -- ERROR "lv_release(): LV number" releasing logical volume "/dev/volRaid1/lvraid1"
Problem3) I could not create a striped LV
[root@localhost /]# lvcreate -l200 -i2 -I4 -n lvjb2s volDisk2 lvcreate -- not enough allocatable/free physical volume space in "volDisk2" lvcreate -- please check, if physical volumes are allocatable
Attched are more system information.
Please provide me your help,
Thanks,
Bo
[root@localhost /]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/md0" of VG "volRaid0" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/md1" of VG "volRaid0" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/md2" of VG "volRaid0" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/md3" of VG "volRaid1" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/md4" of VG "volRaid1" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/md5" of VG "volRaid5" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/md6" of VG "volRaid5" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/hdc9" of VG "volDisk" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/hdc10" of VG "volDisk2" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/hdd9" of VG "volDisk" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/hdd10" of VG "volDisk2" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/hda15" of VG "volDisk" [996 MB / 996 MB free] pvscan -- ACTIVE PV "/dev/hda16" of VG "volDisk2" [996 MB / 996 MB free]
pvscan -- total: 13 [17.59 GB] / in use: 13 [17.59 GB] / in no VG: 0 [0]
[root@localhost /]# vgdisplay
--- Volume group ---
VG Name volRaid0 VG Access read/write VG Status available/resizable VG # 2 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 5.84 GB PE Size 4 MB Total PE 1496 Alloc PE / Size 0 / 0 Free PE / Size 1496 / 5.84 GB VG UUID 89ZFBj-yaQ0-c26m-uKgF-YhvG-2lGR-C8cvWm
--- Volume group ---
VG Name volRaid1 VG Access read/write VG Status available/resizable VG # 3 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 1.94 GB PE Size 4 MB Total PE 496 Alloc PE / Size 0 / 0 Free PE / Size 496 / 1.94 GB VG UUID 3keDZ8-jgky-uhKS-q1bi-d1Jf-qmsq-hw7GUs
--- Volume group ---
VG Name volRaid5 VG Access read/write VG Status available/resizable VG # 4 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 3.89 GB PE Size 4 MB Total PE 996 Alloc PE / Size 0 / 0 Free PE / Size 996 / 3.89 GB VG UUID U2l1OW-L3ha-r3kH-BPXw-IJP5-ksA7-77iRJB
--- Volume group ---
VG Name volDisk VG Access read/write VG Status available/resizable VG # 0 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID 7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp
--- Volume group ---
VG Name volDisk2 VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID VT6shD-P4lh-Rk2g-DUHi-T2ch-p14Q-kl3BuV
Quoted 8 lines · bo
Hello,
I did not have this kind of problem before but I installed LVM1.1-rc2, I am experiencing the following errors;
Problem1) could not create an LV from RAID1 vol group
[root@localhost /]# lvcreate -l 496 -n lvraid1 volRaid1
lvcreate -- ERROR "Operation not permitted" opening logical volume "/dev/volRaid1/lvraid1"
Looks like your logical volume numbers are invalid.
Take a VGDA backup with vgcfgbackup(8) and store /etc/lvmconf/* in a safe location.
Run "vgscan -f" and retry.
Quoted 10 lines
Problem2) I could not remove it
[root@localhost /]# lvremove/dev/volRaid1/lvraid1
lvremove -- do you really want to remove "/dev/volRaid1/lvraid1"? [y/n]: y lvremove -- ERROR "lv_release(): LV number" releasing logical volume "/dev/volRaid1/lvraid1"Problem3) I could not create a striped LV
[root@localhost /]# lvcreate -l200 -i2 -I4 -n lvjb2s volDisk2 lvcreate -- not enough allocatable/free physical volume space in "volDisk2" lvcreate -- please check, if physical volumes are allocatable
Could be caused by the assumed logical volume number problem but please check that your physical volumes are allocatable with pvdisplay(8).
Regards,
Heinz -- The LVM Guy --
Quoted 113 lines
Attched are more system information.
Please provide me your help,
Thanks,
Bo
[root@localhost /]# pvscan
pvscan -- reading all physical volumes (this may take a while...)pvscan -- ACTIVE PV "/dev/md0" of VG "volRaid0" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/md1" of VG "volRaid0" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/md2" of VG "volRaid0" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/md3" of VG "volRaid1" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/md4" of VG "volRaid1" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/md5" of VG "volRaid5" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/md6" of VG "volRaid5" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/hdc9" of VG "volDisk" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/hdc10" of VG "volDisk2" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/hdd9" of VG "volDisk" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/hdd10" of VG "volDisk2" [992 MB / 992 MB free] pvscan -- ACTIVE PV "/dev/hda15" of VG "volDisk" [996 MB / 996 MB free] pvscan -- ACTIVE PV "/dev/hda16" of VG "volDisk2" [996 MB / 996 MB free]pvscan -- total: 13 [17.59 GB] / in use: 13 [17.59 GB] / in no VG: 0 [0]
[root@localhost /]# vgdisplay
--- Volume group ---VG Name volRaid0 VG Access read/write VG Status available/resizable VG # 2 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 5.84 GB PE Size 4 MB Total PE 1496 Alloc PE / Size 0 / 0 Free PE / Size 1496 / 5.84 GB VG UUID 89ZFBj-yaQ0-c26m-uKgF-YhvG-2lGR-C8cvWm--- Volume group ---
VG Name volRaid1 VG Access read/write VG Status available/resizable VG # 3 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 1.94 GB PE Size 4 MB Total PE 496 Alloc PE / Size 0 / 0 Free PE / Size 496 / 1.94 GB VG UUID 3keDZ8-jgky-uhKS-q1bi-d1Jf-qmsq-hw7GUs--- Volume group ---
VG Name volRaid5 VG Access read/write VG Status available/resizable VG # 4 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 3.89 GB PE Size 4 MB Total PE 996 Alloc PE / Size 0 / 0 Free PE / Size 996 / 3.89 GB VG UUID U2l1OW-L3ha-r3kH-BPXw-IJP5-ksA7-77iRJB--- Volume group ---
VG Name volDisk VG Access read/write VG Status available/resizable VG # 0 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID 7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp--- Volume group ---
VG Name volDisk2 VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256
Quoted 10 lines
Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID VT6shD-P4lh-Rk2g-DUHi-T2ch-p14Q-kl3BuV
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz,
Thanks for your help, it worked.
However, I do not understand why I had this problem and how your suggestion make
it work. The logical volume number is managed by LVM functions.
Another question is
I have the same problem as mentioned in "Poul Petesen's LVM1.04 pvmove is broken" email
today as
4) The RedHat 7.2 call to vgscan in rc.sysinit happens before mounting other file-systems, for example "/usr". This causes the
1.1-rc2
vgscan to fail since libreadline is in /usr/lib.
I did not have this problem on LVM1.0.x. Now, I need to enable LVM and mount all of these volumes after system boot manually.
Any suggestion or fixes?
Thanks,
Bo
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, May 22, 2002 5:46 AM
Subject: Re: [linux-lvm] Error on lvcreate or lvremove!
Quoted 9 lines · bo
Quoted 8 lines
Hello,
I did not have this kind of problem before but I installed LVM1.1-rc2, I am experiencing the following errors;
Problem1) could not create an LV from RAID1 vol group
[root@localhost /]# lvcreate -l 496 -n lvraid1 volRaid1 lvcreate -- ERROR "Operation not permitted" opening logical volume
"/dev/volRaid1/lvraid1"
Quoted 12 lines
Looks like your logical volume numbers are invalid.
Take a VGDA backup with vgcfgbackup(8) and store
/etc/lvmconf/*in a safe location.Run "vgscan -f" and retry.
Quoted 4 lines
Problem2) I could not remove it
[root@localhost /]# lvremove/dev/volRaid1/lvraid1lvremove -- do you really want to remove "/dev/volRaid1/lvraid1"?
[y/n]: y
Quoted 1 line
Quoted 1 line
lvremove -- ERROR "
lv_release(): LV number" releasing logical volume
"/dev/volRaid1/lvraid1"
Quoted 4 lines
Quoted 4 lines
Problem3) I could not create a striped LV
[root@localhost /]# lvcreate -l200 -i2 -I4 -n lvjb2s volDisk2 lvcreate -- not enough allocatable/free physical volume space in
"volDisk2"
Quoted 21 lines
Quoted 1 line
lvcreate -- please check, if physical volumes are allocatable
Could be caused by the assumed logical volume number problem but please check that your physical volumes are allocatable with pvdisplay(8).
Regards,
Heinz -- The LVM Guy --Quoted 12 lines
Attched are more system information.
Please provide me your help,
Thanks,
Bo
[root@localhost /]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/md0" of VG "volRaid0" [1.95 GB / 1.95 GB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md1" of VG "volRaid0" [1.95 GB / 1.95 GB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md2" of VG "volRaid0" [1.95 GB / 1.95 GB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md3" of VG "volRaid1" [992 MB / 992 MB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md4" of VG "volRaid1" [992 MB / 992 MB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md5" of VG "volRaid5" [1.95 GB / 1.95 GB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md6" of VG "volRaid5" [1.95 GB / 1.95 GB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdc9" of VG "volDisk" [992 MB / 992 MB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdc10" of VG "volDisk2" [992 MB / 992 MB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdd9" of VG "volDisk" [992 MB / 992 MB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdd10" of VG "volDisk2" [992 MB / 992 MB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hda15" of VG "volDisk" [996 MB / 996 MB
free]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hda16" of VG "volDisk2" [996 MB / 996 MB
free]
Quoted 100 lines
Quoted 89 lines
pvscan -- total: 13 [17.59 GB] / in use: 13 [17.59 GB] / in no VG: 0 [0]
[root@localhost /]# vgdisplay
--- Volume group ---VG Name volRaid0 VG Access read/write VG Status available/resizable VG # 2 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 5.84 GB PE Size 4 MB Total PE 1496 Alloc PE / Size 0 / 0 Free PE / Size 1496 / 5.84 GB VG UUID 89ZFBj-yaQ0-c26m-uKgF-YhvG-2lGR-C8cvWm--- Volume group ---
VG Name volRaid1 VG Access read/write VG Status available/resizable VG # 3 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 1.94 GB PE Size 4 MB Total PE 496 Alloc PE / Size 0 / 0 Free PE / Size 496 / 1.94 GB VG UUID 3keDZ8-jgky-uhKS-q1bi-d1Jf-qmsq-hw7GUs--- Volume group ---
VG Name volRaid5 VG Access read/write VG Status available/resizable VG # 4 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 3.89 GB PE Size 4 MB Total PE 996 Alloc PE / Size 0 / 0 Free PE / Size 996 / 3.89 GB VG UUID U2l1OW-L3ha-r3kH-BPXw-IJP5-ksA7-77iRJB--- Volume group ---
VG Name volDisk VG Access read/write VG Status available/resizable VG # 0 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID 7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp--- Volume group ---
VG Name volDisk2 VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256Quoted 10 lines
Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID VT6shD-P4lh-Rk2g-DUHi-T2ch-p14Q-kl3BuV
Quoted 4 lines
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 8 lines
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-
Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 6 lines · bo
Heinz,
Thanks for your help, it worked.
However, I do not understand why I had this problem and how your suggestion make
it work. The logical volume number is managed by LVM functions.
Right.
These problems occir if volume groups are removed physically in a non-devfs system *without* exporting them first using vgexport.
Then the /dev entries are still there.
Another example causing this is overwriting all physical volumes of a volume group (IOW: brute force removal of a volume group).
If that happened before, creating new volume groups and/or logical volumes, you can end up with multiple links in /dev having the same major minor numbers causing such behaviour.
If vgexport/vgremove are used successfully instead, that shouldn't occur at all.
A 'workaround' for non-devfs configurations is
ls /dev/*/group | sed 's!/group!!' | xargs rm -r ; vgmknodes
which removes all LVM subdirectories and recreates just the valid ones with all device specials in.
Quoted 10 lines
Another question is
I have the same problem as mentioned in "Poul Petesen's LVM1.04 pvmove is broken" email
today as
4) The RedHat 7.2 call to vgscan in rc.sysinit happens before mounting other file-systems, for example "/usr". This causes the
1.1-rc2
vgscan to fail since libreadline is in/usr/lib.
In order to work around this obstacle, either create the multiple executable version by running "./configure --disable-single_exec" (which doesn't use readline)
- or -
link the single executable statically by running "./configure --enable-static_link" (which doesn't use the shared libs).
Regards,
Heinz -- The LVM Guy --
Quoted 199 lines
I did not have this problem on LVM1.0.x. Now, I need to enable LVM and mount all of these volumes after system boot manually.
Any suggestion or fixes?
Thanks,
Bo
----- Original Message -----
From: "Heinz J . Mauelshagen" <[email protected]>
To: <[email protected]>
Sent: Wednesday, May 22, 2002 5:46 AM
Subject: Re: [linux-lvm] Error on lvcreate or lvremove!Quoted 9 lines · bo
Quoted 8 lines
Hello,
I did not have this kind of problem before but I installed LVM1.1-rc2, I am experiencing the following errors;
Problem1) could not create an LV from RAID1 vol group
[root@localhost /]# lvcreate -l 496 -n lvraid1 volRaid1 lvcreate -- ERROR "Operation not permitted" opening logical volume"
/dev/volRaid1/lvraid1"Quoted 12 lines
Looks like your logical volume numbers are invalid.
Take a VGDA backup with vgcfgbackup(8) and store
/etc/lvmconf/*in a safe location.Run "vgscan -f" and retry.
Quoted 4 lines
Problem2) I could not remove it
[root@localhost /]# lvremove/dev/volRaid1/lvraid1lvremove -- do you really want to remove "/dev/volRaid1/lvraid1"?[y/n]: y
Quoted 1 line
Quoted 1 line
lvremove -- ERROR "
lv_release(): LV number" releasing logical volume"
/dev/volRaid1/lvraid1"Quoted 4 lines
Quoted 4 lines
Problem3) I could not create a striped LV
[root@localhost /]# lvcreate -l200 -i2 -I4 -n lvjb2s volDisk2 lvcreate -- not enough allocatable/free physical volume space in"volDisk2"
Quoted 21 lines
Quoted 1 line
lvcreate -- please check, if physical volumes are allocatable
Could be caused by the assumed logical volume number problem but please check that your physical volumes are allocatable with pvdisplay(8).
Regards,
Heinz -- The LVM Guy --Quoted 12 lines
Attched are more system information.
Please provide me your help,
Thanks,
Bo
[root@localhost /]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/md0" of VG "volRaid0" [1.95 GB / 1.95 GBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md1" of VG "volRaid0" [1.95 GB / 1.95 GBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md2" of VG "volRaid0" [1.95 GB / 1.95 GBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md3" of VG "volRaid1" [992 MB / 992 MBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md4" of VG "volRaid1" [992 MB / 992 MBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md5" of VG "volRaid5" [1.95 GB / 1.95 GBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/md6" of VG "volRaid5" [1.95 GB / 1.95 GBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdc9" of VG "volDisk" [992 MB / 992 MBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdc10" of VG "volDisk2" [992 MB / 992 MBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdd9" of VG "volDisk" [992 MB / 992 MBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hdd10" of VG "volDisk2" [992 MB / 992 MBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hda15" of VG "volDisk" [996 MB / 996 MBfree]
Quoted 1 line
Quoted 1 line
pvscan -- ACTIVE PV "
/dev/hda16" of VG "volDisk2" [996 MB / 996 MBfree]
Quoted 99 lines
Quoted 89 lines
pvscan -- total: 13 [17.59 GB] / in use: 13 [17.59 GB] / in no VG: 0 [0]
[root@localhost /]# vgdisplay
--- Volume group ---VG Name volRaid0 VG Access read/write VG Status available/resizable VG # 2 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 5.84 GB PE Size 4 MB Total PE 1496 Alloc PE / Size 0 / 0 Free PE / Size 1496 / 5.84 GB VG UUID 89ZFBj-yaQ0-c26m-uKgF-YhvG-2lGR-C8cvWm--- Volume group ---
VG Name volRaid1 VG Access read/write VG Status available/resizable VG # 3 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 1.94 GB PE Size 4 MB Total PE 496 Alloc PE / Size 0 / 0 Free PE / Size 496 / 1.94 GB VG UUID 3keDZ8-jgky-uhKS-q1bi-d1Jf-qmsq-hw7GUs--- Volume group ---
VG Name volRaid5 VG Access read/write VG Status available/resizable VG # 4 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 3.89 GB PE Size 4 MB Total PE 996 Alloc PE / Size 0 / 0 Free PE / Size 996 / 3.89 GB VG UUID U2l1OW-L3ha-r3kH-BPXw-IJP5-ksA7-77iRJB--- Volume group ---
VG Name volDisk VG Access read/write VG Status available/resizable VG # 0 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID 7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp--- Volume group ---
VG Name volDisk2 VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256Quoted 10 lines
Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID VT6shD-P4lh-Rk2g-DUHi-T2ch-p14Q-kl3BuVQuoted 6 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-lvm] Error on vgscan & lvremove
Heinz,
Quoted 4 lines
A 'workaround' for non-devfs configurations is
ls
/dev/*/group| sed 's!/group!!' | xargs rm -r ; vgmknodes
??Something wrong on "sed 's!/group!!' ", it did not work.
Quoted 4 lines
link the single executable statically by running "./configure --enable-static_link" (which doesn't use the shared libs).
It did not work. I rebuilt LINUX kernel & LVM after "./configure --enable-static_link".
I got the same result.
Another big issues came as follow;
I tried to go back to LVM1.0.3, but getting a big trouble.
Q1: Is it backward compatible from LVM1.1-rc2 to LVM1.0.3 or not?
I already built the volume from LVM1.1-rc2 then I went back to
LVM1.0.3.
All of LVM tools are not working as shown in the following console
output.
Q2: How could I remove this volume and rebuild? I do not care about the data.
During boot or after the boot, I have the following errors;
[root@localhost /]# vgscan -f
vgscan -- reading all physical volumes (this may take a while...) vgscan -- found inactive volume group "volRaid0"
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "volRaid0" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "volRaid0" vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "volRaid0" from "/etc/lvmtab"
vgscan -- found inactive volume group "volRaid5"
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "volRaid5" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "volRaid5" vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "volRaid5" from "/etc/lvmtab"
vgscan -- found inactive volume group "volDisk"
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "volDisk" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "volDisk" vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "volDisk" from "/etc/lvmtab"
vgscan -- found inactive volume group "volDisk2"
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "volDisk2" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "volDisk2" vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "volDisk2" from "/etc/lvmtab"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume groups
[root@localhost /root]# ls /dev/*/group
ls: /dev/*/group: No such file or directory [root@localhost /root]# vgmknodes
vgmknodes -- no volume groups found to create nodes for
Thanks for your help,
Bo
Re: [linux-lvm] Error on vgscan & lvremove
Quoted 8 lines · bo
Heinz,
Quoted 4 lines
A 'workaround' for non-devfs configurations is
ls
/dev/*/group| sed 's!/group!!' | xargs rm -r ; vgmknodes??Something wrong on "sed 's!/group!!' ", it did not work.
Works fine here. Maybe your sed doesn't like the delimiter?
Try '/' rather than '!' with sed like "sed 's/\/group//'".
Quoted 9 lines
Quoted 5 lines
link the single executable statically by running "./configure --enable-static_link" (which doesn't use the shared libs).
It did not work. I rebuilt LINUX kernel & LVM after "./configure --enable-static_link".
I got the same result.
Did you start with a fresh source tree or run "make distclean" before "./configure --enable-static_link"?
Quoted 7 lines
Another big issues came as follow;
I tried to go back to LVM1.0.3, but getting a big trouble.
Q1: Is it backward compatible from LVM1.1-rc2 to LVM1.0.3 or not?
Quoted 7 lines
I already built the volume from LVM1.1-rc2 then I went back to
LVM1.0.3.
All of LVM tools are not working as shown in the following console
output.Q2: How could I remove this volume and rebuild? I do not care about the data.
No LV status flags have been changed at all in 1.1-rc. lv_check_consistency() checks for the 2 possible user land states in lv_status which are either 0 or LV_ACTIVE.
For fast progress it should be ok to remove the lv_status checks from lv_check_consistency().
For further investigation of a possible 1.1-rc flaw ITR, could you send me ([email protected]) the output files created with
for d in All_volRaid0_PVs
do
dd if=/dev/YOurPV of=basename $d.vgda bs=1k count=4
done
packed into a compressed tar archive?
Thanks,
Heinz -- The LVM Guy --
Quoted 46 lines
During boot or after the boot, I have the following errors;
[root@localhost /]# vgscan -f
vgscan -- reading all physical volumes (this may take a while...) vgscan -- found inactive volume group "volRaid0"
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "volRaid0" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "volRaid0" vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "volRaid0" from "/etc/lvmtab"
vgscan -- found inactive volume group "volRaid5"
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "volRaid5" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "volRaid5" vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "volRaid5" from "/etc/lvmtab"
vgscan -- found inactive volume group "volDisk"
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "volDisk" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "volDisk" vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "volDisk" from "/etc/lvmtab"
vgscan -- found inactive volume group "volDisk2"
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "volDisk2" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "volDisk2" vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "volDisk2" from "/etc/lvmtab"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume groups[root@localhost /root]# ls
/dev/*/group
ls:/dev/*/group: No such file or directory [root@localhost /root]# vgmknodes
vgmknodes -- no volume groups found to create nodes forThanks for your help,
Bo
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-lvm] Error on vgscan & lvremove
Heinz,
I verified these two issues as commented below;
Quoted 12 lines
Quoted 7 lines
Quoted 5 lines
A 'workaround' for non-devfs configurations is
ls
/dev/*/group| sed 's!/group!!' | xargs rm -r ; vgmknodes??Something wrong on "sed 's!/group!!' ", it did not work.
Works fine here. Maybe your sed doesn't like the delimiter?
Try '/' rather than '!' with sed like "sed 's/\/group//'".
worked w/o delimiters like
ls /dev/*/group | sed 's/group//' | xargs rm -r ; vgmknodes
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
link the single executable statically by running "./configure --enable-static_link" (which doesn't use the shared
libs).
Quoted 10 lines
Quoted 5 lines
Quoted 1 line
It did not work. I rebuilt LINUX kernel & LVM after "./configure --enable-static_link".
I got the same result.Did you start with a fresh source tree or run "make distclean" before "./configure --enable-static_link"?
Quoted 1 line
Yes, worked with "make distclean".
For the backward compatibilty I will try later.
One more question related with activating PV,
Of course I could make them active after removing the volume and recreating it.
As you can notice on the attached log VG is ok, How could I make these PVs active
w/o removing the volume?
Did it corrupt the VGDA? any way to recover it?
(PS: you can notice TWO "volDisk" group in the following "vgdisplay", should be
volDisk & volDisk2 ???)
Thanks again,
Bo
----------------------------------------------------------------------------
-----------------
[root@localhost /root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/md0" of VG "volRaid0" [1.95 GB / 0 free] pvscan -- ACTIVE PV "/dev/md1" of VG "volRaid0" [1.95 GB / 0 free] pvscan -- ACTIVE PV "/dev/md2" of VG "volRaid0" [1.95 GB / 0 free] pvscan -- ACTIVE PV "/dev/md3" of VG "volRaid1" [992 MB / 0 free] pvscan -- ACTIVE PV "/dev/md4" of VG "volRaid1" [992 MB / 484 MB free] pvscan -- ACTIVE PV "/dev/md5" of VG "volRaid5" [1.95 GB / 992 MB free] pvscan -- ACTIVE PV "/dev/md6" of VG "volRaid5" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/hdc9" of VG "volDisk" [992 MB / 992 MB free]
pvscan -- inactive PV "/dev/hdc10" of VG "volDisk2" [992 MB / 788 MB free]
pvscan -- ACTIVE PV "/dev/hdd9" of VG "volDisk" [992 MB / 992 MB free]
pvscan -- inactive PV "/dev/hdd10" of VG "volDisk2" [992 MB / 792 MB free]
pvscan -- ACTIVE PV "/dev/hda15" of VG "volDisk" [996 MB / 996 MB free]
pvscan -- inactive PV "/dev/hda16" of VG "volDisk2" [996 MB / 0 free] pvscan -- total: 13 [17.59 GB] / in use: 13 [17.59 GB] / in no VG: 0 [0]
[root@localhost /root]# pvdisplay /dev/hdc10
--- Physical volume ---
PV Name /dev/hdc10 VG Name volDisk2 PV Size 1000.09 MB [2048193 secs] / NOT usable 4.19 MB [LVM: 128 KB] PV# 2 PV Status available Allocatable yes Cur LV 2 PE Size (KByte) 4096 Total PE 248 Free PE 197 Allocated PE 51 PV UUID b5ybET-1zOq-HPnP-QQda-zjgQ-5avz-aGFMav
[root@localhost /root]# vgdisplay
--- Volume group ---
VG Name volDisk VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID 7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp
--- Volume group ---
VG Name volDisk VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID 7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp
Re: [linux-lvm] Error on vgscan & lvremove
Quoted 12 lines · bo
Heinz,
I verified these two issues as commented below;
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
A 'workaround' for non-devfs configurations is
ls
/dev/*/group| sed 's!/group!!' | xargs rm -r ; vgmknodes??Something wrong on "sed 's!/group!!' ", it did not work.
Quoted 8 lines
Quoted 4 lines
Works fine here. Maybe your sed doesn't like the delimiter?
Try '/' rather than '!' with sed like "sed 's/\/group//'".
worked w/o delimiters like
ls
/dev/*/group| sed 's/group//' | xargs rm -r ; vgmknodes
Yes, trailing / doesn't matter in the rm args :)
Quoted 12 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
link the single executable statically by running "./configure --enable-static_link" (which doesn't use the shared
libs).
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
It did not work. I rebuilt LINUX kernel & LVM after "./configure --enable-static_link".
I got the same result.
Quoted 6 lines
Quoted 4 lines
Did you start with a fresh source tree or run "make distclean" before "./configure --enable-static_link"?
Quoted 1 line
Yes, worked with "make distclean".
Good.
Quoted 2 lines
For the backward compatibilty I will try later.
OK.
Quoted 10 lines
One more question related with activating PV,
Of course I could make them active after removing the volume and recreating it.
As you can notice on the attached log VG is ok, How could I make these PVs active
w/o removing the volume?Did it corrupt the VGDA? any way to recover it?
See below.
Quoted 3 lines
(PS: you can notice TWO "volDisk" group in the following "vgdisplay", should be
volDisk & volDisk2 ???)
You still seem to have wrong /dev/ entries :-(
Maybe because of earlier problems, 2 VGs (volDisk and volDisk2) now have the same internal number?
Please send the output of
"pvdata -a /dev/hd[cd]9 /dev/hda15 /dev/hd[cd]10 /dev/hda16 ; ls -lR /dev" directly to me ([email protected]).
If volDisk and VolDisk2 have the same internal numbers, we can try "vgscan -f" which comes with LVM >= 1.0.3.
Regards,
Heinz -- The LVM Guy --
Quoted 82 lines
Thanks again,
Bo
----------------------------------------------------------------------------
-----------------
[root@localhost /root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)pvscan -- ACTIVE PV "/dev/md0" of VG "volRaid0" [1.95 GB / 0 free] pvscan -- ACTIVE PV "/dev/md1" of VG "volRaid0" [1.95 GB / 0 free] pvscan -- ACTIVE PV "/dev/md2" of VG "volRaid0" [1.95 GB / 0 free] pvscan -- ACTIVE PV "/dev/md3" of VG "volRaid1" [992 MB / 0 free] pvscan -- ACTIVE PV "/dev/md4" of VG "volRaid1" [992 MB / 484 MB free] pvscan -- ACTIVE PV "/dev/md5" of VG "volRaid5" [1.95 GB / 992 MB free] pvscan -- ACTIVE PV "/dev/md6" of VG "volRaid5" [1.95 GB / 1.95 GB free] pvscan -- ACTIVE PV "/dev/hdc9" of VG "volDisk" [992 MB / 992 MB free]pvscan -- inactive PV "
/dev/hdc10" of VG "volDisk2" [992 MB / 788 MB free]
pvscan -- ACTIVE PV "/dev/hdd9" of VG "volDisk" [992 MB / 992 MB free]
pvscan -- inactive PV "/dev/hdd10" of VG "volDisk2" [992 MB / 792 MB free]
pvscan -- ACTIVE PV "/dev/hda15" of VG "volDisk" [996 MB / 996 MB free]
pvscan -- inactive PV "/dev/hda16" of VG "volDisk2" [996 MB / 0 free] pvscan -- total: 13 [17.59 GB] / in use: 13 [17.59 GB] / in no VG: 0 [0][root@localhost /root]# pvdisplay
/dev/hdc10
--- Physical volume ---PV Name /dev/hdc10 VG Name volDisk2 PV Size 1000.09 MB [2048193 secs] / NOT usable 4.19 MB [LVM: 128 KB] PV# 2 PV Status available Allocatable yes Cur LV 2 PE Size (KByte) 4096 Total PE 248 Free PE 197 Allocated PE 51 PV UUID b5ybET-1zOq-HPnP-QQda-zjgQ-5avz-aGFMav[root@localhost /root]# vgdisplay
--- Volume group ---VG Name volDisk VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID 7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp--- Volume group ---
VG Name volDisk VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 0 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 3 Act PV 3 VG Size 2.91 GB PE Size 4 MB Total PE 745 Alloc PE / Size 0 / 0 Free PE / Size 745 / 2.91 GB VG UUID 7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-