This post is more than 5 years old
2 Intern
•
211 Posts
0
1661
December 26th, 2013 11:00
To remove old / stale devices from AIX servers
We have seen following issues on the server, and they are no longer been used, older or stale devices. They are shown in "symdev -sid 123 list", but not in " symaccess -sid 123 show view view_name". they are not in the storage group, but are still mapped, somehow, Please advice what can I do on the sever and/or on the array to get rid of these devices? Thank you!
server_name: /dev/rhdisk10 :EMC :SYMMETRIX :5875 xxxxxx : 2880
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
F31FFAC3 1224120313 I H hdisk10 PATH HAS RECOVERED
F31FFAC3 1224120313 I H hdisk10 PATH HAS RECOVERED
F31FFAC3 1224120313 I H hdisk10 PATH HAS RECOVERED
F31FFAC3 1224120313 I H hdisk10 PATH HAS RECOVERED
02A8BC99 1224120313 P H hdisk10 PATH HAS FAILED
02A8BC99 1224120313 P H hdisk10 PATH HAS FAILED
02A8BC99 1224120313 P H hdisk10 PATH HAS FAILED
02A8BC99 1224120313 P H hdisk10 PATH HAS FAILED


dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
0
December 26th, 2013 12:00
are you sure these devices have not been re-purposed and presented to another host ?
symaccess -sid 123 list assignment -dev 1462
if nothing is returned then you will need to first make devices not ready or write disabled
symdev -sid 123 write_disable 1462
and then unmap it
symconfigure -sid 123 -cmd "unmap dev 1462 from dir ALL:ALL;" commit
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
0
December 26th, 2013 11:00
if they are truly removed, they you can use aix command "rmdev -dl "
emcmagic
2 Intern
•
211 Posts
0
December 26th, 2013 12:00
Got it.
When I run symdev -sid123 list, I can see the device is mapped to SA: P, although it is no longer in the disk group, what is the command to unmap it?
Before I tell the server admin to run rmdev -dl, I'd like to unmap first, Does that make any sense? Thanks!
emcmagic
2 Intern
•
211 Posts
0
December 26th, 2013 13:00
I got nothing on 02A8 as the result of running symaccess -sid 123 list assignment -dev. So, I can unmap this one.
I got 2 ports (5G:0 and 12G:0) back on 0F31, and plus 8 associated identifiers (wwn's). Ports are the same as shown when I run " symaccess -sid 123 show view view_name" on this host's view. Should I then unmap only indentifier (wwn's) that the host is associating with? what is the command for that? Thanks for your patience!
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
0
December 26th, 2013 14:00
if device is not masked to any WWNs then go ahead and unmap it from all ports, what's the point of keeping it mapped ?
emcmagic
2 Intern
•
211 Posts
0
December 27th, 2013 07:00
Hey dynamox,
when I run symaccess -sid 123 list assignment -dev 0F31, I do see ports are masked to 8 wwn's, they are just not hosts I have questions about. How do I find what hosts, the storage group, or view these wwn's are associating with?
Thank you!
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
1
December 27th, 2013 07:00
symaccess -sid 123 list view -v -detail
pipe this to a file and search for the WWN.