Navigating Solaris 11

Views:
 
     
 

Presentation Description

A Solaris 10 to Solaris 11 Primer -- Navigating Solaris in the 21st Century

Comments

Presentation Transcript

Navigating Solaris 11:

Navigating Solaris 11 A primer -- Dwai Lahiri

Solaris 10 to Solaris 11 (Networking):

Solaris 10 to Solaris 11 (Networking) Task S10 S11 Comments Network Administration Ethernet Basic network interface/IP configuration ifconfig, /etc/hostname.* /usr/sbin/ipadm Display nic status (link state, etc) dladm show-dev dladm show-phys This maps the nic alias with the actual physical nic instance (eg: net0 to igb1, etc) dladm show-link Check NIC speed, duplex, vlan tag, etc ndd -get /dev/e1000g0 dladm show-linkprop -p mac-address,mtu,speed,duplex,state,tagmode net0 There are many easily accessing properties that can be inspected by running the dladm show-linkprop net0 and selecting specific properties dladm show-ether net0; dladm show-ether -x net0 Show ethernet properties Enabling jumbo frames edit /kernel/drv/<interface>.conf file and run ifconfig <interface> mtu <value> dladm set-linkprop -p mtu=9000 net0 Changing link speed, duplex mode etc ndd commands dladm set-linkprop -p adv_1000fdx_cap=0 net0 Replacing a NIC using DR (Dynamic Reconfiguration) Replace card with same model or reconfigure network stack accordingly dladm rename-link e1000g0 net0

Solaris 10 to Solaris 11 (Networking):

Solaris 10 to Solaris 11 (Networking) Task S10 S11 Comments IP Administation Creating an IP interface ifconfig bge0 plumb; ifconfig bge0 ip/netmask up ipadm create-addr -T static -a 10.20.30.40/24 net0/v4static Or reference by hostname in /etc/hosts file See ip interface properties use ndd commands ipadm show-ifprop net0 Show IP interfaces ifconfig -a ipadm show-if Disable IPV6 Delete entries in /etc/inet/ipnodes corresponding to v6 addresses ipadm show-addr lists ipv4 and v6 addresses ipadm disable-addr -t net0/v6 disable the ipv6 addresses comment out v6 entries in /etc/ipadm/ipadm.conf and reboot

Solaris 10 to Solaris 11 (Networking):

Solaris 10 to Solaris 11 (Networking) Task S10 S11 Comments Link Aggregation Create a Link Aggregation dladm create-aggr dladm create-aggr -l net0 -l net1 netaggr01 ipadm create-addr -T static -a 10.20.30.40/24 netaggr01/v4 Show aggregations dladm show-aggr dladm show-aggr Modify Aggregation properties modify policy dladm modify-aggr -P policy-key aggr (default is L4, options are L2,L3 or L4 ie OSI reference stack layer level) modify LACP mode dladm modify-aggr -L LACP-mode -T timer-value aggr options are Off, Active or Passive

Solaris 10 to Solaris 11 (Networking):

Solaris 10 to Solaris 11 (Networking) Task S10 S11 Comments Network Traffic statistics /var/log/net.log -N -p 1m -C 6 -b '/usr/sbin/acctadm -x net' -a '/usr/sbin/acctadm -e basic -f /var/log/net.log net' This sets up network usage statistics using acctadm that can be used for historical network usage (adjust rotation of this file as needed) /var/log/net.log -N -p 1w -C 24 -b '/usr/sbin/acctadm -x net' -a '/usr/sbin/acctadm -e basic -f /var/log/net.log net' Edit /etc/logadm.conf and set rotation of the net.log file dlstat show-link -h -f /var/log/net.log same as above dlstat show-link -h -f /var/log/net.log -s 01/02/2012,10:25:00 - e /01/02/2012,10:34:00 same as above, only show usage for 5 minutes between 10:25 and 10:30 AM for Jan 2nd 2012 flowadm flowstat

Solaris 10 to Solaris 11 (System administration):

