How to identify SAN drive is Offline or Online

I can do it through Disk-part but need an analysis to identify the SAN disk is offline or online.

Also need to change the status from Offline to Online through Fixlet.

Please help me to write the Analysis or Fixlet.

this can tricky and intrusive to pull that off. There isn’t any way to automate that in unix host. you have to login the server and see what’s going. There can be number of scenario behind the disk offline state…bad fibre/ bad sfp/ san switches/ san frame… any of these can fluctuate the availability of the disk host. We are having the san issue for the last few days in unix host which has 1000+ luns, there is no way any script can fix that.

We have successfully tracked SAN drives by using a small utility like SANsurfer. Periodically we’d run a Bigfix job to execute SANsurfer with parameters, saving the output with drive and pathing information into local files. Then we’d use an analysis to gather and present the data. It worked effectively for us and was especially helpful after a SAN outage a few years ago. We could compare a before and after view to help us find paths and drives that were missing or down.

Comparing inspected local fixed disks vs the output of the SAN utility can highlight discrepancies.

appendfile echo {number of drives whose (type of it = “DRIVE_FIXED”)} > c:\path\SAN_fixed_Disks.txt

You can substitute ‘names’ or ‘volumes’ or some other properties in place of ‘number’ as well.

Depending on the software the SAN vendor provides, you may be able to programmatically change status of the disks.