Unsolved
This post is more than 5 years old
10 Posts
0
3754
Can't rename pseudo device
Hi,
I can't get PP (5.7) to rename a pseudo device. Message I am getting eventually: "WARNING: unable to restore mapping for emcpowera (lookup or unmapping error)". Any input on how to fix this is much appreciated.
Last weekend our VNX was swapped out (due to rotation of lab equipment used in solutions teams).
Since getting the new LUNs assigned from the new VNX, PowerPath has assigned a new pseudo device name to all devices.
I want to rename them back to the original names, but PowerPath says it can't do the rename. I tried it on the command line and with export/import of a mapping file. Both failed. In the examples below I am trying to rename the new emcpowerbq back to the original name of emcpowera.
USING COMMAND LINE
[root@r910a ~]# emcpadm getfreepseudos -n 1 -b emcpowera
Next free pseudo device name(s) from emcpowera are:
Pseudo Device Name Major# Minor#
emcpowera 120 0
[root@r910a ~]# emcpadm renamepseudo -s emcpowerbq -t emcpowera
[root@r910a ~]# emcpadm getused | grep bq
emcpowerbq 120 1088
[root@r910a ~]# emcpadm renamepseudo -s 1088 -t 0
USING EXPORT/IMPORT OF MAPPING FILE
Exported the mappings. Removed all but emcpowerbq. Renamed pseudo_dev from 'bq' to 'a', as shown below:
[root@r910a PPissue]# cat rename_bq_to_a_mapping.xml
5.7.0 (build 2)
r910a.gso.lab.emc.com
emcpowera
0x407840
clariion
wwn
11E47FE2E8777E1B003841A260010660
[root@r910a PPissue]# emcpadm check_mappings -x -f rename_bq_to_a_mapping.xml
Imported Device Remapping Status
Mapping
---------------- ------------------------------------------
emcpowera remaps: emcpowerbq
[root@r910a PPissue]# emcpadm import_mappings -x -f rename_bq_to_a_mapping.xml
WARNING: unable to restore mapping for emcpowera (lookup or unmapping error)
Thanks,
Ed
EdSpaeny
10 Posts
0
December 16th, 2014 09:00
Update:
This is to 'fix' the names on 2 nodes of a 2-node Oracle RAC setup.
The above original post shows the output on node 1.
I just tried it on the other node, without any problem! All names on node 2 are now switched back successfully!
This still leaves me with node1...
Thanks,
Ed
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
3
January 6th, 2015 13:00
Hello Ed,
It looks like something may have control of your device, since this is RAC it may be ASM, if it's not ASM please reference KB91113 and follow the steps included. You'll need to un-mount, un-map/(release) the device in use.
chetan011
1 Message
0
September 10th, 2015 01:00
Hi All,
Can anyone tell me what is the purpose of -x option in emcpadm command:
emcpadm import_mapping -x -f /tmp/mapping.dmx
Thanks
Chetan Grover
brettesinclair
715 Posts
0
September 10th, 2015 04:00
It allows you to specify the format (in XML) of the mappings file data.