How to remove SAN devices in Solaris

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

How to flap a SAN device path without rebooting in Solaris

To flap a failed path just run
Note: This will bring up/down that FC SCSI path

If the above dose not work
Just run the below procedure

Then dump the mapped data

And last re-run a configure

How to remove SAN devices without rebooting in Solaris

Here are all my devices (local and SAN)

let’s offline the LUNs now:

Quiet straight forward, right ? Now, if you run you should notice all those LUNs are now in an ‘unusable’ state.

Let’s fully unconfigure them:

And finally, let’s cleanup the devices pathes

Note: In a cluster configuration run also

All done !! To make sure run the device should not show in format any more.

Now, you can completely remove those LUNs from the SAN, destroy them on the array,…
as far as Solaris is concerned, they don’t exist anymore

Want to make them reappear ? Just run ‘cfgadm -c configure’ on the controllers

What if you’re running a non Sun volume management software like VxVM ?
This was also tested with VxVM 5.0mp1 + DMP instead of MPXIO and it works really well
Just make sure to deport those diskgroups and ‘vxdisk offline’ the Vx devices before running the luxadm offline

Another way to offline luns

To clean up the device tree after you remove LUNs

The removed devices show up as drive not available in the output of the format command:

After the LUNs are unmapped using Array management or the command line, Solaris also displays the devices as either unusable or failing.

If the removed LUNs show up as failing, you need to force a LIP on the HBA.

This operation probes the targets again, so that the device shows up as unusable. Unless the device shows up as unusable, it cannot be removed from the device tree.

To remove the device from the cfgadm database

run the following commands on the HBA:

Repeat step 2 to verify that the LUNs have been removed.

Clean up the device tree. The following command removes the /dev/rdsk… links to /devices.
$devfsadm -Cv

Leave a Reply

avatar
  Subscribe  
Notify of