Hello, I have a xen box that has a lvm for each of the domU''s. I would like to be able to create a vg inside of my domu and put the individual filesystems of the domU on the lv''s inside the vg on the domU. Is this even possible? Has anybody done something similar and have any notes that they took? Thanks for any clue, Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Jan 15, 2008 5:17 PM, <jonr@destar.net> wrote:> Hello, > > I have a xen box that has a lvm for each of the domU''s. I would like > to be able to create a vg inside of my domu and put the individual > filesystems of the domU on the lv''s inside the vg on the domU. > > Is this even possible? Has anybody done something similar and have any > notes that they took?Check these out: http://wiki.slicehost.com/doku.php?do=search&id=lvm -berto. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
G''day, What you want to do is indeed possible - I''ve done it in the past. At the time I thought it sounded like a good idea, but I''ve long since reverted to a saner approach for my custom built XEN environment. I think the RedHat distributed XEN works along a similar path to what you are trying to achieve. Regards, Wayne On 16/01/2008, at 11:17 AM, jonr@destar.net wrote:> Hello, > > I have a xen box that has a lvm for each of the domU''s. I would > like to be able to create a vg inside of my domu and put the > individual filesystems of the domU on the lv''s inside the vg on the > domU. > > Is this even possible? Has anybody done something similar and have > any notes that they took? > > > Thanks for any clue, > > Jon > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersDr. Wayne Mallett High Perf. & Research Computing Support Information Technology & Resources James Cook University Townsville Qld 4811 Australia Ph (int): 5084 Ph (ext) : 07 4781 5084 Email: Wayne.Mallett@jcu.edu.au _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Wayne Mallett wrote:> At the time I thought it sounded like a good idea, but I''ve long since > reverted to a saner approach for my custom built XEN environment. > > I think the RedHat distributed XEN works along a similar path to what > you are trying to achieve.Yes, RH''s Xen installs LVM on domU by default when using virt-manager. The problem with this approach is when domU''s storage is also located on dom0''s LV. This makes it very difficult (if not impossible) to mount domU''s storage on dom0 (for example, when troubleshooting is needed). In my setup I ended up creating domUs manually (using a template .tar.gz), mapping an LV on dom0 to (h/s/xv)da1 for root and (h/s/xv)da2 for swap on domU. It''s easier to manage this way. Regards, Fajar> > Regards, > > Wayne > > On 16/01/2008, at 11:17 AM, jonr@destar.net wrote: > >> Hello, >> >> I have a xen box that has a lvm for each of the domU''s. I would like >> to be able to create a vg inside of my domu and put the individual >> filesystems of the domU on the lv''s inside the vg on the domU. >>_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Can you describe the saber approach you now use? On Jan 15, 2008, at 17:36, Wayne Mallett <wayne.mallett@jcu.edu.au> wrote:> G''day, > > What you want to do is indeed possible - I''ve done it in the past. > At the time I thought it sounded like a good idea, but I''ve long > since reverted to a saner approach for my custom built XEN > environment. > > I think the RedHat distributed XEN works along a similar path to > what you are trying to achieve. > > Regards, > > Wayne > > On 16/01/2008, at 11:17 AM, jonr@destar.net wrote: > >> Hello, >> >> I have a xen box that has a lvm for each of the domU''s. I would >> like to be able to create a vg inside of my domu and put the >> individual filesystems of the domU on the lv''s inside the vg on the >> domU. >> >> Is this even possible? Has anybody done something similar and have >> any notes that they took? >> >> >> Thanks for any clue, >> >> Jon >> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > Dr. Wayne Mallett > High Perf. & Research Computing Support > Information Technology & Resources > James Cook University > Townsville Qld 4811 > Australia > > Ph (int): 5084 > Ph (ext) : 07 4781 5084 > Email: Wayne.Mallett@jcu.edu.au > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I have separate LVs on dom0 for each volume on the domU and then have extra fields in the virtual disks definition in the XEN config file. For example: disk = [ ''phy:/dev/iscsi_path1/myhost_root,sda1,w'', ''phy:/dev/vg0/ myhost_swap,sda2,w'', ''phy:/dev/iscsi_path2/myhost_opt,sda3,w'' ] On the domU host - sda1 is for /, sda2 is for swap, and sda3 is for / opt. Regards, Wayne On 16/01/2008, at 12:21 PM, Roberto Aguilar wrote:> Can you describe the saber approach you now use? > > On Jan 15, 2008, at 17:36, Wayne Mallett <wayne.mallett@jcu.edu.au> > wrote: > >> G''day, >> >> What you want to do is indeed possible - I''ve done it in the >> past. At the time I thought it sounded like a good idea, but I''ve >> long since reverted to a saner approach for my custom built XEN >> environment. >> >> I think the RedHat distributed XEN works along a similar path to >> what you are trying to achieve. >> >> Regards, >> >> Wayne >> >> On 16/01/2008, at 11:17 AM, jonr@destar.net wrote: >> >>> Hello, >>> >>> I have a xen box that has a lvm for each of the domU''s. I would >>> like to be able to create a vg inside of my domu and put the >>> individual filesystems of the domU on the lv''s inside the vg on >>> the domU. >>> >>> Is this even possible? Has anybody done something similar and >>> have any notes that they took? >>> >>> >>> Thanks for any clue, >>> >>> Jon >>> >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >> >> Dr. Wayne Mallett >> High Perf. & Research Computing Support >> Information Technology & Resources >> James Cook University >> Townsville Qld 4811 >> Australia >> >> Ph (int): 5084 >> Ph (ext) : 07 4781 5084 >> Email: Wayne.Mallett@jcu.edu.au >> >> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-usersDr. Wayne Mallett High Perf. & Research Computing Support Information Technology & Resources James Cook University Townsville Qld 4811 Australia Ph (int): 5084 Ph (ext) : 07 4781 5084 Email: Wayne.Mallett@jcu.edu.au _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jonr@destar.net wrote:> Hello, > > I have a xen box that has a lvm for each of the domU''s. I would like > to be able to create a vg inside of my domu and put the individual > filesystems of the domU on the lv''s inside the vg on the domU. > > Is this even possible?Yes, this is possible. IMHO, it''s not a good idea to have LVM on both Dom0 and Dom-U. ie, Define a Logical Volume as the guest backend and again create vg, lv inside the guest. LVM is enough either in dom0 or domU for the purpose of resizing guest volumes. The reason for my opinion is that LVM has 2% performance hit over pysical partitions. So get this hit on both end. So I usually define sda1 or sda2 etc.. as my guest backend and create LVM inside the guest. If I need more space, I would add sdb1 too to the guest and resize the LVM. --Sadique> Has anybody done something similar and have any notes that they took? > > > Thanks for any clue, > > Jon > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users