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

Change ip in Solaris 9

5/3/2013

0 Comments

 
A customer needed a small how-to on how to change IP on Solaris 9. This guide works for most Solaris versions I'v tested, except Solaris 11.

* Locate the correct interface using ifconfig -a
     - In this example we assume that the interface is eri0
* Have a look at /etc/hostname.eri0
     - This file might list the IP or a hostname
     - If IP is used directly in this file, you must change this ip to a new ip, or add the hostname instead of the ip (thats the most tidy way of doing it)
* Update /etc/hosts 
     - Locate the same hostname as you found in /etc/hostname.eri0
     - Change the ip to a new value
* Update if needed /etc/defaultrouter to point to your new default router. 
* If the new ip is in a new subnet, update /etc/netmasks with the network name and mask
* Reboot the system using init 6 to make sure that the configuration is valid

If you cant reboot, but need to change the ip on a live system, do all the above steps so you keep the ip on the next reboot, and:

* Login on another interface, from the console or make a temporarily virtual interface
* Make temp interface (not needed if you can login on the console or an other ip): 
    - ifconfig eri0 addif tempip netmasks + up
    - The command will tell you that a new virtual interface is created, make a note of the interface name, as we are removing it later. (it might be somthing like eri0:1)
 * Logout, and login on the new ipaddress
* Change the current ip to new ip: 
    - ifconfig eri0 hostname netmask + up (uses the new ip assisiated with the hostname in /etc/hosts)
* Logout
* Login with the new ip, and that works
* Remove the temporarily interface:
     - ifconfig eri0:1 down
     PS : to remove it completely use ifconfig eri0:1 unplumb. On some solaris versions this will remove all eri0* interfaces, so it might be best to just down the interface.
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