LVM resize question

Olt, Joseph jolt at ti.com
Tue Feb 26 19:57:44 UTC 2008


Is the output of "cat /proc/partitions" correct?  Did you run
"partprobe" to reread the partition table?

 

________________________________

From: redhat-sysadmin-list-bounces at redhat.com
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Lopez,
Denise
Sent: Tuesday, February 26, 2008 2:49 PM
To: redhat-sysadmin-list at redhat.com
Subject: RE: LVM resize question

 

>From within the guest when I do an fdisk -l it shows the drive as being
12GB which is the 10GB original size plus the 2GB I extended the LVM but
with a df -h command it is still only showing the original 10GB.

 

When I try to run a resize2fs in the guest, it says:

 

[root at centos5-test ~]# resize2fs /dev/xvda2

resize2fs 1.39 (29-May-2006)

The filesystem is already 2594497 blocks long.  Nothing to do!

 

The /dev/xvda2 is the root partition but I thought resize2fs could
extend a file system without having to unmount it.

 

Denise Lopez

310/ 206-8216

dlopez at humnet.ucla.edu

 

From: redhat-sysadmin-list-bounces at redhat.com
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Olt,
Joseph
Sent: Tuesday, February 26, 2008 11:06 AM
To: redhat-sysadmin-list at redhat.com
Subject: RE: LVM resize question

 

Hello Denise,

 

I don't have a Xen server to check, but I don't believe there is an ext2
or ext3 filesystem on a Xen partition.  Resize2fs only works for ext2/3
filesystems.  Did you try increasing the volume and re-read the disk
from the Xen guest?

 

Regards,

 

Joseph

 

________________________________

From: redhat-sysadmin-list-bounces at redhat.com
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Lopez,
Denise
Sent: Tuesday, February 26, 2008 1:55 PM
To: redhat-sysadmin-list at redhat.com
Subject: LVM resize question

 

Hi all,

 

I am in the process of setting up a Xen server and I want to have the
Guest OS's on LVM's.  I have created a 10GB LVM and installed a CentOS
guest on it.  Now before it goes production I want to do testing of
increasing the space for the Guest OS.  I have found documentation that
says to use resize2fs after you extend the logical volume but when I try
this command on the logical volume I get the following error.

 

root at xen ~]# resize2fs /dev/XenServers/CentOS5

resize2fs 1.39 (29-May-2006)

resize2fs: Bad magic number in super-block while trying to open
/dev/XenServers/CentOS5

Couldn't find valid filesystem superblock.

 

I tried with the -f option too but still the same error.  

 

Any ideas?

Thanks

 

Denise Lopez

UCLA - Center for Digital Humanities

Network Services

Linux Systems Engineer

337 Charles E. Young Drive East

PPB 1020

Los Angeles, CA 90095-1499

310/206-8216

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20080226/0b9db766/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2230 bytes
Desc: image001.jpg
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20080226/0b9db766/attachment.jpg>


More information about the redhat-sysadmin-list mailing list