<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unix Sysadmin &#187; Solaris 10</title>
	<atom:link href="http://www.sysadmindayph.com/blog/category/solaris/solaris-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadmindayph.com/blog</link>
	<description>SysAdmin Blog, TechTips and Reviews</description>
	<lastBuildDate>Fri, 27 Jan 2012 04:36:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>(ufsrestore) Make Bootable &#8211; Recovering the Root or /usr File System</title>
		<link>http://www.sysadmindayph.com/blog/ufsrestore-make-bootable-recovering-the-root-or-usr-file-system/</link>
		<comments>http://www.sysadmindayph.com/blog/ufsrestore-make-bootable-recovering-the-root-or-usr-file-system/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 07:11:47 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=283</guid>
		<description><![CDATA[This is some kind of a followup from the first post about ufsdump &#8211; how to backup solaris filesystem 1. Replace and partition the disk if it has failed. 2. Because the system cannot be booted from the boot disk, boot from the CD-ROM and re-create the failed file system by issuing the newfs command: &#8230; <a href="http://www.sysadmindayph.com/blog/ufsrestore-make-bootable-recovering-the-root-or-usr-file-system/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>This is some kind of a followup from the first post about <a href="http://www.sysadmindayph.com/blog/ufsdump-how-to-backup-solarislinux-root-filesystem/">ufsdump &#8211; how to backup solaris filesystem</a> </p>
<p>1.  Replace and partition the disk if it has failed.</p>
<p>2.  Because the system cannot be booted from the boot disk, boot from the CD-ROM and re-create the failed file system by issuing the newfs command:</p>
<p>newfs /dev/rdsk/<disk-partition-name></p>
<p><disk-partition-name> is the name of the raw disk partition that contains the corrupted file system.</p>
<p>3.  Check the new file system by using fsck:</p>
<p>fsck /dev/rdsk/<disk-partiton-name></p>
<p>4.  Mount the new file system on a temporary mount point:</p>
<p>mount /dev/dsk/<disk-partition-name>/mnt</p>
<p>5.  Change to the /mnt directory:</p>
<p>cd /mnt</p>
<p>6.  Write protect the tapes so that you don&#8217;t accidentally overwrite them.</p>
<p>7.  Load the tape and issue the following command:</p>
<p>ufsrestore rf /dev/rmt/0</p>
<p>The entire content of the tape is restored to the file system. All permissions, ownerships, and dates remain as they were when the last incremental tape was created.</p>
<p>8.  Verify that the file system is restored:</p>
<p>ls</p>
<p>9.  Remove the restoresymtable file that is created and used by ufsrestore to checkpoint the restoration:</p>
<p>rm restoresymtable</p>
<p>10.  Change to the root (/) directory:</p>
<p>cd /</p>
<p>11.  Unmount the newly created file system:</p>
<p>umount /mnt</p>
<p>12.  Check the new file system with fsck:</p>
<p>fsck /dev/rdsk/<disk-partition-name></p>
<p>The restored file system is checked for consistency.</p>
<p>13.  If you are recovering the root (/) file system, create the boot blocks on the root partition by using the installboot command:</p>
<p>installboot  /usr/platform/&#8217;uname-I&#8217;/lib/fs/ufs/bootblk\<br />
 /dev/rdsk/<disk-partition-name></p>
<p>The installboot command installs the boot blocks onto the boot disk. Without the boot blocks, the disk cannot boot.</p>
<p>14.  Insert a new tape into the tape drive and back up the new file system:</p>
<p>ufsdump 0uf /dev/rmt/n /dev/rdsk/<device-name></p>
<p>A level 0 backup is performed. You should immediately make a backup of a newly created file system because ufsrestore repositions the files and changes the inode allocation.</p>
<p>15.  Reboot the system with a reconfiguration reboot:</p>
<p># shutdown -y -g0 -i0<br />
ok boot -r</p>
<p>The system is rebooted.</p>
<h2>Extra Notes on UFSrestore</h2>
<p>When you restore files in a directory other than the root directory of the file system, ufsrestore re-creates the file hierarchy in the current directory. For example, if you restore to /home files that were backed up from /users/bcalkins/files, the files are restored in the directory /home/users/bcalkins/files.</p>
<p>When you restore individual files and directories, it&#8217;s a good idea to restore them to a temporary directory such as /var/tmp. After you verify that you&#8217;ve retrieved the correct files, you can move them to their proper locations. You can restore individual files and directories to their original locations; however, if you do so, you should be sure that you do not overwrite newer files with older versions from the backup tape.</p>
<p>You should not forget to make regular backups of your operating system. Losing all the customization you dosuch as adding user accounts, setting up printers, and installing application softwarewould be disastrous. Whenever you make modifications that affect the root (/),/usr, /opt, or other operating system directories, you should bring down the system into single-user mode and perform a level 0 dump.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/ufsrestore-make-bootable-recovering-the-root-or-usr-file-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Stop syslog Messages to Write Console on Solaris</title>
		<link>http://www.sysadmindayph.com/blog/how-to-stop-syslog-messages-to-write-console-on-solaris/</link>
		<comments>http://www.sysadmindayph.com/blog/how-to-stop-syslog-messages-to-write-console-on-solaris/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 01:52:35 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[syslog]]></category>
		<category><![CDATA[syslog console message]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=232</guid>
		<description><![CDATA[How to Stop syslog Messages to Write Console on Solaris you can edit the entries in the /etc/syslog.conf to direct to another file eg /var/log/syslog instead of /dev/console. After that, issue kill -HUP to &#8220;reinitialize&#8221; the config or if you want to stop syslog process/daemon in Solaris 10, (not /etc/init.d/syslog stop) it should be svcadm &#8230; <a href="http://www.sysadmindayph.com/blog/how-to-stop-syslog-messages-to-write-console-on-solaris/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>How to Stop syslog Messages to Write Console on Solaris</p>
<p>you can edit the entries in the /etc/syslog.conf to direct to another file eg /var/log/syslog instead of /dev/console. After that, issue kill -HUP
<pid of syslog daemon> to &#8220;reinitialize&#8221; the config</p>
<p>or if you want to stop syslog process/daemon in Solaris 10, (not /etc/init.d/syslog stop)</p>
<p>it should be</p>
<p>svcadm disable svc:/system/system-log:default</p>
<p>svcadm disable svc:/system/system-log:default turned syslog off you need to also run svcadm enable svc:/system/system-log:default to turn it back on, after you made the right changes to /etc/syslog.conf so it does what you want. You can probably just comment out the line as it is also logged to file in /var/adm/messages.log</p>
<p>Turning syslog off is not a good idea.</p>
<p>That&#8217;s is How to Stop syslog Messages to Write Console on Solaris.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/how-to-stop-syslog-messages-to-write-console-on-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris Kernel Patching Recommended Patch</title>
		<link>http://www.sysadmindayph.com/blog/solaris-kernel-patching-recommended-patch/</link>
		<comments>http://www.sysadmindayph.com/blog/solaris-kernel-patching-recommended-patch/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 05:48:25 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[10_recommended patch]]></category>
		<category><![CDATA[breaking mirror]]></category>
		<category><![CDATA[howto kernel patch]]></category>
		<category><![CDATA[kernel patch]]></category>
		<category><![CDATA[solaris kernel patching]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=223</guid>
		<description><![CDATA[Here&#8217;s another Kernel patching of Solaris. I know there are tons of this type of post in the internet but another reference for the one who needs it, is I guess ok. To be honest, this is the steps that really made me understood the steps and procedure and the concept behind the 10_Recommended patch &#8230; <a href="http://www.sysadmindayph.com/blog/solaris-kernel-patching-recommended-patch/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another Kernel patching of Solaris. I know there are tons of this type of post in the internet but another reference for the one who needs it, is I guess ok.</p>
<p>To be honest, this is the steps that really made me understood the steps and procedure and the concept behind the 10_Recommended patch for solaris kernel.</p>
<p><span id="more-223"></span></p>
<p>So, here it is:</p>
<p><strong>Check Boot Disk</strong></p>
<p>This step is to check which disks are the member of the boot mirror. We can say that this is the check disk mirror / disk membership step</p>
<p><code><br />
# df -h /<br />
Filesystem             size   used  avail capacity  Mounted on<br />
/dev/md/dsk/d0          33G   7.3G    25G    23%    /<br />
#<br />
# metastat -c d0<br />
d0               m   33GB d10 d20<br />
    d10          s   33GB c1t0d0s0<br />
    d20          s   33GB c1t1d0s0</p>
<p></code></p>
<p>As you can see, there are two disk that comprise the boot mirror (d0), 33GB c1t0d0s0 and c1t1d0s0, which is named d10 and d20 respectively</p>
<p><strong>Check which disk is booting up</strong></p>
<p>In this step, we will determine which of the disk are the one being use as the boot default boot disk.</p>
<p>Usually it&#8217;s the default &#8216;disk&#8217; or &#8216;disk0&#8242;, but there are times, very rare, that &#8216;disk1&#8242; is set as the default boot disk.</p>
<p>To know which disk is the one that boot up the system, you can use the eeprom command in the system shell:</p>
<p><code><br />
# eeprom boot-device<br />
boot-device=disk0<br />
</code></p>
<p>In this case, it&#8217;s the most common disk that is used as the boot disk &#8211; disk0. That means, when can detach the other disk as backup just in case the patching screw up.</p>
<p><strong>Check The Bootability of the Backup Disk</strong></p>
<p>Prior to patching, check if the other disk is booting. This is a precaution. Just in case the patching went sour, we know that we can always revert to a good disk, revert to the previous good booting condition of the server.</p>
<p>Since from the previous step, we know that the default boot disk is &#8216;disk0&#8242;, we will switch to &#8216;disk1&#8242; and try to reboot the server and see if it will come up.</p>
<p>Now, there are two ways to set the value of the &#8216;boot-device&#8217; paramter of the server. You can either set it at the system shell, or through the Boot PROM, depending on where you are at the moment.</p>
<p>Now, set the default boot disk to &#8216;disk1&#8242;</p>
<p><code><a href="http://docs.sun.com/app/docs/doc/819-2379/bootdevice-change?a=view">eeprom boot-device=disk1</a></code></p>
<p>or</p>
<p><code><a href="http://docs.sun.com/app/docs/doc/805-7228/6j6q7uepp?a=view">set boot-device=disk1</a></code></p>
<p>After setting it up, reboot the server:</p>
<p>init 0 then boot </p>
<p>or </p>
<p>init 6</p>
<p>If you&#8217;re successfull, you just  booted on the &#8216;other half&#8217; of the bootdisk.</p>
<p>Now, don&#8217;t forget to switch back to disk0 !!!</p>
<p>Next, (optional&#8230; can differ from company to company)</p>
<p><code># untar the patch file<br />
cd /var/tmp<br />
rm -rf PatchDir<br />
mkdir PatchDir<br />
mv S10KernelUpdate4.0.tar.gz PatchDir<br />
cd PatchDir<br />
gunzip -c S10KernelUpdate4.0.tar.gz|tar xf -</code></p>
<p><strong>Splitting the Mirror</strong></p>
<p>The next steps are the meat of the procedure. This is the patching of the kernel itself.. But of course, after checking the boot disk &#8211; whether the both disks are good- it&#8217;s time to break the mirror and patch one disk.</p>
<p>sync;metadeatch</p>
<p>detach the backup disk</p>
<p>metadetach d0 d20</p>
<p># mount the detached root file system to root and modify these</p>
<p>mount /dev/dsk/c1t1d0s0 /mnt</p>
<p>vi /mnt/etc/vfstab<br />
vi /mnt/etc/system</p>
<p>Modifying vsfstab and /etc/system of the detached disk will make sure that if the patching fail, we can alyas boot up to the backup disk.</p>
<p><strong>Start Patching</strong></p>
<p># go to single user mode<br />
sync;sync;init 0</p>
<p>init -s</p>
<p>Rebooting with command: boot -s<br />
Boot device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0  File and args: -s<br />
SunOS Release 5.10 Version Generic_141414-02 64-bit<br />
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.<br />
Use is subject to license terms.</p>
<p>&#8230; You then follow the ReadMe document that comes with the Patch here.</p>
<p>Once the patching is done, you&#8217;ll see the difference of the patch level of the kernel.</p>
<p>Boot device: disk0  File and args:<br />
SunOS Release 5.10 Version Generic_<strong>142900</strong>-02 64-bit<br />
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.<br />
Use is subject to license terms.</p>
<p>Optional<br />
=&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
For more installation messages refer to the installation logfile:<br />
  /var/sadm/install_data/PMGT:_TLP-Set_Solaris_10_SOE_S10KernelUpdate4.1_A1_04_27_10</p>
<p>Use &#8216;/usr/bin/showrev -p&#8217; or &#8216;/usr/sbin/patchadd -p&#8217; to verify<br />
installed patch-ids.<br />
Refer to individual patch README files for more patch detail.<br />
Rebooting the system is usually necessary after installation.<br />
svc.startd: The system is coming down.  Please wait.<br />
svc.startd: 20 system services are now being stopped.</p>
<p>!!! Please read the logfile for any required action before rebooting !<br />
&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>reboot:! for the bank, it&#8217;s automatic</p>
<p>If all is good, you can reattach the other disk</p>
<p>metattach d0 d20</p>
<p>And you&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/solaris-kernel-patching-recommended-patch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Metastat Needs Maintenance Metareplace</title>
		<link>http://www.sysadmindayph.com/blog/metastat-needs-maintenance-metareplace/</link>
		<comments>http://www.sysadmindayph.com/blog/metastat-needs-maintenance-metareplace/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 16:41:57 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[meta device]]></category>
		<category><![CDATA[metareplace]]></category>
		<category><![CDATA[metastat]]></category>
		<category><![CDATA[svm]]></category>
		<category><![CDATA[volume manager]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=174</guid>
		<description><![CDATA[Guilty! Putting all those Metastat keywords on one subject, that&#8217;s me! ANyway, I don&#8217;t want to stale this blog so once in a while I&#8217;m going to be posting some bits and pieces of Unix tools/tips.. and here&#8217;s a new one about SVM&#8230; Responding to Disk Errors courtesy of BigAdmin! Got a page.. something like &#8230; <a href="http://www.sysadmindayph.com/blog/metastat-needs-maintenance-metareplace/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Guilty! Putting all those Metastat keywords on one subject, that&#8217;s me! ANyway, I don&#8217;t want to stale this blog so once in a while I&#8217;m going to be posting some bits and pieces of Unix tools/tips.. and here&#8217;s a new one about SVM&#8230; Responding to Disk Errors courtesy of BigAdmin!</p>
<p><span id="more-174"></span></p>
<p>Got a page.. something like &#8220;Fault found by metastat&#8221; in short description in Remedy&#8230; </p>
<p><code># metastat | grep Need<br />
      State: Needs maintenance<br />
    State: Needs maintenance </code></p>
<p>Which disk?</p>
<p><code># metastat d9<br />
d9: Mirror<br />
    Submirror 0: d19<br />
      State: Needs maintenance<br />
    Submirror 1: d29<br />
      State: Okay<br />
    Pass: 1<br />
    Read option: roundrobin (default)<br />
    Write option: parallel (default)<br />
    Size: 134221440 blocks (64 GB)</p>
<p><strong>d19: Submirror of d9</strong><br />
    State: Needs maintenance<br />
    Invoke: metareplace d9 c0t2d0s5 <new device><br />
    Size: 134221440 blocks (64 GB)<br />
    Stripe 0:<br />
        <strong>Device </strong>    Start Block  Dbase        State Reloc Hot Spare<br />
        <strong>c0t2d0s5</strong>          0     No     Maintenance   Yes </p>
<p>d29: Submirror of d9<br />
    State: Okay<br />
    Size: 134221440 blocks (64 GB)<br />
    Stripe 0:<br />
        Device     Start Block  Dbase        State Reloc Hot Spare<br />
        c0t3d0s5          0     No            Okay   Yes </p>
<p>Device Relocation Information:<br />
Device   Reloc  Device ID<br />
c0t2d0   Yes    id1,sd@SSEAGATE_ST373307LSUN72G_3HZ6Y1EN000074312CVW<br />
c0t3d0   Yes    id1,sd@SSEAGATE_ST373307LSUN72G_3HZ6Y46Y0000743249BK<br />
</code></p>
<p>Check for hard errors to verify if this disk can really be replaced&#8230; if it passed (on your criteria), you can try re-syncing it&#8230;</p>
<p><code>c# metareplace -e  d9 c0t2d0s5<br />
d9: device c0t2d0s5 is enabled</code></p>
<p>Verify that it&#8217;s doing what it is expected..</p>
<p><code># metastat d9<br />
d9: Mirror<br />
    Submirror 0: d19<br />
      State: Resyncing<br />
    Submirror 1: d29<br />
      State: Okay<br />
    Resync in progress: 0 % done<br />
    Pass: 1<br />
    Read option: roundrobin (default)<br />
    Write option: parallel (default)<br />
    Size: 134221440 blocks (64 GB)</p>
<p></code></p>
<p>And we wait&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/metastat-needs-maintenance-metareplace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send Break on SPARC Enterprise T5120 &#8211; Send Break on ILOM</title>
		<link>http://www.sysadmindayph.com/blog/send-break-on-sparc-enterprise-t5120-send-break-on-ilom/</link>
		<comments>http://www.sysadmindayph.com/blog/send-break-on-sparc-enterprise-t5120-send-break-on-ilom/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 09:06:20 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[alom]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[ilom]]></category>
		<category><![CDATA[sp console]]></category>
		<category><![CDATA[sparc enterprise]]></category>
		<category><![CDATA[t5120]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=169</guid>
		<description><![CDATA[Send Break on SPARC Enterprise T5120 &#8211; well it for the T5000 series I guess, the newer ones. Or &#8220;Sending Break onan ILOM.. &#8220;-&#62;&#8221; = ILOM &#8220;sc&#62;&#8221; = ALOM .. and since this particular server has the &#8220;-&#62;&#8221; prompt we&#8217;re using the ILOM. From ILOM to Solaris: -&#62; start /SP/console From ALOM to Solaris: sc&#62; &#8230; <a href="http://www.sysadmindayph.com/blog/send-break-on-sparc-enterprise-t5120-send-break-on-ilom/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Send Break on SPARC Enterprise T5120 &#8211; well it for the T5000 series I guess, the newer ones. Or &#8220;Sending Break onan ILOM..</p>
<blockquote><p>&#8220;-&gt;&#8221;    = ILOM<br />
&#8220;sc&gt;&#8221;  = ALOM</p></blockquote>
<p>.. and since this particular server has the &#8220;-&gt;&#8221; prompt we&#8217;re using the ILOM.</p>
<p>From ILOM to Solaris:<br />
-&gt; start /SP/console</p>
<p>From ALOM to Solaris:<br />
sc&gt; console</p>
<p>And of course.. Enter &#8220;#.&#8221; to return to ALOM / ILOM !!</p>
<p><strong>Send Break on ILOM</strong></p>
<p><span style="color: red;">set /HOST send_break_action=break</span><br />
and then<br />
<span style="color: red;">start /SP/console</span></p>
<p>c)ontinue, s)ync, r)eset? s</p>
<p>bada bing! bada boom!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/send-break-on-sparc-enterprise-t5120-send-break-on-ilom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimized Open Source Software Stack (Cool Stack) 1.3.1 Final Release</title>
		<link>http://www.sysadmindayph.com/blog/optimized-open-source-software-stack-cool-stack-131-final-release/</link>
		<comments>http://www.sysadmindayph.com/blog/optimized-open-source-software-stack-cool-stack-131-final-release/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 00:14:40 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[cool stack]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[software stack]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=165</guid>
		<description><![CDATA[Optimized Open Source Software Stack (Cool Stack) 1.3.1 Final Release&#8230; Will be installing Ruby on Rails using Cool Stack&#8230; this is the first of sets of post.. Now downloading the packages from Sun.com Optimized Open Source Software Stack (Cool Stack) for the Sun Solaris Operating System(TM). Cool Stack is a collection of some of the &#8230; <a href="http://www.sysadmindayph.com/blog/optimized-open-source-software-stack-cool-stack-131-final-release/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Optimized Open Source Software Stack (Cool Stack) 1.3.1 Final Release&#8230;</p>
<p>Will be installing Ruby on Rails using Cool Stack&#8230; this is the first of sets of post.. Now downloading the packages from Sun.com</p>
<p>Optimized Open Source Software Stack (Cool Stack) for the Sun Solaris Operating System(TM). Cool Stack is a collection of some of the most commonly used open source applications optimized for the Sun Solaris OS. By using these binaries you will enjoy the best levels of performance from your system, while also reducing your time-to-service.</p>
<p>Instructions: Select the files you want, then click the &#8220;Download Selected with Sun Download Manager&#8221; (SDM) button below to automatically install and use SDM (learn more). Alternately, click directly on file names to download with your browser. (Use of SDM is recommended but not required.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/optimized-open-source-software-stack-cool-stack-131-final-release/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exiting from Container Console if forgot to specify an escape character&#8230;</title>
		<link>http://www.sysadmindayph.com/blog/exiting-from-container-console-if-forgot-to-specify-an-escape-character/</link>
		<comments>http://www.sysadmindayph.com/blog/exiting-from-container-console-if-forgot-to-specify-an-escape-character/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 02:09:42 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris Containers]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[harware]]></category>
		<category><![CDATA[local zone]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=157</guid>
		<description><![CDATA[Once you have a non-global zone installed or running on a Solaris 10 installation, it is often useful to connect to the console of the zone. This provides the same control over the zone as connecting to the console of a physical server running Solaris. To connect to the console of a Solaris 10 zone &#8230; <a href="http://www.sysadmindayph.com/blog/exiting-from-container-console-if-forgot-to-specify-an-escape-character/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Once you have a non-global zone installed or running on a Solaris 10 installation, it is often useful to connect to the console of the zone. This provides the same control over the zone as connecting to the console of a physical server running Solaris.</p>
<p>To connect to the console of a Solaris 10 zone called testzone, use the following command as root or the equivalent on the global zone:</p>
<blockquote><p>
zlogin -C testzone</p></blockquote>
<p>The -C option specifies a console login. The console login will persist when the zone is rebooted.<br />
To exit zlogin, use the escape sequence ~. on a new line (the tilde must follow a carriage return, not any other character). If this escape character is inappropriate (because you are connected using software like tip that also uses this escape sequence), you can specify a different escape character on the command line. For example, to use the @ symbol, use:</p>
<blockquote><p>
zlogin -C -e @ testzone</p></blockquote>
<p>In this case, to exit the zlogin console session, type @. on a new line</p>
<p>Just a note of reference, if you are using tip and forget to change the escape character above. you can do the following to get out</p>
<p>~~.</p>
<p>This will force it to disconnect the local zlogin instead of the tip&#8230;<br />
&#8212;-<br />
<em>However, let&#8217;s go deeper&#8230;.</em></p>
<p><em>If you logged into a container&#8217;s console (via chs000xx &#8212;&gt; ILOM &#8212;&gt; then to a serial console)..</em></p>
<p><em><br />
#.  &#8211; will exit to ILOM (but once you logged in again.. you&#8217;re in container&#8217;s console)<br />
~. &#8211; will exit to chs000xx (but once you logged in again.. you&#8217;re in container&#8217;s console)<br />
~~. &#8211; WILL EXIT from the Container!!</em></p>
<p><em><br />
It&#8217;s a like an hierarchy thingy..</em></p>
<p><em><br />
(first part was taken from a website&#8230; later part was from me.. of course if you didn&#8217;t read all of it, you wont see this note.. <img src='http://www.sysadmindayph.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )</em></p>
<p>http://sysadmindayph.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/exiting-from-container-console-if-forgot-to-specify-an-escape-character/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Search $PATH csh</title>
		<link>http://www.sysadmindayph.com/blog/setting-search-path-csh/</link>
		<comments>http://www.sysadmindayph.com/blog/setting-search-path-csh/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 02:35:56 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[c shell]]></category>
		<category><![CDATA[csh]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[setting path]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=156</guid>
		<description><![CDATA[Another quikie copy/paste kind of thingy&#8230; You may set your search path automatically each time you log in, by placing the appropriate &#8220;set path&#8221; command in your &#8220;.login&#8221; file. (To learn more about the .login file, type &#8220;help dotlogin&#8221;.) Here is a sample of a command line that you might put in your .login file &#8230; <a href="http://www.sysadmindayph.com/blog/setting-search-path-csh/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Another quikie copy/paste kind of thingy&#8230;</p>
<p>You may set your search path automatically each time you log in, by placing the appropriate &#8220;set path&#8221; command in your &#8220;.login&#8221; file. </p>
<p>(To learn more about the .login file, type &#8220;help dotlogin&#8221;.) Here is a sample of a command line that you might put in your .login file to set a non-standard search path:</p>
<p>       set path = ( $path /usr/ucb /bin /usr/bin /usr/new .)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/setting-search-path-csh/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Consolidate Servers and Applications using Solaris Containers</title>
		<link>http://www.sysadmindayph.com/blog/how-to-consolidate-servers-and-applications-using-solaris-containers/</link>
		<comments>http://www.sysadmindayph.com/blog/how-to-consolidate-servers-and-applications-using-solaris-containers/#comments</comments>
		<pubDate>Thu, 07 May 2009 02:02:28 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[containers]]></category>
		<category><![CDATA[pool]]></category>
		<category><![CDATA[zones]]></category>
		<category><![CDATA[zpool]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=143</guid>
		<description><![CDATA[I am subscribe to the official Sun Microsystem newsletter and I got this one directly from my inbox that I want to share to every Solaris SysAdmin out there: This How-To Guide instructs users, system administrators, and developers unfamiliar with Solaris 10 OS on consolidating applications onto a single server using Solaris Containers technology. The &#8230; <a href="http://www.sysadmindayph.com/blog/how-to-consolidate-servers-and-applications-using-solaris-containers/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I am subscribe to the official Sun Microsystem newsletter and I got this one directly from my inbox that I want to share to every Solaris SysAdmin out there:</p>
<p>This How-To Guide instructs users, system administrators, and developers unfamiliar with Solaris 10 OS on consolidating applications onto a single server using Solaris Containers technology. The guide starts with a brief overview of Solaris Containers and follows with an example of using Solaris Containers to consolidate two Web server applications and an email server application onto a single server. Users are guided step-by-step through the consolidation process, with code examples and illustrations.</p>
<p>After using this guide, a user should be able to create Solaris Containers by:</p>
<p>    * <strong>Creating a resource pool</strong><br />
    * <strong>Defining Solaris Zones</strong><br />
    * <strong>Assigning CPU usage with the Fair Share Scheduler</strong> (FSS)<br />
    * <strong>Installing and booting a zone</strong><br />
    * <strong>Configuring access to raw devices from the zone</strong></p>
<p><span id="more-143"></span></p>
<p>I wont be able to post every info from the PDF file here.. But I can however maybe put a part so that it will entice you more to download the paper:</p>
<p><strong>Solaris Zones</strong><br />
As part of the consolidation effort, it is important to<br />
evaluate the needs of the applications that will share the<br />
consolidated system. In this example, the email server and<br />
Web server applications need to run in isolated<br />
environments that make it appear as if they are running on<br />
physically separate machines. This is made possible by a<br />
Solaris Container technology called Solaris Zones, which<br />
provides separate environments on a machine and logically<br />
isolates applications from one another. Each application<br />
receives a dedicated namespace in which to run, and<br />
cannot see, monitor, or affect applications running in<br />
another zone</p>
<p><strong>Dynamic Resource Pools</strong><br />
In this example there are two types of applications, one<br />
that needs a fully dedicated CPU—an email server, and<br />
another that is more flexible and can share CPUs—the two<br />
Web servers. To accomplish these different levels of<br />
isolation we use a Solaris Container technology called<br />
Dynamic Resource Pools that enables CPU resources to be<br />
dedicated to specific applications. In this example, the<br />
email server needs a separate resource pool, while the Web<br />
servers can share another</p>
<p><strong>Fair Share Scheduler</strong><br />
While the two Web servers are capable of sharing the<br />
remaining CPUs on the system, they each need a minimum<br />
guarantee of CPU resources that will be available to them.<br />
This is made possible by another Solaris Container<br />
technology called the Fair Share Scheduler (FSS). This<br />
software enables CPU resources to be allocated<br />
proportionally to applications. That is, each application<br />
gets assigned a number of the available “shares” of the<br />
total CPU.</p>
<p>And many more! Excited yet? here&#8217;s the link for download:</p>
<p>https://www.sun.com/offers/details/solaris_containers.xml?cid=927534</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/how-to-consolidate-servers-and-applications-using-solaris-containers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing a Failed Disk in Solaris Mirror (SVM)</title>
		<link>http://www.sysadmindayph.com/blog/replacing-a-failed-disk-in-solaris-mirror-svm/</link>
		<comments>http://www.sysadmindayph.com/blog/replacing-a-failed-disk-in-solaris-mirror-svm/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 00:53:50 +0000</pubDate>
		<dc:creator>elizar</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[metaclear]]></category>
		<category><![CDATA[metadb]]></category>
		<category><![CDATA[metadettach]]></category>
		<category><![CDATA[metadevice]]></category>
		<category><![CDATA[metattache]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[svm]]></category>
		<category><![CDATA[volume manager]]></category>

		<guid isPermaLink="false">http://www.sysadmindayph.com/blog/?p=108</guid>
		<description><![CDATA[This one is about Solaris Volume Manager and all those meta commands you can think of.. (metadb, metadettach, metattach, metaclear etc)&#8230; Yesterday we had to replace a failed disk that belongs to a mirror. The disk is running in a Sparc Solaris 10 box. It&#8217;s a 72GB from Fujitsu c1t1d0           Soft Errors: 440 Hard Errors: &#8230; <a href="http://www.sysadmindayph.com/blog/replacing-a-failed-disk-in-solaris-mirror-svm/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>This one is about Solaris Volume Manager and all those meta commands you can think of.. (metadb, metadettach, metattach, metaclear etc)&#8230;</p>
<p>Yesterday we had to replace a failed disk that belongs to a mirror. The disk is running in a Sparc Solaris 10 box. It&#8217;s a 72GB from Fujitsu</p>
<p>c1t1d0           Soft Errors: 440 Hard Errors: 12 Transport Errors: 124<br />
Vendor: FUJITSU  Product: MAY2073RCSUN72G  Revision: 0501 Serial No: 0711S0935R<br />
Size: 73.40GB &lt;73400057856 bytes&gt;</p>
<p>As you can see from the iostat -En command, the disk is spitting hard errors and must be replaced before it can cause a lot more headache. It&#8217;s in c1t1, right.</p>
<p>Here&#8217;s what we&#8217;re supposed to do:</p>
<ul>
<li>we could delete the meta data base that corresponds to the failed disk</li>
<li>detached the failed disk/slices to the mirror</li>
<li>clear it</li>
<li>unconfigure the disk</li>
<li>replace the disk</li>
<li>configure the disk</li>
<li>create new meta device database</li>
<li>Initialize the disk</li>
<li>Attached it to mirror</li>
<li>and sync</li>
</ul>
<p>Here&#8217;s the detailed job:</p>
<p><span id="more-108"></span></p>
<p>Info:<br />
metadb | grep c1t1<br />
metadb –d c1t1d0s7</p>
<p>Detach:<br />
metadetach d30 d32<br />
metadetach d40 d42<br />
metadetach d20 d22<br />
metadetach d10 d12</p>
<p>metaclear d32<br />
metaclear d42<br />
metaclear d22<br />
metaclear d12</p>
<p>Verify:<br />
metastat -p | grep c1t1d0<br />
metadb  | grep c1t1d0<br />
[root@localhost] /&gt; cfgadm -al<br />
Ap_Id                          Type         Receptacle   Occupant     Condition<br />
c0                             scsi-bus     connected    configured   unknown<br />
c0::dsk/c0t0d0                 CD-ROM       connected    configured   unknown<br />
c1                             scsi-bus     connected    configured   unknown<br />
c1::dsk/c1t0d0                 disk         connected    configured   unknown<br />
c1::dsk/c1t1d0                 disk         connected    configured   unknown<br />
c1::dsk/c1t2d0                 disk         connected    configured   unknown<br />
c1::dsk/c1t3d0                 disk         connected    configured   unknown<br />
usb0/1                         unknown      empty        unconfigured ok<br />
usb0/2                         unknown      empty        unconfigured ok<br />
usb1/1.1                       unknown      empty        unconfigured ok<br />
usb1/1.2                       unknown      empty        unconfigured ok<br />
usb1/1.3                       unknown      empty        unconfigured ok<br />
usb1/1.4                       unknown      empty        unconfigured ok<br />
usb1/2                         unknown      empty        unconfigured ok</p>
<p>Unconfigure:<br />
cfgadm -c unconfigure c1::dsk/c1t1d0</p>
<p>Verify ulit, note the red text above:<br />
cfgadm –al<br />
SWAP DISK</p>
<p>Undo what has been done….</p>
<p>Configure:<br />
cfgadm -c configure c1::dsk/c1t1d0</p>
<p>format (to label disk)</p>
<p>prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s &#8211; /dev/rdsk/c1t1d0s2</p>
<p>metadb -a –c 2 c1t1d0s7</p>
<p>Attach!!</p>
<p>metainit d32 1 1 c1t1d0s6<br />
metainit d42 1 1 c1t1d0s4<br />
metainit d22 1 1 c1t1d0s1<br />
metainit d12 1 1 c1t1d0s0<br />
metattach d30 d32<br />
metattach d40 d42<br />
metattach d20 d22<br />
metattach d10 d12<br />
metastat -p<br />
metadevadm -u c1t1d0</p>
<p>And you&#8217;re done! Grab a cup of coffee and wait till the synchronization is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadmindayph.com/blog/replacing-a-failed-disk-in-solaris-mirror-svm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

