|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Re: DomU on LVM
Tomasz Nowak wrote:
Wolfgang Rosenauer <wolfgang.rosenauer@xxxxxxxxxx> wrote:
So my plan was to use LVs directly as partitions in the guest
/dev/vg/lv1 -> /dev/hda1
/dev/vg/lv2 -> /dev/hda2 (or /dev/hdb1 FWIW)
AFAIK this way is not to be supported in the future.
I've managed to make it work (for each disk but /root (or /boot))
but then I've realised there are no advantages of such setup.
So IMHO a better way to do it is to export each lv as
a separate disk and make one single partition of whole
such disk in domU:
/dev/vg/lv1 -> /dev/hda -> /dev/hda1 --> /
/dev/vg/lv2 -> /dev/hdb -> /dev/hdb1 --> /var
/dev/vg/lv3 -> /dev/hdc -> /dev/hdc1 --> /home
Resizing is extremly easy (lvextend, resize2fs)
and it can be done online if ext3 is used.
hmm, ok, sounds good.
Do I understand correctly that resizing involves the following tasks then:
- lvextend from Dom0
- modify partition table in DomU to use the new whole disk (raising the
last block number?)
- resize2fs in DomU
Thanks,
Wolfgang
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|