[DRBD-user] DRBD + LVM2 Setup on RHEL5.1

Chris Raver chris at alphabay.com
Fri Mar 21 19:36:32 CET 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Will DRBD work in dual primary mode using an ext3 file system?

Sent from my iPhone

On Mar 21, 2008, at 12:05 PM, Greg Haase <haaseg at onefreevoice.com>  
wrote:

> Acually, it appears from your output that syncing is in progress:
>
>>        [>...................] sync'ed:  9.9% (9899/10979)M
>          ^^^^^^^^
>
> I think Lars is trying to point out that you are using a non- 
> journaling
> filesystem (ext2) for a primary/primary setup. You probably want to a
> filesystem that is better suited for that kind of thing. Now, I  
> don't know
> why he won't just come out and say it that way.
>
> -Greg
>
>> Here's my new config.  I ran pvcreate /dev/sda3 and created a  
>> Volume Group
>> called VolGroup01 and a Logical Volume called LogVol00.  I ran mke2fs
>> /dev/drbd0 and was able to mount the filesystem. But it doesn't  
>> appear to
>> be syncing with the other node.  I'm not sure if it's because it's  
>> just
>> not done with the initial sync or if I did something wrong.  The  
>> output of
>> cat /proc/drbd is below.
>>
>>  on qa1r2cls {
>>    device    /dev/drbd0;
>>    disk      /dev/VolGroup01/LogVol00;
>>    address   10.1.50.202:7789;
>>    meta-disk internal;
>>  }
>>  on qa1r3cls {
>>    device    /dev/drbd0;
>>    disk      /dev/VolGroup01/LogVol00;
>>    address   10.1.50.203:7789;
>>    meta-disk internal;
>>  }
>>
>> version: 8.2.5 (api:88/proto:86-88)
>> GIT-hash: 9faf052fdae5ef0c61b4d03890e2d2eab550610c build by  
>> root at qa1r2cls,
>> 2008-
>> 03-20 18:46:40
>> 0: cs:SyncSource st:Primary/Primary ds:UpToDate/Inconsistent C r---
>>    ns:1540676 nr:609708 dw:1219368 dr:931310 al:278 bm:57 lo:0 pe:0  
>> ua:0
>> ap:0
>>        [>...................] sync'ed:  9.9% (9899/10979)M
>>        finish: 8:12:46 speed: 332 (376) K/sec
>>        resync: used:0/31 hits:101691 misses:144 starving:0 dirty:0
>> changed:144
>>        act_log: used:0/127 hits:152137 misses:287 starving:0 dirty:9
>> changed:278
>>
>> -----Original Message-----
>> From: drbd-user-bounces at lists.linbit.com
>> [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Chris Raver
>> Sent: Friday, March 21, 2008 9:29 AM
>> To: drbd-user at lists.linbit.com
>> Subject: RE: [DRBD-user] DRBD + LVM2 Setup on RHEL5.1
>>
>> I think this will change my configuration because I am planning on  
>> using
>> LMV2.  If my config looks something like this:
>>
>> Perhaps something like:
>>
>>   on alice {
>>     device /dev/drbd0;
>>     disk   /dev/vg_01/lv_r0;
>>     ...
>>
>> When I run pvcreate do I use /dev/sda3 and create a volume group  
>> called
>> vg_01. Or do I run pvcreate /dev/drbd0 (which isn't working right  
>> now).
>>
>>
>>
>> -----Original Message-----
>> From: drbd-user-bounces at lists.linbit.com
>> [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Andy Diller
>> Sent: Friday, March 21, 2008 8:58 AM
>> To: Florian Haas
>> Cc: drbd-user at lists.linbit.com
>> Subject: Re: [DRBD-user] DRBD + LVM2 Setup on RHEL5.1
>>
>> Perhaps something like:
>>
>>   on alice {
>>     device /dev/drbd0;
>>     disk   /dev/vg_01/lv_r0;
>>     ...
>>
>> Would make more sense.
>>
>> Anyone working w/ LVM will not be using the /dev/sd[x] or /dev/hd[x]
>> obviously.
>>
>>
>> -andy
>>
>>
>> ----- "Florian Haas" <florian.haas at linbit.com> wrote:
>>
>>>> What device is /dev/drbd/r0? Most block devices in RHEL are going  
>>>> to
>>> be
>>>> /dev/sd[a-d] (SCSI or SATA) or /dev/hd[a-d] (IDE).
>>>
>>> Ouch, I hadn't realized that part of the user's guide was so easily
>>> misunderstood.
>>>
>>> resource r0 {
>>>  ...
>>>  on alice {
>>>    device /dev/drbd0;
>>>    disk   /dev/drbd/r0;
>>>    ...
>>>  }
>>>  on bob {
>>>    device /dev/drbd0;
>>>    disk   /dev/drbd/r0;
>>>    ...
>>>  }
>>> }
>>>
>>> This means the backing devices are LVM logical volumes named "r0"  
>>> in a
>>> Volume Group named "drbd". It says so in the text above the config
>>> snippet, but apparently that is easily overlooked.
>>>
>>> I will change this to a generic foo/bar "naming convention" to avoid
>>> confusion.
>>>
>>> Thanks for pointing this out.
>>>
>>> Cheers,
>>> Florian
>>>
>>> --
>>> : Florian G. Haas
>>> : LINBIT Information Technologies GmbH
>>> : Vivenotgasse 48, A-1120 Vienna, Austria
>>>
>>> When replying, there is no need to CC my personal address.
>>> I monitor the list on a daily basis. Thank you.
>>> _______________________________________________
>>> drbd-user mailing list
>>> drbd-user at lists.linbit.com
>>> http://lists.linbit.com/mailman/listinfo/drbd-user
>> _______________________________________________
>> drbd-user mailing list
>> drbd-user at lists.linbit.com
>> http://lists.linbit.com/mailman/listinfo/drbd-user
>> _______________________________________________
>> drbd-user mailing list
>> drbd-user at lists.linbit.com
>> http://lists.linbit.com/mailman/listinfo/drbd-user
>>
>
>



More information about the drbd-user mailing list