Skip to contentSkip to conversation

Removal of PV

linux-lvm hail narcissus 1 participant 1 message Apr 20, 2001

lore
Share & tools
lore
#0 lore raw

Thanks, thought no one was going to reply. :)

I'll back up more critical data and try this weekend.

Quoted 48 lines

From: Patrick Caulfield <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [linux-lvm] Removal of PV
Date: Fri, 20 Apr 2001 11:29:23 +0100

Quoted 2 lines · hail narcissus

I know this has been asked before and I browsed the archives for the

info.

Quoted 9 lines

But I want to be sure since I am dealing with 500+GB of data.

Here is my configuration:
hda-h (80Gig IDE's)
sda-n (9Gig SCSI's)
652.81 GB VG
505GB Used 140GB Free

I want to remove the SCSI drives since I am having some SCSI bus

problems

Quoted 17 lines

and they are just old and I am not feeling comfortable with it's reliability.

I believe this would be the proper steps:

resize2fs /dev/lv/vg 520G <-- Is 520G correct, particularly the G.
pvmove /dev/sda /dev/hdh <-- Assuming /dev/hdh has free space
pvmove /dev/sdb /dev/hdh
pvmove /dev/sdc /dev/hdh
...
lvreduce -L 520G /dev/lv/vg
vgreduce vg /dev/sda
vgreduce vg /dev/sdb
vgreduce vg /dev/sdc

I saw in the mailing list where someone suggested:

Quoted 7 lines

ext2resize/resize2fs
lvreduce
pvmove
vgreduce

But I would think you would want to do pvmove before the lvreduce. Otherwise you might truncate data?

Either way round should be fine. If you're using <beta7 then, due to bugs, you should take the volume offline before moving it though.

Quoted 6 lines

patrick

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com