Hi list, I setup on 2 Xen Dom0s drbd/gfs a logical volume, this works as primary/primary so both DomUs will be able to write on them at the same time. But I dont know how to mount them from my domUs, I can see them with fdisk -l. The partition is /dev/xvdb1 SHould I install gfs on domUs and mount them on each as gfs partitions? [root@p3x0501 ~]# fdisk -l Disk /dev/xvda: 5368 MB, 5368709120 bytes 255 heads, 63 sectors/track, 652 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/xvda1 * 1 13 104391 83 Linux /dev/xvda2 14 144 1052257+ 82 Linux swap / Solaris /dev/xvda3 145 652 4080510 83 Linux Disk /dev/xvdb: 5368 MB, 5368508416 bytes 255 heads, 63 sectors/track, 652 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/xvdb1 1 652 5237158+ 83 Linux Any help is appreciated. Cris _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-May-03 03:28 UTC
Re: [Xen-users] Mount drbd/gfs logical volume from domU
On Sat, May 1, 2010 at 6:59 AM, Cristian Rojas <intipu@yahoo.com> wrote:> Hi list, > > I setup on 2 Xen Dom0s drbd/gfs a logical volume, this works as > primary/primary so both DomUs will be able to write on them at the same > time. But I dont know how to mount them from my domUs, I can see them with > fdisk -l. The partition is /dev/xvdb1 > > SHould I install gfs on domUs and mount them on each as gfs partitions?Depends on how you want it to run. Short version is that gfs on dom0 is not required to have gfs on domU, and vice versa. If you want to have gfs on domU only, you can have drbd on dom0 active-active, maps the resulting block device (/dev/drbd1 or whatever) as domU disk, and use that disk for gfs on domU. So you need drbd on dom0 only, and gfs on domU only. Another alternative, if you only want to test gfs, you can just use plain files/LVM/partition on dom0 side, and have domU handle both drbd and gfs. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Cristian Rojas
2010-May-03 15:21 UTC
Re: [Xen-users] Mount drbd/gfs logical volume from domU
Hi Fajar, i guess that means running cman on DomUs, do you see performance issues if I have 10 DomUs per Dom0? Thanks again for your help. Cris ________________________________ From: Fajar A. Nugraha <fajar@fajar.net> To: Cristian Rojas <intipu@yahoo.com> Cc: xen-users@lists.xensource.com Sent: Mon, May 3, 2010 12:28:02 AM Subject: Re: [Xen-users] Mount drbd/gfs logical volume from domU On Sat, May 1, 2010 at 6:59 AM, Cristian Rojas <intipu@yahoo.com> wrote:> Hi list, > > I setup on 2 Xen Dom0s drbd/gfs a logical volume, this works as > primary/primary so both DomUs will be able to write on them at the same > time. But I dont know how to mount them from my domUs, I can see them with > fdisk -l. The partition is /dev/xvdb1 > > SHould I install gfs on domUs and mount them on each as gfs partitions?Depends on how you want it to run. Short version is that gfs on dom0 is not required to have gfs on domU, and vice versa. If you want to have gfs on domU only, you can have drbd on dom0 active-active, maps the resulting block device (/dev/drbd1 or whatever) as domU disk, and use that disk for gfs on domU. So you need drbd on dom0 only, and gfs on domU only. Another alternative, if you only want to test gfs, you can just use plain files/LVM/partition on dom0 side, and have domU handle both drbd and gfs. -- Fajar _______________________________________________ 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
Fajar A. Nugraha
2010-May-04 02:59 UTC
Re: [Xen-users] Mount drbd/gfs logical volume from domU
On Mon, May 3, 2010 at 10:21 PM, Cristian Rojas <intipu@yahoo.com> wrote:> Hi Fajar, i guess that means running cman on DomUs, do you see performance > issues if I have 10 DomUs per Dom0?Generally I have less than that (with lots of resource for each domU), but it should be fine as long as: - your domU has enough memory that it doesn''t need to use swap much - your dom0 disks are fast enough to handle total IOPS during peak load ("iostat -x 3" can provide useful information) -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Cristian Rojas
2010-May-04 14:14 UTC
Re: [Xen-users] Mount drbd/gfs logical volume from domU
Thanks Fajar!! May i ask: Are you using 10k 0r 15k rpm disks? Thanks again Cris ________________________________ From: Fajar A. Nugraha <fajar@fajar.net> To: Cristian Rojas <intipu@yahoo.com> Cc: xen-users@lists.xensource.com Sent: Mon, May 3, 2010 11:59:49 PM Subject: Re: [Xen-users] Mount drbd/gfs logical volume from domU On Mon, May 3, 2010 at 10:21 PM, Cristian Rojas <intipu@yahoo.com> wrote:> Hi Fajar, i guess that means running cman on DomUs, do you see performance > issues if I have 10 DomUs per Dom0?Generally I have less than that (with lots of resource for each domU), but it should be fine as long as: - your domU has enough memory that it doesn''t need to use swap much - your dom0 disks are fast enough to handle total IOPS during peak load ("iostat -x 3" can provide useful information) -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-May-05 03:31 UTC
Re: [Xen-users] Mount drbd/gfs logical volume from domU
On Tue, May 4, 2010 at 9:14 PM, Cristian Rojas <intipu@yahoo.com> wrote:> Thanks Fajar!! > > May i ask: Are you using 10k 0r 15k rpm disks?Mostly 10k. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users