Hey all I''ve created a Xen DomU on snv_134 , its Debian Lenny. For the disk, I''ve used a ZFS volume, which I accidentally set to 1GB. I''ve tried setting the volsize of the volume to 3GB and rebooting the domain, but this still only sees the initial 1GB disk. I''ve read about rebooting for volsize to take effect, but this seems to be in the context of either swap or a root disk. Do I need to do anything else for Lenny to see the new size ? Thanks -- This message posted from opensolaris.org
you need to resize the filesystem as well. How to do this depends on the filesystem. For ext2/3 there is resize2fs. regards rolf rander Message was edited by: rolfn -- This message posted from opensolaris.org
Hmm, using resize2fs gives : resize2fs /dev/xvda1 2999M resize2fs 1.41.3 (12-Oct-2008) The containing partition (or device) is only 232934 (4k) blocks. You requested a new size of 767744 blocks. Obviously the partition isnt large enough, does anyone know how I can resize the partition if its in a ZFS volume ? -- This message posted from opensolaris.org
Ah, the filesystem is within a partition within the ZFS-volume, I should have realized that. There are plenty of partition editors around. For this kind of low-level resizing I have used sfdisk in the past. Be careful, this has no safeguards, take a backup (zfs snapshot) before you start. It''s been too long since I did this to give you any actual example of command lines, but the man-page looks pretty comprehensive. The basic idea should be to dump the partition-table with the -d switch, modify and read back in. If your partition is not the last on the disk (zfs-volume) this will not work. (The real solution for this kind of manipulation is to use LVM, but that is a bit late now...) It might be easier to create a new volume, partition and format this, mount it in your domU and copy the filesystem. Then change the domU-definition to use the new volume. regards rolf rander -- This message posted from opensolaris.org