Has anyone ever used DRBD on top of LVM devices ? Has anyone had a problem with this? Such that can grow and move around partiions etc, and not have to use NFS on top of DRBD with spare files for storage. Or can someone recomened a better way of doing with with no attached shared storage. Each server has its own hard drive, and should mirror each other. Brock Palen Center for Advanced Computing brockp@umich.edu (734)936-1985 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Brock Palen wrote:> Has anyone ever used DRBD on top of LVM devices ? Has anyone had a > problem with this? Such that can grow and move around partiions etc, > and not have to use NFS on top of DRBD with spare files for storage. > Or can someone recomened a better way of doing with with no attached > shared storage. > > Each server has its own hard drive, and should mirror each other. >I am not sure if this is what you mean, but yes, you can use drbd on top of LVM. Your domU should be configured with something like disk=[''phy:drbd1,hda1,w''] and drbd should have something like this in /etc/drbd.conf for both your hosts on yourhost { ..... device /dev/drbd1; disk /dev/vgn/vm; .... } I don''t think you should have any problems resizing your volumes but I didn''t try it. Cristian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Brock Palen schrieb:> Has anyone ever used DRBD on top of LVM devices ? Has anyone had a > problem with this? Such that can grow and move around partiions etc, > and not have to use NFS on top of DRBD with spare files for storage. > Or can someone recomened a better way of doing with with no attached > shared storage. > > Each server has its own hard drive, and should mirror each other. > > Brock Palen > Center for Advanced Computing > brockp@umich.eduHello ! I''m using XEN 3.0.2-3 with Kernel 2.6.16.29 on Ubuntu Dapper Server 6.06 with a XEN DomU on a DRBD Device (Version 8.0pre6) on LVM. It''s in production only since Sat, Nov 11. I didn''t try to resize the underlying LVM device but I''m taking daily snapshots and do rsync backups of the snapshots. This works for me, but check out drbd.org and the DRBD changelogs because afaik DRBD on LVM is supported only in the 8.0pre series not in the stable 0.7.X. In the changelog of 8.0 you find an entry: 8.0pre3 (api:82/proto:80) -------- * Now it works on device mapper (LVM) as well as on "real" block devices. * Finally (after years) a sane "drbdadm adjust" imprementation, which is really really robust. ... -- __________________________________________________ Ralf Schenk fon (02 41) 9 91 21-0 fax (02 41) 9 91 21-59 rs@databay.de Databay AG Hüttenstraße 7 D-52068 Aachen www.databay.de Sitz/Amtsgericht Aachen HRB:8437 USt-IdNr.: DE 210844202 Databay - einfach machen. _________________________________________________ Diese E-Mail und etwa angehängte Dateien enthalten vertrauliche Informationen und sind ausschließlich für den Adressaten bestimmt. Sollten Sie irrtümlich diese E-Mail erhalten haben, bitten wir Sie, uns darüber unter info@databay.de zu informieren und die E-Mail aus Ihrem System zu löschen. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify info@databay.de. If you are not the named recipient, you should return this message and delete it from your system. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Dec 15, 2006, at 12:37 PM, Ralf Schenk wrote:> Brock Palen schrieb: >> Has anyone ever used DRBD on top of LVM devices ? Has anyone had a >> problem with this? Such that can grow and move around partiions etc, >> and not have to use NFS on top of DRBD with spare files for storage. >> Or can someone recomened a better way of doing with with no attached >> shared storage. >> >> Each server has its own hard drive, and should mirror each other. >> >> Brock Palen >> Center for Advanced Computing >> brockp@umich.edu > > Hello ! > > I''m using XEN 3.0.2-3 with Kernel 2.6.16.29 on Ubuntu Dapper Server > 6.06 > with a XEN DomU on a DRBD Device (Version 8.0pre6) on LVM. It''s in > production only since Sat, Nov 11. > > I didn''t try to resize the underlying LVM device but I''m taking daily > snapshots and do rsync backups of the snapshots. > > This works for me, but check out drbd.org and the DRBD changelogs > because afaik DRBD on LVM is supported only in the 8.0pre series > not in > the stable 0.7.X. > > In the changelog of 8.0 you find an entry: > > 8.0pre3 (api:82/proto:80) > -------- > * Now it works on device mapper (LVM) as well as on "real" block > devices. > * Finally (after years) a sane "drbdadm adjust" imprementation, > which is > really really robust.Ah i remember reading about this a year ago when i first heard about it. 0.8 has been in devolpment for a long time. How stable has it been for you? I really would like to avoid doing NFS :-) (as i kick our NFS appliance on our Compute cluster)> ... > > > -- > __________________________________________________ > > Ralf Schenk > fon (02 41) 9 91 21-0 > fax (02 41) 9 91 21-59 > rs@databay.de > > Databay AG > Hüttenstraße 7 > D-52068 Aachen > www.databay.de > > Sitz/Amtsgericht Aachen > HRB:8437 > USt-IdNr.: DE 210844202 > > Databay - einfach machen. > > _________________________________________________ > > Diese E-Mail und etwa angehängte Dateien enthalten vertrauliche > Informationen und sind ausschließlich für den Adressaten bestimmt. > Sollten Sie irrtümlich diese E-Mail erhalten haben, bitten wir Sie, > uns darüber unter info@databay.de zu informieren und die E-Mail > aus Ihrem System zu löschen. > > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > info@databay.de. If you are not the named recipient, you should return > this message and delete it from your system. > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I may have completely missed you point, so forgive me if that is the case. I was just wondering why you want to put drbd on top of LVM. 6 months ago I build a similar 2 node storage system. To avoid a purely active/passive arrangement I partitioned the storage space in each machine into 2. Then I created two drbd devices which mirror each half onto the other node. On each drbd device I then created a LVM system (different names) set the LVM filters so that they are oblivious to the underlying block device and made my own lvm start-up script that starts and stops specific LVM resources. By default each node has primary ownership of one of the halves and can mount the LVM system on it. In the event of a failure you can take ownership of the other machine''s drbd device and initiate the LVM system on it. I was using internal journaling or what ever the term is for where the drbd data is stored within the partition reducing its size slightly. I am not sure if this provides the degree of control you are after but it certainly works and massively reduces the number of drbd device you will need. It also gives you a clear upgrade path to using HA methods and implementing an iscsi SAN. Regards Rob -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Brock Palen Sent: 15 December 2006 16:14 To: xen-users@lists.xensource.com Subject: [Xen-users] drbd on lvm Has anyone ever used DRBD on top of LVM devices ? Has anyone had a problem with this? Such that can grow and move around partiions etc, and not have to use NFS on top of DRBD with spare files for storage. Or can someone recomened a better way of doing with with no attached shared storage. Each server has its own hard drive, and should mirror each other. Brock Palen Center for Advanced Computing brockp@umich.edu (734)936-1985 _______________________________________________ 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