[DRBD-user] Remove device

Lars Ellenberg lars.ellenberg at linbit.com
Wed Mar 18 20:18:54 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.


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.

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list