Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: A question about the disk for the domain




On Jan,Sunday 18 2009, at 8:01 PM, Damian Sobczak wrote:

Hello,

How I understand that... I would create an unprivileged domain on my
partition /dev/wd0p. This partition is only for xen domains.

Can I create several domains on the one partition without to create an
file image? I do not think so.

If you are brave enough you can try to use LVM for NetBSD.
You need fresh -current sources and you need to set MKLVM
flag in mk.conf to yes(MKLVM=yes) and rebuild sources.
After successful build you will have support for Logical Volume Manager
integrated into base system.

with lvm tools installed in base you only have to load dm driver
from stand/i386/5.99.07/modules/dm. After this preparation stage
you can create/manage logical volumes with these commands.

1) lvm pvcreate /dev/rwd0p
2) lvm vgcreate vgvm /dev/rwd0p
3) lvm lvcreate -L 2G -n solaris vgvm

Command 3 will create disk device node in /dev/vgvm/ with name
solaris and rsolaris. You can use solaris LV as normal disk in
a system e.g. you can add it to xen config. Benefit of LVM is that
you can easily resize these partitions with command

lvm lvresize -L +1G vgvm/solaris -> will add 1G to solaris disk

You have to add lvm=yes command to your /etc/rc.conf to enable
activating of LVM during boot of system.

There are many LVM howtos about Linux LVM on internet. Our implementation differ only with that we are using raw devices for pvcreate/vgcreate and we do
not support mirror, linear and snapshot targets. :)

Regards

Adam.



Home | Main Index | Thread Index | Old Index