I use as follows (note that I use XFS):
1.) Create temporary file that will be extra space.
$> dd if=/dev/zero of=BLAH.tmp bs=1M count=41000
2.) Shut down the running Xen instance.
$> xm shutdown DOM_ID
3.) BACK UP Xen instance in case anything goes wrong.
4.) Append the temporary file to end of image.
$> cat BLAH.tmp >> xen_image_file.img
5.) Set up device mappings and loop device. This will create a
/dev/loop# and /dev/mapper/loop#p# devices to represent the virtual
loop "drive" and partitions, respectively. Use kpartx -l to show what
loop device will be created first.
$> kpartx -a xen_image_file.img
6.) Delete and resize the existing partition
$> fdisk /dev/loop#
d,p,#
n,p,# (proper paramaneters)
w(write)
7.) Run filesystem check to makes sure partition tables are still valid
$> e2fsck /dev/mapper/loop#p#
$> xfs_repair -L /dev/mapper/loop#p# (xfs partition)
8.) Delete mapped partitions and loop device
$> kpartx -d /dev/loop#
$> losetup -d /dev/loop#
9.) Start Xen Server. Begin online-resize of partition.
$> xm create xen_server_name
$> resize2fs /dev/xvda#
Regards
KaZ
On Sun, Nov 7, 2010 at 4:08 AM, Frank Murphy <frankly3d(a)gmail.com> wrote:
As my default image space is almost full
/dev/md0 => 99% Used. Warning. Disk Filling up.
I now want to add empty drives as new image space
/dev/sdc, /dev/sdd (unformatted as yet, 320gb each)
What's the best method, as the host F14 has selinux-enforcing.
And I don't want to make a mess.
Google hasn't helped much for me:
http://tinyurl.com/2wu5d9q
--
Regards,
Frank Murphy
UTF_8 Encoded
Friend of Fedora
_______________________________________________
virt mailing list
virt(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/virt