<?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>- rdircio</title>
	<atom:link href="http://kraftek.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://kraftek.com/blog</link>
	<description>Solaris/Linux notes</description>
	<lastBuildDate>Sun, 01 Jan 2012 13:51:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>check if async io is enabled</title>
		<link>http://kraftek.com/blog/2011/11/check-if-async-io-is-enabled/</link>
		<comments>http://kraftek.com/blog/2011/11/check-if-async-io-is-enabled/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 05:40:28 +0000</pubDate>
		<dc:creator>rdircio</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/?p=597</guid>
		<description><![CDATA[# cat /proc/sys/fs/aio-nr;cat /proc/sys/fs/aio-max-nr 110456 1048576]]></description>
			<content:encoded><![CDATA[<p># cat /proc/sys/fs/aio-nr;cat /proc/sys/fs/aio-max-nr</p>
<p>110456<br />
1048576</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/11/check-if-async-io-is-enabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get WWN tree info for an hba</title>
		<link>http://kraftek.com/blog/2011/10/get-wwn-tree-info-for-an-hba/</link>
		<comments>http://kraftek.com/blog/2011/10/get-wwn-tree-info-for-an-hba/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 02:58:07 +0000</pubDate>
		<dc:creator>rdircio</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/?p=588</guid>
		<description><![CDATA[To get all the wwns attached to an hba you can use this # cfgadm -al -o show_FCP_dev &#124; egrep ‘disk&#124;tape’]]></description>
			<content:encoded><![CDATA[<p>To get all the wwns attached to an hba you can use this<br />
# cfgadm -al -o show_FCP_dev | egrep ‘disk|tape’</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/10/get-wwn-tree-info-for-an-hba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>create user’s homes from the entries at /etc/passwd</title>
		<link>http://kraftek.com/blog/2011/10/create-user%e2%80%99s-homes-from-the-entries-at-etcpasswd/</link>
		<comments>http://kraftek.com/blog/2011/10/create-user%e2%80%99s-homes-from-the-entries-at-etcpasswd/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 23:52:24 +0000</pubDate>
		<dc:creator>rdircio</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/?p=585</guid>
		<description><![CDATA[i don’t like to do a # cat /etc/passwd and manually create the users and chown their dirs… So, this is a one liner: # grep -i home /etc/passwd &#124; awk -F: ‘{print “mkdir ” $6 ” ; chown ” $1 ” ” $6 }’ &#62; somefile; chmod 755 somefile;./somefile 183/433]]></description>
			<content:encoded><![CDATA[<p>i don’t like to do a # cat /etc/passwd and manually create the users and chown their dirs… So, this is a one liner:</p>
<p># grep -i home /etc/passwd | awk -F: ‘{print “mkdir ” $6 ” ; chown ” $1 ” ” $6 }’ &gt; somefile; chmod 755 somefile;./somefile 183/433</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/10/create-user%e2%80%99s-homes-from-the-entries-at-etcpasswd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scan for new disks inside a linux vmware vm</title>
		<link>http://kraftek.com/blog/2011/10/scan-for-new-disks-inside-a-linux-vmware-vm/</link>
		<comments>http://kraftek.com/blog/2011/10/scan-for-new-disks-inside-a-linux-vmware-vm/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 17:22:10 +0000</pubDate>
		<dc:creator>rdircio</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/?p=583</guid>
		<description><![CDATA[Just do this: ls /sys/class/scsi_host/ &#124; while read h;do echo &#8220;- &#8211; -&#8221; &#62; /sys/class/scsi_host/$h/scan;done]]></description>
			<content:encoded><![CDATA[<p>Just do this:</p>
<p><em>ls /sys/class/scsi_host/ | while read h;do echo &#8220;- &#8211; -&#8221; &gt; /sys/class/scsi_host/$h/scan;done</em></p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/10/scan-for-new-disks-inside-a-linux-vmware-vm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Raid Manager commands</title>
		<link>http://kraftek.com/blog/2011/01/raid-manager-commands/</link>
		<comments>http://kraftek.com/blog/2011/01/raid-manager-commands/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 13:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/raid-manager-commands/</guid>
		<description><![CDATA[Got these from elsewhere: Term/Cmd Description Command / File =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- SUNWosafw Open Storage Array Firmware SUNWosamn Open Storage Array Man Pages SUNWosar Open Storage Array (Root) SUNWosau Open Storage Array (Usr) arraymon Array monitor daemon &#60; /usr/lib/osa/bin/rdaemon 28 140 &#62; in background rdaemon Redundant Controller Resolution Daemon &#60; /usr/lib/osa/bin/arraymon &#62; in background rm6 Raid Manager [...]]]></description>
			<content:encoded><![CDATA[<p>Got these from elsewhere:<br />
Term/Cmd Description Command / File<br />
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br />
SUNWosafw Open Storage Array Firmware<br />
SUNWosamn Open Storage Array Man Pages<br />
SUNWosar Open Storage Array (Root)<br />
SUNWosau Open Storage Array (Usr)<br />
arraymon Array monitor daemon &lt; /usr/lib/osa/bin/rdaemon 28 140 &gt; in background<br />
rdaemon Redundant Controller Resolution Daemon &lt; /usr/lib/osa/bin/arraymon &gt; in background<br />
rm6 Raid Manager GUI<br />
# /usr/lib/osa/bin/rm6 &amp;<br />
raidutil RAID Management Configuration Utility<br />
# raidutil -c c6t5d0s2 -A 65 1 -T 99 1 -f 1 1-C off 1 -m off 1 -p disable -S 8<br />
raidutil Create new lun<br />
# raidutil -c (raid controller) -g (disks) -l (raid level) -n (number of LUN) -s (capacity)<br />
raidutil Create RAID5 lun 0<br />
# raidutil -c c3t4d1s0 -s 1000 -n 0 -l 5 -g 11,21,31,41,51<br />
raidutil Create RAID1 lun 2 (18g)<br />
# raidutil -c c2t5d0s0 -l 1 -n 2 -r fast -s 17234 -g 50,11<br />
raidutil Create Hot Spare<br />
# raidutil -c (raid controller) -h (disk)<br />
raidutil -c c2t5d0s0 -h 213<br />
raidutil Delete a LUN<br />
# raidutil -c (raid controller) -D (LUN number)<br />
raidutil Delete lun 0<br />
# raidutil -c c3t4d1s0 -D 0<br />
raidutil Delete Hot Spare<br />
# raidutil -c (raid controller) -H (disk)<br />
raidutil -c c3t4d1s0 -H 113 (row,column 113=1,13)<br />
lad List Array Devices<br />
# lad<br />
healthck perform a health check on RAID Modules # healthck -a<br />
healthck Get raid module specifier<br />
# healthck -a (ex: da103_001: Optimal)<br />
drivutil Display Drives associated with groups<br />
# drivutil -d<br />
drivutil Fail a Drive<br />
269/433<br />
# drivutil -f 01<br />
drivutil Report Status or reconstruction status<br />
# drivutil -p<br />
drivutil Unfail a drive and recontruct data<br />
# drivutil -U<br />
log Log file /usr/lib/osa/rmlog.log<br />
logutil Log format utility &#8211; View log # logutil<br />
rmparams Parameters file /usr/lib/osa/rmparams<br />
rdacctl Correct problem of LUNS on different<br />
# rm /dev/rdsk/c3*,/dev/rdsk/c5*,/dev/dsk/c3*<br />
controllers on shared A3500 in cluster<br />
# rm /dev/dsk/c5*,/dev/osa/dev/dsk,rdsk c5* c3*<br />
# rdacctl config;drvconfig -i sd, disks<br />
kraftek.html POSTS rescue rescued.html rescued.txt x y z BEGIN RAID Manager addition<br />
kraftek.html POSTS rescue rescued.html rescued.txt x y z DO NOT EDIT from BEGIN above to END below&#8230;<br />
forceload: drv/sd<br />
forceload: drv/rdnexus<br />
forceload: drv/rdriver<br />
kraftek.html POSTS rescue rescued.html rescued.txt x y z END RAID Manager addition<br />
270/433</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/01/raid-manager-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change timezone in solaris</title>
		<link>http://kraftek.com/blog/2011/01/change-timezone-in-solaris/</link>
		<comments>http://kraftek.com/blog/2011/01/change-timezone-in-solaris/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 05:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/change-timezone-in-solaris/</guid>
		<description><![CDATA[Edit /etc/TIMEZONE and use one of the typical: US/Eastern US/Central US/Mountain US/Pacific or look for an appropriate timezone in /usr/share/lib/zoneinfo After this reboot your server with shutdown or init. 237/433]]></description>
			<content:encoded><![CDATA[<p>Edit /etc/TIMEZONE and use one of the typical:<br />
US/Eastern<br />
US/Central<br />
US/Mountain<br />
US/Pacific<br />
or look for an appropriate timezone in /usr/share/lib/zoneinfo<br />
After this reboot your server with shutdown or init.<br />
237/433</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/01/change-timezone-in-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print only process numbers from a fuser output</title>
		<link>http://kraftek.com/blog/2011/01/print-only-process-numbers-from-a-fuser-output/</link>
		<comments>http://kraftek.com/blog/2011/01/print-only-process-numbers-from-a-fuser-output/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 21:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/print-only-process-numbers-from-a-fuser-output/</guid>
		<description><![CDATA[bash-2.03# fuser -c / 2&#62;&#38;1&#124; tr -d &#8216;[:alpha:]&#8216; &#124; sed &#8216;s//://g&#8217; 21567 21566 21523 21507 21476 21397 20978 20711 20608 20598 19955 19921 19912 19873 19872 19871 19870 19869 19868 19867 19860 19859 19750 19743 19512 19187 19186 19185 19184 19183 18779 18357 18346 18048 17566 17224 17220 17218 17198 17035 17033 17031 17029 17014 [...]]]></description>
			<content:encoded><![CDATA[<p>bash-2.03# fuser -c / 2&gt;&amp;1| tr -d &#8216;[:alpha:]&#8216; | sed &#8216;s//://g&#8217;<br />
21567 21566 21523 21507 21476 21397 20978 20711 20608 20598 19955 19921 19912 19873<br />
19872 19871 19870 19869 19868 19867 19860 19859 19750 19743 19512 19187 19186 19185<br />
19184 19183 18779 18357 18346 18048 17566 17224 17220 17218 17198 17035 17033 17031<br />
17029 17014 16990 16964 16584 16582 15883 15881 15739 15327 15325 15320<br />
72/433</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/01/print-only-process-numbers-from-a-fuser-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>is your solaris running on 64bit or/and 32bit?</title>
		<link>http://kraftek.com/blog/2011/01/is-your-solaris-running-on-64bit-orand-32bit/</link>
		<comments>http://kraftek.com/blog/2011/01/is-your-solaris-running-on-64bit-orand-32bit/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 13:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/is-your-solaris-running-on-64bit-orand-32bit/</guid>
		<description><![CDATA[Just type # isainfo -v]]></description>
			<content:encoded><![CDATA[<p>Just type<br />
# isainfo -v</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/01/is-your-solaris-running-on-64bit-orand-32bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure the VCS hagui service</title>
		<link>http://kraftek.com/blog/2011/01/configure-the-vcs-hagui-service/</link>
		<comments>http://kraftek.com/blog/2011/01/configure-the-vcs-hagui-service/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 05:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/configure-the-vcs-hagui-service/</guid>
		<description><![CDATA[for those who feel comfortable with the hagui in Veritas Cluster, and cannot use it because you don&#8217;t have the daemon running, you must add this section to your /etc/VRTSvcs/conf/config/main.cf: group ClusterService ( SystemList = { hst101 = 0, hst102 = 1 } AutoStartList = { hst101, hst102 } OnlineRetryLimit = 3 Tag = CSG [...]]]></description>
			<content:encoded><![CDATA[<p>for those who feel comfortable with the hagui in Veritas Cluster, and cannot use it because you don&#8217;t have the daemon<br />
running, you must add this section to your /etc/VRTSvcs/conf/config/main.cf:<br />
group ClusterService (<br />
SystemList = { hst101 = 0, hst102 = 1 }<br />
AutoStartList = { hst101, hst102 }<br />
OnlineRetryLimit = 3<br />
Tag = CSG<br />
)<br />
IP webip (<br />
Device = eth0<br />
Address = &#8220;172.20.162.15&#8243;<br />
NetMask = &#8220;255.255.254.0&#8243;<br />
)<br />
Where you need to change &#8220;hst101&#8243; and &#8220;hst102&#8243; to the hostnames of your nodes, and configure your<br />
network interface accordingly.<br />
Edit VCS main.cf using vi<br />
Sometimes you need to edit your veritas cluster configuration file &#8220;main.cf&#8221; and you feel the urge to do it using vi, here&#8217;s<br />
how to do it:<br />
hastop -all<br />
cp main.cf main.cf.copy<br />
vi main.cf<br />
hacf -verify /etc/VRTSvcs/conf/config<br />
hacf -generate /etc/VRTSvcs/conf/config<br />
hastart<br />
262/433</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/01/configure-the-vcs-hagui-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stats script based on top for Solaris</title>
		<link>http://kraftek.com/blog/2011/01/stats-script-based-on-top-for-solaris/</link>
		<comments>http://kraftek.com/blog/2011/01/stats-script-based-on-top-for-solaris/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 21:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kraftek.com/blog/stats-script-based-on-top-for-solaris/</guid>
		<description><![CDATA[you can do this (date &#8220;+%d %m %H %M %S %Y&#8221; /usr/local/bin/top -b &#124; head -4) &#62;&#62; /tmp/top.txt Then parse and collect: echo &#8220;date,time,loadavg1,loadavg5,loadavg10,processes,sleeping processes,on cpu,cpu idle,cpu user,cpu kernel,cpu iowait,swap,memory,free mem,total swap,free swap&#8221; cat /tmp/top.txt &#124;nawk &#8216;ORS=NR%5?&#8221; &#8220;:&#8221;n&#8221;&#8216; &#124; tr -d &#8216;[:alpha:]&#8216;&#124; sed &#8216;s/;//g;s/:/ /g;s/,//g&#8217; &#124; awk &#8216;{ print $1&#8243;/&#8221;$2&#8243;/&#8221;$6&#8243;,&#8221;$3&#8243;:&#8221;$4&#8243;:&#8221;$5&#8243;,&#8221;$8&#8243;,&#8221;$9&#8243;,&#8221;$10&#8243;,&#8221;$17&#8243;,&#8221;$18&#8243;,&#8221;$19&#8243;,&#8221;$20&#8243;,&#8221;$21&#8243;,&#8221;$22&#8243;,&#8221;$23&#8243;,&#8221;$24&#8243;,&#8221;$25&#8243;,&#8221;$26&#8243;,&#8221;$27&#8243;,&#8221;$28 }&#8217; this builds a csv [...]]]></description>
			<content:encoded><![CDATA[<p>you can do this<br />
(date &#8220;+%d %m %H %M %S %Y&#8221;<br />
/usr/local/bin/top -b | head -4) &gt;&gt; /tmp/top.txt<br />
Then parse and collect:<br />
echo &#8220;date,time,loadavg1,loadavg5,loadavg10,processes,sleeping processes,on cpu,cpu idle,cpu user,cpu<br />
kernel,cpu iowait,swap,memory,free mem,total swap,free swap&#8221;<br />
cat /tmp/top.txt |nawk &#8216;ORS=NR%5?&#8221; &#8220;:&#8221;n&#8221;&#8216; | tr -d &#8216;[:alpha:]&#8216;| sed &#8216;s/;//g;s/:/ /g;s/,//g&#8217; | awk &#8216;{ print<br />
$1&#8243;/&#8221;$2&#8243;/&#8221;$6&#8243;,&#8221;$3&#8243;:&#8221;$4&#8243;:&#8221;$5&#8243;,&#8221;$8&#8243;,&#8221;$9&#8243;,&#8221;$10&#8243;,&#8221;$17&#8243;,&#8221;$18&#8243;,&#8221;$19&#8243;,&#8221;$20&#8243;,&#8221;$21&#8243;,&#8221;$22&#8243;,&#8221;$23&#8243;,&#8221;$24&#8243;,&#8221;$25&#8243;,&#8221;$26&#8243;,&#8221;$27&#8243;,&#8221;$28<br />
}&#8217;<br />
this builds a csv you can import in a spreadsheet<br />
7/433</p>
]]></content:encoded>
			<wfw:commentRss>http://kraftek.com/blog/2011/01/stats-script-based-on-top-for-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

