[linux-lvm] Removing a PV

Luca Berra bluca at comedia.it
Mon Nov 13 18:58:54 UTC 2000


On Mon, Nov 13, 2000 at 01:12:23PM -0500, Rob Foehl wrote:
> If I want to completely pull a drive that belongs to a VG with an ext2
> formatted LV in it, what's the correct procedure to avoid mangling the
> filesystem? I currently have a 130 gig partition spread over six
> drives.. about 74 gigs is in use, and I wanted to remove a single 20 gig
> drive from the volume.. I'm assuming I should shrink the filesystem by
> around 30 gigs or so (to be safe), then somehow also shrink the LV and
> move any used PEs on the 20 gig drive in question onto freed space on
> other drives.. Any suggestions would be greatly appreciated.

ext2resize/resize2fs
lvreduce
pvmove
vgreduce


-- 
Luca Berra -- bluca at comedia.it
    Communication Media & Services S.r.l.



More information about the linux-lvm mailing list