Difference between revisions of "Solaris 10"

From KeegansWiki
Jump to navigation Jump to search
(Created page with ' =Error= The following error is a pretty common thing to see on a fresh solaris build when trying to patch: <pre> bash-3.00# unzip -qq 10_x86_Recommended.zip note: didn't fin…')
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
=Network=
 +
==Show devices==
 +
* dladm show-link
 +
* dladm show-dev
 +
==IPMP configuration==
 +
<pre>
 +
bash-3.00# cat hostname.bge0
 +
dstolmisc01-net0/23 broadcast + group publicnet -failover deprecated up addif dstolmisc01/23 broadcast + up
 +
bash-3.00# cat hostname.bge1
 +
dstolmisc01-net1/23 broadcast + group publicnet -failover deprecated up standby
 +
bash-3.00# cat /etc/
 +
bash-3.00# grep dstolmisc /etc/hosts
 +
10.93.67.11    dstolmisc01        dstolmisc01.traderonline.com loghost
 +
10.93.67.12    dstolmisc01-net0
 +
10.93.67.13    dstolmisc01-net1
 +
</pre>
 +
=Replacing disk on sun x4500=
 +
This is actually on solaris 11 in our environment.
 +
==Prepare the disk for removal==
 +
* First, remove the disk from the zpool, if you can
 +
* Find the disk: '' cfgadm | grep c16t7d0''
 +
* Unconfigure the disk with output from above: ''cfgadm -c unconfigure sata6/7''
 +
==Locate the disk in the chassy with hdtool==
 +
* ''cd /var/spool/pkg/; unzip /tmp/p10335199_160_Generic.zip''
 +
* ''lofiadm -a /var/spool/pkg/Tools_and_Drivers/X4500_Tools_And_Drivers_CD_47001.iso /dev/lofi/1''
 +
* ''mount -F hsfs /dev/lofi/1 /mnt''
 +
* ''cd /mnt/solaris/tools/hdtool/''
 +
* ''pkgadd -d SUNWhd-1.07.pkg''
 +
* run ''/opt/SUNWhd/hd/bin/hd'' and look for the disk number in the map
 +
Replace the disk.
 +
==Reconfigure the zpool with the new disk==
 +
* ''cfgadm -c configure sata6/7''
 +
* ''zpool replace -f rzpool c16t7d0''
 +
 +
 +
=Zones=
 +
==Adding IP to a zone==
 +
* ifconfig bge0 addif ipaddr/netmask zone zonename
 +
* don't forget to ifcfg up!
  
=Error=
+
=Patching=
 +
==Error==
 
The following error is a pretty common thing to see on a fresh solaris build when trying to patch:
 
The following error is a pretty common thing to see on a fresh solaris build when trying to patch:
  
Line 18: Line 58:
 
</pre>
 
</pre>
  
=Mitigation=
+
==Mitigation==
 
Dowload and install patch [http://sunsolve.sun.com/search/document.do?assetkey=1-21-119255-63-1 119255-63]. If you don't have a sunsolv account, download it [http://keegosoft.org/unix/119255-63.zip here]
 
Dowload and install patch [http://sunsolve.sun.com/search/document.do?assetkey=1-21-119255-63-1 119255-63]. If you don't have a sunsolv account, download it [http://keegosoft.org/unix/119255-63.zip here]
 +
=Random Problems=
 +
==Unable to delete route==
 +
<pre>bash-3.00# route delete 10.0.0.0 10.93.66.1
 +
delete net 10.0.0.0: gateway 10.93.66.1: not in table</pre>
 +
Specify the subnet (make one up if you need to)
 +
<pre>bash-3.00# route delete 10.0.0.0/24 10.93.66.1
 +
delete net 10.0.0.0/24: gateway 10.93.66.1</pre>
 +
=Start rpc / rup=
 +
* '''/usr/lib/netsvc/rstat/rpc.rstatd'''

Latest revision as of 07:21, 22 July 2013

Network

Show devices

  • dladm show-link
  • dladm show-dev

IPMP configuration

bash-3.00# cat hostname.bge0
dstolmisc01-net0/23 broadcast + group publicnet -failover deprecated up addif dstolmisc01/23 broadcast + up
bash-3.00# cat hostname.bge1
dstolmisc01-net1/23 broadcast + group publicnet -failover deprecated up standby
bash-3.00# cat /etc/
bash-3.00# grep dstolmisc /etc/hosts 
10.93.67.11     dstolmisc01         dstolmisc01.traderonline.com loghost
10.93.67.12     dstolmisc01-net0
10.93.67.13     dstolmisc01-net1

Replacing disk on sun x4500

This is actually on solaris 11 in our environment.

Prepare the disk for removal

  • First, remove the disk from the zpool, if you can
  • Find the disk: cfgadm | grep c16t7d0
  • Unconfigure the disk with output from above: cfgadm -c unconfigure sata6/7

Locate the disk in the chassy with hdtool

  • cd /var/spool/pkg/; unzip /tmp/p10335199_160_Generic.zip
  • lofiadm -a /var/spool/pkg/Tools_and_Drivers/X4500_Tools_And_Drivers_CD_47001.iso /dev/lofi/1
  • mount -F hsfs /dev/lofi/1 /mnt
  • cd /mnt/solaris/tools/hdtool/
  • pkgadd -d SUNWhd-1.07.pkg
  • run /opt/SUNWhd/hd/bin/hd and look for the disk number in the map

Replace the disk.

Reconfigure the zpool with the new disk

  • cfgadm -c configure sata6/7
  • zpool replace -f rzpool c16t7d0


Zones

Adding IP to a zone

  • ifconfig bge0 addif ipaddr/netmask zone zonename
  • don't forget to ifcfg up!

Patching

Error

The following error is a pretty common thing to see on a fresh solaris build when trying to patch:

bash-3.00# unzip -qq 10_x86_Recommended.zip 

note:  didn't find end-of-central-dir signature at end of central dir.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

Trying to install the patch cluster gives this error:

bash-3.00# ./installcluster 
ERROR: Unable to read patch set README file.

Mitigation

Dowload and install patch 119255-63. If you don't have a sunsolv account, download it here

Random Problems

Unable to delete route

bash-3.00# route delete 10.0.0.0 10.93.66.1
delete net 10.0.0.0: gateway 10.93.66.1: not in table

Specify the subnet (make one up if you need to)

bash-3.00# route delete 10.0.0.0/24 10.93.66.1
delete net 10.0.0.0/24: gateway 10.93.66.1

Start rpc / rup

  • /usr/lib/netsvc/rstat/rpc.rstatd