[DRBD-user] changing resource names

David david at kenpro.com.au
Thu Apr 25 03:02:55 CEST 2019

On 24/4/19 5:44 pm, Roland Kammerer wrote:
> On Tue, Apr 23, 2019 at 10:22:16PM +1000, David wrote:
>> Sorry if this is a newbie question.
>> I have a number of resources (VM's) on a two node system for which the
>> resource names are now misleading and I would like to change them. Is it
>> possible?
>> Do I just change the .res files or some other config? Do I have to shutdown
>> all VM's and change both node configs at the same time?
>> I can't find any documentation how to (safely) do it.
>> Could anybody point me to it?
> You created these manually, right? No plugins/drbdmanage/LINSTOR involved?
> If so, sure, you can do that. "down" it on one side, rename it in the
> res file, and "up" it again. Check how you used the DRBD block device.
> Via the minor? Good. Via the udev generated symlink? You need to adapt
> your setup.
> And again, this is all for a manual setup. All plugins I can imagine/we
> provide would be horribly confused if somebody changes the name
> underneath them.

Thanks.... this was set up by someone else and I just do basic 
maintenance on it.

Definitely not Linstor, and I'm not aware of drbdmanage, which is not 
btw installed.

I have this udev rule:
KERNEL=="drbd*", IMPORT{program}="/sbin/drbdadm sh-udev minor-%m", 
NAME="$env{DEVICE}", SYMLINK="drbd/by-res/$env{RESOURCE} 

but I admit I have no idea what to do with it :)


> Regards, rck
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user

David McQuire
0418 310312

More information about the drbd-user mailing list