* [gentoo-user] LVM - Removing a Bad Disk w/o a new disk
@ 2006-05-22 7:33 Ow Mun Heng
2006-05-22 9:00 ` Neil Bothwick
0 siblings, 1 reply; 7+ messages in thread
From: Ow Mun Heng @ 2006-05-22 7:33 UTC (permalink / raw
To: gentoo
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.
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.
--
Ow Mun Heng <Ow.Mun.Heng@wdc.com>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] LVM - Removing a Bad Disk w/o a new disk
2006-05-22 7:33 [gentoo-user] LVM - Removing a Bad Disk w/o a new disk Ow Mun Heng
@ 2006-05-22 9:00 ` Neil Bothwick
2006-05-22 14:13 ` Ow Mun Heng
0 siblings, 1 reply; 7+ messages in thread
From: Neil Bothwick @ 2006-05-22 9:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 436 bytes --]
On Mon, 22 May 2006 00:33:47 -0700, Ow Mun Heng wrote:
> 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?
$ man vgreduce
DESCRIPTION
vgreduce allows you to remove one or more unused physical volumes
from a volume group.
--
Neil Bothwick
Top Oxymorons Number 5: Twelve-ounce pound cake
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] LVM - Removing a Bad Disk w/o a new disk
2006-05-22 9:00 ` Neil Bothwick
@ 2006-05-22 14:13 ` Ow Mun Heng
2006-05-22 14:28 ` Alexander Skwar
0 siblings, 1 reply; 7+ messages in thread
From: Ow Mun Heng @ 2006-05-22 14:13 UTC (permalink / raw
To: gentoo-user
On Mon, 2006-05-22 at 10:00 +0100, Neil Bothwick wrote:
> On Mon, 22 May 2006 00:33:47 -0700, Ow Mun Heng wrote:
>
> > 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?
>
> $ man vgreduce
>
> DESCRIPTION
> vgreduce allows you to remove one or more unused physical volumes
> from a volume group.
>
Did try that.. it keeps complaining
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
--
Ow Mun Heng <Ow.Mun.Heng@wdc.com>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] LVM - Removing a Bad Disk w/o a new disk
2006-05-22 14:13 ` Ow Mun Heng
@ 2006-05-22 14:28 ` Alexander Skwar
2006-05-22 18:27 ` Ow Mun Heng
0 siblings, 1 reply; 7+ messages in thread
From: Alexander Skwar @ 2006-05-22 14:28 UTC (permalink / raw
To: gentoo-user
Ow Mun Heng wrote:
> Did try that.. it keeps complaining
>
> 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
This means, that there are still used Physical Extents (PEs) on
this PV. A PE is used, if it is "referenced" by a Logical Volume (LV).
So - you'll need to move all the LVs off of that PV. To do so, use
pvmove.
Alexander Skwar
--
What good is a ticket to the good life, if you can't find the entrance?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] LVM - Removing a Bad Disk w/o a new disk
2006-05-22 14:28 ` Alexander Skwar
@ 2006-05-22 18:27 ` Ow Mun Heng
2006-05-22 18:48 ` Neil Bothwick
2006-05-22 21:45 ` Alexander Skwar
0 siblings, 2 replies; 7+ messages in thread
From: Ow Mun Heng @ 2006-05-22 18:27 UTC (permalink / raw
To: gentoo-user
On Mon, 2006-05-22 at 16:28 +0200, Alexander Skwar wrote:
> Ow Mun Heng wrote:
>
> > Did try that.. it keeps complaining
> >
> > 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
>
> This means, that there are still used Physical Extents (PEs) on
> this PV. A PE is used, if it is "referenced" by a Logical Volume (LV).
>
> So - you'll need to move all the LVs off of that PV. To do so, use
> pvmove.
I've just created a test scenerio using a test box (under vmware) and
for some reason, this one can't get dm-mirror.
Where can I get dm-mirror?
For the original box, as I mentioned, I don't have any free PE to move
the existing data to. As such, it won't let me pvmove anything.
(after some trouble, I managed to reduce/remove the physical disk - Thanks)
BTW, how do I remove _all_ physical volumes? eg: start out clean?
--
Ow Mun Heng <Ow.Mun.Heng@wdc.com>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] LVM - Removing a Bad Disk w/o a new disk
2006-05-22 18:27 ` Ow Mun Heng
@ 2006-05-22 18:48 ` Neil Bothwick
2006-05-22 21:45 ` Alexander Skwar
1 sibling, 0 replies; 7+ messages in thread
From: Neil Bothwick @ 2006-05-22 18:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 299 bytes --]
On Mon, 22 May 2006 11:27:38 -0700, Ow Mun Heng wrote:
> BTW, how do I remove _all_ physical volumes? eg: start out clean?
pvremove
--
Neil Bothwick
*Libra*: /(Sept 23--Oct 23)/ An unfortunate typo on your application
results in your being accepted into the Legion Of Superherpes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] LVM - Removing a Bad Disk w/o a new disk
2006-05-22 18:27 ` Ow Mun Heng
2006-05-22 18:48 ` Neil Bothwick
@ 2006-05-22 21:45 ` Alexander Skwar
1 sibling, 0 replies; 7+ messages in thread
From: Alexander Skwar @ 2006-05-22 21:45 UTC (permalink / raw
To: gentoo-user
Ow Mun Heng wrote:
> On Mon, 2006-05-22 at 16:28 +0200, Alexander Skwar wrote:
>> Ow Mun Heng wrote:
>>
>> > Did try that.. it keeps complaining
>> >
>> > 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
>>
>> This means, that there are still used Physical Extents (PEs) on
>> this PV. A PE is used, if it is "referenced" by a Logical Volume (LV).
>>
>> So - you'll need to move all the LVs off of that PV. To do so, use
>> pvmove.
>
> I've just created a test scenerio using a test box (under vmware) and
> for some reason, this one can't get dm-mirror.
>
> Where can I get dm-mirror?
You'll need a kernel compiled with support for mirror and lvm2
mustn't be compiled with nomirror USE flag.
Alexander Skwar
--
When you're ready to give up the struggle, who can you surrender to?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-05-22 22:14 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-22 7:33 [gentoo-user] LVM - Removing a Bad Disk w/o a new disk Ow Mun Heng
2006-05-22 9:00 ` Neil Bothwick
2006-05-22 14:13 ` Ow Mun Heng
2006-05-22 14:28 ` Alexander Skwar
2006-05-22 18:27 ` Ow Mun Heng
2006-05-22 18:48 ` Neil Bothwick
2006-05-22 21:45 ` Alexander Skwar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox