* [linux-lvm] Removing an Old disk (LVM HOW-TO)
@ 2004-03-30 11:49 Perplexer
2004-03-30 12:18 ` Perplexer
0 siblings, 1 reply; 3+ messages in thread
From: Perplexer @ 2004-03-30 11:49 UTC (permalink / raw)
To: linux-lvm
There is a section describing how to remove and old disk
from LVM at http://tldp.org/HOWTO/LVM-HOWTO/removeadisk.html
but nothing is said about reducing LV before this is done.
Must a LV be reduced using e2fsadm before any attempt to remove a PV
is made in order to prevent data loss ?
---------
Perplexer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Removing an Old disk (LVM HOW-TO)
2004-03-30 11:49 [linux-lvm] Removing an Old disk (LVM HOW-TO) Perplexer
@ 2004-03-30 12:18 ` Perplexer
2004-03-31 13:32 ` Heinz Mauelshagen
0 siblings, 1 reply; 3+ messages in thread
From: Perplexer @ 2004-03-30 12:18 UTC (permalink / raw)
To: LVM general discussion and development
Additional question:
Can a PV be removed from the VG without executing pvmove
before (bruteforce remove if you will) ? What would I have to
do if I wanted to remove it (e2fsadm?, lvreduce? ...) ?
---------
Perplexer
----- Original Message -----
From: "Perplexer" <perplexer@thz.net>
To: <linux-lvm@redhat.com>
Sent: Tuesday, March 30, 2004 1:49 PM
Subject: [linux-lvm] Removing an Old disk (LVM HOW-TO)
> There is a section describing how to remove and old disk
> from LVM at http://tldp.org/HOWTO/LVM-HOWTO/removeadisk.html
> but nothing is said about reducing LV before this is done.
>
> Must a LV be reduced using e2fsadm before any attempt to remove a PV
> is made in order to prevent data loss ?
>
> ---------
> Perplexer
> _______________________________________________
> 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/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Removing an Old disk (LVM HOW-TO)
2004-03-30 12:18 ` Perplexer
@ 2004-03-31 13:32 ` Heinz Mauelshagen
0 siblings, 0 replies; 3+ messages in thread
From: Heinz Mauelshagen @ 2004-03-31 13:32 UTC (permalink / raw)
To: LVM general discussion and development
On Tue, Mar 30, 2004 at 02:18:12PM +0200, Perplexer wrote:
> Additional question:
>
> Can a PV be removed from the VG without executing pvmove
> before (bruteforce remove if you will) ? What would I have to
> do if I wanted to remove it (e2fsadm?, lvreduce? ...) ?
The steps necessary depend on the situation you start out with.
In case the PV you want to remove is already empty, just vgreduce the VG
by it (eg, "vgreduce YourVG /dev/YourEmptyPV"). Remove the drive from
your system or reuse it for some other purpose after a *successfull* vgreduce.
Please keep in mind, that your PV which got removed from the VG can be
sitting in one partition of the disk and the others might be still in use!
If the PV has LV(s) allocated to it, there's 2 different cases:
o you are able to remove those LVs completely, which is unlikely
in the typical case
o you need to be able to shrink them (eg, your e2fsadm point in your other mail)
In both cases (remove and shrink) you can (and likely will) end up
with physical extents still allocated to the PV to remove.
*Then* you need pvmove to move their contents off to some or many
other PV(s) in order to free the PV before vgreduce on the VG.
If there's no free space on other PVs of your VG, you can of course
extend the VG by some new PV and pvmove the extents off to it.
You see, it depends on your particular storage situation but there's
just a few cases to distinguish.
Regards,
Heinz -- The LVM Guy --
>
> ---------
> Perplexer
>
> ----- Original Message -----
> From: "Perplexer" <perplexer@thz.net>
> To: <linux-lvm@redhat.com>
> Sent: Tuesday, March 30, 2004 1:49 PM
> Subject: [linux-lvm] Removing an Old disk (LVM HOW-TO)
>
>
> > There is a section describing how to remove and old disk
> > from LVM at http://tldp.org/HOWTO/LVM-HOWTO/removeadisk.html
> > but nothing is said about reducing LV before this is done.
> >
> > Must a LV be reduced using e2fsadm before any attempt to remove a PV
> > is made in order to prevent data loss ?
> >
> > ---------
> > Perplexer
> > _______________________________________________
> > 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/
> >
> _______________________________________________
> 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/
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-31 13:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-30 11:49 [linux-lvm] Removing an Old disk (LVM HOW-TO) Perplexer
2004-03-30 12:18 ` Perplexer
2004-03-31 13:32 ` Heinz Mauelshagen
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.