Volume expansion 2006-06-08 - By Collins, Kevin [MindWorks]
Back Ed,
if you are on a partition now, there is no way to get to LVM without copying the data. However, if your goal is to add 400GB more and you are willing to copy the data, you can get there without needing 800GB more space.
The steps would be:
1) present new 400GB LUN to server (i.e., as /dev/sde2) 2) pvcreate /dev/sde2 (inits the disk for use in LVM) 3) vgcreate using /dev/sde2 (creates your volume group, which will then have 400GB available) 4) lvcreate a 400GB logical volume 5) mkfs the new lvol 6) copy data from /dev/sde1 to new filesystem and validate 7) pvcreate /dev/sde1 (init disk for use in LVM - data IS WIPED!) 8) vgextend /dev/sde1 in VG 9) lvextend lvol by 400GB
Hope that helps.
Kevin
-- --Original Message-- -- From: taroon-list-bounces@(protected) [mailto:taroon-list-bounces@(protected)] On Behalf Of Ed Wilts Sent: Thursday, June 08, 2006 10:33 AM To: taroon (RHEL 3) Subject: Volume expansion
I'll admit to not having done much with LVM and now I need to know it... I've got a 400GB disk (/dev/sde1) mounted on /foo. I want to double the volume size without creating a new volume and moving the existing data over. I can't just move some directories to the new volume - it has to be one big volume when I'm done. Any suggestions on how best to do this with LVM in RHEL 3? This is a SAN-based volume and it's possible that I can grab another 400GB on the same frame and grow the LUN if that makes it easier.
Thanks, .../Ed -- Ed Wilts, RHCE Mounds View, MN, USA mailto:ewilts@(protected) Member #1, Red Hat Community Ambassador Program
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|