Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-users

Re: [Xen-users] Managing DomU partitions in XEN+LVM systems?

To: Derek <xen@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Managing DomU partitions in XEN+LVM systems?
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Wed, 31 Jan 2007 17:22:10 +0100
Cc: xen ml <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 31 Jan 2007 08:22:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <13033e750701310805l14072a69le42094d76770c3e8@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <13033e750701310805l14072a69le42094d76770c3e8@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20060911)
Derek wrote:
>   disk = [ 'phy:/dev/mapper/main-root_disk_winxp,hda,w' , ... others ... ]

> That would seem trivial to do, from within dom0 (while the domU is not
> running of course.)  Just use:
>   - lvextend to enlarge the volume
>   - fdisk (or parted) to enlarge the partition
>  - ntfsresize to enlarge the filesystem
> 
> The first two steps work flawlessly.  The third step is problematic,
> because ntfsresize wants to be told the device path to the _partition_,
> not to the _whole_disk_.

Yo can either use kpartx (comes with mulitpath tools) to create device
mapper mappings for the partitions or use something like
        xm block-attach 0 "phy:grp/vol" xvda w
to access the volume as virtual disk in domain zero (/dev/xvda1 is your
partition then).

HTH,
  Gerd

-- 
Gerd Hoffmann <kraxel@xxxxxxx>

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