Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Kamran Nisar schrieb:
> test1:~ # cat /proc/drbd
> version: 0.7.14 (api:77/proto:74)
> SVN Revision: 1989 build by root at test1, 2005-11-11 14:50:53
> 0: cs:Connected st:Primary/Secondary ld:Consistent
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
> 1: cs:Unconfigured
>
>
> test2:~ # cat /proc/drbd
> version: 0.7.18 (api:78/proto:74)
> SVN Revision: 2186 build by lmb at chip, 2006-05-04 17:08:27
> 0: cs:Connected st:Secondary/Primary ld:Consistent
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
> 1: cs:Unconfigured
>
>
> is the above correct ? should the st:/primary/Secondary should be same on
> both the machines ?
This is correct. Have a look at
http://www.linux-ha.org/DRBD/FAQ#head-988086376cbd00bdcc9c9d199317af5f7550c5c1
|st:Local/Remote
|
| state, the respective node's role for this device
> secondly i'm using the folling snip in my conf file
>
> on test1 {
> device /dev/drbd0;
> disk /dev/md0;
> address 192.168.2.61:7788;
> meta-disk internal;
> }
>
> on test2 {
> device /dev/drbd0;
> disk /dev/md0;
> address 192.168.2.62:7788;
> meta-disk internal;
> }
>
>
>
> I have linux RAID0 on both the server under /dev/md0
>
> now the thing i can't figure out, is where does the data actually goes on
> the server1 is how to mount /dev/md0 to store some data on it.. because
> when i try to mount it, it says drive is busy, probably becuase of sumthing
> drbd is doing ..
You don't mount /dev/md0, you create a filesystem on your drbd0 device
and mount that.
Ralf