[DRBD-user] Removing DRBD resource

Andrew McGill list2008 at lunch.za.net
Thu Oct 9 10:00:53 CEST 2008

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


On Wednesday 08 October 2008 23:58:57 Alireza Nematollahi wrote:
> Hi guys,
>
> I wanted to know how I can remove a DRBD resource. I have this:
>
> cat /proc/drbd
> version: 8.2.5 (api:88/proto:86-88)
> GIT-hash: 9faf052fdae5ef0c61b4d03890e2d2eab550610c build by *, 2008-05-29
> 15:15:28 0: cs:WFConnection st:Unknown/Unknown ds:UpToDate/DUnknown C r---
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
>         resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
>         act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
>
>  8: cs:WFConnection st:Secondary/Unknown ds:Inconsistent/DUnknown C r---
>     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
>         resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
>         act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
>
>
> and I want to remove the resource 8 completely. So I do this:
>
> root ~ Server 1# drbdadm disconnect drbd8
> root ~ Server 1# drbdadm detach drbd8
>
> cat /proc/drbd
> version: 8.2.5 (api:88/proto:86-88)
> GIT-hash: 9faf052fdae5ef0c61b4d03890e2d2eab550610c build by *, 2008-05-29
> 15:15:28 0: cs:WFConnection st:Unknown/Unknown ds:UpToDate/DUnknown C r---
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
>         resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
>         act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
>
>  8: cs:Unconfigured
>
> So, 8 becomes unconfigured but I don't want it shown anymore. Drbdadm
> adjust all doesn't do anything either... Any ideas?
>
> Thanks
How about ...

  drbdsetup /dev/drbd8 down 

... although it doesn't work for me trying to remove drbd0  &:-)



More information about the drbd-user mailing list