Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extendin a volume group ?

Status
Not open for further replies.

JimDoddery

Technical User
Jan 14, 2006
21
US
I've never done it before, I hope somebody here has....

Have a volume group (vg08) that has a max disk size of 18gB. One of the operators added a 36gB drive last night. I need to add it to vg08.

If I remember correctly, I'm going to either have 18gB of wasted space, or I'll have to wipe out and re-create vg08 with the new max setting (extend Max PE per PV). I spoke with HP and vgmodify (dangerous in the first place), is not the option for me.

There are 26 LV's in vg08, and if I have to recreate them all, then that's what I'll do.

Anyone have any suggestions to make this as painless as possible?
 
Not sure how you've ended up with a max disk size of only 18GB ... default max no. of PVs is 16 I think so this probably isn't the issue. Max extents in a VG is 65536 (correct me if I'm wrong) and therefore the limiting factor is the PE size, as PESIZE x 65536 is the max size of the VG.

Anyway, to answer the question

One way ...

Backup first
Create a new VG with your new disk in it, recreate lvols, will have to use tmp mount points
Copy data from VG08 lvols into new lvols in new vg
umount original lvols, vgchange -a n vg08
export vg08
umount tmp mount points, export vgNEW using mapfiles
mkdir /dev/vg08
mknod /dev/vg08/group -c 64 0x030000 (make sure x03 is same as original vg08) - do ll /dev/*/group first
edit /etc/fstab
import new VG as vg08, mount up
if required, put "old" disk back into vg08

job done ...

Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top