[DRBD-user] Remove a DRBD resource

Armin Schindler Armin.Schindler at sysgo.com
Wed Mar 27 10:24:06 CET 2019


On 3/27/19 10:08 AM, Robert Altnoeder wrote:
> On 3/26/19 6:59 PM, Marcio Demetrio Bacci wrote:
>> Hi,
>> I have two resources in the node, but I need to remove the
>> storage-rede resource.
>>
>> I run the following commands:
>>
>> 1. drbdadm down storage-rede
>>
>> 2. drbdadm disconnect storage-rede
>>
>> 3. drbdadm detach storage-rede
>>
>> 4. drbdadm invalidate storage-rede
>>
>> None of the above commands solved my problem.
> 
> drbdadm down should have removed it. None of the other commands remove a
> DRBD resource from the kernel.

As far as I know, drbd-overview reads the configuration files
(e.g. in /etc/drbd.d/*.res)
As long as the resource is defined here, even when "down", drbd-overview
lists it as "unconfigured".
Try removing the config file.

Armin

>>
>> root at server01:~# drbd-overview 
>>
>>   0:hd146         Connected    Primary/Secondary UpToDate/UpToDate C 
>>     r-----   /vms ext4   125G 78G 47G 63% 
>>   1:storage-rede  Unconfigured . 
>>
>> How could I remove the DRBD resource storage-rede  (Unconfigured) ?
> 
> Try the drbdsetup down command.
> 
> Also, since drbd-overview does not complain about being deprecated,
> which newer versions have for quite a long time now, I wonder which
> version of DRBD and drbd-utils you are running.
> 
> br,
> Robert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2900 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20190327/40c15bfc/attachment-0001.bin>


More information about the drbd-user mailing list