Friday, April 25, 2014

AIX - listing hdisk device names for specific type of devices

This will list just name for all of the hdisks on an IBM AIX LPAR:
lsdev -Cc disk -Fname

Its listing type 2107 and type puredisk right now.  Will it list the hdiskpower devices too?  I imagine it will, have to check as soon as I line up another LPAR connected to a VMAX :)

I'm also hoping that the following will give me the name of the hdiskpower devices only:
lsdev -C -t power -Fname.


Cuz this works...
# lsdev -C -t puredisk
hdisk137 Available 00-00-02 PURE MPIO Drive (Fibre)
hdisk138 Available 00-00-02 PURE MPIO Drive (Fibre)
hdisk139 Available 00-00-02 PURE MPIO Drive (Fibre)
hdisk140 Available 00-00-02 PURE MPIO Drive (Fibre)
hdisk141 Available 00-00-02 PURE MPIO Drive (Fibre)
hdisk142 Available 00-00-02 PURE MPIO Drive (Fibre)
hdisk143 Available 00-00-02 PURE MPIO Drive (Fibre)
hdisk144 Available 00-00-02 PURE MPIO Drive (Fibre)

So does this...
# lsdev -C -t puredisk -Fname
hdisk137
hdisk138
hdisk139
hdisk140
hdisk141
hdisk142
hdisk143
hdisk144


*** Update 20140507 ***
Good to go...


#lsdev -C -t power -Fname
hdiskpower0
hdiskpower1
hdiskpower2
hdiskpower3
hdiskpower4
hdiskpower5
hdiskpower6
hdiskpower7
hdiskpower8
hdiskpower9
hdiskpower10
hdiskpower11
hdiskpower12
powerpath0
 



No comments:

Post a Comment