Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: [CentOS] Add more space to LVM

From: Todd Reed <treed(at)astate.edu>
Date: Thu Jan 17 2008 - 10:39:32 EST


Thanks Tim. Just needed some reassurance that I was on the right track!

--Todd

-----Original Message-----
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Tim Verhoeven
Sent: Thursday, January 17, 2008 9:38 AM To: CentOS mailing list
Subject: Re: [CentOS] Add more space to LVM

On Jan 17, 2008 4:32 PM, Todd Reed <treed@astate.edu> wrote: >
> I have a database server that is running out of space. All my
databases are
> being stored in a 80G /opt partition. Because I'm using LVM, wouldn't
I be
> able to pop the HDDs (a h/w raid volume) in, add it to the LVM, and
resize
> my ext3 /opt partition? Everything that I've been reading says this
is
> possible, but I'm not sure. Has anyone done this and are there any
pitfalls
> to watch out for? Is there a better way? I've thought about just
> rebuilding the server and restoring the databases from a backup on the
new
> setup. Any suggestions on proper path would be appreciated. I'm
running
> the current version of CentOS 5.

Hi,

This is perfectly possible with LVM. First add the HD (aka the HW RAID volume) to the OS. Then do a pvcreate on that disk so that LVM can use it. Then do a vgextend, this adds the disk to the volume group. A vgdisplay should then show that you have again free space in the volume group. Then you can do a lvextend and resize2fs as normal.

Regards,
Tim

-- 
Tim Verhoeven - tim.verhoeven.be@gmail.com - 0479 / 88 11 83

Hoping the problem  magically goes away  by ignoring it is the
"microsoft approach to programming" and should never be allowed.
(Linus Torvalds)
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
Received on Thu Jan 17 10:40:48 2008

This archive was generated by hypermail 2.1.8 : Fri Jul 04 2008 - 05:43:12 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library