Solaris 10 to Solaris 11 (System administration) Task S10 S11 Comments Driver configuration /kernel/drv /kernel and /platform S10 driver configuration files are editable while in S11 these configuration files are not editable /etc/driver/drv Customized driver configurations are stored here in S11. During boot time, this directory is also scanned for updated driver configurations Display driver properties prtconf prtconf -u the -u switch in S11 shows merged default and custom properties for drivers Display system release cat /etc/release cat /etc/release display hostid` hostid hostid display product name banner (from obp) prtconf -b Display physical processor count and type psrinfo -pv psrinfo -pv Change system identity various locations (/etc/nodename; /etc/hosts; /etc/net/*/hosts svc:/system/identity:node svccfg -s svc:/system/ identity:node setprop config / nodename = some-name

Solaris 10 to Solaris 11 (System administration):

Solaris 10 to Solaris 11 (System administration) Task S10 S11 Comments Managing Software Pkgs display installed pkgs pkginfo pkg list (this will also help determine if a pkg is installed or not) display pkg name and version pkginfo pkg info Display pkg contents pkg contents search for pkgs pkginfo|grep <pkgname> pkg search *<pkg>* regexes can be used for more detailed searches within the pkg command suite install pkgs pkgadd pkg install update pkgs pkgadd or pkgrm and then pkgadd pkg update update all installed pkgs pkg update

Solaris 10 to Solaris 11 (System administration):

Solaris 10 to Solaris 11 (System administration) Task S10 S11 Comments System Kernel dumps setting up dumps dumpadm dumpadm additional switches in S11 to enable or disable compressed dumps (default compression enabled) System log file rotation configure log rotation /etc/logadm.conf /etc/logadm.conf rotate logs logadm -w /var/apache/logs/access_log -s 100m

Solaris 10 to Solaris 11 (Device Administration):

Solaris 10 to Solaris 11 (Device Administration) Task S10 S11 Comments Device Administration dynamic reconfiguration and hot-plugging cfgadm cfgadm Enable PCI hotplugging svcadm enable hotplug List hot-pluggable devices hotplug list -lv Configure a card in a PCIe slot hotplug enable /pci0,0 pcie0 Unconfigure a card in a PCIe slot hotplug disable /pci0,0 pcie0 offline a PCI device node hotplug offline /pci0,0/pci1 pci.0,2 Online a PCI device node hotplug online /pci0,0/pci1 pci.0,2 Install dependent ports of an IOV physical function hotplug install /pci@400/pci@1/pci@0/pci@4 pci.0,1 Display resulting IOV virtual functions that were probed hotplug list -v /pci@400/pci@1/pci@0/pci@4 pci.0,1 Uninstall IOV virtual functions hotplug uninstall /pci@400/pci@1/pci@0/pci@4 pci.0,0

Solaris 10 to Solaris 11 (Device Administration):

Solaris 10 to Solaris 11 (Device Administration) Task S10 S11 Comments Reconfiguration Coordination Manager (RCM) The Reconfiguration Coordination Manager (RCM) is the framework that manages the dynamic removal of system components. By using RCM, you can register and release system resources in an orderly manner. You can use the new RCM script feature to write your own scripts to shut down your applications, or to cleanly release the devices from your applications during dynamic reconfiguration. The RCM framework launches a script automatically in response to a reconfiguration request, if the request impacts the resources that are registered by the script. You can also release resources from applications manually before you dynamically remove the resource. Or, you can use the cfgadm command with the - foption to force a reconfiguration operation. However, this option might leave your applications in an unknown state. Also, the manual release of resources from applications commonly causes errors. The RCM script feature simplifies and better controls the dynamic reconfiguration process. By creating an RCM script, you can do the following: Automatically release a device when you dynamically remove a device. This process also closes the device if the device is opened by an application. Run site-specific tasks when you dynamically remove a device from the system.

Solaris 10 to Solaris 11 (Device Administration):

Solaris 10 to Solaris 11 (Device Administration) Task S10 S11 Comments Naming an RCM script vendor,service vendor -- stock symbol of the vendor; service is the name of service the script represents Location /etc/ rcm /scripts / usr /platform/` uname - i `/lib/ rcm /scripts / usr /platform/` uname -m`/lib/ rcm /scripts / usr /lib/ rcm /scripts more details in http://docs.oracle.com/cd/E23824_01/html/821-1459/devconfig2-19.html#devconfig2-36 installing rcm script cp ABC,service.pl /usr/lib/rcm/scripts chown user:group /usr/lib/rcm/scripts/ABC,service.pl pkill -HUP -x -u root rcm_daemon

Solaris 10 to Solaris 11 (Device Administration):

Solaris 10 to Solaris 11 (Device Administration) Task S10 S11 Comments Disk Administration Identify devices by physical location croinfo or diskinfo format prtconf -l ORCL,SPARC-T4-4 location: /dev/chassis//SYS/MB/HDD0/disk scsi_vhci, instance #0 location: /dev/chassis//SYS/MB/HDD0/disk disk, instance #4 location: /dev/chassis//SYS/MB/HDD0/disk zpool status -l add a disk alias name to help identify physical location of disks fmadm add-alias SUN-Storage-J4200.0912QAJ001 J4200@RACK10:U26-27 croinfo -c c0t24d0 croinfo -c c0t24d0 -o cp croinfo -n SEAGATE ST31000N-SU0B-931.51GB -o Dcf Using the Free Hog slice Filesystem management Filesystem statistics fsstat Filesystem type fstyp

Solaris 10 to Solaris 11 (Device Administration):

Solaris 10 to Solaris 11 (Device Administration) Task S10 S11 Comments SAN and Disk Multi-pathing multipath package name system/storage/multipath-utilities multipath administration mpathadm mpathadm Enable multipathing stmsboot -e stmsboot -e Disable multipathing stmsboot -d stmsboot -d Update multipath configuration copy /kernel/drv/fp.conf to /etc/drivers/drv/fp.conf modify the /etc/drivers/drv/fp.conf with appropriate details stmsboot -u SAN and Disk Multi-pathing multipath package name system/storage/multipath-utilities multipath administration mpathadm mpathadm Enable multipathing stmsboot -e stmsboot -e Disable multipathing stmsboot -d stmsboot -d

authorStream Live Help