April 30, 2009

Show the status of LUN and path on Solaris

Posted in Utility at 1:14 pm by alessiodini

For this purpose i used these commands:

for i in `luxadm probe | grep Path | cut -f 2 -d ‘:’`; do echo “Processing $i:”; sleep 1; luxadm display $i | egrep -i ‘(status|state)’; echo; done

When running i obtain:

Processing /dev/rdsk/c2t5006048452A70A28d0s2:
Path status: O.K.
Path status: O.K.
Path status: O.K.
Path status: O.K.

Processing /dev/rdsk/c2t5006048452A70A28d236s2:
Path status: O.K.

Processing /dev/rdsk/c2t5006048452A70A28d237s2:
Path status: O.K.

Processing /dev/rdsk/c2t5006048452A70A28d238s2:
Path status: O.K.
Path status: O.K.
Path status: O.K.
Path status: O.K.

[…]

From output i can see the number of path of every LUN , useful!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: