[DRBD-user] How to detach the DRBD Block Device.

Takeshi Yahagi yahagi at tgi.co.jp
Fri Apr 22 06:22:47 CEST 2016

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


Hi, Digimer

Thanks for your reply.

> Can you paste the output of 'cat /proc/drbd' from the machine you are
trying to detach? If the peer is not
> UpToDate and Primary, then it needs the local machine to run. (Just a
guess, /proc/drbd will give better 
> indication).
I did it. The output on console is below!!
[root#] cat /proc/drbd
              : <trim>
0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown   r-----
    ns:138734606 nr:0 dw:1715987995 dr:1159763787 al:31373043 bm:12020785
lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:1740
              : <trim>

It seems to be "Primary UpToDate".

Regards,
----
Yahagi(TGI)


-----Original Message-----
From: Digimer [mailto:lists at alteeve.ca] 
Sent: Friday, April 22, 2016 12:16 PM
To: Takeshi Yahagi <yahagi at tgi.co.jp>; drbd-user at lists.linbit.com
Subject: Re: [DRBD-user] How to detach the DRBD Block Device.

On 21/04/16 10:15 PM, Takeshi Yahagi wrote:
> Hi.
> 
> This is Yahagi(TGI).
> 
> I use DRBD v8.3.15, now.
> 
> I want to detach the DRBD lower device.
> 
> But, command 
>   "drbdadm disconnect <DRBD device>
>    drbdadm detach <DRBD device>"
> is not success.
> 
> Error Message from the command "drbdadm detach" is below
> 0: State change failed: (-2) Need access to UpToDate data Command 
> 'drbdsetup 0 detach' terminated with exit code 17
> 
> I want to know the completed command sequence for detach the block device.
> 
> Regards,
> ----
> Yahagi(TGI)
> ----

Can you paste the output of 'cat /proc/drbd' from the machine you are trying
to detach? If the peer is not UpToDate and Primary, then it needs the local
machine to run. (Just a guess, /proc/drbd will give better indication).

madi

--
Digimer
Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is
trapped in the mind of a person without access to education?




More information about the drbd-user mailing list