RE: Volume expansion
"Collins, Kevin [MindWorks]" <[email protected]>
| Newsgroups | gmane.linux.redhat.release.taroon.general |
|---|---|
| Message-ID | <D7E00CB28E5BFE45B20F13AF1FF85460013C9420@CHVPKNTXC1MC.chvpk.chevrontexaco.net> |
Sorry, step 9 really should be to use fsadm to extend the lvol AND the filesystem... Kevin -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Collins, Kevin [MindWorks] Sent: Thursday, June 08, 2006 10:54 AM To: Discussion of Red Hat Enterprise Linux 3 (Taroon) Subject: RE: Volume expansion 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: [email protected] [mailto:[email 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:[email protected] Member #1, Red Hat Community Ambassador Program -- Taroon-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/taroon-list -- Taroon-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/taroon-list -- Taroon-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/taroon-list