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

Lars Ellenberg Lars.Ellenberg at linbit.com
Wed Oct 13 05:54:35 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.


/ 2004-10-13 02:05:54 +0000
\ nhat tran:
> 
> 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)

urban myths have it that examples may sometimes be wrong.
maybe there is a umount missing from that example?
always use your common sense :-/

thanks, I'll fix it on that page later
(unless someone else fixes it first.  after all, its a wiki ...)


	Lars Ellenberg

-- 
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list