PS : this procedure assumes that you are using ksh or bash
Procedure:
* Identify the disk to be removed (df, zpool list, metastat, vxdg list, or other)
* Make sure that the disk is unmounted and removed from volume manger control.
- zpool detach, metadetach, etc
* Offlin the device:
- luxadm -e offline /dev/dsk/c4t34543543534d0s2
* Identify the "Device Address" for the disk using luxadm display
- make a variable to hold list of disks from cfgadm:
- ff="$(cfgadm -al -o show_FCP_dev)"
- Identify devices to unconfigure :
- for i in $(luxadm display /dev/rdsk/c4t3443543534d0s2 | nawk '/Device Address/ {print $3}') ; do echo "$ff" | hawk -v device=$i '$1 ~ device {print $1}' ; done
* Unconfigure each unit from the last step :
- cfgadm -o unusable_FCP_dev -c unconfiugre c4::304985094385