All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joschi Brauchle <joschi.brauchle@tum.de>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] vgremove fails to remove empty VG (v2.02.98)
Date: Thu, 24 Jan 2013 11:28:19 +0100	[thread overview]
Message-ID: <51010CC3.7050908@tum.de> (raw)
In-Reply-To: <CABYJTakyfndceju9ecAk3L=XKcGuOO_68MeGagYbKzaUN0cPWQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3629 bytes --]

On 01/24/2013 06:50 AM, mohammad azimi wrote:
> 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


> On Jan 24, 2013 8:02 AM, "Joschi Brauchle" <joschi.brauchle@tum.de
> <mailto:joschi.brauchle@tum.de>> 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
>     linux-lvm@redhat.com <mailto:linux-lvm@redhat.com>
>     https://www.redhat.com/mailman/listinfo/linux-lvm
>     read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

-- 
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: joschi.brauchle@tum.de
Web: http://www.lnt.ei.tum.de/


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4607 bytes --]

      reply	other threads:[~2013-01-24 10:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23 20:56 [linux-lvm] vgremove fails to remove empty VG (v2.02.98) Joschi Brauchle
2013-01-24  5:25 ` Marian Csontos
2013-01-24  8:09   ` Joschi Brauchle
2013-01-24 10:44     ` Marian Csontos
2013-01-24  5:50 ` mohammad azimi
2013-01-24 10:28   ` Joschi Brauchle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51010CC3.7050908@tum.de \
    --to=joschi.brauchle@tum.de \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.