vgremove fails to remove empty VG (v2.02.98)
Hello,
I get the following error with lvm2.02.98:
-----------
#/sbin/vgdisplay --units k -v 'system'
--- Volume group ---
VG Name system
System ID
Format lvm2 Metadata Areas 1 Metadata Sequence No 13 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 104669184.00 KiB PE Size 4096.00 KiB Total PE 25554 Alloc PE / Size 0 / 0 KiB Free PE / Size 25554 / 104669184.00 KiB VG UUID Qs0uaZ-L88n-tC7T-fZQj-sgJY-2yRX-Dlt2Cr
--- Physical volumes ---
PV Name /dev/sda3 PV UUID wzGjXi-F2lT-d2d4-l5a6-EmfM-W838-YxaFIh PV Status allocatable Total PE / Free PE 25554 / 25554
-----------
VG system is empty, but still:
-----------
# /sbin/vgremove 'system' ----------- failes with status code 5, which means 'can't remove volume group containing logical volumes' (from man page).
Looks like a bug in vgremove?
Best regards,
J Brauchle
Quoted 1 line · Joschi Brauchle
Hello,
Hello!
Quoted 35 lines
I get the following error with lvm2.02.98:
-----------
#/sbin/vgdisplay --units k -v 'system'--- Volume group ---
VG Name system
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 13
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 104669184.00 KiB
PE Size 4096.00 KiB
Total PE 25554
Alloc PE / Size 0 / 0 KiB
Free PE / Size 25554 / 104669184.00 KiB
VG UUID Qs0uaZ-L88n-tC7T-fZQj-sgJY-2yRX-Dlt2Cr--- Physical volumes ---
PV Name/dev/sda3
PV UUID wzGjXi-F2lT-d2d4-l5a6-EmfM-W838-YxaFIh
PV Status allocatable
Total PE / Free PE 25554 / 25554
-----------VG system is empty, but still:
-----------
Quoted 8 lines
# /sbin/vgremove 'system' ----------- failes with status code 5, which means 'can't remove volume group containing logical volumes' (from man page).Looks like a bug in vgremove?
Possibly. Could you fill in these gaps in the puzzle:
0. Which distro?
1. Do a lvmdump for bug report:
lvmdump -ma
2. Try with verbose
vgremove -vvvv &> vgremove-dirty.out
3. Check if lvmetad is running:
ps aux | grep lvmetad
3.1 if so, the issue is likely to go away after restarting it. If you gcore or kill -SEGV it to get a core dump it may help us.
3.2 do another lvmdump here, to get "updated" data after lvmdump restart
3.3 retry vgremove
vgremove -vvvv &> vgremove-reloaded.out
4. pastebin the vgremove-dirty.out and we will be able to tell more then.
Quoted 11 lines
Best regards,
J Brauchle_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Hi
Did you used vgreduce to release free the disk?
Quoted 53 lines · Joschi Brauchle
Hello,
I get the following error with lvm2.02.98:
-----------
#/sbin/vgdisplay --units k -v 'system'--- Volume group ---
VG Name system
System IDFormat lvm2 Metadata Areas 1 Metadata Sequence No 13 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 104669184.00 KiB PE Size 4096.00 KiB Total PE 25554 Alloc PE / Size 0 / 0 KiB Free PE / Size 25554 / 104669184.00 KiB VG UUID Qs0uaZ-L88n-tC7T-fZQj-sgJY-**2yRX-Dlt2Cr--- Physical volumes ---
PV Name /dev/sda3 PV UUID wzGjXi-F2lT-d2d4-l5a6-EmfM-**W838-YxaFIh PV Status allocatable Total PE / Free PE 25554 / 25554-----------
VG system is empty, but still:
-----------# /sbin/vgremove 'system' ----------- failes with status code 5, which means 'can't remove volume group containing logical volumes' (from man page).Looks like a bug in vgremove?
Best regards,
J Brauchle_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Thanks for the detailed instructions, here are (some of) the missing gaps :-)
Quoted 32 lines
Quoted 32 lines
I get the following error with lvm2.02.98:
-----------
#/sbin/vgdisplay --units k -v 'system'--- Volume group ---
VG Name system
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 13
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 104669184.00 KiB
PE Size 4096.00 KiB
Total PE 25554
Alloc PE / Size 0 / 0 KiB
Free PE / Size 25554 / 104669184.00 KiB
VG UUID Qs0uaZ-L88n-tC7T-fZQj-sgJY-2yRX-Dlt2Cr--- Physical volumes ---
PV Name/dev/sda3
PV UUID wzGjXi-F2lT-d2d4-l5a6-EmfM-W838-YxaFIh
PV Status allocatable
Total PE / Free PE 25554 / 25554
-----------
Quoted 8 lines
Quoted 7 lines
VG system is empty, but still:
-----------# /sbin/vgremove 'system' ----------- failes with status code 5, which means 'can't remove volume group containing logical volumes' (from man page).0. Which distro?
openSUSE 12.3 Beta 1 - Problem happens during installation, where an existing VGroup shall be removed.
Quoted 2 lines
1. lvmdump -ma
attached (hope that's ok)
Quoted 1 line
2. vgremove -vvvv &> vgremove-dirty.out
Quoted 1 line
3. ps aux | grep lvmetad
Not running, no processes found. Skipping the remaining steps...
Quoted 6 lines
3.1 if so, the issue is likely to go away after restarting it. If you
gcoreorkill -SEGVit to get a core dump it may help us. 3.2 do another lvmdump here, to get "updated" data after lvmdump restart 3.3 retry 'vgremove -vvvv &> vgremove-reloaded.out'
4. pastebin the vgremove-dirty.out and we will be able to tell more then.
Quoted 1 line · mohammad azimi
Did you used vgreduce to release free the disk?
Well, no.
Actually, I am not performing those commands manually.
It is the openSUSE 12.3 installer (YaST2), that performs a sequence of commands during installation. It is told to create a new VG on an existing LVM partition. Hence, it first removes all LVs in the existing VG, then tries to remove the existing, empty VG using 'vgremove system'.
I tried to strip the series of commands from the YaST2 logs:
-------------
"/sbin/lvremove -f -A n '/dev/system/var_log'" "/sbin/lvremove -f -A n '/dev/system/var'" "/sbin/lvremove -f -A n '/dev/system/usr'" "/sbin/lvremove -f -A n '/dev/system/tmp'" "/sbin/lvremove -f -A n '/dev/system/slash'" "/sbin/lvremove -f -A n '/dev/system/nobackup'"
"/sbin/vgremove 'system'"
-------------
=> Fails with exit code 5
openSUSE 12.3 is using
LVM version: 2.02.98(2) (2012-10-15)
Library version: 1.02.77 (2012-10-15)
Driver version: 4.23.0
Note that the EXACTLY same sequence of commands works OK for openSUSE 12.2 using
LVM version: 2.02.84(2) (2011-02-09)
Library version: 1.02.63 (2011-02-09)
Driver version: 4.22.0
Quoted 64 lines
On Jan 24, 2013 8:02 AM, "Joschi Brauchle" <[email protected] <mailto:[email protected]>> wrote:
Hello,
I get the following error with lvm2.02.98:
-----------
#/sbin/vgdisplay --units k -v 'system'--- Volume group ---
VG Name system
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 13
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 104669184.00 KiB
PE Size 4096.00 KiB
Total PE 25554
Alloc PE / Size 0 / 0 KiB
Free PE / Size 25554 / 104669184.00 KiB
VG UUID Qs0uaZ-L88n-tC7T-fZQj-sgJY-__2yRX-Dlt2Cr--- Physical volumes ---
PV Name/dev/sda3
PV UUID wzGjXi-F2lT-d2d4-l5a6-EmfM-__W838-YxaFIh
PV Status allocatable
Total PE / Free PE 25554 / 25554
-----------VG system is empty, but still:
-----------
#/sbin/vgremove'system'
-----------
failes with status code 5, which means 'can't remove volume group containing logical volumes' (from man page).Looks like a bug in vgremove?
Best regards,
J Brauchle_______________________________________________
linux-lvm mailing list
[email protected] <mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 10 lines
Dipl.-Ing. Joschi Brauchle, M.S. Institute for Communications Engineering (LNT) Technische Universitaet Muenchen (TUM) 80290 Munich, Germany Tel (work): +49 89 289-23474 Fax (work): +49 89 289-23490 E-mail: [email protected] Web: http://www.lnt.ei.tum.de/
Quoted 46 lines · Joschi Brauchle
Thanks for the detailed instructions, here are (some of) the missing gaps :-)
Quoted 32 lines
Quoted 32 lines
I get the following error with lvm2.02.98:
-----------
#/sbin/vgdisplay --units k -v 'system'--- Volume group ---
VG Name system
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 13
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 104669184.00 KiB
PE Size 4096.00 KiB
Total PE 25554
Alloc PE / Size 0 / 0 KiB
Free PE / Size 25554 / 104669184.00 KiB
VG UUID Qs0uaZ-L88n-tC7T-fZQj-sgJY-2yRX-Dlt2Cr--- Physical volumes ---
PV Name/dev/sda3
PV UUID wzGjXi-F2lT-d2d4-l5a6-EmfM-W838-YxaFIh
PV Status allocatable
Total PE / Free PE 25554 / 25554
-----------Quoted 8 lines
Quoted 7 lines
VG system is empty, but still:
-----------# /sbin/vgremove 'system' ----------- failes with status code 5, which means 'can't remove volume group containing logical volumes' (from man page).0. Which distro?
openSUSE 12.3 Beta 1 - Problem happens during installation, where an existing VGroup shall be removed.
Quoted 1 line
Quoted 14 lines
Quoted 1 line
1. lvmdump -ma
attached (hope that's ok)
Quoted 1 line
2. vgremove -vvvv &> vgremove-dirty.out
Quoted 1 line
3. ps aux | grep lvmetad
Not running, no processes found. Skipping the remaining steps...
Quoted 6 lines
3.1 if so, the issue is likely to go away after restarting it. If you
gcoreorkill -SEGVit to get a core dump it may help us. 3.2 do another lvmdump here, to get "updated" data after lvmdump restart 3.3 retry 'vgremove -vvvv &> vgremove-reloaded.out'
4. pastebin the vgremove-dirty.out and we will be able to tell more then.
Any chance the FS containing /etc/lvm is mounted read-only?
If so it may fail. There is a bug as no error is reported in that situation. See backup section of lvm.conf - set backup and archive to point to a writable FS.
If not, could you send a tarball with /etc/lvm: tar czf lvmdump-etc /etc/lvm/
Joining us on IRC: #lvm @ freenode guarantees faster answers.
-- Marian
Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/