Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Fri, 2006-09-01 at 13:50 +0700, Anthony Dawson wrote: > The mapping of disk /dev/drbd? devices to /dev/hda? is determined by the > entries in the node section as is the meta-data disk to be used. U do not > use a drbd in the meta-disk specification but an hd?? device > Ofcourse. I assumed that /dev/drbd0 is associated with /dev/hda1 in configurations. Now /dev/hda1 has some data and we want it to be alive after we mount it as /dev/drbd0. Now if we are using external metadata, /dev/hda1 will be unchanged when it will be mounted as /dev/drbd0, isn't it? :-) > Regarding size: > > Not sure what version of drbd you are talking about but here is an extract > from the latest drbd.conf file > > # Upgrading from DRBD-0.6.x > # > # Using the size parameter in the disk section (was disk-size) is > # no longer valid. The agreed disk size is now stored > # in DRBD's non volatile meta data files. > > And as far as I know the size is now fixed to 128meg per drbd device. Yes its fixed. I have tried changing it to greater (640MB). I was successful. entry in drbd-8.0pre3/scripts/drbd.conf: 196 # In case you only want to use a fraction of the available space # you might use the "size" option here. # # size 10G; > > Regards, > > Anthony > > > ----- Original Message ----- > From: "Milind Dumbare" <milind at linsyssoft.com> > To: "Anthony Dawson" <anthony.dawson at bcs.org> > Sent: Friday, September 01, 2006 1:29 PM > Subject: Re: [DRBD-user] formatting of drbd partition > > > >I was talking about th situation of using metadata on an external > > volume, In that case eventually underlying volume (/dev/hda1) is same as > > the drbd device (/dev/drbd0) you mount. > > Ofcourse if you have not specified "size" variable in configuration > > (drbd.conf) to use some less amount in volume from what is available. > > > > On Thu, 2006-08-31 at 22:04 +0700, Anthony Dawson wrote: > >> That is not exactly correct /dev/drbd0 is not necessarily the same as > >> /dev/hda1 the mapping is defined in the resources sections of the > >> drbd.conf > >> file. It is correct that you do not need to create a file system on the > >> partition, the old one will do. However you will lose 128Mb at the end of > >> that partition unless you use a separate partition or device for the > >> metadata. > >> > >> on node1 { > >> device /dev/drbd0; > >> disk /dev/hda6; > >> address 192.168.1.95:7788; > >> meta-disk /dev/hda5 [0]; > >> } > >> > >> in the above /dev/drbd0 maps to /dev/hda6 and I am using a separate > >> partition for the metadata meta-disk /dev/hda5 > >> > >> When you come to starting the servers make very sure you sync your > >> systems > >> correctly to be more precise make sure you make the machine with your > >> valuable data the master or you will destroy everything that is on there > >> so > >> run the command "drbdadm -- --do-what-I-say primary all" on your master > >> that > >> should then sync your master's with the good data over to your slave > >> rather > >> than the other way around. (I hope I got that right :-) > >> > >> repeated cat /proc/drbd will show you the progress of syncing the two > >> disks > >> > >> Finally remember to mount dev/drbd0 and NOT the /dev/hda? device > >> > >> Regards, > >> > >> Anthony > >> P.S. if you can make a back up of you valuable data before doign anything > >> I > >> would.... hard disks are cheap these days do a dd and bit copy your data > >> to > >> another device... takes no more than a few minutes to be safer > >> > >> ----- Original Message ----- > >> From: "Milind Dumbare" <milind at linsyssoft.com> > >> To: "khaja mohideen" <skm_mail at yahoo.com> > >> Cc: <drbd-user at lists.linbit.com> > >> Sent: Thursday, August 31, 2006 7:10 PM > >> Subject: Re: [DRBD-user] formatting of drbd partition > >> > >> > >> > You never format the partition. You just use it virtually through DRBD. > >> > so even if you mount /dev/drbd0, its /dev/hda1 what is mounted. > >> > > >> > When you give internal meta-data, 128MB of disk is taken which might > >> > overwrite your file-system or any important data. I am not sure but try > >> > using external metadata, It should help you. > >> > > >> > > >> > On Thu, 2006-08-31 at 04:09 -0700, khaja mohideen wrote: > >> >> Hi, > >> >> > >> >> What would happen if i mount the 100 GB > >> >> partition(/dev/hda1) without formatting as /dev/drbd0. > >> >> > >> >> In slave I would allocate the exact 100 GB size for > >> >> drbd. > >> >> > >> >> > >> >> Then would it solve. > >> >> > >> >> > >> >> Any help > >> >> > >> >> > >> >> SKM > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> --- Milind Dumbare <milind at linsyssoft.com> wrote: > >> >> > >> >> > On Thu, 2006-08-31 at 03:34 -0700, khaja mohideen > >> >> > wrote: > >> >> > > Hi, > >> >> > > > >> >> > > I have partition 100 GB size. Do i need to > >> >> > format > >> >> > > this partition once i installed & mount as > >> >> > /dev/drbd0 > >> >> > > device. > >> >> > > > >> >> > > Currently it contains 80 GB of data. So backing > >> >> > & > >> >> > > restoring would be a painful job. Can drbd be > >> >> > used > >> >> > > without formatting it. > >> >> > > > >> >> > > > >> >> > I think using external volume for metadata in > >> >> > configuration > >> >> > can help you out. > >> >> > > >> >> > > Pls Help. > >> >> > > > >> >> > > > >> >> > > SKM > >> >> > > > >> >> > > __________________________________________________ > >> >> > > Do You Yahoo!? > >> >> > > Tired of spam? Yahoo! Mail has the best spam > >> >> > protection around > >> >> > > http://mail.yahoo.com > >> >> > > _______________________________________________ > >> >> > > drbd-user mailing list > >> >> > > drbd-user at lists.linbit.com > >> >> > > http://lists.linbit.com/mailman/listinfo/drbd-user > >> >> > > > >> >> > > > >> >> > -- > >> >> > -Milind > >> >> > "There is no place like 127.0.0.1" > >> >> > > >> >> > > >> >> > >> >> > >> >> __________________________________________________ > >> >> Do You Yahoo!? > >> >> Tired of spam? Yahoo! Mail has the best spam protection around > >> >> http://mail.yahoo.com > >> >> _______________________________________________ > >> >> drbd-user mailing list > >> >> drbd-user at lists.linbit.com > >> >> http://lists.linbit.com/mailman/listinfo/drbd-user > >> >> > >> >> > >> > -- > >> > -Milind > >> > "There is no place like 127.0.0.1" > >> > > >> > _______________________________________________ > >> > drbd-user mailing list > >> > drbd-user at lists.linbit.com > >> > http://lists.linbit.com/mailman/listinfo/drbd-user > >> > >> > >> > > -- > > -Milind > > "There is no place like 127.0.0.1" > > > > > -- -Milind "There is no place like 127.0.0.1"