From: Stefan Radovanovici <stefan@nektulos.de>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] pvremove won't work
Date: Tue, 09 Jun 2009 09:04:15 +0200 [thread overview]
Message-ID: <4A2E096F.1010203@nektulos.de> (raw)
In-Reply-To: <20090609065405.GB10101@maude.comedia.it>
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@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@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@neriak:/sys/block/sda/sda4/holders# cd dm-1
root@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
next prev parent reply other threads:[~2009-06-09 7:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 6:39 [linux-lvm] pvremove won't work Stefan Radovanovici
2009-06-09 6:54 ` Luca Berra
2009-06-09 7:04 ` Stefan Radovanovici [this message]
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=4A2E096F.1010203@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.