RagHon Consulting
+47 98237711
  • Home
  • Services
  • Products
    • Oracle Enterprise Ops Center >
      • Links
      • Youtube
    • Self Extracting Zip Files
    • RC 2 SMF toolkit
    • RBAC aware user provisioning
    • Oracle Software
    • Oracle Hardware
    • Citrix Software
  • Partners
  • Blog
  • Contact
  • About
  • Support
    • Documents
  • Apps
  • Hjem

Remove LUN from a Solaris 9 host

7/3/2013

0 Comments

 
PS : applicabel when using Sun StorEdgeTM SAN Foundation with Solaris 8 and 9. 
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
0 Comments
    View my profile on LinkedIn

    Author

    Ragnar Hongset @ RagHon Consulting. Independent consultant with 9 years of experience working for SUN Microsystems, and 15+ years experience with Solaris systems.

    Archives

    Mai 2014
    Februar 2014
    Mars 2013
    Februar 2013
    Januar 2013
    April 2012
    Februar 2012
    November 2011

    Categories

    Alle
    Cheat
    Comstar
    Dns
    Encryption
    Ios
    Ipadm
    Iscsi
    Ledvil
    Mac
    Mpxio
    Nexenta
    Nsswitch.conf
    Opensolaris
    Oracle Virtual Desktop Infrastructure
    Osx
    Pgp
    Resolv.conf
    Smf
    S/MIME
    Snap
    Solaris
    Solaris 11
    Solaris 9
    Sun Ray
    Svccfg
    Svcs
    Trusted Extentions
    Tx
    Unix
    Vdi
    Windows
    Xp

    RSS-feed