[DRBD-user] Remove device

Isaac González igonzalez at es.clara.net
Thu Mar 19 09:12:49 CET 2009

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


OK, I think that drbd devices will stay permanently.

Lot of thanks.

Isaac González Jiménez
Téncnico IDG

igonzalez at es.clara.net
Información General: 902 884 633
Soporte: 902 884 622
Provisión: 902 884 802
Directo: +34 934 452 692
Fax: +34 934 451 920

Claranet
Managed Services Provider
C/General Almirante, 2-28, Torres Cerdá
08014 Barcelona
www.claranet.es




Lars Ellenberg escribió:
> On Wed, Mar 18, 2009 at 03:49:37PM +0100, Isaac González wrote:
>   
>> Hi,
>>
>> It's possible to remove a device from /dev/drbdXX. We've several devices
>> and we need a setup where we can delete and activate drbd devices
>> without confussion?. For example:
>>
>> xen-domU-1 --> drbd1
>> xen-domU-2 --> drbd2
>>
>> If we do:
>>
>> drbdadm down drbdX and remove the drbdX configuration part and we reload
>> the drbd service we get this:
>>
>> 3: cs:Unconfigured
>> 4: cs:Unconfigured
>>     
>
> once created, the drbd minor stays allocated
> until next reboot or DRBD module unload/load.
>
>   
>> and we also have the drbd device in /dev/ directory, we want to delete
>> de drbd1 from /dev.
>>
>> brw-rw---- 1 root disk 147, 0 2009-03-18 15:34 /dev/drbd0
>> brw-rw---- 1 root disk 147, 1 2009-03-18 15:34 /dev/drbd1
>> brw-rw---- 1 root disk 147, 2 2009-03-18 15:34 /dev/drbd2
>> brw-rw---- 1 root disk 147, 3 2009-03-18 15:41 /dev/drbd3
>> brw-rw---- 1 root disk 147, 4 2009-03-18 15:41 /dev/drbd4
>>     
>
> you can of course delete the device nodes, if it makes you happy.
> only it won't magically re-appear in case you want to use it again,
> (unless you do a reboot or module unload/load).
> so you would need to mknod it again, if you need it again.
>
>   



More information about the drbd-user mailing list