[linux-lvm] pvremove won't work
Stefan Radovanovici
stefan at nektulos.de
Tue Jun 9 07:04:15 UTC 2009
On 6/9/2009 8:54 AM, Luca Berra wrote:
>> However, I can't remove /dev/sda4 (the partition on the failing disk)
>> from the group:
>> root at 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.
Well, yeah, I just wanted to make sure that removing the disk while some of its partitions are part of the LVM won't cause any problems. I can't remove it just yet anyway, the OS is also installed on other partitions on sda. So basically as long as I did a vgreduce, I can take the disk out, is that right? I am assuming /dev/sda4 is still showing in the pvdisplay output because it's still a LVM-type partition.
> check /sys/block/sda/sda4/holders
I did:
root at neriak:/sys/block/sda/sda4/holders# l
total 0
drwxr-xr-x 2 root root 0 2009-06-09 08:55 .
drwxr-xr-x 4 root root 0 2009-06-09 08:43 ..
lrwxrwxrwx 1 root root 0 2009-06-09 08:55 dm-1 -> ../../../../../../../../../virtual/block/dm-1
root at neriak:/sys/block/sda/sda4/holders# cd dm-1
root at neriak:/sys/block/sda/sda4/holders/dm-1# l
total 0
drwxr-xr-x 5 root root 0 2009-06-09 08:43 .
drwxr-xr-x 28 root root 0 2009-06-09 08:30 ..
lrwxrwxrwx 1 root root 0 2009-06-09 08:55 bdi -> ../../bdi/252:1
-r--r--r-- 1 root root 4096 2009-06-09 08:55 capability
-r--r--r-- 1 root root 4096 2009-06-09 08:55 dev
-r--r--r-- 1 root root 4096 2009-06-09 08:55 ext_range
drwxr-xr-x 2 root root 0 2009-06-09 08:55 holders
drwxr-xr-x 2 root root 0 2009-06-09 08:55 power
-r--r--r-- 1 root root 4096 2009-06-09 08:55 range
-r--r--r-- 1 root root 4096 2009-06-09 08:55 removable
-r--r--r-- 1 root root 4096 2009-06-09 08:55 ro
-r--r--r-- 1 root root 4096 2009-06-09 08:55 size
drwxr-xr-x 2 root root 0 2009-06-09 08:55 slaves
-r--r--r-- 1 root root 4096 2009-06-09 08:55 stat
lrwxrwxrwx 1 root root 0 2009-06-09 08:55 subsystem -> ../../../../class/block
-rw-r--r-- 1 root root 4096 2009-06-09 08:43 uevent
I have to admit I don't know what I am looking at. What's the dm-1 ?
Regards,
Stefan
More information about the linux-lvm
mailing list