* [linux-lvm] Removing a Bad disk from LVM w/o a new disk
@ 2006-05-22 14:24 Ow Mun Heng
2006-05-22 15:18 ` Harik A'ttar
0 siblings, 1 reply; 2+ messages in thread
From: Ow Mun Heng @ 2006-05-22 14:24 UTC (permalink / raw)
To: linux-lvm
Current situation is that I have a bad disk /dev/sdb1 in an existing lvm
partition. (sda1/sda4/sdb1)
I would like to remove it from the VG. (There are no free PE anywhere.
I've maxed it out.)
I've already reduced the existing VG to the size of sda1+sda4
partition.
I would like to remove entirely the Physical Extents from the volume
group. It doesn't seem like there's a way to do this w/o putting another
disk inside?
I'm sure that's not true. Doing a
$vgreduce storage /dev/sdb1
Physical volume "/dev/sdb1" still in use
I have no idea what/who is using it. fuser/lsof etc doesn't show up
anything.
I actually don't much care about the data, I've already copied it
somewhere else. So, instead of just blowing up everything, I rather take
this as a learning experience.
--
Ow Mun Heng <Ow.Mun.Heng@wdc.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] Removing a Bad disk from LVM w/o a new disk
2006-05-22 14:24 [linux-lvm] Removing a Bad disk from LVM w/o a new disk Ow Mun Heng
@ 2006-05-22 15:18 ` Harik A'ttar
0 siblings, 0 replies; 2+ messages in thread
From: Harik A'ttar @ 2006-05-22 15:18 UTC (permalink / raw)
To: LVM general discussion and development; +Cc: Ow.Mun.Heng
Ow Mun Heng wrote:
> Current situation is that I have a bad disk /dev/sdb1 in an existing lvm
> partition. (sda1/sda4/sdb1)
>
> I would like to remove it from the VG. (There are no free PE anywhere.
> I've maxed it out.)
>
> I've already reduced the existing VG to the size of sda1+sda4
> partition.
> $vgreduce storage /dev/sdb1
> Physical volume "/dev/sdb1" still in use
You mean you reduced the existing LVs?
Try this:
pvmove -v /dev/sdb1
That will move all the data off sdb1 to the other drives. You need
dm-mirror either compiled in your kernel or as a module to use it.
Read the manpage for more information.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-22 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-22 14:24 [linux-lvm] Removing a Bad disk from LVM w/o a new disk Ow Mun Heng
2006-05-22 15:18 ` Harik A'ttar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).