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

Digimer lists at alteeve.ca
Fri Apr 22 05:15:40 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.


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