<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.balloontextchar0
{mso-style-name:balloontextchar;
mso-style-priority:99;
font-family:"Tahoma","sans-serif";}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:navy;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>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.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>When I try to run a resize2fs in
the guest, it says:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>[root@centos5-test ~]# resize2fs
/dev/xvda2<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>resize2fs 1.39 (29-May-2006)<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>The filesystem is already
2594497 blocks long. Nothing to do!<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>The /dev/xvda2 is the root
partition but I thought resize2fs could extend a file system without having to
unmount it.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='color:#1F497D'>Denise Lopez<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>310/ 206-8216<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>dlopez@humnet.ucla.edu<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
redhat-sysadmin-list-bounces@redhat.com
[mailto:redhat-sysadmin-list-bounces@redhat.com] <b>On Behalf Of </b>Olt,
Joseph<br>
<b>Sent:</b> Tuesday, February 26, 2008 11:06 AM<br>
<b>To:</b> redhat-sysadmin-list@redhat.com<br>
<b>Subject:</b> RE: LVM resize question<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Hello Denise,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>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?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Joseph<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
redhat-sysadmin-list-bounces@redhat.com
[mailto:redhat-sysadmin-list-bounces@redhat.com] <b>On Behalf Of </b>Lopez,
Denise<br>
<b>Sent:</b> Tuesday, February 26, 2008 1:55 PM<br>
<b>To:</b> redhat-sysadmin-list@redhat.com<br>
<b>Subject:</b> LVM resize question</span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi all,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>root@xen ~]# resize2fs /dev/XenServers/CentOS5<o:p></o:p></p>
<p class=MsoNormal>resize2fs 1.39 (29-May-2006)<o:p></o:p></p>
<p class=MsoNormal>resize2fs: Bad magic number in super-block while trying to
open /dev/XenServers/CentOS5<o:p></o:p></p>
<p class=MsoNormal>Couldn't find valid filesystem superblock.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I tried with the –f option too but still the same
error. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any ideas?<o:p></o:p></p>
<p class=MsoNormal>Thanks<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Denise Lopez<o:p></o:p></p>
<p class=MsoNormal>UCLA - Center for Digital Humanities<o:p></o:p></p>
<p class=MsoNormal>Network Services<o:p></o:p></p>
<p class=MsoNormal>Linux Systems Engineer<o:p></o:p></p>
<p class=MsoNormal>337 Charles E. Young Drive East<o:p></o:p></p>
<p class=MsoNormal>PPB 1020<o:p></o:p></p>
<p class=MsoNormal>Los Angeles, CA 90095-1499<o:p></o:p></p>
<p class=MsoNormal>310/206-8216<o:p></o:p></p>
<p class=MsoNormal><img width=53 height=90 id="Picture_x005f_x0020_1"
src="cid:image001.jpg@01C8786B.CFB1D0F0" alt=RHCE><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>