How to change alias name
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · ----- "--[ UxBoD ]--
Hi,
we have a situation where we need to rename a server and would also like to change the associate multipath alias. Is this possible without restarting the whole multipath daemon and killing all our other mounted partitions ? The server we need to work on is in a shutdown state so the associated partitions are not active.
Reading through the documentation if I do:
dmsetup -v status insguest01
I see the following with the Name being the alias.
Name: insguest01 State: ACTIVE Read Ahead: 1024 Tables present: LIVE Open count: 4 Event number: 1
Major, minor: 253, 4
Number of targets: 1
UUID: mpath-3600144f0e2824900000049df899b0002
I can then perform the same command on each of its partitions. If I wanted to rename this guest's devices to insguest02 would I do:
dmsetup rename insguest01 insguest02
then update /etc/multipath.conf so that the alias name reflects the new name at boot time ? and would I need to perform the same operation on all the partitions as well ?
Signature · 1 line
Thanks - Phil
You could also start with changing the aliases in /etc/multipath.conf, run multipath, and reload multipathd config through the CLI or restart it altogether (which is not risky if there is no degraded situation).
Works with recent multipath tools versions at least.
regards,
cvaroqui
http://www.opensvc.com
Quoted 32 lines · --[ UxBoD ]--
Quoted 8 lines · ----- "--[ UxBoD ]--
Hi,
we have a situation where we need to rename a server and would also like to change the associate multipath alias. Is this possible without restarting the whole multipath daemon and killing all our other mounted partitions ? The server we need to work on is in a shutdown state so the associated partitions are not active.
Reading through the documentation if I do:
dmsetup -v status insguest01
I see the following with the Name being the alias.
Name: insguest01 State: ACTIVE Read Ahead: 1024 Tables present: LIVE Open count: 4 Event number: 1Major, minor: 253, 4
Number of targets: 1
UUID: mpath-3600144f0e2824900000049df899b0002I can then perform the same command on each of its partitions. If I wanted to rename this guest's devices to insguest02 would I do:
dmsetup rename insguest01 insguest02
then update
/etc/multipath.confso that the alias name reflects the new name at boot time ? and would I need to perform the same operation on all the partitions as well ?
Quoted 40 lines · ----- "Christophe Varoqui
You could also start with changing the aliases in
/etc/multipath.conf,
run multipath, and reload multipathd config through the CLI or restart
it altogether (which is not risky if there is no degraded situation).Works with recent multipath tools versions at least.
regards,
cvaroqui
http://www.opensvc.comQuoted 5 lines · --[ UxBoD ]--
Quoted 3 lines · ----- "--[ UxBoD ]--
Hi,
we have a situation where we need to rename a server and would
also
Quoted 21 lines
Quoted 5 lines
like to change the associate multipath alias. Is this possible without restarting the whole multipath daemon and killing all our other mounted partitions ? The server we need to work on is in a shutdown state so the associated partitions are not active.
Reading through the documentation if I do:
dmsetup -v status insguest01
I see the following with the Name being the alias.
Name: insguest01 State: ACTIVE Read Ahead: 1024 Tables present: LIVE Open count: 4 Event number: 1Major, minor: 253, 4
Number of targets: 1
UUID: mpath-3600144f0e2824900000049df899b0002
Quoted 9 lines
Quoted 1 line
I can then perform the same command on each of its partitions. If I
wanted to rename this guest's devices to insguest02 would I do:
Quoted 4 lines
dmsetup rename insguest01 insguest02
then update
/etc/multipath.confso that the alias name reflects thenew name at boot time ? and would I need to perform the same operation on all the partitions as well ?
Quoted 1 line
Thank you Christophe. We are using device-mapper-multipath-0.4.7-30.el5 under CentOS 5.4 X86_64 so I presume we would be okay ?
Signature · 1 line
Thanks - Phil