[DRBD-user] Converting between DRBD device and name
GAUTIER Hervé
herve.gautier at thalesgroup.com
Thu Jan 22 12:42:40 CET 2009
# drbdadm sh-dev drbd_resource ?
Nick Dyer a écrit :
> Is there a easy way of programmatically converting between the DRBD
> low-level device name (eg /dev/drbd5) and the resource name (eg
> backup-disk) without parsing the drbd.conf file?
>
> I have a lot of scripts which do things with drbd volumes and at the
> moment I have to have a hardcoded mapping between the two: it would be
> easier if you could write something like:
>
> $drbd_device=`drbdadm rawdevice backup-disk`
> mount $drbd_device /mnt
>
> or similar
>
> cheers
>
> Nick
--
Hervé GAUTIER
More information about the drbd-user
mailing list