[DRBD-user] ds:Inconsistent/Diskless

Sam Przyswa samp at arial-concept.com
Mon Sep 13 18:33:11 CEST 2010

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


Le 13/09/2010 18:20, Theo Band a écrit :
>   On 09/13/2010 05:29 PM, Sam Przyswa wrote:
>    
>> And the command "drbdadm -- --overwrite-data-of-peer primary r0"
>>
>> Give:
>>
>> 2: State change failed: (-2) Refusing to be Primary without at least
>> one UpToDate disk
>> Command 'drbdsetup 2 primary --overwrite-data-of-peer' terminated with
>> exit code 17
>>
>> And cat /proc/drbd:
>>
>> version: 8.3.7 (api:88/proto:86-91)
>> srcversion: EE47D8BF18AC166BE219757
>>
>>   2: cs:Connected ro:Secondary/Secondary ds:Diskless/Inconsistent B 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
>>
>> Argh...
>>      
> You need to attach the local disk first, it's currently diskless.
>
> drbdadm attach r0
>    

Ok, I got that:

# drbdadm attach r0
2: Failure: (114) Lower device is already claimed. This usually means it 
is *mounted*.
Command 'drbdsetup 2 disk /dev/LVM-1/POSTFIX-2 /dev/LVM-1/meta-1 0 
--set-defaults --create-device --on-io-error=detach' terminated with 
exit code 10

But the disk *must* be mounted

Sam.


-- 
Sam Przyswa - Chef de projet
Email: samp at arial-concept.com
Arial Concept - Intégrateur OpenSource
36, rue de Turin - 75008 - Paris - France
Tel: 01 40 54 86 04 - Fax: 01 40 54 83 01
Fax privé: 09 57 12 27 22
Skype ID: arial-concept





More information about the drbd-user mailing list