[DRBD-user] how to make the resource secondary mandatorily

guohuai li guohuai_li at hotmail.com
Fri Dec 4 05:20:52 CET 2009


Dear all,

 

Would you help to tell me how to make the resource secondary mandatorily ?

 

Now I use DRBD8.3.0.

 

And the primary node is diskless, so I "umount  /dev/drbd0" and try to issue command

"drbdadm secondary r0" to make the resource secondary.

But it not works, the detail info is like below.

 

I suggest DRBD provide a command to make the resource secondary mandatorilly, especially while "Diskless".

Maybe I didn't know such command.

 

thanks for your help,

 

Regards,

Edward

 

+++++++++++++++++++++++++++++++++++

 

linux-10:~ # drbdadm secondary r0
unlink: Read-only file system
open(/var/lock/drbd-147-0): Read-only file system
Command 'drbdsetup /dev/drbd0 secondary' terminated with exit code 20
drbdadm secondary r0: exited with code 20
linux-10:~ # cat /proc/drbd 
version: 8.3.0 (api:88/proto:86-89)
GIT-hash: 9ba8b93e24d842f0dd3fb1f9b90e8348ddb95829 build by root at linux-10, 2009-02-18 16:33:17
 0: cs:Connected ro:Primary/Secondary ds:Diskless/UpToDate C r---
    ns:7924 nr:0 dw:3304 dr:321 al:16 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
 1: cs:Connected ro:Primary/Secondary 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 ep:1 wo:b oos:0
 2: cs:Connected ro:Primary/Secondary 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 ep:1 wo:b oos:0
linux-10:~ # 
 		 	   		  
_________________________________________________________________
Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20091204/83c8faeb/attachment.htm>


More information about the drbd-user mailing list