Re: koan --virt: lvm support

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

 



well... it is possible ;)
because we are allready doing this for over a year.

And the installation is quite simple:
* you create your logical volumes in the dom0 and mount them
* you install a minimal system with yum --installroot=
* you create a xen config where you map the logical volumes to the
partition inside the domU.

The installation instructions can be found on my blog:
http://www.raskas.be/blog/howtos/centos-base-image/

And this is how the disk section of my xen config looks like:
disk = ['phy:vm_volumes/root-host1,sda1,w'
        ,'phy:vm_volumes/swap-host1,sda2,w'
        ,'phy:vm_volumes/tmp-host1,sda3,w'
        ,'phy:vm_volumes/varlog-host1,sda6,w'
        ,'phy:vm_volumes/home-host1,sda7,w'
        ]

It would be really great if this would be possible to do with koan,
for now we do this with our own create vhost script.

Greetings,
Johan

On 9/4/07, Michael DeHaan <mdehaan@xxxxxxxxxx> wrote:
> Johan Huysmans wrote:
> > I noticed the koan parameter --virt-path and tried creating a vhost
> > with following command:
> > koan --server <some-ip> --virt --profile CentOS5-xen-i386 -P VolGroup00
> >
> > The profile and kickstart files are generated by an import from the CentOs5 DVD.
> >
> > This command creates 1 lv. The domU uses this as a disk (xvda) and
> > creates partitions on this.
> > It is working, but not really the thing i want.
> >
> > I want that koan will create multiple lv's on the dom0. Each lv on
> > dom0 is a partition on domU. This means that the lv is directly
> > formatted in the dom0, and you can mount that logical volume like a
> > normal lv (it IS a normal volume) in the dom0.
> >
> > Is this (allready) possible with koan (or virt-inst)?
> >
>
> I believe you are stuck with the extra level of indirection -- that is
> that partitions in your host (dom0) appear
> as disks in your domU -- with both tools.   I don't think you can feed a
> partition up without a corresponding virtual disk :)
>
> (Note that you don't have to use LVM for this -- regular partitions work
> too)
>
> --Michael
>
>
>
>
>
>
>
> > Greetings,
> > Johan Huysmans
> >
> >
> > On 9/4/07, Michael DeHaan <mdehaan@xxxxxxxxxx> wrote:
> >
> >> Johan Huysmans wrote:
> >>
> >>> Hi All,
> >>>
> >>> In March this year Fred posted a request on this mailinglist:
> >>> http://www.redhat.com/archives/et-mgmt-tools/2007-March/msg00119.html
> >>>
> >>>
> >> Implemented.
> >>
> >> See the documentation for --virt-path in the koan manpage.
> >>
> >>
> >>
> >>> What is the status of this request, is it working in the latest version of koan?
> >>>
> >>> I noticed that it is now possible to use a logical volume as a disk,
> >>> but it is also possible to use logical volumes on dom0 as partitions
> >>> on domU?
> >>>
> >>>
> >> There are three ways storage can be specified:
> >>
> >> -- basic disk images on the filesystem (default behavior)
> >> -- specifying a logical volume group that has free space in it, where
> >> then koan will carve a paritition out of it named after the virtual machine
> >> This allows for using a common LVM group for all your virtual machines,
> >> which is rather useful.
> >> -- specifying a specific partition for koan to use as storage.
> >>
> >> I hope that answers the question!
> >>
> >> Recently a few folks have been asking for ways to specify multiple
> >> "disks" for their configurations ... and that's something I am going to
> >> be looking at.
> >>
> >>
> >>> Thanks for the information,
> >>> Johan Huysmans
> >>>
> >>> _______________________________________________
> >>> et-mgmt-tools mailing list
> >>> et-mgmt-tools@xxxxxxxxxx
> >>> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
> >>>
> >>>
> >> _______________________________________________
> >> et-mgmt-tools mailing list
> >> et-mgmt-tools@xxxxxxxxxx
> >> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
> >>
> >>
> >
> > _______________________________________________
> > et-mgmt-tools mailing list
> > et-mgmt-tools@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/et-mgmt-tools
> >
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux