[DRBD-user] Setup Questions

Brian R. Hellman brian at linbit.com
Thu Mar 19 19:45:36 CET 2009

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


Don Caprio wrote:
> I'm setting up a DRBD on a 2 node HA cluster.  The DRBD is configured 
> and appears to be
> running as expected. After the resync completed I created an ext3 
> filesystem on my primary node and
> mounted /dev/drbd1.
> 
> It's not clear to me that this is allowed but I tried to mount the file 
> system on my secondary node (read-only)
> and the mount fails. Should I be able to do this?
No you can not mount the secondary, only the primary.


> 
> Thank you.
> 
> root at skunk:~# mount /dev/drbd1 /drbdfs
> root at skunk:~# df -k /drbdfs
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/drbd1             2518072     98408   2292760   5% /drbdfs
> 
> root at badger:~# mount -r /dev/drbd1 /drbdfs
> mount: you must specify the filesystem type
> root at badger:~# mount -t ext3 -o ro /dev/drbd1 /drbdfs
> mount: Wrong medium type
> 
> 
> /etc/drbd.conf:
> global {
>   usage-count yes;
> }
> common {
>   protocol C;
> }
> resource r0 {
>   on skunk {
>     device    /dev/drbd1;
>     disk      /dev/sda6;
>     address   192.168.254.101:7789;
>     meta-disk internal;
>   }
>   on badger {
>     device    /dev/drbd1;
>     disk      /dev/sda6;
>     address   192.168.254.100:7789;
>     meta-disk internal;
>   }
> }
> 
> root at skunk:~# cat /proc/drbd
> version: 8.0.11 (api:86/proto:86)
> GIT-hash: b3fe2bdfd3b9f7c2f923186883eb9e2a0d3a5b1b build by phil at mescal, 
> 2008-02-12 11:56:43
> 
>  1: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
>     ns:2653752 nr:0 dw:115632 dr:2538249 al:44 bm:155 lo:0 pe:0 ua:0 ap:0
>     resync: used:0/31 hits:158479 misses:155 starving:0 dirty:0 changed:155
>     act_log: used:0/127 hits:28864 misses:55 starving:0 dirty:11 changed:44
> 
> root at badger:~# cat /proc/drbd
> version: 8.0.11 (api:86/proto:86)
> GIT-hash: b3fe2bdfd3b9f7c2f923186883eb9e2a0d3a5b1b build by phil at mescal, 
> 2008-02-12 11:56:43
> 
>  1: cs:Connected st:Secondary/Primary ds:UpToDate/UpToDate C r---
>     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
>     resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
>     act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0
> 
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user


: LINBIT | Your Way to High Availability
: 8152 SW Hall Blvd., Suite #209 : Beaverton, OR 97008
:
: http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.



More information about the drbd-user mailing list