RE: Add more space to LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

--Todd

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

On Jan 17, 2008 4:32 PM, Todd Reed <treed@xxxxxxxxxx> 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@xxxxxxxxx - 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux