[DRBD-user] 'drbdadm secondary all' not working

nhat tran nhat at cia.com.au
Wed Oct 13 04:05:54 CEST 2004

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


Hi,

I was experimenting by switching nodes between primary and secondary (as per 
http://linuxha.trick.ca/DRBD_2fQuickStart07), where it suggests you
can:

ssh root@$left -- 'mkdir -p /mnt/ha0; mount /dev/drbd0 /mnt/ha0 && 
touch /mnt/ha0/been_there' 
 
 # 'switch over' 
 ssh root@$left -- 'drbdadm secondary all' 
 # even during sync! 
 ssh root@$right -- 'drbdadm primary all' 


Yet it complains with the following error:

node2# drbdadm secondary all
 ioctl(,SET_STATE,) failed: Device or resource busy  Someone has opened the 
device for RW access!
 Command '/sbin/drbdsetup /dev/drbd0 secondary' terminated with exit  
drbdsetup exited with code 20 node2#

The device is mounted RW, but so is it in the example above (unless I am 
missing something)

We are using DRBD 0.7.4. We are also using Heartbeat 1.2.3, but for the 
purposes of this test we have switched heartbeat off.

We have found that using 'hb_standby' works as a way of switching the nodes 
over, but I am curious why the above fails.

Regards,








More information about the drbd-user mailing list