<?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>Sun Solaris System Admin &#187; server</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 16 Jun 2010 21:07:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>psrinfo &#8211; Find number of Physical &amp; Virtual Processors in Solaris 10</title>
		<link>http://www.sunsolarisadmin.com/general/psrinfo-find-number-of-physical-virtual-processors-in-solaris-10/</link>
		<comments>http://www.sunsolarisadmin.com/general/psrinfo-find-number-of-physical-virtual-processors-in-solaris-10/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 01:54:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Processor]]></category>
		<category><![CDATA[psrinfo]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sparc]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[sun4v]]></category>
		<category><![CDATA[sunos]]></category>
		<category><![CDATA[SUNW]]></category>
		<category><![CDATA[t5120]]></category>
		<category><![CDATA[t5140]]></category>
		<category><![CDATA[ultrasparc]]></category>
		<category><![CDATA[virtual-processor]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=61</guid>
		<description><![CDATA[In Solaris 10, if you want to find the processor type and the number of physical processors installed on the system and the number of Virtual Processors available on the system then the psrinfo command does job for you. To simply display the number of Physical processors, simply run the command with the -p option [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->In Solaris 10, if you want to find the processor type and the number of physical processors installed on the system and the number of Virtual Processors available on the system then the psrinfo command does job for you.</p>
<p><span id="more-61"></span></p>
<p>To simply display the number of Physical processors, simply run the command with the -p option as follows:</p>
<blockquote><p><strong>root@sunserver # psrinfo -p<br />
</strong>2</p></blockquote>
<p>where 2 implies that there are 2 physical processors installed on the system.</p>
<p>If you would like to check the number of Virtual Processors on each of these Physical processors then type the command with the &#8220;-pv&#8221; arguement as follows:</p>
<blockquote><p><strong>root@ server:/root$ uname -a</strong></p>
<p>SunOS server 5.10 Generic_137111-02 sun4v sparc SUNW,SPARC-Enterprise-T5120</p>
<p><strong>root@server:/root$ psrinfo -pv</strong></p>
<p>The physical processor has 32 virtual processors (0-31)</p>
<p>  UltraSPARC-T2 (cpuid 0 clock 1165 MHz)</p></blockquote>
<p>The above indicates that there was only one physical processor (UltraSPARC-T2) on the T5120 server which has 32 Virtual processors. Each virtual processor is an entity with its own interrupt ID, capable of executing independent threads.</p>
<p>In simple terms, the number of Virtual Processors supported by a physical CPU is</p>
<blockquote><p><strong><em>&#8220;Number of Core&#8221; x &#8220;Number of threads&#8221;</em></strong></p></blockquote>
<p>For instance, the above is on a T5120 server with the UltraSPARC-T2. This CPU  has 4 cores and each core can support 8 threads and that gives us 32 Virtual processors.</p>
<p>The number of Virtual processors on a Server is simply the total Virtual processors supported on each of the physical processor.</p>
<p>In the following T5140 server there are 2 Physical UltraSPARC-T2+ processors with 6 cores, each supporting 8 threads which means we get 48 Virtual processors per Physical processor and hence a total of 96 Virtual processors (sum of VPs on individual processors) for the server:</p>
<blockquote><p><strong>root@ bserver:/root$ uname -a</strong></p>
<p>SunOS bserver 5.10 Generic_137111-02 sun4v sparc SUNW,T5140</p>
<p><strong>root@ bserver:/root$ psrinfo -pv</strong></p>
<p>The physical processor has 48 virtual processors (0-23 32-55)</p>
<p>  UltraSPARC-T2+ (cpuid 0 clock 1167 MHz)</p>
<p>The physical processor has 48 virtual processors (64-71 80-119)</p>
<p>  UltraSPARC-T2+ (cpuid 64 clock 1167 MHz)</p></blockquote>
<p>In earlier versions of Solaris, the <strong><em>-p</em></strong> arguement is not supported and hence wouldn&#8217;t provide this summarised output on the counts of the physical and Virtual CPUs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/general/psrinfo-find-number-of-physical-virtual-processors-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How to install MySQL database server in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/package-management/how-to-install-mysql-database-server-in-sun-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/package-management/how-to-install-mysql-database-server-in-sun-solaris/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 11:03:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Package Management]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/package-management/how-to-install-mysql-database-server-in-sun-solaris/</guid>
		<description><![CDATA[Installation of MySQL Database server on Solaris is not that difficult but is a bit dragging and not as straightforward as is in any other Linux flavors. The following procedure will help install MySQL and configure successfuly in Sun Solaris. To install MySQL Database server on Solaris follow the procedures listed below: Note: I've used [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->Installation of MySQL Database server on Solaris is not that difficult but is a bit dragging and not as straightforward as is in any other Linux flavors. The following procedure will help install MySQL and configure successfuly in Sun Solaris.<span id="more-9"></span></p>
<p>To install MySQL Database server on Solaris follow the procedures listed below:</p>
<pre class="small highlight highlight">Note: I've used MySQL-5.0.24a for Solaris 8. However, this is a very generic</pre>
<pre class="small highlight highlight">procedure and I'm sure will work on other Solaris versions. </pre>
<p>Download the MySQL Package for solaris from</p>
<blockquote><p><a target="_blank" href="http://dev.mysql.com/downloads/mysql/5.0.html" title="Download MySQL for Solaris from MySQL website"><font color="#808080">http://dev.mysql.com/downloads/mysql/5.0.html<br />
</font></a></p></blockquote>
<p>Once downloaded unzip using</p>
<blockquote><p><strong># gzip mysql-standard-5.0.24a-solaris8-sparc-64bit.tar.gz</strong></p></blockquote>
<p>Now, comes the first problem, you need to have GNU Tar installed on your Solaris server as there is bug in getting the classic Solaris one to work.</p>
<p>To download and install GNUTar, please <a target="_blank" href="http://www.sunsolarisadmin.com/package-management/how-to-install-gnu-tar-in-sun-solaris/" title="How to install GNU Tar on Solaris"><font color="#808080">click here</font></a>. </p>
<p>Untar using GNUTar by</p>
<blockquote><p><strong># tar -xvf mysql-standard-5.0.24a-solaris8-sparc-64bit.tar</strong></p></blockquote>
<p>Now, install using</p>
<blockquote><p><strong># pkgadd -d mysql-standard-5.0.24a-solaris8-sparc-64bit.pkg</strong></p></blockquote>
<p>This installs the software. You can be confirmed using</p>
<blockquote><p><strong># pkginfo -l mysql</strong></p></blockquote>
<p><img src="http://www.sunsolarisadmin.com/wp-content/uploads/2008/01/pkginfo_mysql.png" alt="pkginfo output for mysql installation in Sun Solaris" /></p>
<p>This will give a detailed output describing the installation.</p>
<p>Now, change dir to /opt/mysql/mysql/support-files</p>
<blockquote><p><strong># cd /opt/mysql/mysql/support-files</strong></p></blockquote>
<p>Copy the my-middle.cnf as my.cnf and mysql.server to /opt/mysql/mysql/scripts</p>
<blockquote><p><strong># cp my-middle.cnf ../scripts/my.cnf</strong><br />
<strong># cp mysql.server ../scripts/</strong></p></blockquote>
<p>Now, change to /opt/mysql/mysql/scripts folder</p>
<blockquote><p><strong># cd opt/mysql/mysql/scripts</strong></p></blockquote>
<p>Edit file my.cnf using vi</p>
<blockquote><p><strong>#vi my.cnf</strong></p></blockquote>
<p>Add the following lines to the file under <strong>[mysqld]</strong></p>
<blockquote><p><strong><br />
datadir=/opt/mysql/mysql/data<br />
basedir=/opt/mysql/mysql<br />
log<br />
log-update</strong></p></blockquote>
<p>Similary, edit the mysql.server file and add the following lines:</p>
<blockquote><p><strong># vi mysql.server</strong><br />
<strong><br />
basedir=/opt/mysql/mysql<br />
datadir=/opt/opt/mysql/mysql/data<br />
conffile=/opt/mysql/mysql/scripts/my.cnf<br />
mysql_daemon_user=mysql</strong></p></blockquote>
<p>Now, all done, run the mysql_install_db script as follows</p>
<blockquote><p><strong># ./mysql_install_db &#8211;defaults-file=/opt/mysql/mysql/scripts/my.cnf</strong></p></blockquote>
<p>This creates the initial MySQL database.</p>
<p>Now, start MySQL using</p>
<blockquote><p><strong>cd . ; /opt/mysql/mysql/bin/mysqld_safe &amp;</strong></p></blockquote>
<p>This will start MySQL.</p>
<p>Now, you need to set the password for root account</p>
<blockquote><p><strong># /opt/mysql/mysql/bin/mysqladmin -u root password &#8216;newpassword&#8217;</strong><br />
<strong># /opt/mysql/mysql/bin/mysqladmin -u root -h &lt;hostname&gt; password &#8216;newpassword&#8217;</strong></p></blockquote>
<p>This completes a successful installation of MySQL on your Solaris Server. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/package-management/how-to-install-mysql-database-server-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
