WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How do I resize a Physical Partition in a Dom U that's

To: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] How do I resize a Physical Partition in a Dom U that's "on" a Logical Volume in the Dom 0?
From: Bob Linkonij <boblnknj0@xxxxxxxxx>
Date: Fri, 1 May 2009 11:12:47 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 01 May 2009 12:38:36 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Po9lJ557EVVgGJJLLAoUCGoudye3yla1ANdLCoM5H3c=; b=RlRovFKNgBYQdy2c0DAx1L4PNzz2A53Z2dY7Q/ohfQAFUAQy0TBGIYIwoQiMI5QAVi uL4Hi+pJArCF+4guqvQbwlDBJwfV2udYTKrmzQJHczRoSXIigsCu0QaP2VbvXqu4wWQV CVdMgyihoPMih/+cbpoRw1RLqb86OW+bmX77M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ZjWH/OGUR8pD6P5/3I5GzmRU4XsOPyj0ziRXl5KTWyIlEkW6ybNlSCJOc+pPQVQGJz XMsh8RnFw8YDBXR1f6DWjP6btEf27eRR3bsWF5frKCIcznC/Zh4O+RcLW3+jqlgDRve8 2pPVXpwtSSWTHSSo7W/Un2thqc9MTbc8adfJw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <a06240839c620d2d7aec5@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <54f972110905010823j7b89b586ief072abf79fda2a@xxxxxxxxxxxxxx> <a06240839c620d2d7aec5@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hey Simon,

On Fri, May 1, 2009 at 9:33 AM, Simon Hobson <linux@xxxxxxxxxxxxxxxx> wrote:
>> lvextend -L +4G /dev/VG01 guest_root
>>
>> Can I do that "hot" without shutting down the Dom U first?  Or do I
>> need to shut it down THEN do the lvextend?
>
> You can do that 'hot'

Great.  That makes things easier & faster.

> I'm not clear here - did you partition /dev/xvdc and create a filesystem on
> /dev/xvdc1, or did you create a filesystem on /dev/xvdc ?

I'm pretty foggy about the xvdc vs xvdc1 name differences but if I
understand what you're asking I did the first type.  I'm not even sure
how I'd do the latter, or if I should.  Any thoughts on that?

Anyway I used Suse SLED v10's auto-installation stuff to do it. The
part of the script for the xvdc device was

<partitioning config:type="list"><drive>
<device>/dev/xvdc</device>
<initialize config:type="boolean">false</initialize>
<partitions config:type="list"><partition>
 <create config:type="boolean">false</create>
 <filesystem config:type="symbol">ext3</filesystem>
 <format config:type="boolean">true</format>
 <label>GUESTROOT</label>
 <mount>/</mount>
 <partition_id config:type="integer">131</partition_id>
 <partition_nr config:type="integer">1</partition_nr>
 <partition_type>primary</partition_type>
 <size>max</size>
</partition></partitions>
<type config:type="symbol">CT_DISK</type>
<use>all</use>
</drive></partitioning>


> If you create a filesystem on the disk device rather than partitioning it,
> then you can shutdown the guest, use resize2fs to enlarge the filesystem in
> it, and startup the guest.
>
> If you created a partition, then you will need to deal with that. I think
> there was a discussion a while back on mounting partitions from a partition.
> You'll need to enlarge the partition to fill the disk, and then you can
> resize the filesystem in it. Other than doing it from within the guest I
> don't know how to do that. Once you shutdown and then start up (NOT reboot)
> the guest, it will see the new logical volume as a bigger disk - I don't
> know if there is any way to make this happen 'live'.

So it sounds like the 1st one is simpler.  And can be done live or hot.

Maybe I should just redo the whole thing to use the "create a
filesystem on /dev/xvdc" way.

Any pointers on that one?  I've tried to follow some of those
discussions, and just get lost.  It seems like each message answers a
question someone's not asking.  Maybe I didn't find the right list
yet, but so far it's all pretty confusing to me.

I found the Xen wiki site.  But I couldn't find any stuff about which
way is the right or best approach, or especially how to do it.

> You're not alone !

I guess that's a good thing :-)

Thanks a bunch.

Bob

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users