All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Radovanovici <stefan@nektulos.de>
To: linux-lvm@redhat.com
Subject: [linux-lvm] pvremove won't work
Date: Tue, 09 Jun 2009 08:39:18 +0200	[thread overview]
Message-ID: <4A2E0396.4030006@nektulos.de> (raw)

Hi All, 

I have a LVM over 3 partitions (3 separate disks) and one of them is failing so I need to remove it from the group. I moved the content to the rest of the disks (pvmove) and now pvdisplay shows:

root@neriak:~# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               storage
  PV Size               186.31 GB / not usable 4.00 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              47694
  Free PE               0
  Allocated PE          47694
  PV UUID               QUmigK-SCow-nMKo-NEcC-cOQY-bAO9-3k6g9K

  --- Physical volume ---
  PV Name               /dev/sdc1
  VG Name               storage
  PV Size               149.05 GB / not usable 1.31 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              38156
  Free PE               19483
  Allocated PE          18673
  PV UUID               idHUfs-rd5i-fVf7-UzE0-YGJT-X1k4-mrp3be

  "/dev/sda4" is a new physical volume of "200.87 GB"
  --- NEW Physical volume ---
  PV Name               /dev/sda4
  VG Name
  PV Size               200.87 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               TNsOa7-2Ibb-IW9i-C1s5-1NI9-L5e3-WlKnSH


However, I can't remove /dev/sda4 (the partition on the failing disk) from the group: 

root@neriak:~# pvremove /dev/sda4
  Can't open /dev/sda4 exclusively - not removing. Mounted filesystem?

I don't see it mounted anywhere. The LVM is also unmounted. Any ideas of what I might be doing wrong ? I am running LVM 2.02.39 on Ubuntu 9.04 64bit

Thanks in advance,
Stefan

             reply	other threads:[~2009-06-09  6:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09  6:39 Stefan Radovanovici [this message]
2009-06-09  6:54 ` [linux-lvm] pvremove won't work Luca Berra
2009-06-09  7:04   ` Stefan Radovanovici
2009-06-09  9:46     ` Bryn M. Reeves
2009-06-09 10:25       ` Stefan Radovanovici
2009-06-10  5:38         ` Luca Berra
2009-06-10  5:48           ` Stefan Radovanovici

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=4A2E0396.4030006@nektulos.de \
    --to=stefan@nektulos.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.