Fairly new to XEN. I am currently exploring ways where I can grow or increase 
the capacity of disks  given to a domU.

Currently I have dom01 running osol b119, and dom02 centos. The dom01 is setup 
with a single 20G vdisk (vmdk on NFS) using ZFS inside.

Growing the size of the vdisk is quite easy:

nfs# zfs set quota=30G zpool1/dom01
dom0# vi /xen.dom01/disk01/vdisk.xml
and increase the max-size and sector entries. I was then hoping that ZFS would 
just see the new space and use it. 

dom01# zpool set autoexpand=on /rpool
dom01# reboot

But alas:

# zpool list
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
rpool  19.9G  9.01G  10.9G    45%  ONLINE  -


It appears the .vmdk file also embeds the disk geometry. Amusingly though, 
format/fdisk it says I am only using 57%.

Perhaps the reason here is that as it is a root pool, it has to be an SMI 
label, and can only grow if the label is updated. Not sure I can do that "live".


As my second attempt I created /xen/dom02/disk02, 10G vmdk. I used virsh 
attach-disk to attach it, and very nicely it just shows up in format. The idea 
was the user could just attach it as a stripe.

Alas, root pools can not be on 2 disks:

# zpool add -f rpool c0t1d0s0
cannot add to 'rpool': root pool can not have multiple vdevs or separate logs

So that will not work either. Ironically, had I gone with UFS, I probably could 
just attach the 2nd disk as a stripe with disksuite. Sigh. I suspect Linux lvm 
would also be happy.

What would users of XEN recommend?
-- 
This message posted from opensolaris.org
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to