Re: pvremove won't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 09, 2009 at 08:39:18AM +0200, Stefan Radovanovici wrote:
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:
....
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?
what is the use of doing pvremove on sda4?? you just rip the disk off
and dump it in the wastebin.

to remove a pv from a vg you use vgreduce, but i assume you already did
that, judging from the pvdisplay.

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

check /sys/block/sda/sda4/holders

--
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux