<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7562850550612305427</id><updated>2011-10-06T23:22:25.513+02:00</updated><category term='linux'/><category term='Unix'/><category term='Network'/><category term='clustering'/><category term='Samba/CIFS'/><category term='Performance'/><category term='The Great Tool'/><category term='Patching'/><category term='IPS'/><category term='Zones'/><category term='Mysql'/><category term='Bug'/><category term='iSCSI'/><category term='benchmarks'/><category term='Security'/><category term='Grub'/><category term='Oracle'/><category term='book'/><category term='upgrade'/><category term='gprs'/><category term='Vendor'/><category term='Bookmarks'/><category term='SMF'/><category term='PHP'/><category term='Jumpstart'/><category term='bluetooth'/><category term='NFS'/><category term='Resource Management'/><category term='GUDS'/><category term='ldap'/><category term='Backup'/><category term='Capacity'/><category term='Scripts'/><category term='Solaris'/><category term='Sun Cluster'/><category term='ubuntu'/><category term='beadm'/><category term='SVN'/><category term='ZFS'/><title type='text'>Bricks of the knowledge wall</title><subtitle type='html'>Tips for Unix/Linux administrators.
Here I publish short guides on frequent sysadmin's tasks, benchmarks ...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>80</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-333101748605202564</id><published>2011-01-09T06:30:00.003+02:00</published><updated>2011-01-09T06:36:14.950+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vendor'/><category scheme='http://www.blogger.com/atom/ns#' term='GUDS'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance'/><title type='text'>GUDS is what Oracle can ask you</title><content type='html'>&lt;p&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;GUDS&lt;/span&gt;&lt;/p&gt; &lt;p&gt;When working  with vendor  on performance issue, this tool will be required.&lt;/p&gt;&lt;p&gt;Be &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_1"&gt;careful&lt;/span&gt; don't run it during &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_2"&gt;business hours&lt;/span&gt;, performance degradation will go.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;Guds&lt;/span&gt; is a script to gather performance stats for Solaris.&lt;br /&gt;Sample usage is&lt;br /&gt;./guds_2.4.5&lt;br /&gt;./guds_2.4.5 -&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;qX&lt;/span&gt; -H3 -s65040465&lt;/p&gt; &lt;p&gt;-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;qX&lt;/span&gt; is for quite mode&lt;br /&gt;-H3 is for running it for 3 hours&lt;br /&gt;-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;sNNNNN&lt;/span&gt; is the sun case number (info &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;embeded&lt;/span&gt; in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;dirs&lt;/span&gt; created by &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;guds&lt;/span&gt; to&lt;br /&gt;store the files).&lt;/p&gt; &lt;p&gt;It collects lots of info in /var/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;tmp&lt;/span&gt;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;CASEID&lt;/span&gt;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;guds&lt;/span&gt;-DATE-TIME/…&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-333101748605202564?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/333101748605202564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=333101748605202564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/333101748605202564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/333101748605202564'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2011/01/guds-is-what-oracle-can-ask-you.html' title='GUDS is what Oracle can ask you'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2581422741207427429</id><published>2010-08-26T12:55:00.004+02:00</published><updated>2010-08-27T13:46:28.019+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='The Great Tool'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance'/><title type='text'>SLAMD!</title><content type='html'>The very good performance testing engine:&lt;br /&gt;&lt;a href="www.slamd.com"&gt;&lt;span class="main_header"&gt;SLAMD Distributed Load Generation Engine&lt;/span&gt;&lt;/a&gt;          &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2581422741207427429?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2581422741207427429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2581422741207427429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2581422741207427429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2581422741207427429'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/08/slamd.html' title='SLAMD!'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5120423631755225943</id><published>2010-08-26T12:25:00.005+02:00</published><updated>2010-08-27T13:46:28.024+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Resource Management'/><title type='text'>Default and permited projects</title><content type='html'>If you want to assign default project to a user, then use&lt;br /&gt;&lt;font style="font-weight: bold;"&gt;usermod -K project=projname username&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;If want to give permission(newtask -p projname) to use but not to make the default one, then&lt;br /&gt;&lt;font style="font-weight: bold;"&gt;projmod -U username projectname&lt;/font&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5120423631755225943?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5120423631755225943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5120423631755225943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5120423631755225943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5120423631755225943'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/08/default-and-permited-projects.html' title='Default and permited projects'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4787307968225246999</id><published>2010-08-25T13:55:00.004+02:00</published><updated>2010-08-27T13:46:28.034+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title type='text'>The cruel trooth abou fssnap</title><content type='html'>There are two fssnap in Solaris with pretty the same features(don't know the historical background of this separation)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/usr/sbin/fssnap&lt;/span&gt; and&lt;span style="font-weight: bold;"&gt; /usr/lib/fs/ufs/fssnap&lt;/span&gt; !&lt;br /&gt;The difference is that the second one shows more detailed information :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$/usr/sbin/fssnap -i /usr&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;   0    /usr&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;$/usr/lib/fs/ufs/fssnap -i /usr&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Snapshot number               : 0&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Block Device                  : /dev/fssnap/0&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Raw Device                    : /dev/rfssnap/0&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Mount point                   : /usr&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Device state                  : idle&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Backing store path            : /export/snapshots/snapshot0&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Backing store size            : 864 KB&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Maximum backing store size    : Unlimited&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Snapshot create time          : Mon Aug 23 22:50:06 2010&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;Copy-on-write granularity     : 32 KB&lt;/span&gt;&lt;br style="font-style: italic;"&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4787307968225246999?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4787307968225246999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4787307968225246999' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4787307968225246999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4787307968225246999'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/08/cruel-trooth-abou-fssnap.html' title='The cruel trooth abou fssnap'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-1922697629689646726</id><published>2010-08-23T14:56:00.002+02:00</published><updated>2010-08-27T13:46:28.039+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iSCSI'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Simplest iscsi configuration in a minute</title><content type='html'>Work with iSCSI devices is really easy and comfortable in Solaris 10, consider following steps to create and use the simplest configuration:&lt;br /&gt;On target.&lt;br /&gt;&lt;br /&gt;Declare base directory&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; iscsitadm modify admin -d /export/sandbox&lt;br /&gt;&lt;/span&gt;Create the target&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;iscsitadm create target --size 10m sandbox&lt;br /&gt;&lt;/span&gt;List created target and copy iqn&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;iscsitadm list target&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;On initiator&lt;span style="font-weight: bold;"&gt;.&lt;br /&gt;&lt;/span&gt;Use the target&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;iscsiadm add static-config iqn.1986-03.com.sun:02:a5a27478-ded0-c8c3-9c71-a882cbfbc0ed.sandbox, ip-address&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Label the disk:&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;#format&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Useful:&lt;br /&gt;The command shows relation of ISCSI LUN and local device name&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;iscsiadm list target -S&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-1922697629689646726?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/1922697629689646726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=1922697629689646726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1922697629689646726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1922697629689646726'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/08/simplest-iscsi-configuration-in-minute.html' title='Simplest iscsi configuration in a minute'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-78214210455020020</id><published>2010-07-29T15:06:00.003+02:00</published><updated>2010-07-29T15:28:29.521+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Sun Java Console Timeout</title><content type='html'>If you often get hot because of console timeout log offs - here we are!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# wcadmin add -p -a console session.timeout.value=5&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-78214210455020020?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/78214210455020020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=78214210455020020' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/78214210455020020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/78214210455020020'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/07/sun-java-console-timeout.html' title='Sun Java Console Timeout'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7918995536275778040</id><published>2010-07-29T15:01:00.003+02:00</published><updated>2010-07-29T15:04:51.237+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Don't waste pure man's RAM</title><content type='html'>Want extra 200MB of RAM on Solaris Vmware Guest - disable Java Console, if you don't use it of course :)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#svcadm disable webconsole&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7918995536275778040?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7918995536275778040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7918995536275778040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7918995536275778040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7918995536275778040'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/07/dont-waste-pure-mans-ram.html' title='Don&apos;t waste pure man&apos;s RAM'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4920243178316395242</id><published>2010-07-13T19:57:00.002+02:00</published><updated>2010-07-13T20:03:31.245+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bluetooth'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='gprs'/><title type='text'>Bluetooth gprs internet in several steps.</title><content type='html'>The proposed way doesn't pretend to be the most convenient but it  at least works :)&lt;br /&gt;&lt;br /&gt;So,&lt;br /&gt;&lt;br /&gt;1.Enable bluetooth on the phone.&lt;br /&gt;2.Discover it's MAC address:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$hcitool scan&lt;/span&gt;&lt;br /&gt;3.Find out which channel is used for «Dial UP networking» on your phone:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$sdptool browse 00:21:AA:8E:E1:00&lt;/span&gt;&lt;br /&gt;4.Bind rfcomm device to discovered channel:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rfcomm bind 0 00:21:AA:8E:E1:00 2&lt;/span&gt;&lt;br /&gt;5.Now we can use /dev/rfcomm0 in pppd configuration.&lt;br /&gt;6.Use &lt;span style="font-weight: bold;"&gt;pppconf&lt;/span&gt; to create ppp configuration for your operator, I'll show mine at the end of the tip.&lt;br /&gt;7.Use pon xl.kyivstar.net to connect&lt;br /&gt;Actually I ,also, thing that there must be an easier way , let me know if you'll find one!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat /etc/ppp/peers/xl.kyivstar.net&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;# This optionfile was generated by pppconfig 2.3.18.&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;hide-password&lt;br /&gt;&lt;br /&gt;noauth&lt;br /&gt;&lt;br /&gt;connect "/usr/sbin/chat -v -f /etc/chatscripts/xl.kyivstar.net"&lt;br /&gt;&lt;br /&gt;debug&lt;br /&gt;&lt;br /&gt;/dev/rfcomm0&lt;br /&gt;&lt;br /&gt;115200&lt;br /&gt;&lt;br /&gt;defaultroute&lt;br /&gt;&lt;br /&gt;noipdefault&lt;br /&gt;&lt;br /&gt;user "none"&lt;br /&gt;&lt;br /&gt;ipparam xl.kyivstar.net&lt;br /&gt;&lt;br /&gt;usepeerdns&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;nopcomp&lt;br /&gt;&lt;br /&gt;novj&lt;br /&gt;&lt;br /&gt;novjccomp&lt;br /&gt;&lt;br /&gt;nobsdcomp&lt;br /&gt;&lt;br /&gt;nodeflate&lt;br /&gt;&lt;br /&gt;noaccomp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat  /etc/chatscripts/xl.kyivstar.net:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;TIMEOUT 35&lt;br /&gt;&lt;br /&gt;ECHO    ON&lt;br /&gt;&lt;br /&gt;ABORT   '\nBUSY\r'&lt;br /&gt;&lt;br /&gt;ABORT   '\nERROR\r'&lt;br /&gt;&lt;br /&gt;ABORT   '\nNO ANSWER\r'&lt;br /&gt;&lt;br /&gt;ABORT   '\nNO CARRIER\r'&lt;br /&gt;&lt;br /&gt;ABORT   '\nNO DIALTONE\r'&lt;br /&gt;&lt;br /&gt;ABORT   '\nRINGING\r\n\r\nRINGING\r'&lt;br /&gt;&lt;br /&gt;''      \rAT&lt;br /&gt;&lt;br /&gt;'OK' 'AT+CGDCONT=1,\"IP\",\"xl.kyivstar.net\"'&lt;br /&gt;&lt;br /&gt;'OK' ATD*99***1#&lt;br /&gt;&lt;br /&gt;CONNECT&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4920243178316395242?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4920243178316395242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4920243178316395242' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4920243178316395242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4920243178316395242'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/07/bluuetooth-gprs-internet-in-several.html' title='Bluetooth gprs internet in several steps.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2247827317774471280</id><published>2010-03-29T15:28:00.001+02:00</published><updated>2010-03-29T15:31:05.297+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IPS'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Check content of the IPS packages</title><content type='html'>&lt;span class="Apple-style-span"   style="  border-collapse: collapse; font-family:arial, sans-serif;font-size:13px;"&gt;$&lt;b&gt;pkg  contents  -r  tcl-sqlite-3&lt;/b&gt;&lt;br /&gt;PATH&lt;br /&gt;usr&lt;br /&gt;usr/lib&lt;br /&gt;usr/lib/tcl8.4&lt;br /&gt;usr/lib/tcl8.4/sqlite3&lt;br /&gt;usr/lib/tcl8.4/sqlite3/32&lt;br /&gt;usr/lib/tcl8.4/sqlite3/64&lt;br /&gt;usr/lib/tcl8.4/sqlite3/amd64&lt;br /&gt;usr/lib/tcl8.4/sqlite3/amd64/&lt;wbr&gt;libtclsqlite3.so&lt;br /&gt;usr/lib/tcl8.4/sqlite3/&lt;wbr&gt;libtclsqlite3.so&lt;br /&gt;usr/lib/tcl8.4/sqlite3/&lt;wbr&gt;pkgIndex.tcl&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  border-collapse: collapse; font-family:arial, sans-serif;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:arial, sans-serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="border-collapse: collapse; font-size:13px;"&gt;If the target is a meta-package:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:arial, sans-serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="border-collapse: collapse; font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:arial, sans-serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="border-collapse: collapse; font-size:13px;"&gt;&lt;b&gt;$pkg contents -rm ruby-dev&lt;/b&gt;&lt;br /&gt;set name=fmri value=pkg:/ruby-dev@0.5.11,5.&lt;wbr&gt;11-0.111:20090508T235714Z&lt;br /&gt;set name=variant.opensolaris.zone value=global value=nonglobal&lt;br /&gt;set name=description value="Ruby Development cluster"&lt;br /&gt;set name=info.classification value=org.opensolaris.&lt;wbr&gt;category.2008:Development/Ruby&lt;br /&gt;set name=variant.arch value=sparc value=i386&lt;br /&gt;set name=publisher value=&lt;a href="http://opensolaris.org/" target="_blank" style="color: rgb(42, 93, 176); "&gt;opensolaris.org&lt;/a&gt;&lt;br /&gt;depend fmri=SUNWj6dev@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=SUNWj6man@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=SUNWj6cfg@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=SUNWj6rt@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=SUNWcvs@1.12.13-0.111 type=require&lt;br /&gt;depend fmri=SUNWfirefox@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=netbeans@6.5.1-0.111 type=require&lt;br /&gt;depend fmri=SUNWruby18@1.8.7.72-0.111 type=require&lt;br /&gt;depend fmri=SUNWj6dmo@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=SUNWsvn@1.4.3-0.111 type=require&lt;br /&gt;depend fmri=SUNWj6dvx@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=SUNWj6dmx@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=SUNWmercurial@1.1.2-0.111 type=require&lt;br /&gt;depend fmri=SUNWj6rtx@0.5.11-0.111 type=require&lt;br /&gt;depend fmri=SUNWsquid@2.7.6-0.111 type=require&lt;br /&gt;depend fmri=SUNWmemcached@1.2.5-0.111 type=require&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2247827317774471280?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2247827317774471280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2247827317774471280' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2247827317774471280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2247827317774471280'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/03/check-content-of-ips-packages.html' title='Check content of the IPS packages'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-9183959728232447499</id><published>2010-03-17T14:03:00.003+02:00</published><updated>2010-06-15T12:25:55.707+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Grub'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Grub difference</title><content type='html'>In Solaris grub is shipped with additional commands which make life easier:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;installgrub&lt;/span&gt; - install GRUB in a disk partition or a floppy&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;bootadm&lt;/span&gt; - manage bootability of GRUB-enabled operating  sys-tem&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-9183959728232447499?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/9183959728232447499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=9183959728232447499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9183959728232447499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9183959728232447499'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/03/grub-differance.html' title='Grub difference'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7292001227864401139</id><published>2010-03-16T14:08:00.002+02:00</published><updated>2010-03-16T14:11:20.535+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Patching'/><category scheme='http://www.blogger.com/atom/ns#' term='ZFS'/><category scheme='http://www.blogger.com/atom/ns#' term='beadm'/><category scheme='http://www.blogger.com/atom/ns#' term='upgrade'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Beadm usage examples</title><content type='html'>&lt;span style="font-weight: bold;"&gt;beadm list -[sda]&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;note: /boot/grub/menu.lst - doesn't exist by default, it's created when "beadm create" is executed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;beadm create beName&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;beadm mount beName mountpoint&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;beadm activate beName&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create BE from snapshot or another inactive BE:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;beadm create -e non-activeBeName beName&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create a Snapshot of a Boot Environment:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;beadm create BEname@snapshotdescription&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can patch BE or install packages into it:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pkg -R /mnt image-update&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pkg -R /mnt install packagename&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To destroy a boot environment, type the following:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;beadm destroy beName&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use the following command to rename the boot environment:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;beadm rename beName newBeName&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7292001227864401139?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7292001227864401139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7292001227864401139' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7292001227864401139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7292001227864401139'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/03/beadm-usage-examples.html' title='Beadm usage examples'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-1557880603225760212</id><published>2010-03-11T14:16:00.001+02:00</published><updated>2010-03-16T14:16:03.497+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SMF'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>SMF Contracts or how to find out what FMRI the process uses</title><content type='html'>&lt;div class="Section1"&gt;  &lt;p class="MsoPlainText"&gt;The SMF uses the contracts to monitor the processes of a service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;Based on this events SMF can take action to react on this events. Per default, SMF&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;stops and restart a service, when any member of the contract dumps core, gets a signal&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;or dies due a hardware failure. Additionally the SMF does the same, when theres no&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;member process left in the contract.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;We can use contracts to find out what SMF services have started processes which belongs to these contracts.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;b&gt;# ptree -c `pgrep sendmail `&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;[ process contract 1]&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;1 / sbin / init&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;[ process contract 4]&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;7 /lib/svc/bin/svc. startd&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;[ process contract 103]&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;776 /usr/lib/ sendmail -bd -q15m -C /etc/ mail / local .&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;cf&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;777 /usr/lib/ sendmail -Ac -q15m&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;b&gt;#ctstat -vi 90&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;CTID    ZONEID  TYPE    STATE   HOLDER  EVENTS  QTIME   NTIME&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;90      0       process owned   7       0       -       -&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        cookie:                0x20&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        informative event set: none&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        critical event set:    hwerr empty&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        fatal event set:       none&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        parameter set:         inherit regent&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        member processes:      523&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        inherited contracts:   none&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        service fmri:          svc:/network/smtp:sendmail&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        service fmri ctid:     90&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        creator:               svc.startd&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;i&gt;        aux:                   start&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;b&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;b&gt;#ctwatch 90 –&lt;/b&gt; you can monitor what happens to the contract&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoPlainText"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-1557880603225760212?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/1557880603225760212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=1557880603225760212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1557880603225760212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1557880603225760212'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/03/smf-contracts-or-how-to-find-out-what.html' title='SMF Contracts or how to find out what FMRI the process uses'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-3393557803657025338</id><published>2010-03-09T12:59:00.002+02:00</published><updated>2010-03-16T14:17:02.746+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Capacity'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance'/><title type='text'>Solaris memory measurement</title><content type='html'>Memory measuring tricks:&lt;p&gt;Total Physical Memory:&lt;br /&gt;# prtconf&lt;/p&gt;&lt;p&gt;Kernel Memory:&lt;br /&gt;# sar -k 1 1&lt;/p&gt;&lt;p&gt;Free Memory:&lt;br /&gt;Ignore the first line it's general information.&lt;br /&gt;# vmstat 3 - consider that each memory allocation assumes similar size swap reservation&lt;/p&gt;&lt;p&gt;Two indicators of a RAM shortage are the scan rate and swap device activity.&lt;/p&gt;&lt;p&gt;Scan Rate:&lt;br /&gt;sar -g or vmstat(sr) &lt;/p&gt;&lt;p&gt;Paging:&lt;br /&gt;Vmstat(po)&lt;/p&gt;&lt;p&gt;Swap Device Activity:&lt;br /&gt;iostat -x&lt;br /&gt;vmstat&lt;br /&gt;sar -d&lt;br /&gt;If there are I/O's queued for the swap device, application paging is occurring.&lt;/p&gt;&lt;p&gt;Process Memory Usage:&lt;br /&gt;Ps -ly ,prstat, top&lt;br /&gt;Pmap -x PID&lt;br /&gt;ipcs -mb - shared memory usage&lt;/p&gt;&lt;p&gt;Swap space:&lt;br /&gt;swap -l reports total and free space for each of the swap partitions or files that are available to the system&lt;br /&gt;swap -s reports the total available amount of virtual memory&lt;br /&gt;sar -r&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-3393557803657025338?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/3393557803657025338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=3393557803657025338' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3393557803657025338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3393557803657025338'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/03/solaris-memory-measurement.html' title='Solaris memory measurement'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-3579146828310591722</id><published>2010-03-08T16:08:00.003+02:00</published><updated>2010-03-16T14:14:40.336+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sun Cluster'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Watching Sun Cluster's binary logs</title><content type='html'>To be able analyze sun cluster behavior the usefull tool to have is showev4&lt;br /&gt;./showev4 /var/cluster/logs/eventlog&lt;br /&gt;&lt;br /&gt;You can get it here&lt;br /&gt;http://www.unixpin.com/wordpress/wp-content/uploads/2008/06/showev4.zip&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-3579146828310591722?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/3579146828310591722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=3579146828310591722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3579146828310591722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3579146828310591722'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/03/watching-sun-clusters-binary-logs.html' title='Watching Sun Cluster&apos;s binary logs'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4975968258438525200</id><published>2010-03-04T15:41:00.002+02:00</published><updated>2010-03-04T15:46:39.212+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Jumpstart'/><title type='text'>Jumpstart boot process</title><content type='html'>&lt;span style="font-style: italic;"&gt;These tip doesn't explain Jumpstart process from "A" to "Z", I've just outlined some useful passages.&lt;/span&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Boot process during jumpstart.&lt;/span&gt;&lt;br /&gt;1.      Client sends a RARP for its IP address&lt;br /&gt;2.      The Boot Server responds via RARPD (in.rarpd) with the IP address in /etc/ethers or the ethers NIS/NIS+ map depending on the ethers setting in /etc/nsswitch.conf&lt;br /&gt;3.      The client sends a tftp request for a bootimage&lt;br /&gt;4.      The server starts in.tftp from inetd and sends the small net kernel image&lt;br /&gt;5.      The client then sends out a bootp request&lt;br /&gt;6.      The server responds with the clients entry from /etc/bootparams&lt;br /&gt;7.      The client NFS mount it's root partition from the install server&lt;br /&gt;8.      The client then mounts the configuration server (/jumpstart) and runs "sysidtool".&lt;br /&gt;9.      It then mounts the install image and runs Suninstall to begin the install process.&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Snoop Output&lt;/p&gt;&lt;p&gt;  1   0.00000 OLD-BROADCAST -&amp;gt; (broadcast)  RARP C Who is 0:a0:24:d2:f6:34 ?&lt;br /&gt;2   3.00626      pikachu -&amp;gt; togepi       RARP R 0:a0:24:d2:f6:34 is 192.168.0.12, togepi&lt;br /&gt;3   0.00078       togepi -&amp;gt; BROADCAST    BPARAM C WHOAMI? 192.168.0.12&lt;br /&gt;4   0.00862      pikachu -&amp;gt; togepi       BPARAM R WHOAMI? togepi in\&lt;br /&gt;5   0.00054       togepi -&amp;gt; (broadcast)  ARP C Who is 192.168.0.1, 192.168.0.1 ?&lt;br /&gt;6   0.00006  192.168.0.1 -&amp;gt; togepi       ARP R 192.168.0.1, 192.168.0.1 is 0:90:27:d0:fd:27&lt;br /&gt;7   0.00037       togepi -&amp;gt; pikachu      BPARAM C GETFILE root&lt;br /&gt;8   0.00163      pikachu -&amp;gt; togepi       BPARAM R GETFILE File=/export/install/2.6/x86/Solaris_2.6/Tools/Boot&lt;br /&gt;9   0.00073       togepi -&amp;gt; pikachu      PORTMAP C GETPORT prog=100005 (MOUNT) vers=1 proto=UDP&lt;br /&gt;10   0.00122      pikachu -&amp;gt; togepi       PORTMAP R GETPORT port=32774&lt;br /&gt;11   0.00075       togepi -&amp;gt; pikachu      MOUNT1 C Mount /export/install/2.6/x86/Solaris_2.6/Tools/Boot&lt;br /&gt;12   0.00281      pikachu -&amp;gt; togepi       MOUNT1 R Mount OK FH=CE64&lt;br /&gt;13   0.01728       togepi -&amp;gt; pikachu      NFS C LOOKUP2 FH=CE64 etc&lt;br /&gt;14   0.00099      pikachu -&amp;gt; togepi       NFS R LOOKUP2 OK FH=8298&lt;br /&gt;15   0.00066       togepi -&amp;gt; pikachu      NFS C LOOKUP2 FH=8298 bootrc&lt;br /&gt;16   0.00040      pikachu -&amp;gt; togepi       NFS R LOOKUP2 OK FH=6C1F&lt;br /&gt;17   0.00068       togepi -&amp;gt; pikachu      NFS C GETATTR2 FH=6C1F&lt;br /&gt;18   0.00038      pikachu -&amp;gt; togepi       NFS R GETATTR2 OK&lt;br /&gt;19   0.00075       togepi -&amp;gt; pikachu      NFS C GETATTR2 FH=6C1F&lt;br /&gt;20   0.00034      pikachu -&amp;gt; togepi       NFS R GETATTR2 OK&lt;br /&gt;21   0.00086       togepi -&amp;gt; pikachu      NFS C READ2 FH=6C1F at 0 for 1344&lt;/p&gt;&lt;p&gt;Source: &lt;a href="http://amorin.org/professional/jumpstart.php#"&gt;http://amorin.org/professional/jumpstart.php#&lt;/a&gt;&lt;/p&gt;&lt;div style="display: none ! important; visibility: hidden ! important; position: absolute ! important; height: auto ! important; width: auto; z-index: 1410065406 ! important; border: 1px solid rgb(0, 67, 179) ! important; -moz-border-radius: 3px 3px 3px 3px ! important; vertical-align: middle ! important; padding: 1px ! important; margin: 0px ! important; color: rgb(0, 0, 0) ! important; background-color: rgb(168, 236, 255) ! important; font-family: Arial ! important; font-size: 12px ! important; line-height: normal ! important; font-weight: normal ! important; left: 376px ! important; top: 247px ! important;" id="gmBFhv"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4975968258438525200?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4975968258438525200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4975968258438525200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4975968258438525200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4975968258438525200'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/03/jumpstart-boot-process.html' title='Jumpstart boot process'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5866840090001310101</id><published>2010-02-19T15:16:00.006+02:00</published><updated>2010-02-20T20:57:56.575+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sun Cluster'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Sun Cluster Console</title><content type='html'>Install Cluster console:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Mount cd with the product&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;cd sc32_location/Solaris_{sparc_or_x86}/Products/sun_cluster/Solaris_10/Packages&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;pkgadd -d . SUNWccon&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-style: italic;"&gt;Add to .profile:&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;PATH=$PATH:/opt/SUNWcluster/bin&lt;br /&gt;MANPATH=$MANPATH:/opt/SUNWcluster/man&lt;br /&gt;export PATH MANPATH&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Sample /etc/clusters File:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sc-cluster pnode1 pnode2 pnode3&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Define consoles /etc/serialports file&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sc-node1 sc-tc 23&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sc-node2 sc-tc 23&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5866840090001310101?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5866840090001310101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5866840090001310101' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5866840090001310101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5866840090001310101'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/02/sun-cluster-console.html' title='Sun Cluster Console'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-9218923142388765479</id><published>2010-02-19T14:57:00.001+02:00</published><updated>2010-06-15T12:29:33.234+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Simplest way to mount CDROM</title><content type='html'>&lt;span style="font-weight: bold;"&gt;#svcadm restart volfs&lt;/span&gt;&lt;div style="display: none ! important; visibility: hidden ! important; position: absolute ! important; height: auto ! important; width: auto; z-index: 1410065406 ! important; border: 1px solid rgb(0, 67, 179) ! important; -moz-border-radius: 3px 3px 3px 3px ! important; vertical-align: middle ! important; padding: 1px ! important; margin: 0px ! important; color: rgb(0, 0, 0) ! important; background-color: rgb(168, 236, 255) ! important; font-family: Arial ! important; font-size: 12px ! important; line-height: normal ! important; font-weight: normal ! important; left: 62px ! important; top: 225px ! important;" id="gmBFhv"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-9218923142388765479?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/9218923142388765479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=9218923142388765479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9218923142388765479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9218923142388765479'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/02/simplest-way-to-maunt-cdrom.html' title='Simplest way to mount CDROM'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2768691003284366350</id><published>2010-02-17T14:40:00.004+02:00</published><updated>2010-02-22T14:52:07.705+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Zones'/><category scheme='http://www.blogger.com/atom/ns#' term='Resource Management'/><title type='text'>Resource pool zone assignment.</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;Pooladm -e&lt;br /&gt;poolcfg -c 'create pset pset_test1 (uint pset.min = 2; uint pset.max = 10)'&lt;br /&gt;poolcfg -c 'create pool testpool1'&lt;br /&gt;poolcfg -c 'associate pool testpool1 (pset pset_test1)'&lt;br /&gt;poolcfg -c info - shows static information based on /etc/pooladm.conf&lt;br /&gt;poolcfg -dc "transfer to pset pset_test1 (cpu 0; cpu 2)"&lt;br /&gt;or&lt;br /&gt;poolcfg -dc 'transfer 2 from pset pset_default to pset_test1'&lt;br /&gt;&lt;br /&gt;pooladm -c initialize from /etc/pooladm.conf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are two way of doing this: static(requires zone restart) and dynamic.&lt;br /&gt;Static:&lt;br /&gt;1. &lt;span style="font-weight: bold;"&gt;zonecfg -z testzone1 set pool=testpool1&lt;/span&gt;&lt;br /&gt;2. &lt;span style="font-weight: bold;"&gt;zoneadm -z testzone reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dynamic:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;poolbind -p pool_default -i zoneid 5&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2768691003284366350?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2768691003284366350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2768691003284366350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2768691003284366350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2768691003284366350'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/02/resource-pool-zone-assignment.html' title='Resource pool zone assignment.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5574379425284630305</id><published>2010-02-11T22:01:00.002+02:00</published><updated>2010-02-16T11:16:37.272+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SVN'/><title type='text'>Users notification about subversion commits(the most scallable way).</title><content type='html'>1. Get http://svn.apache.org/repos/asf/subversion/trunk/tools/hook-scripts/mailer/mailer.py and&lt;br /&gt;put into "REPO"/hooks.&lt;br /&gt;2. Get http://svn.apache.org/repos/asf/subversion/trunk/tools/hook-scripts/mailer/mailer.conf.example and put as "REPO/mailer.conf"&lt;br /&gt;3. Modify mailer.conf for your needs.&lt;br /&gt;4. &lt;span style="font-weight: bold;"&gt;mv "REPO"/hooks/post-commit.tmpl "REPO"/hooks/post-commit&lt;/span&gt;&lt;br /&gt;5. Add to post-commit:&lt;br /&gt;$REPOS"/hooks/mailer.py commit "$REPOS" $REV "$REPOS"/mailer.conf"&lt;div style="display: none ! important; visibility: hidden ! important; position: absolute ! important; height: auto ! important; width: auto; z-index: 1410065406 ! important; border: 1px solid rgb(0, 67, 179) ! important; -moz-border-radius: 3px 3px 3px 3px ! important; vertical-align: middle ! important; padding: 1px ! important; margin: 0px ! important; color: rgb(0, 0, 0) ! important; background-color: rgb(168, 236, 255) ! important; font-family: Arial ! important; font-size: 12px ! important; line-height: normal ! important; font-weight: normal ! important; left: 170px ! important; top: 251px ! important;" id="gmBFhv"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5574379425284630305?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5574379425284630305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5574379425284630305' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5574379425284630305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5574379425284630305'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/02/users-notification-about-subversion.html' title='Users notification about subversion commits(the most scallable way).'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-1263188853268712110</id><published>2010-02-08T14:10:00.003+02:00</published><updated>2010-02-08T14:16:42.187+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>How to find out what mode Solaris can use on your hardware 64 or 32?</title><content type='html'>&lt;span style="font-weight: bold;"&gt;isainfo&lt;/span&gt; -v or&lt;span style="font-weight: bold;"&gt; isainfo -b&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;64-bit amd64 applications&lt;br /&gt;       ssse3 cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu&lt;br /&gt;32-bit i386 applications&lt;br /&gt;       ssse3 cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-1263188853268712110?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/1263188853268712110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=1263188853268712110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1263188853268712110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1263188853268712110'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2010/02/how-to-find-out-what-mode-solaris-can.html' title='How to find out what mode Solaris can use on your hardware 64 or 32?'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-373628754321879201</id><published>2009-12-30T20:40:00.001+02:00</published><updated>2009-12-30T20:42:41.591+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ZFS'/><category scheme='http://www.blogger.com/atom/ns#' term='Samba/CIFS'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Share ZFS dataset through CIFS/Samba</title><content type='html'>&lt;div&gt;Prerequisites:&lt;/div&gt;&lt;div&gt;If you use opensolaris, install SUNWsmbsr.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. zfs set sharesmb=on rpool/export/home &lt;/div&gt;&lt;div&gt;sharemgm show -vp&lt;/div&gt;&lt;div&gt;2. svcadm enable smb/server&lt;/div&gt;&lt;div&gt;3. &lt;/div&gt;&lt;div&gt;stever@opensolaris:~# cat &gt;&gt; /etc/pam.conf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# Seem to need this line for smb / cifs:&lt;/div&gt;&lt;div&gt;other   password required       pam_smb_passwd.so.1     nowarn&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(Control-D to end)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;stever@opensolaris:~# passwd&lt;/div&gt;&lt;div&gt;passwd: Changing password for stever&lt;/div&gt;&lt;div&gt;New Password:&lt;/div&gt;&lt;div&gt;Re-enter new Password:&lt;/div&gt;&lt;div&gt;passwd: password successfully changed for stever&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-373628754321879201?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/373628754321879201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=373628754321879201' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/373628754321879201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/373628754321879201'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/12/share-zfs-dataset-through-cifssamba.html' title='Share ZFS dataset through CIFS/Samba'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-9191624109254633739</id><published>2009-12-30T20:35:00.002+02:00</published><updated>2009-12-30T20:40:35.601+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ZFS'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Autofs and auto mounted homes.</title><content type='html'>&lt;div&gt;Prerequisites:&lt;/div&gt;&lt;div&gt;It´s important that both hosts can resolv the hostname of the other system.&lt;/div&gt;&lt;div&gt;User/group ID's must be the same on all hosts.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ON FILE SERVER&lt;/div&gt;&lt;div&gt;1. Share directory which will be automaunted as home.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;If it's on ZFS:&lt;/div&gt;&lt;div&gt;#zfs set sharenfs=on rpool/export/home&lt;/div&gt;&lt;div&gt;#sharemgm show -vp&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;If ufs:&lt;/div&gt;&lt;div&gt;#echo "share -F nfs -d \"Home Directories\" /export/home" &gt;&gt; /etc/dfs/dfstab &lt;/div&gt;&lt;div&gt;#shareall&lt;/div&gt;&lt;div&gt;#exportfs&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Make rpc authorize you:&lt;/div&gt;&lt;div&gt;#svccfg -s svc:/network/rpc/bind&lt;/div&gt;&lt;div&gt;#svc:/network/rpc/bind&gt; setprop config/local_only = false&lt;/div&gt;&lt;div&gt;#svc:/network/rpc/bind&gt; quit&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#svcadm refresh svc:/network/rpc/bind&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;cat &gt;&gt;/etc/hosts.allow&lt;/div&gt;&lt;div&gt;rpcbind:      ALL&lt;/div&gt;&lt;div&gt;^D&lt;/div&gt;&lt;div&gt;chmod 644 /etc/hosts.allow&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Create user and their HOMES :&lt;/div&gt;&lt;div&gt;useradd -u 2000 -m -d /export/home/user -s /bin/bash user&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ON CLIENT&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. echo "* gandalf:/export/home/&amp;amp;" &gt;&gt; /etc/auto_home&lt;/div&gt;&lt;div&gt;2.svcadm disable autofs;svcadm enable autofs&lt;/div&gt;&lt;div&gt;3. Create user the same user here if you are'nt using LDAP. &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; Testing configuration:&lt;/div&gt;&lt;div&gt;login as "user" on client machine&lt;/div&gt;&lt;div&gt;ls /net/server&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.c0t0d0s0.org/archives/4120-Less-known-Solaris-Features-exporthome-home-autofs.html"&gt;Additional reading.&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-9191624109254633739?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/9191624109254633739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=9191624109254633739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9191624109254633739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9191624109254633739'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/12/autofs-and-auto-mounted-homes.html' title='Autofs and auto mounted homes.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2095876504564090518</id><published>2009-12-02T14:47:00.002+02:00</published><updated>2009-12-02T14:51:46.022+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bug'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><title type='text'>Cacaoadm and SUN Directory Server 6.3.1</title><content type='html'>After upgrading to DS 6.3.1 on Solaris 10:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cacaoadm status&lt;/span&gt;&lt;br /&gt;Cannot find property: [cacao.embedded].&lt;br /&gt;&lt;br /&gt;This can be fixed by addition of &lt;span style="font-weight: bold;"&gt;"use.j2me=false"&lt;/span&gt;  option to&lt;br /&gt;/etc/cacao/instances/default/private/cacao.properties&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2095876504564090518?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2095876504564090518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2095876504564090518' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2095876504564090518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2095876504564090518'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/12/cacaoadm-and-sun-directory-server-631.html' title='Cacaoadm and SUN Directory Server 6.3.1'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2901454380965821933</id><published>2009-11-19T14:27:00.002+02:00</published><updated>2009-11-19T14:30:48.194+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sun Cluster'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Zones'/><title type='text'>Configuring SMF Service Probes for Containers in Sun Cluster 3.2.</title><content type='html'>Prerequsites:&lt;br /&gt;Program inside a clustered zone must be managed through SMF and be in OFFLINE state.&lt;br /&gt;Script for program must reside inside the zone and return 0 - normal, 100 - service restart needed, 201 - zone restart/switch is needed.&lt;br /&gt;&lt;br /&gt;1. On clustered global zone edit file /opt/SUNWsczone/sczsmf/util/sczsmf_config:&lt;br /&gt;&lt;br /&gt;RS=sczsmf-rs&lt;br /&gt;RG=sczbt-rg&lt;br /&gt;SCZBT_RS=sczbt-rs&lt;br /&gt;ZONE=sczbt-zone-name&lt;br /&gt;SERVICE=smf-service&lt;br /&gt;RECURSIVE=true|false&lt;br /&gt;STATE=true|false&lt;br /&gt;SERVICE_PROBE=sczsmf-service-probe&lt;br /&gt;The meaning and permitted values of the keywords in the sczsmf_config file are as&lt;br /&gt;follows:&lt;br /&gt;RS=sczsmf-rs&lt;br /&gt;  Specifies the name that you are assigning to the zone SMF resource. This must be&lt;br /&gt;  defined.&lt;br /&gt;RG=sczbt-rg&lt;br /&gt;  Specifies the name of the resource group the zone boot resource resides in. This&lt;br /&gt;  must be defined.&lt;br /&gt;SCZBT_RS=sczbt-rs&lt;br /&gt;  Specifies the name of the zone boot resource. You must specify a value for this&lt;br /&gt;  keyword.&lt;br /&gt;ZONE=sczbt-zone-name&lt;br /&gt;  Specifies the zone name. This must be defined.&lt;br /&gt;SERVICE=smf-service&lt;br /&gt;  Specifies the SMF service to enable/disable. This must be defined.&lt;br /&gt;RECURSIVE=true|false&lt;br /&gt;  Specifies true to enable the service recursively or false to just enable the service&lt;br /&gt;  and no dependents. This must be defined.&lt;br /&gt;STATE=true|false&lt;br /&gt;  Specifies true to wait until the service state is reached or false to not wait until&lt;br /&gt;  the service state is reached. This must be defined.&lt;br /&gt;SERVICE_PROBE=sczsmf-service-probe&lt;br /&gt; Specify the script to check the SMF service.&lt;br /&gt;&lt;br /&gt;2. Run&lt;br /&gt;/opt/SUNWsczone/sczsmf/util/sczsmf_register - to register SMF service resource within cluster.&lt;br /&gt;&lt;br /&gt;3. Set failover properties for new resource(it may require to put resource offline):&lt;br /&gt;sudo clresource set -p Failover_enabled=True sczsmf-rs&lt;br /&gt;sudo clresource set -p Failover_mode=SOFT sczsmf-rs&lt;br /&gt;&lt;br /&gt;4.  Enable resource&lt;br /&gt;sudo clresource enable sczsmf-rs&lt;br /&gt;&lt;br /&gt;5. Check status:&lt;br /&gt;sudo clresource status sczsmf-rs&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Usefull comands:&lt;br /&gt;clresourcegroup show&lt;br /&gt;clresource list-prop&lt;br /&gt;&lt;br /&gt;Additional reading:&lt;a href="http://docs.sun.com/app/docs/doc/819-3069/cacjgdbc?a=browse"&gt;&lt;br /&gt;http://docs.sun.com/app/docs/doc/819-3069/cacjgdbc?a=browse&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2901454380965821933?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2901454380965821933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2901454380965821933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2901454380965821933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2901454380965821933'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/11/configuring-smf-service-probes-for.html' title='Configuring SMF Service Probes for Containers in Sun Cluster 3.2.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5000181990637260855</id><published>2009-11-17T10:14:00.004+02:00</published><updated>2009-12-01T12:41:59.029+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>How to find recently added FC disks</title><content type='html'>&lt;ol&gt;&lt;li&gt;Save output &lt;span style="font-weight: bold;"&gt;format&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;zpool status&lt;/span&gt; commands in order to have list of disks you already had.&lt;/li&gt;&lt;li&gt;cfgadm -al -o show_SCSI_LUN&lt;/li&gt;&lt;li&gt;devfsadm&lt;/li&gt;&lt;li&gt;format - you can observe all disks now&lt;/li&gt;&lt;/ol&gt;Useful comands:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;stmsboot -L&lt;/span&gt; - mapping between multipathed and physical device&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;luxadm -e dump_map /dev/fc/fp0&lt;/span&gt; - shows devices attached to particular FC HBA&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mpathadm list mpath-support&lt;/span&gt; -lists drivers&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mpathadm show mpath-support libmpscsi_vhci.so&lt;/span&gt; - shows supported features of particular driver&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mpathadm list lu - &lt;/span&gt;shows mpath devices status&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mpathadm show lu /dev/rdsk/c4t60060E801526AE00000126AE00000181d0s2&lt;/span&gt; - particular mpath device configuration&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5000181990637260855?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5000181990637260855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5000181990637260855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5000181990637260855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5000181990637260855'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/11/how-to-find-recently-added-fc-disks.html' title='How to find recently added FC disks'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-6258600664418770823</id><published>2009-11-09T14:16:00.000+02:00</published><updated>2009-11-09T14:17:25.997+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Generate sshd server keys</title><content type='html'>/lib/svc/method/sshd -c&lt;br /&gt;svcadm refresh ssh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-6258600664418770823?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/6258600664418770823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=6258600664418770823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6258600664418770823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6258600664418770823'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/11/generate-sshd-server-keys.html' title='Generate sshd server keys'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2656565698376258160</id><published>2009-11-03T14:17:00.001+02:00</published><updated>2009-11-03T14:18:49.773+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sun Cluster'/><category scheme='http://www.blogger.com/atom/ns#' term='clustering'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Turning on Sun Cluster checks debug</title><content type='html'>- set debug to ALL in/opt/SUNWsczone/sczbt/etc/config&lt;br /&gt;- Added daemon.debug in the syslog so it writes to /var/adm/messsages&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2656565698376258160?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2656565698376258160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2656565698376258160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2656565698376258160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2656565698376258160'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/11/turning-on-sun-cluster-checks-debug.html' title='Turning on Sun Cluster checks debug'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2155173377111687073</id><published>2009-11-02T13:38:00.000+02:00</published><updated>2009-11-02T13:41:58.591+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Resetting root password on Solaris</title><content type='html'>The subject can be easily performed using Solaris install CD/DVD. Just boot from it and chose "command shell", then:&lt;br /&gt;#chroot /a /sbin/sh&lt;br /&gt;#passwd root&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2155173377111687073?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2155173377111687073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2155173377111687073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2155173377111687073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2155173377111687073'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/11/resetting-root-password-on-solaris.html' title='Resetting root password on Solaris'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4555639091727239271</id><published>2009-10-29T11:44:00.000+02:00</published><updated>2009-10-29T11:46:12.721+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='upgrade'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Simple upgrade with Liveupgrade</title><content type='html'>lucreate -c "old" -m /:/dev/dsk/c0d0s0:ufs -n "u8"&lt;br /&gt;lustatus&lt;br /&gt;luupgrade -u -n u8 -s /cdrom/&lt;br /&gt;luactivate u8&lt;br /&gt;use init 6 or shutdown to reboot server&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4555639091727239271?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4555639091727239271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4555639091727239271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4555639091727239271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4555639091727239271'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/10/simple-upgrade-with-liveupgrade.html' title='Simple upgrade with Liveupgrade'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7261628265424741516</id><published>2009-10-14T14:30:00.005+02:00</published><updated>2009-10-14T14:34:19.915+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Persistent static routes</title><content type='html'>&lt;p&gt;&lt;span style="font-size:100%;"&gt;# route -p add 192.168.15.0 192.168.15.1&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;The static routes will be stored in file /etc/inet/static_routes.&lt;/span&gt;&lt;/p&gt;&lt;h2 style="font-weight: normal;"&gt;&lt;span style="font-size:78%;"&gt;Appeared in Solaris 10 update 3&lt;/span&gt;&lt;/h2&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7261628265424741516?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7261628265424741516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7261628265424741516' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7261628265424741516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7261628265424741516'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/10/persistent-static-routes.html' title='Persistent static routes'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7998522261355589630</id><published>2009-10-08T10:07:00.003+02:00</published><updated>2009-10-08T11:38:38.332+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Resource Management'/><title type='text'>Solaris extended accounting tips</title><content type='html'>&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;Accounting types available: Task, Process, Flow (IPQoS), and Net (Crossbow). Each accounting type has a datafile to store records in which is user defined. A variety of different resources can be tracked for each accounting type, which can either individually selected or specified as either "extended" or "basic", which are groupings of resources.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;ul&gt;&lt;p style="margin-bottom: 0in;"&gt;Activating:&lt;/p&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;  Become superuser or assume an  equivalent role.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;  Activate extended accounting for  processes.   &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;# acctadm -e extended -f  /var/adm/exacct/proc process&lt;/b&gt;&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;  Activate extended accounting for  tasks.   &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;# acctadm -e extended,mstate -f  /var/adm/exacct/task task &lt;/b&gt;  &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;  Activate extended accounting for  flows.   &lt;/p&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;# acctadm -e extended -f  /var/adm/exacct/flow flow &lt;/b&gt;  &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in; font-weight: normal;" align="left"&gt;Activating  on persistent basis:&lt;/p&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;# ln -s  /etc/init.d/acctadm /etc/rc2.d/Snacctadm &lt;/b&gt;  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;# ln -s  /etc/init.d/acctadm /etc/rc2.d/Knacctadm &lt;/b&gt;  &lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;br /&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in; font-weight: normal;" align="left"&gt;Display  Extended Accounting Status&lt;/p&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;$acctadm&lt;/b&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in; font-weight: normal;" align="left"&gt;View  Available Accounting Resources&lt;/p&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;$acctadm -r&lt;/b&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in; font-weight: normal;" align="left"&gt;Turn  off process accounting.   &lt;/p&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;# acctadm -x process &lt;/b&gt;  &lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;Turn off task  accounting. &lt;/b&gt;  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;# acctadm -x task &lt;/b&gt;  &lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;Turn off flow  accounting. &lt;/b&gt;  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;# acctadm -x flow &lt;/b&gt;  &lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt; &lt;/b&gt;&lt;span style="font-weight: normal;"&gt;Commands which use it's databases:&lt;/span&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;lastcomm&lt;/b&gt;&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;acctcom&lt;/b&gt;&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;i&gt;&lt;b&gt;exdump?&lt;/b&gt;&lt;/i&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;If you really want to take advantage of accounting data you'll need to build your own custom tools using either the Exacct PERL module (written by Sun, found in CPAN, and part of the Solaris PERL distribution) or the libexacct C library.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;b&gt;Good article:&lt;/b&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;" align="left"&gt;&lt;a href="http://www.cuddletech.com/blog/pivot/entry.php?id=1017"&gt;http://www.cuddletech.com/blog/pivot/entry.php?id=1017&lt;/a&gt;&lt;/p&gt; &lt;div style="border: 1px solid rgb(0, 67, 179) ! important; margin: 0px ! important; padding: 1px ! important; display: none ! important; visibility: hidden ! important; position: absolute ! important; height: auto ! important; width: auto; z-index: 1410065406 ! important; -moz-border-radius-topleft: 3px ! important; -moz-border-radius-topright: 3px ! important; -moz-border-radius-bottomright: 3px ! important; -moz-border-radius-bottomleft: 3px ! important; vertical-align: middle ! important; color: rgb(0, 0, 0) ! important; background-color: rgb(168, 236, 255) ! important; font-family: Arial ! important; font-size: 12px ! important; line-height: normal ! important; font-weight: normal ! important; left: 296px ! important; top: 1263px ! important;" id="gmBFhv"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7998522261355589630?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7998522261355589630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7998522261355589630' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7998522261355589630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7998522261355589630'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/10/solaris-extended-accounting-tips.html' title='Solaris extended accounting tips'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-6661553842272034140</id><published>2009-10-07T11:19:00.004+02:00</published><updated>2009-10-08T13:54:29.922+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Resource Management'/><title type='text'>Command list for work with projects/tasks in Solaris</title><content type='html'>&lt;span style="font-weight: bold;"&gt;ps -o user,pid,uid,projid,taskid,comm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;id -p&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pgrep -J projidlist&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pkill -J projidlist&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pgrep -T taskidlist&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pkill -T taskidlist&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;prstat -J&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;prstat -T&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projects -l &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projadd -U mark -p 4113 booksite&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projdel booksite&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projmod -n&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projects username&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;newtask -v -p booksite&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;newtask -v -p booksite -c 8100&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projmod -a -K task.max-lwps myproject&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projmod -a -K "task.max-lwps=(priv,100,deny)" myproject&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projmod -a -K "task.max-lwps=(priv,1000,signal=KILL)" myproject&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projmod -r -K "task.max-lwps=(priv,100,deny)" myproject&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projmod -s -K "task.max-lwps=(priv,100,none),(priv,120,deny)" myproject&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;projmod -s -K task.max-lwps myproject&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use the prctl command to make runtime interrogations of and modifications to the resource&lt;br /&gt;controls associated with an active process, task, or project on the system. See the prctl(1) man&lt;br /&gt;page for more information.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# prctl $$  &lt;/span&gt;- displays all resource control values for given process.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# prctl -n process.max-file-descriptor $$&lt;/span&gt; - more concrete&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# prctl -n project.max-lwps -t privileged -v 3 -e deny -i project x-files -  &lt;/span&gt;Add a new privileged value for project.max-lwps that limits the number of LWPs to three.&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;# prctl -n project.max-lwps -i project x-files &lt;/span&gt;- verifies previous.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# prctl -n process.max-file-descriptor -r -v 128 $$ -  &lt;/span&gt;change the lowest value of the process.max-file-descriptor resource control.&lt;br /&gt;&lt;br /&gt;Use the rctladm command to make runtime interrogations of and modifications to the global&lt;br /&gt;state of the resource controls facility. See the rctladm(1M) man page for more information.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# rctladm -e syslog process.max-file-descriptor&lt;/span&gt; -  enable the global syslog attribute of process.max-file-descriptor&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# rctladm&lt;/span&gt; -  displays the global flags, including the global type flag, for each resource control.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# ipcs&lt;/span&gt; - displays information regarding open IPCS&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# ipcs&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;-J&lt;/span&gt; - displays information regarding open IPCS (Project oriented)&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Capacity Warnings.&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;# prctl -n task.max-lwps -v 40 -t privileged -d all ‘pgrep httpd‘&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;# rctladm -e syslog task.max-lwps&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Observe whether the workload trips the resource control:&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  If it does, you will see /var/adm/messages such as:&lt;br /&gt;Jan 8 10:15:15 testmachine unix: [ID 859581 kern.notice]&lt;br /&gt;NOTICE: privileged rctl task.max-lwps exceeded by task 12&lt;/li&gt;&lt;/ol&gt;&lt;div style="text-align: center;"&gt;Rlimits and resource controls.&lt;br /&gt;&lt;div style="text-align: left;"&gt;UNIX systems have traditionally provided a resource limit facility (rlimit,plimit,ulimit).&lt;br /&gt;The resource controls facility provides compatibility interfaces for the resource limits facility.&lt;br /&gt;Existing applications that use resource limits continue to run unchanged.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-6661553842272034140?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/6661553842272034140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=6661553842272034140' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6661553842272034140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6661553842272034140'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/10/command-list-for-work-with.html' title='Command list for work with projects/tasks in Solaris'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2483123617234877741</id><published>2009-10-07T09:35:00.003+02:00</published><updated>2009-10-07T10:31:55.471+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Resource Management'/><title type='text'>Solaris Resource Pools (moving cpus)</title><content type='html'>Assume you have pset "test", then you can create pool.txt which contains:&lt;br /&gt;&lt;blockquote&gt;#modify pset test-pset ( uint pset.min = 8; uint pset.max = 16 )&lt;br /&gt;#transfer to pset test-pset ( cpu 64; cpu 65; cpu 66; cpu 67; cpu 68; cpu 69; cpu 70; cpu 71)&lt;br /&gt;transfer to pset pset_default ( cpu 48; cpu 49; cpu 50; cpu 51; cpu 52; cpu 53; cpu 54; cpu 55 )&lt;br /&gt;modify pset test-pset ( uint pset.min = 8; uint pset.max = 8 )&lt;br /&gt;##&lt;/blockquote&gt;Then:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$sudo poolcfg -f pool.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$sudo pooladm -c&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2483123617234877741?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2483123617234877741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2483123617234877741' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2483123617234877741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2483123617234877741'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/10/solaris-resource-pools-moving-cpus.html' title='Solaris Resource Pools (moving cpus)'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5920508689175842955</id><published>2009-10-07T09:28:00.006+02:00</published><updated>2009-10-07T10:42:00.044+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SMF'/><category scheme='http://www.blogger.com/atom/ns#' term='Scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Sybase SMF scripts</title><content type='html'>&lt;b&gt;/etc/sybase_config&lt;/b&gt; contains:&lt;br /&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"&gt;&lt;i&gt;  # Sybase config&lt;/i&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"&gt; &lt;i&gt;#run_user;sybase_home;config;db_user;db_pass&lt;/i&gt;&lt;br /&gt;&lt;i&gt;syb_run_user;/sybserver/sybase_instance_home;instance_name;none;none&lt;/i&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;div&gt; &lt;b&gt;&lt;br /&gt;Sybase_to_smf.sh&lt;/b&gt; is for creation of SMF manifests:&lt;br /&gt;&lt;/div&gt; &lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"&gt;&lt;div&gt; &lt;i&gt;#!/sbin/sh &lt;/i&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;i&gt;SYBASE_CONFIG=./sybase_config&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;if [ ! -s $SYBASE_CONFIG ] ; then&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        echo "The Sybase configuration-file $SYBASE_CONFIG does not exist or is empty!"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;fi&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;for DATASERVER_ENTRY in ` grep -v "^#" $SYBASE_CONFIG ` ; do&lt;/i&gt;&lt;br /&gt;&lt;i&gt;  RUN_USER=`echo $DATASERVER_ENTRY | cut -f1 -d\;`&lt;/i&gt;&lt;br /&gt;&lt;i&gt;  SERVER_HOME=`echo $DATASERVER_ENTRY | cut -f2 -d\;`&lt;/i&gt;&lt;br /&gt;&lt;i&gt;  CONFIG_NAME=`echo $DATASERVER_ENTRY | cut -f3 -d\;`&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;cat&amp;lt;&amp;lt;EOF &amp;gt;$CONFIG_NAME.xml&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;?xml version='1.0'?&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;service_bundle type='manifest' name='export'&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;service name='database/sybase' type='service' version='0'&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;dependency name='network-service' grouping='require_all' restart_on='none' type='service'&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;  &amp;lt;service_fmri value='svc:/network/service'/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/dependency&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;exec_method name='start' type='method' exec='/lib/svc/method/sybase start' timeout_seconds='600'&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;method_context/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/exec_method&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;exec_method name='stop' type='method' exec='/lib/svc/method/sybase stop' timeout_seconds='3'&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;method_context/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/exec_method&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;instance name='$CONFIG_NAME' enabled='false'&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;property_group name='vars' type='framework'&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;propval name='run_user' type='astring' value='$RUN_USER'/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;propval name='server_home' type='astring' value='$SERVER_HOME'/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;propval name='config_name' type='astring' value='RUN_$CONFIG_NAME'/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;propval name='server_name' type='astring' value='$CONFIG_NAME'/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/property_group&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/instance&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;stability value='Unstable'/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;template&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;common_name&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;loctext xml:lang='C'&amp;gt;layered network services&amp;lt;/loctext&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/common_name&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;description&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;loctext xml:lang='C'&amp;gt;Network infrastructure services&lt;/i&gt;&lt;br /&gt;&lt;i&gt;    requiring name service availability.&amp;lt;/loctext&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/description&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;documentation&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;manpage title='ifconfig' section='1M' manpath='/usr/share/man'/&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/documentation&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/template&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt; &amp;lt;/service&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;/service_bundle&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;EOF&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;done&lt;/i&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;This one put into /lib/svc/method:&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"&gt; &lt;i&gt;#!/sbin/sh -x&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;. /lib/svc/share/smf_include.sh&lt;/i&gt;&lt;br /&gt;&lt;i&gt;getproparg() {&lt;/i&gt;&lt;br /&gt;&lt;i&gt;         val=`svcprop -p $1 $SMF_FMRI`&lt;/i&gt;&lt;br /&gt;&lt;i&gt;         [ -n "$val" ] &amp;amp;&amp;amp; echo $val&lt;/i&gt;&lt;br /&gt;&lt;i&gt;}&lt;/i&gt;&lt;br /&gt;&lt;i&gt;RUN_USER=`getproparg vars/run_user`&lt;/i&gt;&lt;br /&gt;&lt;i&gt;RUN_USER_HOME=`getproparg vars/server_home`&lt;/i&gt;&lt;br /&gt;&lt;i&gt;CONFIG_NAME=`getproparg vars/config_name`&lt;/i&gt;&lt;br /&gt;&lt;i&gt;SERVER_NAME=`getproparg vars/server_name`&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;STARTSERVER=$RUN_USER_HOME/system/ASE-15_0/install/startserver&lt;/i&gt;&lt;br /&gt;&lt;i&gt;STARTSERVER_CONF=$RUN_USER_HOME/cfg/$CONFIG_NAME&lt;/i&gt;&lt;br /&gt;&lt;i&gt;STOPSERVER="pkill -u $RUN_USER"&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;SYBASE_CONFIG=/etc/sybase_config&lt;/i&gt;&lt;br /&gt;&lt;i&gt;if [ ! -s $SYBASE_CONFIG ] ; then&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        echo "The Sybase configuration-file $SYBASE_CONFIG does not exist or is empty!"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;fi&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;for DATASERVER_ENTRY in ` grep -v "^#" $SYBASE_CONFIG ` ; do&lt;/i&gt;&lt;br /&gt;&lt;i&gt;DB_USER=`echo $DATASERVER_ENTRY | cut -f4 -d\;`&lt;/i&gt;&lt;br /&gt;&lt;i&gt;DB_PASS=`echo $DATASERVER_ENTRY | cut -f5 -d\;`&lt;/i&gt;&lt;br /&gt;&lt;i&gt;done&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;case "$1" in&lt;/i&gt;&lt;br /&gt;&lt;i&gt;'start')&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        if [ -x $STARTSERVER ]; then&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                umask 022&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                su -  $RUN_USER -c ".profile; $STARTSERVER -f $STARTSERVER_CONF" 2&amp;gt;&amp;amp;1 &lt;/i&gt;&lt;br /&gt;&lt;i&gt;        else&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                echo "$0: $STARTSERVER does not exist or is not executable."&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        fi&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        ;;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;'restart')&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        if [ -x $STARTSERVER ]; then&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                umask 022&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                                         $STOPSERVER&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                                         su -  $RUN_USER -c ".profile; $STARTSERVER -f $STARTSERVER_CONF" 2&amp;gt;&amp;amp;1 &lt;/i&gt;&lt;br /&gt;&lt;i&gt;        else&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                echo "$0: $STARTSERVER does not exist or is not executable."&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        fi&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        ;;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;'stop')&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                  #su - $RUN_USER -c "isql -S$SERVER_NAME -U$DB_USER -P$DB_PASS&amp;lt;&amp;lt;EOF&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                  #shutdown syb_backup&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                  #go&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                  #shutdown&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                  #go&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                  #EOF"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;                  su - $RUN_USER -c "printf 'shutdown syb_backup\ngo\nshutdown\ngo' |isql -S$SERVER_NAME -U$DB_USER -P$DB_PASS"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        ;;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;*)&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        echo "Usage: $0 { start | stop }"&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        exit 1&lt;/i&gt;&lt;br /&gt;&lt;i&gt;        ;;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;esac&lt;/i&gt;&lt;br /&gt;&lt;i&gt;exit 0&lt;/i&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;#svccfg validate file.xml&lt;br /&gt;#svccfg import file.xml&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;div style="border: 1px solid rgb(0, 67, 179) ! important; margin: 0px ! important; padding: 1px ! important; display: none ! important; visibility: hidden ! important; position: absolute ! important; height: auto ! important; width: auto; z-index: 1410065406 ! important; -moz-border-radius-topleft: 3px ! important; -moz-border-radius-topright: 3px ! important; -moz-border-radius-bottomright: 3px ! important; -moz-border-radius-bottomleft: 3px ! important; vertical-align: middle ! important; color: rgb(0, 0, 0) ! important; background-color: rgb(168, 236, 255) ! important; font-family: Arial ! important; font-size: 12px ! important; line-height: normal ! important; font-weight: normal ! important; left: 508px ! important; top: 254px ! important;" id="gmBFhv"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5920508689175842955?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5920508689175842955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5920508689175842955' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5920508689175842955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5920508689175842955'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/10/sybase-smf-scripts.html' title='Sybase SMF scripts'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2813531051725797924</id><published>2009-10-06T18:28:00.002+02:00</published><updated>2009-10-06T18:29:13.755+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>The fastest way to create long term ssl certificates for SUN  Directory Server 6.3</title><content type='html'>If you've used Sun Directory Server you probably met the problem of self-signed certificates,&lt;br /&gt;solution below will help you to resolve it in the fastest way.&lt;br /&gt;&lt;br /&gt;# pick a new password or you can't run certutil later&lt;br /&gt; &lt;b&gt;$ dsadm set-flags /path/ds1 cert-pwd-prompt=on&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# create a self sign cert valid for 24 months&lt;br /&gt;&lt;b&gt;$ serverroot/dsee6/bin/certutil -d /path/ds1/alias -P slapd- -x -S -n longlife -s cn=&lt;a href="http://ldap.example.com:389/"&gt;ldap.example.com:389&lt;/a&gt;,st=TX,C=US,L=Crawford -t CTu,u,u -v 24&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ serverroot/dsee6/bin/certutil -d /path/ds1/alias -P slapd- -L -n longlife | head -15&lt;/b&gt;&lt;br /&gt;# turn off the password or you'll be prompted everytime the instance starts&lt;br /&gt;&lt;b&gt;$ dsadm set-flags /path/ds1 cert-pwd-prompt=off&lt;br /&gt;&lt;/b&gt;&lt;br /&gt; &lt;div style="border: 1px solid rgb(0, 67, 179) ! important; margin: 0px ! important; padding: 1px ! important; display: none ! important; visibility: hidden ! important; position: absolute ! important; height: auto ! important; width: auto; z-index: 1410065406 ! important; -moz-border-radius-topleft: 3px ! important; -moz-border-radius-topright: 3px ! important; -moz-border-radius-bottomright: 3px ! important; -moz-border-radius-bottomleft: 3px ! important; vertical-align: middle ! important; color: rgb(0, 0, 0) ! important; background-color: rgb(168, 236, 255) ! important; font-family: Arial ! important; font-size: 12px ! important; line-height: normal ! important; font-weight: normal ! important; left: 307px ! important; top: 244px ! important;" id="gmBFhv"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2813531051725797924?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2813531051725797924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2813531051725797924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2813531051725797924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2813531051725797924'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/10/fastest-way-to-create-long-term-ssl.html' title='The fastest way to create long term ssl certificates for SUN  Directory Server 6.3'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7686463766166034110</id><published>2009-09-28T14:14:00.004+02:00</published><updated>2009-09-28T14:22:09.968+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><title type='text'>VLV indexes creation</title><content type='html'>Our target is to decrease number of unindexed queries, you can track them in logs :&lt;br /&gt;"RESULT err=0 tag=101 nentries=1 etime=0 &lt;span style="font-weight: bold;"&gt;notes=U&lt;/span&gt;"&lt;br /&gt;And , of course improve performance .&lt;br /&gt;So!&lt;br /&gt;&lt;br /&gt;1. Change in acls:&lt;br /&gt;(targetattr != "aci")(version 3.0; acl "VLV Request Control"; allow( read, search, compare, proxy ) userdn = "ldap:///anyone";)&lt;br /&gt;&lt;br /&gt;2. ldapmodify -h host -p 389 -a -D "cn=Directory manager" -f file.ldif&lt;br /&gt;&lt;br /&gt;dn: cn=no_netgroup_vlv_index,cn=no,cn=ldbm database,cn=plugins,cn=config&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: vlvSearch&lt;br /&gt;cn: no_netgroup_vlv_index&lt;br /&gt;vlvScope: 1&lt;br /&gt;vlvBase: ou=netgroup,dc=test,dc=com&lt;br /&gt;vlvFilter: (objectclass=nisNetGroup)&lt;br /&gt;aci: (targetattr="*")(version 3.0; acl "VLV for Anonymous"; allow (read,search,compare) userdn="ldap:///anyone";)&lt;br /&gt;&lt;br /&gt;dn: cn=no_group_vlv_index,cn=no,cn=ldbm database,cn=plugins,cn=config&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: vlvSearch&lt;br /&gt;cn: no_group_vlv_index&lt;br /&gt;vlvScope: 1&lt;br /&gt;vlvBase: ou=group,dc=test,dc=com&lt;br /&gt;vlvFilter: (objectClass=posixGroup)&lt;br /&gt;aci: (targetattr="*")(version 3.0; acl "VLV for Anonymous"; allow (read,search,compare) userdn="ldap:///anyone";)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;dn: cn=no_account_vlv_index,cn=no,cn=ldbm database,cn=plugins,cn=config&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: vlvSearch&lt;br /&gt;cn: no_account_vlv_index&lt;br /&gt;vlvScope: subtree&lt;br /&gt;vlvBase: ou=people,dc=test,dc=com&lt;br /&gt;vlvFilter: (objectClass=posixAccount)&lt;br /&gt;aci: (targetattr="*")(version 3.0; acl "VLV for Anonymous"; allow (read,search,compare) userdn="ldap:///anyone";)&lt;br /&gt;&lt;br /&gt;dn: cn=test.com.account,cn=no_account_vlv_index,cn=no,cn=ldbm database,cn=plugins,cn=config&lt;br /&gt;objectClass:top&lt;br /&gt;objectClass: vlvIndex&lt;br /&gt;cn: test.com.account&lt;br /&gt;vlvSort: cn uid&lt;br /&gt;&lt;br /&gt;dn: cn=test.com.netgroup,cn=no_netgroup_vlv_index,cn=no,cn=ldbm database,cn=plugins,cn=config&lt;br /&gt;objectClass:top&lt;br /&gt;objectClass: vlvIndex&lt;br /&gt;cn: test.com.netgroup&lt;br /&gt;vlvSort: cn uid&lt;br /&gt;&lt;br /&gt;dn: cn=test.com.group,cn=no_group_vlv_index,cn=no,cn=ldbm database,cn=plugins,cn=config&lt;br /&gt;objectClass:top&lt;br /&gt;objectClass: vlvIndex&lt;br /&gt;cn: test.com.group&lt;br /&gt;vlvSort: cn uid&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7686463766166034110?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7686463766166034110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7686463766166034110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7686463766166034110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7686463766166034110'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/09/vlv-indexes-creation.html' title='VLV indexes creation'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5973628177246000364</id><published>2009-09-12T19:44:00.003+02:00</published><updated>2009-09-12T19:47:36.294+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Zones'/><title type='text'>Moving solaris zones between different hosts</title><content type='html'>Suppose &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;you&lt;/span&gt; have a Solaris &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;zone&lt;/span&gt; (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;ZONE&lt;/span&gt;) &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;on&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;one&lt;/span&gt; host and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;want&lt;/span&gt; to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;move&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;it&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;on&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;other&lt;/span&gt; global &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;zone&lt;/span&gt;.&lt;br /&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;Then&lt;/span&gt; do &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;following&lt;/span&gt;:&lt;br /&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;On&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;first&lt;/span&gt; server:&lt;br /&gt;1. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;zoneadm&lt;/span&gt; -z  &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;ZONE&lt;/span&gt; halt&lt;br /&gt;2. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;zoneadm&lt;/span&gt; -z &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;ZONE&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;detach&lt;/span&gt;&lt;br /&gt;3. cd $&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;ZONEHOME&lt;/span&gt;&lt;br /&gt;4. tar -cf ../zone.tar .&lt;br /&gt;5. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;scp&lt;/span&gt; ../zone.tar user@server2:/$ZONEPATH&lt;p&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;On&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;the&lt;/span&gt; second server:&lt;/p&gt;&lt;p&gt;1. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;mkdir&lt;/span&gt; $&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;ZONEHOME&lt;/span&gt;&lt;br /&gt;2. cd $&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;ZONEHOME&lt;/span&gt;&lt;br /&gt;3. tar -&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;xf&lt;/span&gt; ../zone.tar .&lt;br /&gt;4. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;zonecfg&lt;/span&gt; -z &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_29"&gt;ZONE&lt;/span&gt;&lt;br /&gt;&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_31"&gt;create&lt;/span&gt; -a $&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_32"&gt;ZONEHOME&lt;/span&gt;&lt;br /&gt;&gt;exit&lt;br /&gt;5. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_34"&gt;zoneadm&lt;/span&gt; -z &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_35"&gt;ZONE&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_36"&gt;attach&lt;/span&gt;&lt;br /&gt;6. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_37"&gt;zoneadm&lt;/span&gt; -z &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_38"&gt;ZONE&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_39"&gt;boot&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5973628177246000364?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5973628177246000364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5973628177246000364' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5973628177246000364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5973628177246000364'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/09/moving-solaris-zones-between-different.html' title='Moving solaris zones between different hosts'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-8837526322363561858</id><published>2009-07-30T09:04:00.000+02:00</published><updated>2009-07-30T09:05:42.849+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Bookmarks'/><title type='text'>Using Solaris JumpStart With the Solaris 10 OS for x86/x64 Platforms</title><content type='html'>http://www.sun.com/bigadmin/features/articles/jumpstart_x86_x64.jsp&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-8837526322363561858?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/8837526322363561858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=8837526322363561858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8837526322363561858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8837526322363561858'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/07/using-solaris-jumpstart-with-solaris-10.html' title='Using Solaris JumpStart With the Solaris 10 OS for x86/x64 Platforms'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5816904925983637051</id><published>2009-07-02T13:08:00.002+02:00</published><updated>2009-07-02T13:09:47.777+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Ssh and nscd</title><content type='html'>Strange behavior of sshd on Solaris 10:&lt;br /&gt;&lt;br /&gt;If you use ldap as name service on Solaris 10 then you have use nscd daemon, ssh won't permit you log into without it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5816904925983637051?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5816904925983637051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5816904925983637051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5816904925983637051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5816904925983637051'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/07/ssh-and-nscd.html' title='Ssh and nscd'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-6865279324307996920</id><published>2009-06-30T10:02:00.004+02:00</published><updated>2009-06-30T11:26:07.821+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>How to examine content of certificates database</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;/usr/sfw/bin/certutil -L -d /var/ldap/  - lists certificates in Solaris ldap client  database&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-java"&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;certutil -L -d /var/ldap/ -n certname -shows information about a certificate&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-6865279324307996920?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/6865279324307996920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=6865279324307996920' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6865279324307996920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6865279324307996920'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/how-to-examine-content-of-certificates.html' title='How to examine content of certificates database'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4413641669078893842</id><published>2009-06-29T14:21:00.004+02:00</published><updated>2009-06-29T14:32:36.281+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Sun Directory Server backup scripts</title><content type='html'>Sun Directory Server has quite good tools for backups. But if you want them to perform automaticaly you will have to create some cron scripts:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$cat backup.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#!/usr/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;DSADM=/opt/SUNWdsee/ds6/bin/dsadm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;INSTANCE_NAME=instancename&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;INSTANCE_HOME=/var/spool/ldap_instances&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;INSTANCE_PATH=$INSTANCE_HOME/$INSTANCE_NAME&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;BACKUP_TIMESTAMP=`/usr/bin/date '+%H:%M:%S_%d:%m:%y'`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;BACKUP_DIR=/var/backup/$INSTANCE_NAME/$BACKUP_TIMESTAMP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;BACKUP_DIR_BINARY_DATA=/var/backup/$INSTANCE_NAME/$BACKUP_TIMESTAMP/binary&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mkdir $BACKUP_DIR&amp;amp;&amp;amp;echo "*BACKUP DIRECTORY CREATED"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$DSADM stop $INSTANCE_PATH&amp;amp;&amp;amp;echo "*LDAP instance $INSTANCE_NAME - stopped"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$DSADM backup $INSTANCE_PATH $BACKUP_DIR_BINARY_DATA 2&gt;&amp;amp;1 &gt;/dev/null&amp;amp;&amp;amp;echo "*Binary data - backuped"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp -r $INSTANCE_PATH/config $BACKUP_DIR&amp;amp;&amp;amp;echo "*  Configuration data 1/2 copied"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp -r $INSTANCE_PATH/alias $BACKUP_DIR/config&amp;amp;&amp;amp;echo "*  Configuration data 2/2 copied"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$DSADM start $INSTANCE_PATH&amp;amp;&amp;amp;echo "*LDAP instance $INSTANCE_NAME - started"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;echo "Saved data is under $BACKUP_DIR"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$cat restore.sh&lt;/span&gt;(don't put into crontab :)):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#!/usr/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;DSADM=/opt/SUNWdsee/ds6/bin/dsadm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SOURCE=$1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;TARGET=$2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$DSADM stop $TARGET&amp;amp;&amp;amp; echo "Instance $TARGET stopped"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp -r $SOURCE/config/alias/ $TARGET/config/&amp;amp;&amp;amp;echo "Config Data 1/2 restored"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cp -r $SOURCE/config/ $TARGET&amp;amp;&amp;amp; echo "Config Data 2/2 restored"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$DSADM restore $TARGET $SOURCE/binary/ &amp;amp;&amp;amp; echo "Binary data restored"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$DSADM start $TARGET&amp;amp;&amp;amp; echo "Instance $TARGET started"&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4413641669078893842?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4413641669078893842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4413641669078893842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4413641669078893842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4413641669078893842'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/sun-directory-server-backup-scripts.html' title='Sun Directory Server backup scripts'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4732340779606754778</id><published>2009-06-23T14:54:00.001+02:00</published><updated>2009-06-23T14:56:45.599+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Solaris native LDAP client(Password policies)</title><content type='html'>1. Password policies in Sun Directory Server are applied automaticaly (Default global password policy ) &lt;br /&gt;2. It's easy to create custom policies and apply them to different ldap trees(passwordpolicysubentry: cn=PolicyName,dc=test,dc=com)&lt;br /&gt;3. In other words passwords policies works fine through LDAP, but user will see onle one reason of declining his password operation - "permission denied".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4732340779606754778?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4732340779606754778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4732340779606754778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4732340779606754778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4732340779606754778'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/solaris-native-ldap-clientpassword.html' title='Solaris native LDAP client(Password policies)'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4192955191937281705</id><published>2009-06-23T14:49:00.003+02:00</published><updated>2009-06-23T14:57:43.033+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Solaris native LDAP client(using netgroups)</title><content type='html'>If you want to define list of users and groups which are permited to use your exact host you need "netgroup" feature.&lt;br /&gt;&lt;br /&gt;To use it in Solaris 10 it is necessary to:&lt;br /&gt;1. Use "compat" in /etc/nsswitch.conf &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#passwd:     files ldap &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#group:      files ldap &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;passwd:         compat &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;passwd_compat:  ldap &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;group:          compat &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;group_compat:   ldap &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;2. Have installed proper pam modules (out of box on Solaris 10) and proper pam.conf &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Authentication management &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# login service (explicit because of pam_dial_auth) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;login   auth requisite        pam_authtok_get.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;login   auth required         pam_dhkeys.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;login   auth required         pam_unix_cred.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;login   auth required         pam_dial_auth.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;login   auth binding          pam_unix_auth.so.1 server_policy &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;login   auth required         pam_ldap.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# rlogin service (explicit because of pam_rhost_auth) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# rlogin  auth sufficient       pam_rhosts_auth.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rlogin  auth requisite        pam_authtok_get.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rlogin  auth required         pam_dhkeys.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rlogin  auth required         pam_unix_cred.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rlogin  auth binding          pam_unix_auth.so.1 server_policy &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rlogin  auth required         pam_ldap.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# rsh service (explicit because of pam_rhost_auth, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# and pam_unix_auth for meaningful pam_setcred) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# rsh     auth sufficient       pam_rhosts_auth.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rsh     auth required         pam_unix_cred.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rsh     auth binding          pam_unix_auth.so.1 server_policy &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rsh     auth required         pam_ldap.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# PPP service (explicit because of pam_dial_auth) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ppp     auth requisite        pam_authtok_get.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ppp     auth required         pam_dhkeys.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ppp     auth required         pam_dial_auth.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ppp     auth binding          pam_unix_auth.so.1 server_policy &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ppp     auth required         pam_ldap.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Default definitions for Authentication management &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Used when service name is not explicitly mentioned for authentication &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   auth requisite        pam_authtok_get.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   auth required         pam_dhkeys.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   auth required         pam_unix_cred.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   auth binding          pam_unix_auth.so.1 server_policy &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   auth required         pam_ldap.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# passwd command (explicit because of a different authentication module) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;passwd  auth binding          pam_passwd_auth.so.1 server_policy &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;passwd  auth required         pam_ldap.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# cron service (explicit because of non-usage of pam_roles.so.1) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cron    account required      pam_unix_account.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Default definition for Account management &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Used when service name is not explicitly mentioned for account management &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   account requisite     pam_roles.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   account binding       pam_unix_account.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   account required      pam_ldap.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Default definition for Session management &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Used when service name is not explicitly mentioned for session management &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   session required      pam_unix_session.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Default definition for  Password management &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Used when service name is not explicitly mentioned for password management &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   password required     pam_dhkeys.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   password requisite    pam_authtok_get.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   password requisite    pam_authtok_check.so.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;other   password required     pam_authtok_store.so.1 server_policy &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# Support for Kerberos V5 authentication and example configurations can &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# be found in the pam_krb5(5) man page under the "EXAMPLES" section. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;# &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Proper content in LDAP&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ldapaddent -a simple -D "cn=Directory Manager"  -f /etc/netgroup netgroup &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. You have to attach groupname to the end of your passwd and shadow files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Echo "+@groupname:x:::::"  &gt;&gt;/etc/passwd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pwconv&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Test if your netgroups and users works properly:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;getent passwd &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;getent shadow &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;br /&gt;6. You will not be able to use "compat" if havn't defined groups, if don't need them use simple "ldap" declaration in nsswitch.conf!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4192955191937281705?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4192955191937281705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4192955191937281705' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4192955191937281705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4192955191937281705'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/solaris-native-clientusing-netgroups.html' title='Solaris native LDAP client(using netgroups)'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7514217960804371064</id><published>2009-06-17T14:41:00.000+02:00</published><updated>2009-06-17T14:42:21.448+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='book'/><title type='text'>Less known Solaris features</title><content type='html'>A great &lt;a href="http://www.c0t0d0s0.org/lksfbook/lksfbook_13062009.pdf"&gt;book&lt;/a&gt; about less known Solaris features&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7514217960804371064?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7514217960804371064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7514217960804371064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7514217960804371064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7514217960804371064'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/less-known-solaris-features.html' title='Less known Solaris features'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-8019867174355431521</id><published>2009-06-17T13:58:00.002+02:00</published><updated>2009-06-17T14:01:51.783+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Some tips using ssl with Sun Directory Server 6.3.1</title><content type='html'>To make native ldap client using ssl with directory server perform following steps:&lt;br /&gt;&lt;br /&gt;1. On directory server create/add own  selfsigned/CAsigned certificates.&lt;br /&gt;Don't use default ones(which are created during install), they are created with not FQDN.&lt;br /&gt;&lt;br /&gt;2. Configure directory server(s) use them by default.&lt;br /&gt;&lt;br /&gt;3. Export certificates in "der" format from each node you plan connect to(name them equal to domain names of servers):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/opt/SUNWdsee/ds6/bin/dsadm show-cert -F der -o CertName ldap_instance_name/logs/access "CertName"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Copy exported certificates to one place where you will import them into Solaris ldapclient's certificate database (in our case it's "cert_database").&lt;br /&gt;&lt;br /&gt;5. Create certificate database:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/usr/sfw/bin/certutil -N -d ./cert_database&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Import certificate(s):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/usr/sfw/bin/certutil -A -i ./CertName -n CertName -t CT -d ./cert_database&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. Distribute this database among all Solaris hosts which will use ldap, put it at /var/ldap directory.&lt;br /&gt;&lt;br /&gt;8. Use ldapclient init ..... on each host.&lt;br /&gt;&lt;br /&gt;9. Check everything works fine(on server):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;tail -f ldap_instance_name/logs/access&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That's all!&lt;br /&gt;&lt;br /&gt;P.S: If you want secure communication in Directory Server replications, exchange certificates among each node also!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-8019867174355431521?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/8019867174355431521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=8019867174355431521' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8019867174355431521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8019867174355431521'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/some-tips-using-ssl-with-sun-directory.html' title='Some tips using ssl with Sun Directory Server 6.3.1'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-3711033930968672845</id><published>2009-06-16T13:38:00.002+02:00</published><updated>2009-06-16T13:38:33.923+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Webconsole on all interfaces</title><content type='html'>Of cource, it's not a good idea to do it on production(for security reasons ;)),&lt;br /&gt;but for testing purposes&lt;br /&gt;#svccfg -s svc:/system/webconsole setprop options/tcp_listen = true&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-3711033930968672845?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/3711033930968672845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=3711033930968672845' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3711033930968672845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3711033930968672845'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/webconsole-on-all-interfaces.html' title='Webconsole on all interfaces'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-8269555911642052895</id><published>2009-06-11T11:00:00.002+02:00</published><updated>2009-06-12T13:24:23.519+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Export of rbac databases to ldap</title><content type='html'>Beter use&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;#/usr/sadm/bin/smattrpop -c -f -v -s file:/servername -t ldap:/servername/dc=example,dc=com all&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to export RBAC files to LDAP server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-8269555911642052895?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/8269555911642052895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=8269555911642052895' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8269555911642052895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8269555911642052895'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/export-of-rbac-databases-to-ldap.html' title='Export of rbac databases to ldap'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-676088931261936988</id><published>2009-06-05T10:13:00.002+02:00</published><updated>2009-06-05T10:14:13.861+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Importing Projects database to LDAP</title><content type='html'>&lt;h4 id="title-ID0E2SAG" class="docSection2Title"&gt;&lt;tt&gt;projects&lt;/tt&gt; Database&lt;/h4&gt; &lt;p class="docText"&gt;The default projects defined in &lt;tt&gt;/etc/project&lt;/tt&gt; can be expressed in LDIF like this:&lt;/p&gt; &lt;div class="docText"&gt;&lt;pre&gt;dn: solarisprojectname=system,ou=projects,dc=example,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: solarisproject&lt;br /&gt;SolarisProjectID: 0&lt;br /&gt;SolarisProjectName: system&lt;br /&gt;&lt;br /&gt;dn: solarisprojectname=user.root,ou=projects,dc=example,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: solarisproject&lt;br /&gt;SolarisProjectID: 1&lt;br /&gt;SolarisProjectName: user.root&lt;br /&gt;&lt;br /&gt;dn: solarisprojectname=noproject,ou=projects,dc=example,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: solarisproject&lt;br /&gt;SolarisProjectID: 2&lt;br /&gt;SolarisProjectName: noproject&lt;br /&gt;&lt;br /&gt;dn: solarisprojectname=default,ou=projects,dc=example,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: solarisproject&lt;br /&gt;SolarisProjectID: 3&lt;br /&gt;SolarisProjectName: default&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-676088931261936988?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/676088931261936988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=676088931261936988' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/676088931261936988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/676088931261936988'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/importing-projects-database-to-ldap.html' title='Importing Projects database to LDAP'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-374004293163133571</id><published>2009-06-05T09:48:00.001+02:00</published><updated>2009-06-05T09:50:12.495+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Files you have to import to LDAP for Solaris client proper work</title><content type='html'>ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/aliases aliases&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/hosts ipnodes&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/rpc rpc&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/hosts hosts&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/protocols protocols&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/networks networks&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/services services&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/group group&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/netmasks netmasks&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/publickey publickey&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/aliases aliases&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/auto_home auto_home&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/auto_master auto_master&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/security/tsol/tnrhdb tnrhdb&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/security/tsol/tnrhtp tnrhtp&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/security/audit_user audit_user&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/security/auth_attr auth_attr&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/security/exec_attr exec_attr&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/security/prof_attr prof_attr&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/user_attr user_attr&lt;br /&gt;  ldapaddent -D "cn=Directory Manager" -w your_pass -f /etc/netmasks netmasks&lt;br /&gt;  ldapaddent -p -D "cn=Directory Manager" -w your_pass -f /etc/passwd passwd&lt;br /&gt;  ldapaddent -p -D "cn=Directory Manager" -w your_pass -f /etc/shadow shadow&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-374004293163133571?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/374004293163133571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=374004293163133571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/374004293163133571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/374004293163133571'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/files-you-have-to-import-to-ldap-for.html' title='Files you have to import to LDAP for Solaris client proper work'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-9218486470322917341</id><published>2009-06-04T13:49:00.002+02:00</published><updated>2009-06-04T13:50:56.495+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Solaris LDAP client setup. part 2(management interface)</title><content type='html'>Now we have an environment which uses LDAP as Name Service.&lt;br /&gt;And the question of proper data management in LDAP arises.&lt;br /&gt;We can use: &lt;ol type="1"&gt;     &lt;li value="1" type="1"&gt;Sun Directory Server Webconsole Interface which is delivered with Directory server (which is a bad idea, you'll have to edit raw data) .     &lt;/li&gt;&lt;li value="2" type="1"&gt;Use SMC (Solaris Management Interface) related tools. (&lt;a href="http://docs.sun.com/app/docs/doc/819-7309/confsys-10?l=ru&amp;amp;a=view&amp;amp;q=smc+ldap"&gt;Howto&lt;/a&gt;) &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Problems which took a lot of time:&lt;br /&gt;When run: &lt;ul&gt;     &lt;li&gt;&lt;b&gt;#/usr/sadm/bin/smrole list -D ldap:/solaris10core.example.test/&lt;/b&gt;&lt;b&gt;&lt;u&gt;dc=example,dc=test&lt;/u&gt;&lt;/b&gt; -- Use LDAP form of domain declaration(dc=,dc=), there are no word in manuals about it.     &lt;/li&gt;&lt;li&gt;&lt;b&gt;#/usr/sadm/bin/dtsetup scopes&lt;/b&gt; - be careful with domain name resolving for all domains this command shows.     &lt;/li&gt;&lt;li&gt;Better run SMC in environment with END user cluster.  &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-9218486470322917341?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/9218486470322917341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=9218486470322917341' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9218486470322917341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9218486470322917341'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/06/solaris-ldap-client-setup-part.html' title='Solaris LDAP client setup. part 2(management interface)'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-6995929005015680131</id><published>2009-05-28T16:49:00.004+02:00</published><updated>2009-06-04T13:30:37.161+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Solaris LDAP client setup. part 1</title><content type='html'>Very simplified you can setup Solaris ldap user authentication in such steps.&lt;br /&gt;&lt;br /&gt;On server side:&lt;br /&gt;&lt;b&gt;&lt;a href="http://docs.sun.com/app/docs/doc/816-4556/sundssetup-13?l=ru&amp;amp;a=view"&gt;#/usr/lib/ldap/idsconfig&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;This tool inserts a lot of stuff in LDAP server(schemas, creates items tree, access creds, indexes search atributes etc.)&lt;br /&gt;&lt;br /&gt;On client:&lt;br /&gt;&lt;b&gt;#ldapclient init -a profileName=prfilename server_ip_address&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#ldapaddent -a simple -p -D "cn=Directory Manager" -f /etc/passwd passwd&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#ldapaddent -a simple -p -D "cn=Directory Manager" -f /etc/group group&lt;/b&gt;&lt;br /&gt;etc. more information in ldapaddent documentation&lt;br /&gt;............&lt;br /&gt;&lt;br /&gt;Everything goes fine, but passwords are not imported to ldap, to fix it you have manualy change password through Directory Server Control Console for each user. It actually can be coused by the fact my test environment used unencrypted communication between ldap server and client!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-6995929005015680131?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/6995929005015680131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=6995929005015680131' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6995929005015680131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6995929005015680131'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/05/solaris-ldap-client-setup.html' title='Solaris LDAP client setup. part 1'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5787959360932568065</id><published>2009-05-28T08:31:00.001+02:00</published><updated>2009-05-28T16:50:27.795+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Zones'/><title type='text'>Postinstall configuration of Solaris zone</title><content type='html'>When you have just installed a Solaris zone, you have to configure it to start working.&lt;BR&gt; You can do it with &lt;B&gt;zlogin -C&lt;/B&gt; command . The one of the first questions it asks is about terminal type you are using.&lt;BR&gt; And here is some trick. Even if you do this from ssh session and $TERM variable is &lt;B&gt;xterm &lt;/B&gt;you have to choose VT100 terminal.&lt;BR&gt; In other case it hangs! &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5787959360932568065?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5787959360932568065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5787959360932568065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5787959360932568065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5787959360932568065'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/05/postinstall-configuration-of-solaris.html' title='Postinstall configuration of Solaris zone'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-8885695526076818419</id><published>2009-05-27T16:43:00.002+02:00</published><updated>2009-05-29T15:24:18.235+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>First steps to have Sun One Directory Server up and running</title><content type='html'>To have DS up and running you have to go through several steps.&lt;br /&gt;You are able to control directory server through command line tools(dsadm,dsconf) and by Java Web Console.&lt;br /&gt;To use the second one you have :&lt;br /&gt;1. Register Directory Service Control Center in Java Web Console&lt;br /&gt;&lt;b&gt;#/opt/SUNWdsee/dscc6/bin/dsccsetup ads-create&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#/opt/SUNWdsee/dscc6/bin/dsccsetup status&lt;/b&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#/opt/SUNWdsee/ds6/bin/dsadm start /var/opt/SUNWdsee/dscc6/dcc/ads&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cacaoadm start&lt;/span&gt;&lt;br /&gt;2.Start Java Web Console if necessary with the &lt;tt&gt;smcwebserver&lt;/tt&gt; command&lt;br /&gt;&lt;b&gt;# /usr/sbin/smcwebserver start&lt;/b&gt;&lt;br /&gt;3.Log into Directory Service Control Center with system user.&lt;br /&gt;&lt;a href="https://192.168.45.100:6789/"&gt;https://hostname:6789/&lt;/a&gt;&lt;br /&gt;4. Create directory server instance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-8885695526076818419?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/8885695526076818419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=8885695526076818419' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8885695526076818419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8885695526076818419'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/05/first-steps-to-have-sun-one-directory.html' title='First steps to have Sun One Directory Server up and running'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2334174786242255846</id><published>2009-05-27T14:14:00.000+02:00</published><updated>2009-05-28T16:51:01.935+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ldap'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Sun One Directory Server installation</title><content type='html'>This directory server is included in product called &lt;B&gt;Sun Java Enterprise System.&lt;/B&gt;&lt;BR&gt; To install it on basic system it's necessary to install some extra packages.&lt;BR&gt; For text based installation:&lt;BR&gt; &lt;TT&gt;SUNWadmc,SUNWpl5u,SUNWadmfr,SUNWxcu4,SUNWadmfw,SUNWxcu6.&lt;/TT&gt;&lt;BR&gt; For GUI:&lt;BR&gt; &lt;TT&gt;SUNWctpls,SUNWxwplr,SUNWmfrun,SUNWxwplt,SUNWxwfnt,SUNWxwrtl,SUNWxwice.&lt;/TT&gt;&lt;BR&gt; &lt;BR&gt; To begin installation unzip&lt;B&gt; java_es-5-identsuite-ga-solaris-x86.zip &lt;/B&gt;and run &lt;BR&gt; &lt;B&gt;#./installer&lt;/B&gt;&lt;BR&gt; &lt;BR&gt; During installation process you will be asked what components to install and proposed to configure them.&lt;BR&gt; Installation log can be found in /var/sadm/install/logs/&lt;BR&gt; and configuration report /var/sadm/install/logs/Java_Enterprise_System_Identity_Management_Suite_Summary_Report_install(Some number) &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2334174786242255846?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2334174786242255846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2334174786242255846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2334174786242255846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2334174786242255846'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/05/sun-one-directory-server-installation.html' title='Sun One Directory Server installation'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4917089064384825479</id><published>2009-05-26T10:11:00.000+02:00</published><updated>2009-05-28T16:50:27.807+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Zones'/><title type='text'>Installing zone support on basic Solaris 10 system</title><content type='html'>This tip is about how to install zones(containers) support on Solaris 10&lt;br&gt;system(of course if you don&amp;#39;t like to use full installations of Solaris)&lt;p&gt;To do it , install these packages regardless dependency warnings: &lt;br&gt;SUNWadmc&lt;br&gt;SUNWadmfr&lt;br&gt;SUNWadmfw&lt;br&gt;SUNWlur&lt;br&gt;SUNWlucfg&lt;br&gt;SUNWluu&lt;br&gt;SUNWpoolr&lt;br&gt;SUNWpool&lt;br&gt;SUNWluzone&lt;br&gt;SUNWzoner&lt;br&gt;SUNWzoneu&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4917089064384825479?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4917089064384825479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4917089064384825479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4917089064384825479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4917089064384825479'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/05/installing-zone-support-on-basic.html' title='Installing zone support on basic Solaris 10 system'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-3929462898386111094</id><published>2009-05-25T11:16:00.001+02:00</published><updated>2009-05-28T16:50:27.810+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>First steps to do after fresh installation of Solaris 10(core system) part 1</title><content type='html'>1. Install &lt;B&gt;bash,ssh,less(can't live without it):&lt;/B&gt;&lt;BR&gt; mount /dev/dsk/c1t0d0p0 /mnt&lt;BR&gt; &lt;B&gt;#pkgadd -d /mnt/Solaris_10/Product/ SUNWbash&lt;/B&gt;&lt;BR&gt; &lt;B&gt;#pkgadd -d /mnt/Solaris_10/Product/ SUNWssh*&lt;/B&gt;&lt;BR&gt; &lt;B&gt;#pkgadd -d /mnt/Solaris_10/Product/ SUNWless&lt;/B&gt;&lt;BR&gt; &lt;BR&gt; 2. Generate key and enable ssh:&lt;BR&gt; &lt;B&gt;#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key&lt;/B&gt;&lt;BR&gt; &lt;B&gt;#svcadm enable ssh&lt;/B&gt;&lt;BR&gt; &lt;BR&gt; 3. Man pages will be useful also:&lt;BR&gt; &lt;B&gt;#pkgadd -d /cdrom/Solaris_10/Product SUNWdoc SUNWman&lt;/B&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-3929462898386111094?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/3929462898386111094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=3929462898386111094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3929462898386111094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3929462898386111094'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/05/first-steps-to-do-after-fresh.html' title='First steps to do after fresh installation of Solaris 10(core system) part 1'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7645129478016926193</id><published>2009-05-25T11:11:00.000+02:00</published><updated>2009-05-29T09:28:27.617+02:00</updated><title type='text'>First steps to do after fresh installation of Solaris 10(core system) part 1</title><content type='html'>1. Install &lt;B&gt;bash,ssh,less(can't live without it):&lt;/B&gt;&lt;BR&gt; mount /dev/dsk/c1t0d0p0 /mnt&lt;BR&gt; &lt;B&gt;#pkgadd -d /mnt/Solaris_10/Product/ SUNWbash&lt;/B&gt;&lt;BR&gt; &lt;B&gt;#pkgadd -d /mnt/Solaris_10/Product/ SUNWssh*&lt;/B&gt;&lt;BR&gt; &lt;B&gt;#pkgadd -d /mnt/Solaris_10/Product/ SUNWless&lt;/B&gt;&lt;BR&gt; &lt;BR&gt; 2. Generate key and enable ssh:&lt;BR&gt; &lt;B&gt;#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key&lt;/B&gt;&lt;BR&gt; &lt;B&gt;#svcadm enable ssh&lt;/B&gt;&lt;BR&gt; &lt;BR&gt; 3. Man pages will be useful also:&lt;BR&gt; &lt;B&gt;#pkgadd -d /cdrom/Solaris_10/Product SUNWdoc SUNWman&lt;/B&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7645129478016926193?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7645129478016926193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7645129478016926193' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7645129478016926193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7645129478016926193'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/05/first-steps-to-do-after-fresh_25.html' title='First steps to do after fresh installation of Solaris 10(core system) part 1'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5063628983935624458</id><published>2009-04-27T14:36:00.002+02:00</published><updated>2009-04-27T14:40:38.010+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>From Debian with love!</title><content type='html'>New Solaris packing system (IPS) and Debian's apt-get &lt;a href="http://opensolaris.org/os/community/documentation/apt_ips/"&gt;comparison&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5063628983935624458?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5063628983935624458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5063628983935624458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5063628983935624458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5063628983935624458'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2009/04/from-debian-with-love.html' title='From Debian with love!'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-8994557422261471340</id><published>2008-11-26T15:08:00.002+02:00</published><updated>2008-11-26T15:09:51.543+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Debian way of Solaris</title><content type='html'>As you know a new packet management system (IPS) was released in a Open Solaris 2008.05.&lt;br /&gt;The great event I thinks, It was the very necessary step towards greater usability of Solaris.&lt;br /&gt;IPS is similar to Debian's APT or Aptitude and this is very good!&lt;br /&gt;Great deal &lt;a href="http://ianmurdock.com/"&gt;Ian Murdock &lt;/a&gt; !&lt;br /&gt;  &lt;br /&gt;I found a great &lt;a href="http://dlc.sun.com/osol/docs/content/IPS/ggcph.html"&gt;article&lt;/a&gt; which will give you an overview of how it works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-8994557422261471340?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/8994557422261471340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=8994557422261471340' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8994557422261471340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8994557422261471340'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/11/debian-way-of-solaris.html' title='Debian way of Solaris'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-6323316887575380864</id><published>2008-11-05T16:58:00.006+02:00</published><updated>2008-11-05T17:22:00.646+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Quick view at Solaris 10 10/08 Release</title><content type='html'>As you know It was &lt;a href="http://docs.sun.com/app/docs/doc/817-0547/ghgdx?a=view"&gt;announced&lt;/a&gt; by SUN that it will be possible to install &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Solaris 10/08 on ZFS filesystem directly.&lt;br /&gt;I've checked how it works, you can watch it in the video report below.&lt;br /&gt;I only can say that I've expected more: installer doesn't give ability to chose of what type of pool I want, I mean the process must be more customizable ... and hope that it will done in future releases.&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-a57f7c40dd09bf37" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v21.nonxt2.googlevideo.com/videoplayback?id%3Da57f7c40dd09bf37%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1329896860%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D245C0846890B0E2003116D8CE41E2FA9F0416E4C.68D6C56ACAC8632152CB9B11DFEC32BE6B0929B3%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Da57f7c40dd09bf37%26offsetms%3D5000%26itag%3Dw160%26sigh%3DxjJDkWep23Lf2cp-FQDnC7KFcEU&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v21.nonxt2.googlevideo.com/videoplayback?id%3Da57f7c40dd09bf37%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1329896860%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D245C0846890B0E2003116D8CE41E2FA9F0416E4C.68D6C56ACAC8632152CB9B11DFEC32BE6B0929B3%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Da57f7c40dd09bf37%26offsetms%3D5000%26itag%3Dw160%26sigh%3DxjJDkWep23Lf2cp-FQDnC7KFcEU&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_t_xu8zc-05g/SRG1KHCn7WI/AAAAAAAAFv4/vFagbWEzumM/s1600-h/zfs_mirror"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 222px;" src="http://3.bp.blogspot.com/_t_xu8zc-05g/SRG1KHCn7WI/AAAAAAAAFv4/vFagbWEzumM/s400/zfs_mirror" alt="" id="BLOGGER_PHOTO_ID_5265188624666193250" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_t_xu8zc-05g/SRG1TwrvjrI/AAAAAAAAFwA/3xGCGSehaLQ/s1600-h/df"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 222px;" src="http://2.bp.blogspot.com/_t_xu8zc-05g/SRG1TwrvjrI/AAAAAAAAFwA/3xGCGSehaLQ/s400/df" alt="" id="BLOGGER_PHOTO_ID_5265188790463336114" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-6323316887575380864?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=a57f7c40dd09bf37&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/6323316887575380864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=6323316887575380864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6323316887575380864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6323316887575380864'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/11/quick-view-at-solaris-10-1008-release.html' title='Quick view at Solaris 10 10/08 Release'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_t_xu8zc-05g/SRG1KHCn7WI/AAAAAAAAFv4/vFagbWEzumM/s72-c/zfs_mirror' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-3845229444316232164</id><published>2008-11-03T16:45:00.002+02:00</published><updated>2008-11-03T16:47:27.772+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Good article about Mysql Cluster deployed in Solaris Zones</title><content type='html'>&lt;a href="http://www.sun.com/bigadmin/features/articles/mysql_cluster_zones.jsp"&gt;http://www.sun.com/bigadmin/features/articles/mysql_cluster_zones.jsp&lt;/a&gt;&lt;br /&gt;&lt;table width="100%" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-3845229444316232164?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/3845229444316232164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=3845229444316232164' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3845229444316232164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3845229444316232164'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/11/good-article-about-mysql-cluster.html' title='Good article about Mysql Cluster deployed in Solaris Zones'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2546219912441689498</id><published>2008-06-04T17:35:00.006+02:00</published><updated>2008-06-04T17:40:57.426+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Some usefull shell tricks</title><content type='html'>&lt;h3&gt; &lt;b&gt;Reuse previous arguments&lt;/b&gt; &lt;/h3&gt;&lt;br /&gt;The &lt;tt&gt;!$&lt;/tt&gt; command returns the last file name parameter used with a command. But what happens if you have a command that used multiple file names and you want to reuse just one of them? The &lt;tt&gt;!:1&lt;/tt&gt; operator returns the first file name used in a command. The example in Listing 1 shows how you can use this operator in combination with the &lt;tt&gt;!$&lt;/tt&gt; operator. In the first command, a file is renamed to a more meaningful name, but to preserve use of the original file name, a symbolic link is created. The file &lt;i&gt;kxp12.c&lt;/i&gt; is renamed in a more readable manner, then the &lt;tt&gt;link&lt;/tt&gt; command is used to create a symbolic link back to the original file name, in case it's still used elsewhere. The &lt;tt&gt;!$&lt;/tt&gt; operator returns the &lt;i&gt;file_system_access.c&lt;/i&gt; file name, and the &lt;tt&gt;!:1&lt;/tt&gt; operator returns the &lt;i&gt;kxp12.c&lt;/i&gt; file name, which is the first file name of the previous comma  nd.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Listing 1. Using !$ and !:1 in combination&lt;/b&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" width="65%"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt; &lt;pre&gt;$ mv kxp12.c file_system_access.c&lt;br /&gt;$ ln –s !$ !:1 &lt;/pre&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt; Manage directory navigation with pushd and popd  &lt;/h3&gt;&lt;br /&gt;UNIX supports a wide variety of directory-navigation tools. Two of my favorite productivity tools are &lt;tt&gt;pushd&lt;/tt&gt; and &lt;tt&gt;popd&lt;/tt&gt;. You're certainly aware that the &lt;tt&gt;cd&lt;/tt&gt; command changes your current directory. What happens if you have several directories to navigate, but you want to be able to quickly return to a location? The &lt;tt&gt;pushd&lt;/tt&gt; and &lt;tt&gt;popd&lt;/tt&gt; commands create a virtual directory stack, with the &lt;tt&gt;pushd&lt;/tt&gt; command changing your current directory and storing it on the stack, and the &lt;tt&gt;popd&lt;/tt&gt; command removing the directory from the top of the stack and returning you to that location. You can use the &lt;tt&gt;dirs&lt;/tt&gt; command to display the current directory stack without pushing or popping a new directory. &lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;Listing 2 shows how you can use the &lt;tt&gt;pushd&lt;/tt&gt; and &lt;tt&gt;popd&lt;/tt&gt; commands to quickly navigate the directory tree.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Listing 2. Using pushd and popd to navigate the directory tree&lt;/b&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" width="65%"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt; &lt;pre&gt;$ pushd . ~ ~&lt;br /&gt;$ pushd /etc /etc ~ ~&lt;br /&gt;$ pushd /var /var /etc ~ ~&lt;br /&gt;$ pushd /usr/local/bin /usr/local/bin /var /etc ~ ~&lt;br /&gt;$ dirs /usr/local/bin /var /etc ~ ~&lt;br /&gt;$ popd /var /etc ~ ~&lt;br /&gt;$ popd /etc ~ ~&lt;br /&gt;$ popd ~ ~&lt;br /&gt;$ popd &lt;/pre&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The &lt;tt&gt;pushd&lt;/tt&gt; and &lt;tt&gt;popd&lt;/tt&gt; commands also support parameters to manipulate the directory stack. Using the &lt;tt&gt;+&lt;/tt&gt;&lt;tt&gt;&lt;i&gt;n&lt;/i&gt;&lt;/tt&gt;&lt;tt&gt; &lt;/tt&gt;or &lt;tt&gt;-&lt;/tt&gt;&lt;tt&gt;&lt;i&gt;n&lt;/i&gt;&lt;/tt&gt;&lt;tt&gt; &lt;/tt&gt;parameter, where &lt;i&gt;n&lt;/i&gt; is a number, you can rotate the stack left or right, as shown in Listing 3.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Listing 3. Rotating the directory stack&lt;/b&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" width="65%"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt; &lt;pre&gt;$ dirs /usr/local/bin /var /etc ~ ~&lt;br /&gt;$ pushd +1 /var /etc ~ ~ /usr/local/bin&lt;br /&gt;$ pushd -1 ~ /usr/local/bin /var /etc ~ &lt;/pre&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Taken from &lt;a href="http://www.ibm.com/developerworks/aix/library/au-unixtips/index.html"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2546219912441689498?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2546219912441689498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2546219912441689498' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2546219912441689498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2546219912441689498'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/06/some-usefull-shell-tricks.html' title='Some usefull shell tricks'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7004684145186863310</id><published>2008-05-28T11:36:00.002+02:00</published><updated>2008-05-28T11:37:18.789+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Using X server in Windows for calling remote graphical applications in Unix</title><content type='html'>Sometimes you need ability to run X apps from remote unix servers.&lt;br /&gt;It is not a problem when you are using unix as a client, but what should you do when you running windows.&lt;br /&gt;&lt;br /&gt;The answer:&lt;br /&gt;1. Your can use X servers for windows such as Xming is(I recommend this case if you are sure that this is the onliest task you will perform).&lt;br /&gt;2. You can run X server from Cygwin&lt;br /&gt;&lt;br /&gt;Lets examine the second one:&lt;br /&gt;1. Install Cygwin and run it.&lt;br /&gt;2. In shell run:&lt;br /&gt;   &lt;b&gt; $XWin -logfile /tmp/asd.log -ac &amp;amp;&lt;/b&gt;&lt;br /&gt;3. Connect to the desired host:&lt;br /&gt;    &lt;b&gt;$ssh -X host&lt;/b&gt;&lt;br /&gt;4. You have to export $DISPLAY variable with a value which points to host you have come from:&lt;br /&gt;    &lt;b&gt;host$export DISPLAY=sourcehost:0.0&lt;/b&gt;&lt;br /&gt;5. Run your apps:&lt;br /&gt;    &lt;b&gt;host$xterm&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7004684145186863310?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7004684145186863310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7004684145186863310' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7004684145186863310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7004684145186863310'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/05/using-x-server-in-windows-for-calling.html' title='Using X server in Windows for calling remote graphical applications in Unix'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-585260402676499769</id><published>2008-05-28T09:35:00.002+02:00</published><updated>2008-05-28T09:36:48.742+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Enabling shared folder in Citrix Metaframe client</title><content type='html'>Often you need possibility send and receive files between remote and local machine through Citrix client.&lt;br /&gt;I don't know why it is not enabled by default.&lt;br /&gt;You have to add few lines to its config to &lt;b&gt;[WFClient]&lt;/b&gt; section in&lt;b&gt; "$HOME/.ICAClient/wfclient.ini"&lt;/b&gt; file:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;DrivePathF=&amp;lt;ThePathToSharedFolder&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;DriveEnabledF=On&lt;/b&gt;&lt;br /&gt;&lt;b&gt;DriveReadAccessF=On&lt;/b&gt;&lt;br /&gt;&lt;b&gt;DriveWriteAccessF=On&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-585260402676499769?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/585260402676499769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=585260402676499769' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/585260402676499769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/585260402676499769'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/05/enabling-shared-folder-in-citrix.html' title='Enabling shared folder in Citrix Metaframe client'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-8090614585958643029</id><published>2008-05-27T16:36:00.002+02:00</published><updated>2008-05-27T16:43:19.868+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Check what package a file belongs to.</title><content type='html'>There are two ways on Solaris:&lt;br /&gt;1.pkgchk -p -l &lt;full-path-to-file&gt;&lt;br /&gt;2.grep filename /var/sadm/install/contents&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-8090614585958643029?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/8090614585958643029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=8090614585958643029' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8090614585958643029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8090614585958643029'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/05/check-what-package-file-belongs-to.html' title='Check what package a file belongs to.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2106667463686766836</id><published>2008-05-14T10:50:00.007+02:00</published><updated>2008-05-14T10:56:47.154+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Linux kernel interactive map</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.makelinux.info/kernel_map.d/LKM62_512.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://www.makelinux.info/kernel_map.d/LKM62_512.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I have found an interesting &lt;a style="font-weight: bold;" href="http://www.makelinux.net/kernel_map"&gt;project&lt;/a&gt; which is very useful for understanding of linux kernel architecture:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Map is being updated ....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2106667463686766836?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2106667463686766836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2106667463686766836' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2106667463686766836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2106667463686766836'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/05/linix-kernel-map.html' title='Linux kernel interactive map'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-8173855781763810675</id><published>2008-04-21T17:24:00.005+02:00</published><updated>2009-11-29T21:34:44.613+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Solaris 10 networking configuration tips</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Files:&lt;/span&gt;&lt;br /&gt;/etc/hostname.$interface - ip address /mask configuration of specific interface.&lt;br /&gt;/etc/dhcp.$interface - if this file exists then dhcp agent will configure this $interface.&lt;br /&gt;/etc/default/dhcpagent - dhcpagent configuration.&lt;br /&gt;/etc/defaultrouter - containing hostnames or ip addresses of default routers.&lt;br /&gt;/etc/nodename - hostname configuration&lt;br /&gt;/etc/inet/ipnodes is a symlink on /etc/inet/hosts in Solaris 10.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Services:&lt;/span&gt;&lt;br /&gt;svc:/network/physical:default - responsible for configuring network interfaces&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Progs:&lt;/span&gt;&lt;br /&gt;ndd - configures and provides information about tcp/ip settings (enable/disable ip forwarding .....)&lt;br /&gt;ifconfig plumb $interface enables physical device.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Static routes:&lt;/span&gt;&lt;br /&gt;&lt;p&gt;# route -p add 192.168.15.0 192.168.15.1&lt;/p&gt; &lt;p&gt;The static routes will be stored in file /etc/inet/static_routes.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Interface multipathing(non probe based):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong style="font-weight: normal;"&gt;hostname.qfe0&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;hostname&lt;/em&gt; group &lt;em&gt;groupname&lt;/em&gt; up&lt;br /&gt;&lt;br /&gt;&lt;strong style="font-weight: normal;"&gt;hostname.qfe4&lt;/strong&gt;&lt;br /&gt;group &lt;em&gt;groupname&lt;/em&gt; up&lt;/p&gt;&lt;p&gt;for non-persistant configuration:&lt;/p&gt;&lt;p&gt;ifconfig qfe0 plumb; ifconfig qfe0 ip mask group &lt;span style="font-style: italic;"&gt;groupname&lt;/span&gt; up&lt;/p&gt;&lt;p&gt;ifconfig qfe4 plumb;ifconfig qfe4 group &lt;span style="font-style: italic;"&gt;groupname &lt;/span&gt;up&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-8173855781763810675?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/8173855781763810675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=8173855781763810675' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8173855781763810675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/8173855781763810675'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/04/solaris-10-networking-configuration.html' title='Solaris 10 networking configuration tips'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7143458770563324760</id><published>2008-04-17T16:49:00.002+02:00</published><updated>2008-04-17T16:50:25.950+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>sys-unconfig</title><content type='html'>&lt;b&gt;Sys-unconfig&lt;/b&gt;- the very helpful tool when you want to begin configuration of system from scratch.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7143458770563324760?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7143458770563324760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7143458770563324760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7143458770563324760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7143458770563324760'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/04/sys-unconfig.html' title='sys-unconfig'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-1965740272122467088</id><published>2008-03-29T16:23:00.003+02:00</published><updated>2008-03-29T16:32:03.373+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NFS'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Do not confuse with configuration files of NFS in Solaris.</title><content type='html'>&lt;style type="text/css"&gt;  &lt;!--   @page { size: 8.27in 11.69in; margin: 0.79in }   P { margin-bottom: 0.08in }   H1 { margin-bottom: 0.08in }   H1.western { font-family: "Helvetica"; font-size: 16pt }   H1.cjk { font-family: "AR PL ShanHeiSun Uni"; font-size: 16pt }   H1.ctl { font-family: "Tahoma"; font-size: 16pt }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in;"&gt; Some  unix admins misunderstand NFS configs, while working with this system. So lets examine most used files.&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;/etc/dfs/sharetab:&lt;/b&gt;&lt;br /&gt;As list, maintained by the kernel , that contains resources currently being shared by NFS server&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;/etc/rmtab:&lt;/b&gt;&lt;br /&gt;A list, maintained by the kernel, that contains local file systems that are remotely mounted by NFS clients.&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;/etc/vfstab:&lt;/b&gt;&lt;br /&gt;A configuration list of resources to mount when mountall is executed.&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;/etc/mnttab:&lt;/b&gt;&lt;br /&gt;A list, maintained by the kernel, that contains all file systems  that are mounted.&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;/etc/dfs/dfstab:&lt;/b&gt;&lt;br /&gt;A configuration list of resources to share when the NFS server is started or when shareall is executed.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-1965740272122467088?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/1965740272122467088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=1965740272122467088' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1965740272122467088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1965740272122467088'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/03/do-not-confuse-with-configuration-files.html' title='Do not confuse with configuration files of NFS in Solaris.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-2969887579479532148</id><published>2008-03-25T10:36:00.005+02:00</published><updated>2008-04-21T17:28:04.179+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Solaris Soft Partitioning</title><content type='html'>This is a very good guide for Solaris Soft Partitioning, I took it from &lt;a href="http://sysunconfig.net/unixtips/soft-partitions.html"&gt;http://sysunconfig.net/unixtips/soft-partitions.html&lt;/a&gt;&lt;p&gt; The intent of this document is to describe Soft Partitioning within Solstice DiskSuite (soon-to-be-renamed Solaris Volume Manager), and offer a short primer/tutorial on how to create, use, and delete them.  &lt;/p&gt;&lt;p&gt; Until now, Solaris, without any volume management software, has only ever allowed a fixed number of partitions on a physical disk (seven (7) on SPARC platforms).  With the increase in capacity of disks, this limitation has become a severe restriction.  &lt;/p&gt;&lt;p&gt; SDS/SVM uses these slices for its metadevices (sub-mirrors, trans, stripes, and RAID5) and hence is faced with the same limitation, whereas Veritas Volume Manager (VxVM) allows for the logical partitioning of disks into a &lt;i&gt;virtually&lt;/i&gt; unlimited number of subdisks.  &lt;/p&gt;&lt;p&gt; Soft Partitioning allows for a disk to be subdivided into many partitions which are controlled and maintained by software, thereby removing the limitation of the number of partitions on a disk. A soft partition is made up of one or more "&lt;i&gt;extents&lt;/i&gt;".  An extent describes the parts of the physical disk that make up the soft partition.  While the maximum number of extents per soft partition is 2147483647, the majority of soft partitions will use only one (1) extent.&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;What is new?&lt;/h2&gt;  &lt;p&gt; Soft Partitioning was &lt;b&gt;not&lt;/b&gt; in the original Solstice DiskSuite 4.2.1 Release, which coincided with the release of Solaris 8.  However, the soft partitioning functionality was released in patch 108693-06 for SDS 4.2.1.  &lt;/p&gt;&lt;p&gt; When Solaris 9 gets released, the "Solstice DiskSuite" name will change to "Solaris Volume Manager" ("SVM") and it will be bundled in with Solaris 9.  Soft Partitioning will, of course, be part of the base functionality of that release.  &lt;/p&gt;&lt;p&gt; Soft Partitions are implemented by new kernel driver: &lt;b&gt;md_sp&lt;/b&gt;.  &lt;/p&gt;&lt;pre&gt;   #&lt;b&gt; modinfo | grep md_sp&lt;/b&gt;&lt;br /&gt;228 78328000 4743 - 1 md_sp (Meta disk soft partition module)&lt;br /&gt;&lt;/pre&gt;  There are new options to the &lt;i&gt;metainit&lt;/i&gt; command: &lt;pre&gt;   &lt;b&gt;metainit&lt;/b&gt; &lt;i&gt;softpart&lt;/i&gt; &lt;b&gt;-p [-e]&lt;/b&gt; &lt;i&gt;component size&lt;/i&gt;&lt;br /&gt;&lt;b&gt;metainit&lt;/b&gt; &lt;i&gt;softpart&lt;/i&gt; &lt;b&gt;-p&lt;/b&gt; &lt;i&gt;component&lt;/i&gt; &lt;b&gt;-o&lt;/b&gt; &lt;i&gt;offset&lt;/i&gt; &lt;b&gt;-b&lt;/b&gt; &lt;i&gt;size&lt;/i&gt; &lt;/pre&gt;  The &lt;i&gt;metattach&lt;/i&gt; command has been modified to allow for growing of soft partitions: &lt;pre&gt;   &lt;b&gt;metattach&lt;/b&gt; &lt;i&gt;softpart size&lt;/i&gt; &lt;/pre&gt;  There is a new command... &lt;i&gt;metarecover&lt;/i&gt;: &lt;pre&gt;   &lt;b&gt;metarecover [-n] [-v]&lt;/b&gt; &lt;i&gt;component&lt;/i&gt; &lt;b&gt;-p [-d|-m]&lt;/b&gt; &lt;/pre&gt;  &lt;p&gt;&lt;b&gt;NOTE&lt;/b&gt;: the &lt;b&gt;-p&lt;/b&gt; option means that the command refers to soft partitions.&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Creating Soft Partitions&lt;/h2&gt;  There are three methods to create a soft partition using the &lt;i&gt;metainit&lt;/i&gt; command:  &lt;ol&gt;&lt;li&gt;Specifying an unused disk and size (with the &lt;b&gt;-e&lt;/b&gt; option). For example:  &lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d0 -p -e c1t0d0 200m&lt;/b&gt; &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; The &lt;b&gt;-e&lt;/b&gt; option requires that the name of the disk supplied be in the form &lt;b&gt;c#t#d#&lt;/b&gt;.  &lt;/p&gt;&lt;p&gt; The last parameter (200m) specifies the initial size of the soft partition. The sizes can be specified in blocks, kilobytes, megabytes, gigabytes, and terabytes.  &lt;/p&gt;&lt;p&gt; The &lt;b&gt;-e&lt;/b&gt; option causes the disk to be repartitioned such that slice 7 has enough space to hold a replica (although no replica is actually created on this disk) and slice 0 contains the rest of the space.  Slice 2 is removed from the disk.  The soft partition that is being created is put into slice 0.  Further soft partitions can be created on slice 0 by the next method of creating a soft partition.  &lt;/p&gt;&lt;p&gt; After this command is run, the layout of the disk would like similar to this example:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   Part      Tag   Flag   Cylinders     Size           Blocks&lt;br /&gt;0 unassigned   wm     5 - 2035   999.63MB   (2031/0/0) 2047248&lt;br /&gt;1 unassigned   wm     0            0        (0/0/0)          0&lt;br /&gt;2 unassigned   wm     0            0        (0/0/0)          0&lt;br /&gt;3 unassigned   wm     0            0        (0/0/0)          0&lt;br /&gt;4 unassigned   wm     0            0        (0/0/0)          0&lt;br /&gt;5 unassigned   wm     0            0        (0/0/0)          0&lt;br /&gt;6 unassigned   wm     0            0        (0/0/0)          0&lt;br /&gt;7 unassigned   wu     0 -   4      2.46MB   (5/0/0)       5040&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; This command (with the &lt;b&gt;-e&lt;/b&gt;) can only be run on an empty disk (one that is not used in any other metadevice).  If another metadevice or replica already exists on this disk, one of the following messages will be printed, and no soft partition will be created.  &lt;/p&gt;&lt;pre&gt;   metainit: hostname: c#t#d#s0: has appeared more than once in the specification of d#&lt;br /&gt;&lt;/pre&gt; or &lt;pre&gt;   metainit: hostname: c#t#d#s#: has a metadevice database replica&lt;br /&gt;&lt;/pre&gt;  &lt;/li&gt;&lt;li&gt; Specifying an existing slice name and size (without the &lt;b&gt;-e&lt;/b&gt; option).  This will be the most common method of creation.  For example:  &lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;    #&lt;b&gt; metainit d1 -p c1t0d0s0 1g&lt;/b&gt; &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; This will create a soft partition on the specified slice.  No repartitioning of the disk is done.  Provided there is space on the slice, additional soft partitions could be created as required.  The device name must include the slice number (c#t#d#s#).  &lt;/p&gt;&lt;p&gt; If another soft partition already exists in this slice, this one will be created immediately after the existing one.  Therefore, no overlap of soft partitions can occur by accident.  &lt;/p&gt;&lt;/li&gt;&lt;li&gt; Specifying an existing slice and absolute offset and size values. For example:  &lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d2 -p c1t0d0s0 -o 2048 -b 1024&lt;/b&gt; &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   The &lt;b&gt;-o&lt;/b&gt; parameter signifies the offset into the slice, and the &lt;b&gt;-b&lt;/b&gt; parameter is the size for the soft partition. All numbers are in blocks (a block is 512 bytes).  The &lt;i&gt;metainit&lt;/i&gt; command ensures that extents and soft partitions do not overlap.  For example, the following is an attempt to create overlapping soft partitions.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -p c1t0d0s0 -o 1 -b 2024&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p c1t0d0s0 -o 2000 -b 2024&lt;/b&gt;&lt;br /&gt;metainit: hostname: d2: overlapping extents specified&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; An offset of &lt;b&gt;0&lt;/b&gt; is not valid, as the first block on a slice containing a soft partition contains the initial extent header. Each extent header consumes 1 block of disk and each soft partition will have an extent header placed at the end of each extent. Extent headers are explained in more detail in the next section.  &lt;/p&gt;&lt;p&gt; &lt;b&gt;NOTE:&lt;/b&gt; This method is not documented in the man page for &lt;i&gt;metainit&lt;/i&gt; and is not recommended for manual use.  It is here because a subsequent &lt;b&gt;metastat -p&lt;/b&gt; command will output information in this format. &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;hr /&gt;&lt;h2&gt;Extent Headers&lt;/h2&gt;  &lt;p&gt; Whenever a soft partiton is created in a disk slice, an "extent header" is written to disk.  Internally to Sun, these are sometimes referred to as "watermarks".  &lt;/p&gt;&lt;p&gt; An extent header is a consistency record and contains such information as the metadevice (soft partition) name, it's status, it's size, and a checksum.  Each extent header 1 block (512 bytes) in size.  &lt;/p&gt;&lt;p&gt; The following diagram shows an example 100MB slice (c1t0d0s0) and the extent headers (watermarks) that have been created on it.  The command to make the soft partition shown was  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -p c1t0d0s0 20m&lt;/b&gt; &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;!-- &lt;center--&gt; &lt;img src="http://sysunconfig.net/unixtips/softpart-diag1.jpg" /&gt;  -&gt;&gt;  &lt;/p&gt;&lt;p&gt; There is always an extent header on the first and last blocks in the slice. Note that the 80MB of space left over from the creation of the soft partition can be used to make one or more additional soft partitions. Each additional soft partition will create an additional extent header to be created as well.&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Mirroring Soft Partitions&lt;/h2&gt;  Once you have created soft partitions, what can you do with them? Well, one thing to do is to create mirrors out of them.  Unfortunately, even though a soft partition is a metadevice, they cannot serve directly as a submirror.  For example:  &lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d10 -p c1t11d0s4 100m&lt;/b&gt;&lt;br /&gt;d10: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d20 -m d10&lt;/b&gt;&lt;br /&gt;metainit: hostname: d10: invalid unit&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   Instead, you must first take the soft partition and create a simple concat/stripe out of it.  For example:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d10 -p c1t0d0s0 100m&lt;/b&gt;&lt;br /&gt;d10: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d20 1 1 d10&lt;/b&gt;&lt;br /&gt;d20: Concat/Stripe is setup&lt;br /&gt;#&lt;b&gt; metainit d30 -m d20&lt;/b&gt;&lt;br /&gt;d30: Mirror is setup&lt;br /&gt;&lt;br /&gt;#&lt;b&gt; metainit d11 -p c2t0d0s0 100m&lt;/b&gt;&lt;br /&gt;d11: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d21 1 1 d11&lt;/b&gt;&lt;br /&gt;d21: Concat/Stripe is setup&lt;br /&gt;#&lt;b&gt; metattach d30 d21&lt;/b&gt;&lt;br /&gt;d30: submirror d21 is attached&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; Once done, the resulting &lt;i&gt;metastat&lt;/i&gt; output of the mirror will look like this:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metastat d30&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;d30: Mirror&lt;br /&gt; Submirror 0: d20&lt;br /&gt;   State: Okay&lt;br /&gt; Submirror 1: d21&lt;br /&gt;   State: Okay&lt;br /&gt; Pass: 1&lt;br /&gt; Read option: roundrobin (default)&lt;br /&gt; Write option: parallel (default)&lt;br /&gt; Size: 204624 blocks&lt;br /&gt;&lt;br /&gt;d20: Submirror of d30&lt;br /&gt; State: Okay&lt;br /&gt; Size: 204624 blocks&lt;br /&gt; Stripe 0:&lt;br /&gt;     Device              Start Block  Dbase State        Hot Spare&lt;br /&gt;     d10                        0     No    Okay&lt;br /&gt;&lt;br /&gt;d10: Soft Partition&lt;br /&gt; Component: c1t0d0s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 204800 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                   204800&lt;br /&gt;&lt;br /&gt;d21: Submirror of d30&lt;br /&gt; State: Okay&lt;br /&gt; Size: 204624 blocks&lt;br /&gt; Stripe 0:&lt;br /&gt;     Device              Start Block  Dbase State        Hot Spare&lt;br /&gt;     d11                        0     No    Okay&lt;br /&gt;&lt;br /&gt;d11: Soft Partition&lt;br /&gt; Component: c2t0d0s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 204800 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                   204800&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Combining Soft Partitions Together into a RAID5 Device&lt;/h2&gt;  &lt;p&gt; RAID5 devices can be made up of soft partitions directly. This example shows 4 soft partitions (from 4 separate slices) striped together to make a RAID5 device:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -p c1t0d0s0 10m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p c2t0d0s0 10m&lt;/b&gt;&lt;br /&gt;d2: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d3 -p c3t0d0s0 10m&lt;/b&gt;&lt;br /&gt;d3: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d4 -p c4t0d0s0 10m&lt;/b&gt;&lt;br /&gt;d4: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d10 -r d1 d2 d3 d4&lt;/b&gt;&lt;br /&gt;d10: RAID is setup&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; Once done, the resulting &lt;i&gt;metastat&lt;/i&gt; output of the RAID5 device will look like this:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metastat d10&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;d10: RAID&lt;br /&gt; State: Okay&lt;br /&gt; Interlace: 32 blocks&lt;br /&gt; Size: 59472 blocks&lt;br /&gt;Original device:&lt;br /&gt; Size: 60384 blocks&lt;br /&gt;     Device              Start Block  Dbase State        Hot Spare&lt;br /&gt;     d1                       330     No    Okay&lt;br /&gt;     d2                       330     No    Okay&lt;br /&gt;     d3                       330     No    Okay&lt;br /&gt;     d4                       330     No    Okay&lt;br /&gt;&lt;br /&gt;d1: Soft Partition&lt;br /&gt; Component: c1t0d2s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 20480 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                    20480&lt;br /&gt;&lt;br /&gt;d2: Soft Partition&lt;br /&gt; Component: c1t0d4s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 20480 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                    20480&lt;br /&gt;&lt;br /&gt;d3: Soft Partition&lt;br /&gt; Component: c1t1d1s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 20480 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                    20480&lt;br /&gt;&lt;br /&gt;d4: Soft Partition&lt;br /&gt; Component: c1t1d3s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 20480 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                    20480&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Using Soft Partitions for MetaTrans (UFS Logging) Devices&lt;/h2&gt;  MetaTrans devices (UFS logging) can be built on top of soft partitions.  Soft partitions can be used for the master device, the logging device, or both.  In the following example, soft partitions are used for both the master and the logging device:  &lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -p c1t0d0s0 500m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p c2t0d0s0 50m&lt;/b&gt;&lt;br /&gt;d2: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d10 -t d1 d2&lt;/b&gt;&lt;br /&gt;d1: Trans is setup&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; Once done, the resulting &lt;i&gt;metastat&lt;/i&gt; output of the metatrans device will look like this:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metastat d10&lt;/b&gt;&lt;br /&gt;d10: Trans&lt;br /&gt; State: Okay&lt;br /&gt; Size: 1024000 blocks&lt;br /&gt; Master Device: d1&lt;br /&gt; Logging Device: d2&lt;br /&gt;&lt;br /&gt;d1: Soft Partition&lt;br /&gt; Component: c1t1d3s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 1024000 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                  1024000&lt;br /&gt;&lt;br /&gt;d2: Logging device for d10&lt;br /&gt; State: Okay&lt;br /&gt; Size: 102142 blocks&lt;br /&gt;&lt;br /&gt;d2: Soft Partition&lt;br /&gt; Component: c1t1d1s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 102400 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                   102400&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Layering&lt;/h2&gt;  &lt;p&gt; Most of the time, soft partitions are made on a disk slice.  However, there are certain situations where it can be beneficial to make a soft partition on &lt;i&gt;top&lt;/i&gt; of an existing metadevice.  This is referred to as &lt;b&gt;layering&lt;/b&gt;.  &lt;/p&gt;&lt;p&gt; For example, say you have a 90GB RAID5 device made up of 6 18GB disks. You can then take that 90GB device and "split it up" into many soft partitions.  These many soft partitions then can be accessed as separate simple metadevices, although the data in them is protected by the RAID5 parity in the underlying device.  &lt;/p&gt;&lt;p&gt; Soft partitions can be layered &lt;i&gt;only&lt;/i&gt; on top of concat/stripes, mirrors, and RAID5 devices. Soft partitions cannot be layered on top of a metatrans device or directly on top of another soft partition.  &lt;/p&gt;&lt;p&gt; Here is an example of layering soft partitions on top of an existing RAID5 metadevice.  First, we create the RAID5 device, then soft partition that device into 3 100MB partitions (obviously, we could create &lt;i&gt;more&lt;/i&gt; than just 3 soft partitions).  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d0 -r c1t0d2s0 c1t0d4s0 c1t1d1s0 c1t1d3s0&lt;/b&gt;&lt;br /&gt;d0: RAID is setup&lt;br /&gt;&lt;br /&gt;#&lt;b&gt; metainit d1 -p d0 100m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p d0 100m&lt;/b&gt;&lt;br /&gt;d2: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d3 -p d0 100m&lt;/b&gt;&lt;br /&gt;d3: Soft Partition is setup&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; Each of the resulting soft partitions (&lt;b&gt;d1&lt;/b&gt;, &lt;b&gt;d2&lt;/b&gt;, and &lt;b&gt;d3&lt;/b&gt;) can be accessed individually (i.e., &lt;i&gt;newfs&lt;/i&gt; and &lt;i&gt;mount&lt;/i&gt;).  &lt;/p&gt;&lt;p&gt; Soft partitions can be built on top of an existing mirror device as well, just like we did above on the RAID5 device.  In the following example, the mirror device (&lt;b&gt;d0&lt;/b&gt;) is "carved up" into 3 smaller soft partitions.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d10 1 1 c1t0d2s0&lt;/b&gt;&lt;br /&gt;d10: Concat/Stripe is setup&lt;br /&gt;#&lt;b&gt; metainit d20 1 1 c2t0d0s0&lt;/b&gt;&lt;br /&gt;d20: Concat/Stripe is setup&lt;br /&gt;#&lt;b&gt; metainit d0 -m d10 d20&lt;/b&gt;&lt;br /&gt;d0: Mirror is setup&lt;br /&gt;&lt;br /&gt;#&lt;b&gt; metainit d1 -p d0 100m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p d0 100m&lt;/b&gt;&lt;br /&gt;d2: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d3 -p d0 100m&lt;/b&gt;&lt;br /&gt;d3: Soft Partition is setup&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; Soft partitions are not allowed to be parented by other soft partitions directly.  For example:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -p c1t0d0s0 100m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p d1 10m&lt;/b&gt;&lt;br /&gt;metainit: hostname: d1: invalid unit&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   Soft partitions also cannot be built on top of trans (UFS logging) devices.  For example:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -t d10 d20&lt;/b&gt;&lt;br /&gt;d1: Trans is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p d1 100m&lt;/b&gt;&lt;br /&gt;metainit: hostname: d1: invalid unit&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Growing Soft Partitions&lt;/h2&gt;  &lt;p&gt; A soft partition can be grown by the use of the &lt;i&gt;metattach&lt;/i&gt; command.  There is no mechanism to shrink a soft partition.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metattach d0 10m&lt;/b&gt;&lt;br /&gt;d0: Soft Partition has been grown&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; When additional space is added to an existing soft partition, the additional space is taken from any available space on the same device and might not be contiguous with the existing soft partition. Growing soft partitions must be done with free space in the same device as the current soft partition.  &lt;/p&gt;&lt;p&gt; The following example shows how growing a soft partition will increase the size of the current extent:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -p c1t0d2s0 100m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metastat d1&lt;/b&gt;&lt;br /&gt;d1: Soft Partition&lt;br /&gt; Component: c1t0d2s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 204800 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                   204800&lt;br /&gt;&lt;br /&gt;#&lt;b&gt; metattach d1 50m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition has been grown&lt;br /&gt;#&lt;b&gt; metastat d1&lt;/b&gt;&lt;br /&gt;d1: Soft Partition&lt;br /&gt; Component: c1t0d2s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 307200 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                   307200&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; Note how after the &lt;i&gt;metattach&lt;/i&gt; is run, there is still only one extent, but the (block count) has grown from 204800 (100MB) to 307200 (150MB).  &lt;/p&gt;&lt;p&gt; In the following example, the extent cannot be grown, as it was above, because another soft partition is "in the way".  Therefore, a second extent is created in the same slice.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -p c1t0d2s0 100m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p c1t0d2s0 10m&lt;/b&gt;&lt;br /&gt;d2: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metastat&lt;/b&gt;&lt;br /&gt;d1: Soft Partition&lt;br /&gt; Component: c1t0d2s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 204800 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                   204800&lt;br /&gt;&lt;br /&gt;d2: Soft Partition&lt;br /&gt; Component: c1t0d2s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 20480 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                   204802                    20480&lt;br /&gt;&lt;br /&gt;#&lt;b&gt; metattach d1 50m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition has been grown&lt;br /&gt;#&lt;b&gt; metastat&lt;/b&gt;&lt;br /&gt;d1: Soft Partition&lt;br /&gt; Component: c1t0d2s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 307200 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                        1                   204800&lt;br /&gt;          1                   225283                   102400&lt;br /&gt;&lt;br /&gt;d2: Soft Partition&lt;br /&gt; Component: c1t0d2s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 20480 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                   204802                    20480&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; Note how &lt;b&gt;d1&lt;/b&gt; now has two non-contiguous extents that together make up the 307200 (150MB) blocks.  &lt;/p&gt;&lt;p&gt; &lt;b&gt;NOTE&lt;/b&gt;: Growing the metadevice does not modify the data or the filesystem inside the metadevice.  If the metadevice contains a filesystem, you must use the appropriate command(s) to grow that filesystem after the metadevice has been grown.&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Deleting Soft Partitions&lt;/h2&gt;  This is achieved by using the &lt;i&gt;metaclear&lt;/i&gt; command in the normal way:  &lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metaclear d0&lt;/b&gt;&lt;br /&gt;d0: Soft Partition is cleared&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   If other metadevices are using the soft partition, the &lt;i&gt;metaclear&lt;/i&gt; will error with:  &lt;/p&gt;&lt;pre&gt;   metaclear: hostname: d0: metadevice in use&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;hr /&gt;&lt;h2&gt;Using Soft Partitions with Disksets&lt;/h2&gt;  &lt;p&gt; There are no differences with soft partitioning in a diskset, other than having to specify the &lt;b&gt;-s&lt;/b&gt; option on the commandline to specify the diskset name.  &lt;/p&gt;&lt;p&gt; The only potential problem occurs when dealing with &lt;b&gt;did&lt;/b&gt; disk devices that are in a SunCluster configuration.  Unfortunately, the naming convention of the &lt;b&gt;did&lt;/b&gt; devices is similar to that of SDS/SVM in that the disks are referred to as &lt;b&gt;d&lt;/b&gt;#.  This means that SDS/SVM could confuse a &lt;b&gt;did&lt;/b&gt; disk with a metadevice when creating a soft partition.  &lt;/p&gt;&lt;p&gt; The simple workaround to this problem is to use the full path to the &lt;b&gt;did&lt;/b&gt; device on the &lt;i&gt;metainint&lt;/i&gt; commandline in order to prevent any confusion.  &lt;/p&gt;&lt;p&gt; For example, the following command to create a 1GB soft partition on &lt;b&gt;/dev/did/rdsk/d7s0&lt;/b&gt; would be invalid:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit -s set2 d0 -p d7s0 1g&lt;/b&gt; &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   Instead, the correct command to run would be:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit -s set2 d0 -p /dev/did/rdsk/d7s0 1g&lt;/b&gt; &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;How to list the soft partitions in a given slice&lt;/h2&gt;  &lt;p&gt; The &lt;i&gt;metarecover&lt;/i&gt; command, with the &lt;b&gt;-n&lt;/b&gt; and &lt;b&gt;-v&lt;/b&gt; options, will display information about the soft partitons existing in a given slice.  &lt;/p&gt;&lt;p&gt; The &lt;i&gt;metarecover&lt;/i&gt; command actually scans the given slice for extent headers and prints the information that it finds about those headers.  &lt;/p&gt;&lt;p&gt; In each slice/device, there are also 2 additional extent headers; one which preceeds the free space in the slice, and the one on the last block of the slice.  These are printed as well.  This is an easy way to determine how much free space is available in a slice for additional soft partitions.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metarecover -v -n /dev/rdsk/c1t0d0s0 -p&lt;/b&gt;&lt;br /&gt;Verifying on-disk structures on c1t0d0s0.&lt;br /&gt;The following extent headers were found on c1t0d0s0.&lt;br /&gt;Name  Seq#    Type          Offset          Length&lt;br /&gt;d0     0   ALLOC               0           20481&lt;br /&gt;d1     0   ALLOC           20481           40961&lt;br /&gt;NONE     0     END        17674901               1&lt;br /&gt;NONE     0    FREE           61442        17613459&lt;br /&gt;Found 2 soft partition(s) on c1t0d0s0.&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; In the above example, there were 2 soft partitions (d0 and d1) found on c1t0d0s0, as well as 17613458 blocks (approx 8.4GB) of unallocated free space.  &lt;/p&gt;&lt;p&gt; &lt;b&gt;IMPORTANT NOTE:&lt;/b&gt; The information printed by this command is relative to the extent header, not the soft partition itself. Therefore, the 'offset' is the starting location of the extent header, not the extent itself.  Also, the 'length' given is the length of the extent plus the header.  Therefore, in the example above, there are only 17613458 free blocks, not 17613459 blocks.  &lt;/p&gt;&lt;p&gt; Because soft partitions can be layered above metadevices like mirrors or RAID5 devices (see &lt;i&gt;layering&lt;/i&gt;, above), this command can also be run on them to determine the locations and sizes of the extent headers.  In the example below, &lt;b&gt;d0&lt;/b&gt; is a RAID5 metadevice which has 4 soft partitions in it.  There is no free space left in this device.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metarecover -v -n d0 -p&lt;/b&gt;&lt;br /&gt;Verifying on-disk structures on d0.&lt;br /&gt;The following extent headers were found on d0.&lt;br /&gt;             Name  Seq#    Type               Offset               Length&lt;br /&gt;               d1     0   ALLOC                    0               204801&lt;br /&gt;               d2     0   ALLOC               204801               204801&lt;br /&gt;               d3     0   ALLOC               409602               204801&lt;br /&gt;              d99     0   ALLOC               614403              7573580&lt;br /&gt;             NONE     0     END              8187983                    1&lt;br /&gt;Found 4 soft partition(s) on d0.&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Fragmentation&lt;/h2&gt;  &lt;p&gt; Fragmentation of free space will occur on a slice when there has been activity in creating, deleting, and possibly growing soft partitions. At this time, there is no method to defragment a disk.  &lt;/p&gt;&lt;p&gt; For example, the following sequence of commands can result in some amount of fragmentation.  First, create 2 10MB soft partitions on a slice.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metainit d1 -p c1t0d0s0 10m&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is setup&lt;br /&gt;#&lt;b&gt; metainit d2 -p c1t0d0s0 10m&lt;/b&gt;&lt;br /&gt;d2: Soft Partition is setup&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   &lt;/p&gt;&lt;p&gt; Then, remove the first 10MB soft partition and then create a 20MB soft partition.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metaclear d1&lt;/b&gt;&lt;br /&gt;d1: Soft Partition is cleared&lt;br /&gt;#&lt;b&gt; metainit d3 -p c1t0d0s0 20m&lt;/b&gt;&lt;br /&gt;d3: Soft Partition is setup&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   When the &lt;b&gt;d3&lt;/b&gt; metadevice was created, the 10MB of free space at the beginning of the slice is not used, because there is a contiguous 20MB space available further out that can be used instead.  Therefore, the 10MB of free space is skipped over in favor of the first 20MB of contiguous space.  The &lt;i&gt;metarecover&lt;/i&gt; command will show the fragmentation (multiple free spaces):  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   #&lt;b&gt; metarecover -v -n c1t0d0s0 -p&lt;/b&gt;&lt;br /&gt;Verifying on-disk structures on c1t0d0s0.&lt;br /&gt;The following extent headers were found on c1t0d0s0.&lt;br /&gt;          Name  Seq#    Type               Offset               Length&lt;br /&gt;            d2     0   ALLOC                20481                20481&lt;br /&gt;            d3     0   ALLOC                40962                40961&lt;br /&gt;          NONE     0     END              2047247                    1&lt;br /&gt;          NONE     0    FREE                81923              1965324&lt;br /&gt;          NONE     0    FREE                    0                20481&lt;br /&gt;Found 2 soft partition(s) on c1t0d0s0.&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h2&gt;Recovering Soft Partitions&lt;/h2&gt;  The 'metarecover' command is run when something has gone wrong.  It should not be run except to recover from a catastrophic problem.  There are two main functions that this command does.  It can &lt;ol&gt;&lt;li&gt; scan through the given slice and recreate the soft partitions that it finds there.  this is good when moving a disk with soft partitions to a new machine.  The option to use on the metarecover command is &lt;b&gt;-d&lt;/b&gt;. &lt;/li&gt;&lt;li&gt; reads through the current replica and creates the soft partitions on the given slice.  This is good to run after a disk fails and gets replaced with a new one.  The option to use on the metarecover command is &lt;b&gt;-m&lt;/b&gt;. &lt;/li&gt;&lt;/ol&gt;  &lt;h3&gt;Recreating Information in the Replica from the Extent Headers&lt;/h3&gt;  Here is a very simple example showing a disk which had soft partitions created on it (in slice 0) on another host, which is being moved to a new machine.  We wish to extract the soft partitions on this new machine.  Currently, there are no metadevices created.  &lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   # &lt;b&gt;metastat&lt;/b&gt; &lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   This command scans the given slice (in this case, "c0t0d0s0") and, for each soft partition it finds in that slice, it puts an entry into the current replica.  The data on the disk is not modified, and nothing on the slice specified is modified.  All that happens is that the extent headers are read and information is written to the replica.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   # &lt;b&gt;metarecover c0t0d0s0 -p -d&lt;/b&gt;&lt;br /&gt;The following soft partitions were found and will be added to&lt;br /&gt;your metadevice configuration.&lt;br /&gt;Name            Size     No. of Extents&lt;br /&gt;d1           61440         1&lt;br /&gt;d2           20480         1&lt;br /&gt;WARNING: You are about to add one or more soft partition&lt;br /&gt;metadevices to your metadevice configuration.  If there&lt;br /&gt;appears to be an error in the soft partition(s) displayed&lt;br /&gt;above, do NOT proceed with this recovery operation.&lt;br /&gt;&lt;br /&gt;Are you sure you want to do this (yes/no)? &lt;b&gt;yes&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;c0t0d0s0: Soft Partitions recovered from device.&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   Now, we can see the soft partition metadevices have been created for us:  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   # &lt;b&gt;metastat&lt;/b&gt;&lt;br /&gt;d1: Soft Partition&lt;br /&gt; Component: c0t0d0s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 61440 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                   120836                    61440&lt;br /&gt;&lt;br /&gt;d2: Soft Partition&lt;br /&gt; Component: c0t0d0s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 20480 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                    20482                    20480&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;     &lt;/p&gt;&lt;h3&gt;Recreating Soft Partitions from Information in the Replica&lt;/h3&gt;  This example essentially does the opposite of example 1.  In this case, the actual extent headers on the disk have been lost, either because something wrote over them, or because the disk hosting the soft partitions had to be replaced with new disk drive.  Although the replica shows the soft partitions to be "Okay":  &lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   # &lt;b&gt;metastat&lt;/b&gt;&lt;br /&gt;d1: Soft Partition&lt;br /&gt; Component: c0t0d0s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 61440 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                   120836                    61440&lt;br /&gt;&lt;br /&gt;d2: Soft Partition&lt;br /&gt; Component: c0t0d0s0&lt;br /&gt; State: Okay&lt;br /&gt; Size: 20480 blocks&lt;br /&gt;     Extent              Start Block              Block count&lt;br /&gt;          0                    20482                    20480&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   there are no extent headers on the disk, so I/O to the disk will error out.  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   # &lt;b&gt;dd if=/dev/zero of=/dev/md/rdsk/d2&lt;/b&gt;&lt;br /&gt;dd: /dev/md/rdsk/d2: open: I/O error&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   To check the disk to see if any extent headers exist on the disk, you can run the command  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   # &lt;b&gt;metarecover -n c0t0d0s0 -p&lt;/b&gt;&lt;br /&gt;found incorrect magic number 0, expected 20000127.&lt;br /&gt;No extent headers found on c0t0d0s0.&lt;br /&gt;c0t0d0s0: On-disk structures invalid or no soft partitions found.&lt;br /&gt;metarecover: hostname: d0: bad magic number in extent header&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   The above command confirms that there are no extent headers on the disk.  To have the extent headers written out to the disk, according to the information currently in the replica, run the command  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   # &lt;b&gt;metarecover c0t0d0s0 -p -m&lt;/b&gt;&lt;br /&gt;c0t0d0s0: Soft Partition metadb configuration is valid&lt;br /&gt;&lt;br /&gt;WARNING: You are about to overwrite portions of c0t0d0s0&lt;br /&gt;with soft partition metadata. The extent headers will be&lt;br /&gt;written to match the existing metadb configuration.  If&lt;br /&gt;the device was not previously setup with this&lt;br /&gt;configuration, data loss may result.&lt;br /&gt;&lt;br /&gt;Are you sure you want to do this (yes/no)? &lt;b&gt;yes&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;c0t0d0s0: Soft Partitions recovered from metadb&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;   Now, the extent headers have been written to the disk, so I/O will work correctly now.  Running the verify command again, we see  &lt;/p&gt;&lt;p&gt;&lt;table border="1" cellpadding="5" cellspacing="1" width="75%"&gt;&lt;tbody&gt;&lt;tr bgcolor="#ffffff"&gt;&lt;td&gt; &lt;pre&gt;   # &lt;b&gt;metarecover -n c0t0d0s0 -p&lt;/b&gt;&lt;br /&gt;c0t0d0s0: Soft Partition metadb configuration is valid&lt;br /&gt;c0t0d0s0: Soft Partition metadb matches extent header configuration&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;         &lt;/p&gt;&lt;hr /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-2969887579479532148?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/2969887579479532148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=2969887579479532148' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2969887579479532148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/2969887579479532148'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/03/solaris-soft-partitioning.html' title='Solaris Soft Partitioning'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4335350651552500882</id><published>2008-03-18T17:41:00.001+02:00</published><updated>2008-03-25T10:40:09.716+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Splitting two monitors in xorg</title><content type='html'>It was done in Ubuntu Linux 7.10 but must work on most Unixes where RandR is ported.&lt;br /&gt;&lt;br /&gt;About RandR:&lt;br /&gt;&lt;br /&gt;The RandR 1.2 extension first appeared in Xserver 1.3 (i.e &lt;a href="http://wiki.debian.org/DebianTesting"&gt;DebianTesting&lt;/a&gt;, since 2007-08-21). It provides automatic discovery of modes (resolutions, refresh rates, ...) together with the ability to configure outputs dynamically (resize, rotate, move, ...).&lt;br /&gt;&lt;br /&gt;As of today, the following drivers/boards support RandR 1.2:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;     &lt;li&gt;the Intel driver on all boards (since 1.9.91),      &lt;/li&gt;&lt;li&gt;the NV driver on G80 boards (since 2.0.95),      &lt;/li&gt;&lt;li&gt;the ATI driver on r200/r300/r400/r500/r600 boards (since 6.7.191) where RandR 1.2 replaces MergedFB,      &lt;/li&gt;&lt;li&gt;the MGA driver on all boards (since 1.9.99)      &lt;/li&gt;&lt;li&gt;the RadeonHD driver on r500/r600 boards (since 1.1)  &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Other drivers still use the old/hard/non-standard way to configure modes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are 3 ways of doing this:&lt;br /&gt;1. From graphical tool in your desktop environment. In Ubuntu this function was disabled for my video driver "intel". Very strange , because it supports these (may be because of experimental status ... :).&lt;br /&gt;2. From command line : &lt;b&gt;xrandr &lt;/b&gt;tool, good way of doing it but I am man who likes things to be done automatically :).&lt;br /&gt;3. Xorg files customization - not very easy for newbies but most flexible and you actually have to do it once. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt; Hardware: &lt;/h4&gt; 1. Laptop Dell D630&lt;br /&gt; &lt;b&gt;$lspci&lt;/b&gt;&lt;br /&gt;00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)&lt;br /&gt;00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)&lt;br /&gt;00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)&lt;br /&gt;00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 02)&lt;br /&gt;00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)&lt;br /&gt;00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)&lt;br /&gt;00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)&lt;br /&gt;00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)&lt;br /&gt;00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)&lt;br /&gt;00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 02)&lt;br /&gt;00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)&lt;br /&gt;00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)&lt;br /&gt;00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)&lt;br /&gt;00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)&lt;br /&gt;00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)&lt;br /&gt;00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)&lt;br /&gt;00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)&lt;br /&gt;00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 02)&lt;br /&gt;00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)&lt;br /&gt;03:01.0 CardBus bridge: O2 Micro, Inc. Cardbus bridge (rev 21)&lt;br /&gt;03:01.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)&lt;br /&gt;09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755M Gigabit Ethernet PCI Express (rev 02)&lt;br /&gt;0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)&lt;br /&gt;&lt;br /&gt;2. External monitor &lt;b&gt;Samsung 710n&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;h5&gt; How to do it with xrundr. &lt;/h5&gt; Monitor is on the left of my laptop.&lt;br /&gt;So to do it from command line; &lt;br /&gt;&lt;b&gt;1. $xrandr --output LVDS --right-of VGA --auto&lt;/b&gt;&lt;br /&gt;Output will say that we must insert size of virtual work space to xorg.conf .&lt;br /&gt;&lt;b&gt;Display&lt;/b&gt; section of &lt;b&gt;Screen&lt;/b&gt; must looks like this:&lt;br /&gt;        SubSection "Display"&lt;br /&gt;                Modes            "1280x1024" "1152x864" "1024x768" "800x600" "640x480"&lt;br /&gt;                &lt;b&gt;Virtual          2720 1024&lt;/b&gt;&lt;br /&gt;        EndSubSection&lt;br /&gt;Actually we need this &lt;b&gt;virtual&lt;/b&gt; string.&lt;br /&gt;2. Restart X server.&lt;br /&gt;3. Repeat "&lt;b&gt;$xrandr --output LVDS --right-of VGA --auto&lt;/b&gt;"&lt;br /&gt;4. We have two splited monitors.&lt;br /&gt;&lt;br /&gt;&lt;h5&gt; But I did it in xorg.conf. &lt;/h5&gt; &lt;b&gt;Problems:&lt;/b&gt;&lt;br /&gt;Strange behavior of xorg:usage of  &lt;b&gt;RightOf&lt;/b&gt; for the 1 monitor is not the same as using &lt;b&gt;LeftOf&lt;/b&gt; with 2 monitor object of &lt;b&gt;xorg.conf&lt;/b&gt;.&lt;br /&gt;It works correctly when use these option with the default monitor.&lt;br /&gt;&lt;br /&gt;My &lt;b&gt;xorg.conf&lt;/b&gt;:&lt;br /&gt;&lt;br /&gt;Section "Files"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt; Identifier "Generic Keyboard"&lt;br /&gt; Driver  "kbd"&lt;br /&gt; Option  "CoreKeyboard"&lt;br /&gt; Option  "XkbRules" "xorg"&lt;br /&gt; Option  "XkbModel" "pc105"&lt;br /&gt; Option  "XkbLayout" "us"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt; Identifier "Configured Mouse"&lt;br /&gt; Driver  "mouse"&lt;br /&gt; Option  "CorePointer"&lt;br /&gt; Option  "Device"  "/dev/input/mice"&lt;br /&gt; Option  "Protocol"  "ImPS/2"&lt;br /&gt; Option  "ZAxisMapping"  "4 5"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt; Identifier "Synaptics Touchpad"&lt;br /&gt; Driver  "synaptics"&lt;br /&gt; Option  "SendCoreEvents" "true"&lt;br /&gt; Option  "Device"  "/dev/psaux"&lt;br /&gt; Option  "Protocol"  "auto-dev"&lt;br /&gt; Option  "HorizEdgeScroll" "0"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt; Driver  "wacom"&lt;br /&gt; Identifier "stylus"&lt;br /&gt; Option  "Device" "/dev/input/wacom"&lt;br /&gt; Option  "Type"  "stylus"&lt;br /&gt; Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt; Driver  "wacom"&lt;br /&gt; Identifier "eraser"&lt;br /&gt; Option  "Device" "/dev/input/wacom"&lt;br /&gt; Option  "Type"  "eraser"&lt;br /&gt; Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt; Driver  "wacom"&lt;br /&gt; Identifier "cursor"&lt;br /&gt; Option  "Device" "/dev/input/wacom"&lt;br /&gt; Option  "Type"  "cursor"&lt;br /&gt; Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Device"&lt;br /&gt; Identifier "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"&lt;br /&gt; Driver  "intel"&lt;br /&gt; BusID  "PCI:0:2:0"&lt;br /&gt;        Option          "monitor-LVDS" "Dell Monitor"&lt;br /&gt; Option          "monitor-VGA" "SyncMaster"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt;        Identifier      "Dell Monitor"&lt;br /&gt;        Option          "DPMS"&lt;br /&gt;        HorizSync       30-70&lt;br /&gt;        VertRefresh     50-160&lt;br /&gt; Option "PreferredMode"  "1440x900"&lt;br /&gt;# Option “Position” “0 0″&lt;br /&gt; Option "RightOf"  "SyncMaster"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt; Identifier "SyncMaster"&lt;br /&gt; Option  "DPMS"&lt;br /&gt; HorizSync 30-81&lt;br /&gt; VertRefresh 56-75&lt;br /&gt;# Option “Position” “1440 0″&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Screen"&lt;br /&gt; Identifier "Default Screen"&lt;br /&gt; Device  "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"&lt;br /&gt; Monitor  "Dell Monitor"&lt;br /&gt; DefaultDepth 24&lt;br /&gt; SubSection "Display"&lt;br /&gt;  Modes   "1280x1024" "1152x864" "1024x768" "800x600" "640x480"&lt;br /&gt;  Virtual          2720 1024&lt;br /&gt; EndSubSection&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "ServerLayout"&lt;br /&gt; Identifier "Default Layout"&lt;br /&gt; Screen  "Default Screen"&lt;br /&gt; InputDevice "Generic Keyboard"&lt;br /&gt; InputDevice "Configured Mouse"&lt;br /&gt;&lt;br /&gt;# Uncomment if you have a wacom tablet&lt;br /&gt;# InputDevice     "stylus" "SendCoreEvents"&lt;br /&gt;# InputDevice     "cursor" "SendCoreEvents"&lt;br /&gt;# InputDevice     "eraser" "SendCoreEvents"&lt;br /&gt; InputDevice "Synaptics Touchpad"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference : &lt;a href="http://intellinuxgraphics.org/dualhead.html"&gt;http://intellinuxgraphics.org/dualhead.html&lt;/a&gt; &lt;h5&gt;&lt;br /&gt;&lt;/h5&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4335350651552500882?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4335350651552500882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4335350651552500882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4335350651552500882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4335350651552500882'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/03/splitting-two-monitors-in-xorg.html' title='Splitting two monitors in xorg'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5441196161563155481</id><published>2008-03-03T17:02:00.000+02:00</published><updated>2008-03-25T10:40:09.716+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Solaris Zones</title><content type='html'>From the point of view of Linux administrator Solaris zones can be compared with Linux's both vserver and xen.&lt;br /&gt;Exist two kinds of zones: global and non-global.  &lt;ul&gt;&lt;li&gt;&lt;b&gt;global&lt;/b&gt; - have access to all hardware resources, this zone is used for system wide administration.      &lt;/li&gt;&lt;li&gt;&lt;b&gt;non-global&lt;/b&gt; -  shares operation under the Solaris kernel booted from the global zone, not aware of physical device paths, and not aware of the existence of other zones, no zone (including itself) can be managed from this zone. &lt;/li&gt;&lt;/ul&gt; Create a zone named test-zone (as an example) by issuing the following command:&lt;br /&gt;   &lt;b&gt;# zonecfg -z test-zone&lt;/b&gt;&lt;br /&gt;If you are configuring this zone for the first time, the following system message will appear:&lt;br /&gt;   test-zone: No such zone configured&lt;br /&gt;   Use 'create' to begin configuring a new zone.&lt;br /&gt;Create the configuration for the test-zone by issuing the create command at the zone prompt:&lt;br /&gt;   &lt;b&gt;#zonecfg:test-zone&gt; create&lt;/b&gt;&lt;br /&gt;Set the zone path to, for example, /export/home/test-zone:&lt;br /&gt;   &lt;b&gt;#zonecfg:test-zone&gt; set zonepath=/export/home/test-zone&lt;/b&gt;&lt;br /&gt;Set the value of the autoboot property so that the zone is automatically booted when the global zone is booted.&lt;br /&gt;   &lt;b&gt;#zonecfg:test-zone&gt; set autoboot=true&lt;/b&gt;&lt;br /&gt;Add the virtual network interface to the zone test-zone.Start setting up the interface with the following command:&lt;br /&gt;   &lt;b&gt;#zonecfg:test-zone&gt; add net&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Assign the IP address 192.168.1.11 to the network interface.&lt;br /&gt;   &lt;b&gt;#zonecfg:test-zone:net&gt; set address=192.168.1.11&lt;/b&gt;&lt;br /&gt;Set the physical device type for the network interface, such as pcn0.&lt;br /&gt;   &lt;b&gt;#zonecfg:test-zone:net&gt; set physical=pcn0&lt;/b&gt;&lt;br /&gt;End this specification for the resource net:&lt;br /&gt;   &lt;b&gt;#zonecfg:test-zone:net&gt; end&lt;/b&gt;&lt;br /&gt;The prompt returns back to the zone level:&lt;br /&gt;  &lt;b&gt;#zonecfg:test-zone&gt;&lt;/b&gt;&lt;br /&gt;Exit the zonecfg command:&lt;br /&gt;   &lt;b&gt;#zonecfg:test-zone&gt; exit&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;At this stage we our zone configured.&lt;br /&gt;Now we can install it:&lt;br /&gt;&lt;b&gt;#zoneadm -z test-zone install&lt;/b&gt;&lt;br /&gt;To make zone up and running:&lt;br /&gt;&lt;b&gt;#zoneadm -z test-zone boot&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To login to zone:&lt;br /&gt;&lt;b&gt;#zlogin test-zone&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5441196161563155481?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5441196161563155481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5441196161563155481' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5441196161563155481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5441196161563155481'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/03/solaris-zones.html' title='Solaris Zones'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-4107794006126523517</id><published>2008-02-28T12:32:00.004+02:00</published><updated>2008-03-25T10:41:07.188+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Getting ip address of device when you even don't know MAC.</title><content type='html'>It is quite common situation when you need to know ip address of some network device&lt;br /&gt;(for example, you have forgotten ip address of IPMA interface of a running server or active switch ...).&lt;br /&gt;Actually you can even don't know mac address(know nothing about connected device except that it is up and running).&lt;br /&gt;You can do it with &lt;b&gt;arping&lt;/b&gt; utility, which you can find in most unix/linux distributions.&lt;br /&gt;&lt;br /&gt;So lets examine 2 cases:&lt;br /&gt;1. You want to know ip and mac address of directly attached device(you don't have access to it's console...),then:&lt;br /&gt;&lt;b&gt;#arping -i interface_name ff:ff:ff:ff:ff:ff&lt;/b&gt;&lt;br /&gt;You will see something like this.&lt;br /&gt;&lt;b&gt;60 bytes from 10.10.101.14 (00:22:ba:c7:c8:c0): icmp_seq=0 time=26.941 usec&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;2. You know mac address and want to know ip:&lt;br /&gt;&lt;b&gt;#arping -i interface_name "target mac address"&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There are two different arping utilities. One is a part of iproute2 utils and is "Linux only". The second one is from&lt;br /&gt;Thomas Habets &amp;lt;&lt;a href="mailto:thomas@habets.pp.se"&gt;thomas@habets.pp.se&lt;/a&gt;&amp;gt;&lt;br /&gt;It can be downloaded from &lt;a href="ftp://ftp.habets.pp.se/pub/synscan/"&gt;ftp://ftp.habets.pp.se/pub/synscan/.&lt;/a&gt;&lt;br /&gt;I have used the second one.&lt;br /&gt;&lt;br /&gt;PS:These method don't give 100% guaranty, because some devices block ICMP broadcasts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-4107794006126523517?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/4107794006126523517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=4107794006126523517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4107794006126523517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/4107794006126523517'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/02/getting-ip-address-of-device-when-you.html' title='Getting ip address of device when you even don&apos;t know MAC.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-1058266154453670557</id><published>2008-02-25T12:55:00.002+02:00</published><updated>2008-03-25T10:41:07.189+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Role Based Access Control by Solaris 10</title><content type='html'>Let's examine Solaris RBAC terminology.&lt;br /&gt;&lt;br /&gt;1. &lt;b&gt;Roles &lt;/b&gt;- is the highest level of abstraction in Solaris RBAC, it is special type of account which&lt;br /&gt;  inherits security attributes from profiles.&lt;br /&gt;Place of definition: &lt;b&gt;/etc/user_attr&lt;/b&gt; file.&lt;br /&gt;&lt;br /&gt;2. &lt;b&gt;Profiles &lt;/b&gt;- combine authorities and commands(with different uid,euid,gid,egid and privileges).&lt;br /&gt;Defined in two files: &lt;b&gt;/etc/security/exec_attr&lt;/b&gt; and&lt;b&gt; /etc/security/prof_attr&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;b&gt;Authorizations&lt;/b&gt; - defines class of actions that you can perform.&lt;br /&gt;Example:  Solaris.device.cdrw - permits users read-write operations on CD-ROM.&lt;br /&gt;Authorizations are defined in &lt;b&gt;/etc/security/auth_attr&lt;/b&gt; file.&lt;br /&gt;&lt;br /&gt;But I don't suggest to edit these files directly, use special tools as much as possible.&lt;br /&gt;&lt;br /&gt;So lets try to &lt;b&gt;create custom profile-&amp;gt; create role -&amp;gt; assign it to a user&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;1. Log on to the machine as root or assume the primary administrator role.&lt;br /&gt;2. Edit the &lt;b&gt;/etc/security/prof_attr&lt;/b&gt; file and add the following line to it:&lt;br /&gt;  &lt;b&gt;PrintOpr:::Can perform printer related tasks:profiles=Printer Management, All&lt;/b&gt;&lt;br /&gt; Save the file and exit.&lt;br /&gt;3. Create a role with name printRole and assign it the PrintOpr profile (remember, the profile name is case sensitive) by issuing the following command:&lt;br /&gt;   &lt;b&gt;roleadd -P PrintOpr printRole&lt;/b&gt;&lt;br /&gt;4.Set the password for this role by using the passwd command:&lt;br /&gt;   &lt;b&gt;passwd printRole&lt;/b&gt;&lt;br /&gt;5. Create a user with name testuser and assign it the role printRole:&lt;br /&gt;   &lt;b&gt;useradd -R printRole -d &amp;lt;dirName&amp;gt; testuser&lt;/b&gt;&lt;br /&gt;   where &amp;lt;dirName&amp;gt; specifies the full path to the home directory that  will be assigned to the user being created.&lt;br /&gt;6. Set the password for testuser by issuing the passwd command:&lt;br /&gt;   &lt;b&gt;passwd testuser&lt;/b&gt;&lt;br /&gt;7. Test that the role has been created and assigned to the user:Log out, and log in as testuser.Issue the roles command to see whether the testuser has the role assigned to it:&lt;br /&gt;   &lt;b&gt;roles&lt;/b&gt;&lt;br /&gt; Assume the role:&lt;br /&gt;   &lt;b&gt;su printRole&lt;/b&gt;&lt;br /&gt;Display the profiles that are assigned to this role:&lt;br /&gt;   &lt;b&gt;profiles&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Solaris 10 have several predefined profiles also:&lt;br /&gt;&lt;b&gt;    Primary administrator.&lt;/b&gt; This rights profile consists of all the rights of a superuser.&lt;br /&gt;  &lt;b&gt;  System administrator.&lt;/b&gt; This profile contains most of the rights except for security-related rights. It provides the ability to perform&lt;br /&gt;most non-security administrative tasks, such as printer management, cron management, device management,&lt;br /&gt;file system management, mail management, backup and restore, name service management,&lt;br /&gt;network management, software installation, and process and user management. However, it includes several other profiles, which makes it a powerful profile.&lt;br /&gt;     &lt;b&gt;Operator&lt;/b&gt;. This profile contains limited rights to manage files and offline media. It provides the ability to perform backups and printer maintenance.&lt;br /&gt;By default, it does not include the rights to restore files.&lt;br /&gt;     &lt;b&gt;Printer management&lt;/b&gt;. This profile consists of a limited number of authorizations and commands to handle printing.&lt;br /&gt;&lt;b&gt;    Basic Solaris user.&lt;/b&gt; This profile enables users to use the Solaris system within the security boundaries set up on the system.&lt;br /&gt;This profile is assigned, by default, to all the Solaris users.&lt;br /&gt;    &lt;b&gt;All&lt;/b&gt;. This profile consists of commands that do not have security attributes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-1058266154453670557?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/1058266154453670557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=1058266154453670557' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1058266154453670557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1058266154453670557'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/02/role-based-access-control-by-solaris-10.html' title='Role Based Access Control by Solaris 10'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-9209622511657965873</id><published>2008-02-19T17:58:00.004+02:00</published><updated>2010-08-23T12:32:18.752+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Solaris Software RAID (mirroring)</title><content type='html'>Solaris Volume Manager gives an ability create software raid, currently it supports 0,1,5,0+1,1+0 levels.&lt;br /&gt;Lets make a mirror of root partition which we already  are using.&lt;br /&gt;&lt;br /&gt;1. Backup &lt;tt&gt;&lt;b&gt;/etc/vfstab&lt;/b&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;b&gt;/etc/system&lt;/b&gt;&lt;/tt&gt; before you go ahead.&lt;br /&gt;&lt;br /&gt;2. It is necessary to prepare space for state database , on running box we can redistribute swap area.&lt;br /&gt;&lt;b&gt;#swap -d /dev/dsk/yourswappart&lt;/b&gt;&lt;br /&gt;Before redistributing space we must comment string for swap partition out in &lt;b&gt;vfstab,&lt;/b&gt;&lt;br /&gt;because &lt;b&gt;format&lt;/b&gt; utility will consider this partition is being used.&lt;br /&gt;Decrease size of current swap partition on 30mb and use this free space for state database partiotion.&lt;br /&gt;Do it with format utility:&lt;br /&gt;&lt;b&gt;#format &lt;/b&gt;&lt;br /&gt;Enable swap again&lt;br /&gt;&lt;b&gt;#swap -a /dev/dsk/yourswappart&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3. Mirrored partitions must equal in size or we will waste space.&lt;br /&gt;This commands will copy partition table to second drive&lt;br /&gt;&lt;b&gt;# prtvtoc /dev/rdsk/c0d0s0 | fmthard -s - /dev/rdsk/c0d1s0&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.1Specify the master boot program.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# fdisk -b /usr/lib/fs/ufs/mboot /dev/rdsk/c0d1s0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.2&lt;br /&gt;Make the secondary disk bootable.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1d1s0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.3&lt;br /&gt;Make the secondary disk bootable. (SPARC)&lt;br /&gt;installboot /usr/platform/sun4u/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0&lt;br /&gt;&lt;br /&gt;4. Create state database on small slices created recently.&lt;br /&gt;&lt;b&gt;# metadb -f -a -c3 c0d0s3&lt;/b&gt;&lt;br /&gt;&lt;b&gt;# metadb -a -c3 c0d1s3&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;5. Create submirrors :&lt;br /&gt;&lt;b&gt;#metainit -f d10 1 1 c0d0s0&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#metainit -f d20 1 1 c0d1s0  &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;6. Create mirror device and add one submirror first:&lt;br /&gt;&lt;b&gt;#metainit d0 -m d10&lt;/b&gt;&lt;br /&gt;&lt;b&gt;# lockfs -fa (clear improper file locks)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;7. Add to &lt;b&gt;/etc/system&lt;/b&gt; file:&lt;br /&gt;&lt;b&gt;set md:mirrored_root_flag=1&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;8. Create submirrors for swap:&lt;br /&gt;&lt;b&gt;#metainit -f d30 1 1 c0d0s3&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#metainit -f d40 1 1 c0d1s3&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;9. Create mirror d1 and include submirors:&lt;br /&gt;&lt;b&gt;#metainit d1 -m d30&lt;/b&gt;&lt;br /&gt;Edit &lt;b&gt;/etc/vfstab&lt;/b&gt; to contain correct information about swap.&lt;br /&gt;&lt;br /&gt;10. Reboot.&lt;br /&gt;&lt;br /&gt;11. Add other submirrors into mirrors:&lt;br /&gt;&lt;b&gt;#metatach d0 d20&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#metatach d1 d40&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;11.1. Add to GRUB additional disk:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;title alternate boot&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;root (hd1,0,a)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel /boot/multiboot&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;module /boot/x86.miniroot-safe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;12. Verify that process of synchronization have begun:&lt;br /&gt;&lt;b&gt;#metastat&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;     &lt;b&gt;Backward process(unmirroring).&lt;/b&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;b&gt; &lt;/b&gt;To unmirror you have to do something like these:&lt;br /&gt;&lt;b&gt;#metadetach d0 d20&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#metaroot /dev/dsk/c0d0s0&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#metadetach d1 d40&lt;/b&gt;&lt;br /&gt;Correct &lt;b&gt;/etc/vfstab.&lt;/b&gt;&lt;br /&gt;Reboot.&lt;br /&gt;&lt;b&gt;&lt;i&gt;Do not run the last command if you have other raids running - it will destroy them!!&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#metaclear -a&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SPARC NOTES:&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;# ls -l /dev/dsk/c0t1d0s0&lt;br /&gt;lrwxrwxrwx 1 root root 88 Feb 8 15:51 /dev/rdsk/c1t3d0s0 -&gt;&lt;br /&gt;../../devices/pci@1f,0/pci@1,1/ide@3/dad@0,0:a&lt;br /&gt;# init 0&lt;br /&gt;ok nvalias backup_root /pci@1f,0/pci@1,1/ide@3/disk@0,0:a&lt;br /&gt;ok setenv boot-device disk backup_root net&lt;br /&gt;ok nvstore&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-9209622511657965873?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/9209622511657965873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=9209622511657965873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9209622511657965873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/9209622511657965873'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/02/solaris-software-raid-mirroring.html' title='Solaris Software RAID (mirroring)'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-1993036995675111571</id><published>2008-02-19T10:54:00.002+02:00</published><updated>2008-03-25T10:41:07.189+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Adding  new hard drive (old and new way)</title><content type='html'>In x86 Solaris 10 it is possible to add hard drive in 2 ways, lets begin with old one.&lt;br /&gt;&lt;br /&gt;1. Add new hard drive.&lt;br /&gt;2. Boot server and run :&lt;br /&gt;&lt;b&gt;#drvconfig&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#disks&lt;/b&gt;&lt;br /&gt;3. Issue :&lt;br /&gt;&lt;b&gt;#format&lt;/b&gt;&lt;br /&gt;Output must be a list of all configured drives.&lt;br /&gt;&lt;br /&gt;New one:&lt;br /&gt;1. Add new hard drive.&lt;br /&gt;2. Run:&lt;br /&gt;&lt;b&gt;#devfsadm&lt;/b&gt;&lt;br /&gt;3. Check results with &lt;b&gt;format&lt;/b&gt; command.&lt;br /&gt;&lt;br /&gt;Drive is recognized, but it's necessary  to  make  slices  and filesystems to use it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-1993036995675111571?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/1993036995675111571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=1993036995675111571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1993036995675111571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/1993036995675111571'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/02/adding-new-hard-drive-old-and-new-way.html' title='Adding  new hard drive (old and new way)'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-6849969071834547413</id><published>2008-02-18T15:17:00.006+02:00</published><updated>2008-03-25T10:41:07.190+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Creating Solaris packages.</title><content type='html'>Procedure of creating packages for Solaris is quite trivial, it is done in several steps:&lt;br /&gt;&lt;br /&gt;1.We must install program on our test system.&lt;br /&gt;2.Create file which includes paths to all files which will be installed.&lt;br /&gt;Lets name it &lt;b&gt;files&lt;/b&gt;. Assume that you have installed apache web server in &lt;b&gt;/usr/local/apache &lt;/b&gt;directory then you can do this:&lt;br /&gt;&lt;b&gt;    %cd /usr/loca/apache&lt;/b&gt;&lt;br /&gt;&lt;b&gt;    %find . -print &amp;gt;/tmp/files.&lt;/b&gt;&lt;br /&gt;3.Create prototype file which will describe permissions and type of each file in a package.&lt;br /&gt;&lt;b&gt; % cat /tmp/files | pkgproto &amp;gt; /tmp/Prototype&lt;/b&gt;&lt;br /&gt;4. Now it's time to make scripts which will do preparation/cleaning job during package installation and/or removal.&lt;br /&gt;They has self describing names:&lt;br /&gt;&lt;b&gt;    preinstall,postinstall,preremove,postremove,checkinstall,request,depend&lt;/b&gt;.&lt;br /&gt;Of course it is not mandatory, package can be without these files.&lt;br /&gt;5.Create &lt;b&gt;pkginfo&lt;/b&gt; file it will look like this:&lt;br /&gt;PKG="Apache"&lt;br /&gt;NAME="Apache"&lt;br /&gt;ARCH="sparc"&lt;br /&gt;VERSION="1.3.14"&lt;br /&gt;CATEGORY="application"&lt;br /&gt;VENDOR="Unixinmind ltd"&lt;br /&gt;EMAIL="nonexist@nowhere"&lt;br /&gt;PSTAMP="Oleksii Dzhulai"&lt;br /&gt;BASEDIR="/usr/local/apache"&lt;br /&gt;CLASSES="none"&lt;br /&gt;It will be used by packaging system.&lt;br /&gt;6. Include scripts and &lt;b&gt;pkginfo&lt;/b&gt; file to Prototype, it will be something like this:&lt;br /&gt;&lt;br /&gt;i ./pkginfo&lt;br /&gt;i ./preinstall&lt;br /&gt;d none bin 0755 nobody nobody&lt;br /&gt;f none bin/httpd 0755 nobody nobody&lt;br /&gt;f none bin/ab 0755 nobody nobody&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;7.  Run:&lt;br /&gt;&lt;b&gt;    pkgmk -o -r /&lt;/b&gt;&lt;br /&gt;This command creates package file structure in &lt;b&gt;/var/spool/pkg/Apache.&lt;/b&gt;&lt;br /&gt;8. To convert package to stream format:&lt;br /&gt;&lt;b&gt;pkgtrans -s /var/spool/pkg /tmp/Apache-1.3.14.tar&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Package is ready!!&lt;br /&gt;&lt;br /&gt;For more information:&lt;br /&gt;http://docs.sun.com/app/docs/doc/817-0406&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-6849969071834547413?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/6849969071834547413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=6849969071834547413' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6849969071834547413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/6849969071834547413'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2008/02/creating-solaris-packages.html' title='Creating Solaris packages.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-7273704903393430273</id><published>2007-02-09T09:18:00.001+02:00</published><updated>2008-02-18T15:20:42.500+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='benchmarks'/><title type='text'>What is the price of using md raid in perfomance matter.</title><content type='html'>&lt;pre&gt;Shown tables are generated by bonnie on md level 0, level 1, and directly on device.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            -------Sequential Output------ --Sequential Input-- --Random-&lt;br /&gt;            -Per Chr- ---Block-- -Rewrite- -Per Chr- ---Block-- --Seeks--&lt;br /&gt;Machine        Size K/sec %CP  K/sec %CP K/sec %CP K/sec %CP  K/sec %CP  /sec %CP&lt;br /&gt;md_1             4G 29434  97  60303  47 26859  13 31448  97  63791  19 430.1   1&lt;br /&gt;md_0             4G 28963  97 106220  79 51660  28 31390  98 127605  41 421.3   1&lt;br /&gt;direct           4G 28530  95  60638  47 27528  13 31255  97  63966  18 280.9   1&lt;br /&gt;&lt;br /&gt;                         ------Sequential Create------ --------Random Create--------&lt;br /&gt;                         -Create-- --Read---  --Delete- -Create-- --Read---   --Delete--&lt;br /&gt;      files:max:min       /sec %CP  /sec %CP   /sec %CP  /sec %CP  /sec  %CP   /sec %CP&lt;br /&gt;md_1      100:100:0         4398  83 87013  99  14563  70  3748  89  99414  99  13564  71&lt;br /&gt;md_0      100:100:0         4214  91 93285 100  16189  83  3999  91 108003  99  16596  90&lt;br /&gt;direct    100:100:0         4193  83 89778  99  15138  76  4015  91 101260 100  14435  78&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-7273704903393430273?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/7273704903393430273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=7273704903393430273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7273704903393430273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/7273704903393430273'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2007/02/what-is-price-of-using-md-raid-in.html' title='What is the price of using md raid in perfomance matter.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-5557157220409278569</id><published>2007-02-08T15:16:00.001+02:00</published><updated>2008-02-18T15:21:13.030+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='benchmarks'/><title type='text'>Superficial performance testing of Linux production file systems.</title><content type='html'>I saw benchmarks on official sites, but I like to examine myself.&lt;br /&gt;So I ran bonnie++ tests on ext3/ext3 (data=journal), XFS, JFS, ReiserFSv3.&lt;br /&gt;&lt;br /&gt;Hardware doesn't matter as it is the same.&lt;br /&gt;Kernel 2.6.18.&lt;br /&gt;&lt;br /&gt;bonnie -u root -d /data -s 4G -n 100:100k:10k:5000 -x 2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;                    ------Sequential Output------ --Sequential Input- --Random-&lt;br /&gt;               -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--&lt;br /&gt;FS             Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP&lt;br /&gt;ext3             4G 29434  97 60303  47 26859  13 31448  97 63791  19 430.1   1&lt;br /&gt;ext3_jrn         4G 13556  46 21666  18 17691  11 31078  96 63742  19 474.1   2&lt;br /&gt;xfs              4G 32877  98 60393  24 27376  12 31351  97 64273  18 523.5   1&lt;br /&gt;jfs              4G 30539  92 49633  21 27222  10 31149  97 59524  18 446.0   1&lt;br /&gt;reiserfs3        4G 32412  97 61730  39 26794  14 29512  95 63295  23 458.7   2&lt;br /&gt;&lt;br /&gt;               ------Sequential Create------ --------Random Create--------&lt;br /&gt;               -Create--  --Read--- -Delete-- -Create-- ---Read--- -Delete--&lt;br /&gt;files:max:min        /sec %CP   /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP&lt;br /&gt;ext3      100:100:0  4398  83  87013  99 14563  70  3748  89  99414  99 13564  71&lt;br /&gt;ext3_jrnl 100:100:0  2300  48  93241  99 14068  69  1906  43 107315  99 13250  71&lt;br /&gt;xfs       100:100:0  1405  31  65728  96  1195  19  1204  25  62579  96   213   4&lt;br /&gt;jfs       100:100:0   597   0 110141  99   472   0   223   0 102004  98   201   0&lt;br /&gt;reiserfs3 100:100:0  4524  70  89320  87  2416  25  4095  66 104493  99  1033  14&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-5557157220409278569?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/5557157220409278569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=5557157220409278569' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5557157220409278569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/5557157220409278569'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2007/02/superficial-performance-testing-of.html' title='Superficial performance testing of Linux production file systems.'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7562850550612305427.post-3097495069255225947</id><published>2007-01-30T20:07:00.001+02:00</published><updated>2008-02-18T15:21:58.136+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='clustering'/><title type='text'>Memcached  as a storage for PHP sessions</title><content type='html'>Two ways how to make &lt;span class="misspell" suggestions="PHIP,PP,PH,HP,PHI"&gt;PHP&lt;/span&gt; store sessions in &lt;span class="misspell" suggestions="mimicked,monkshood,mugshot"&gt;memcached&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;By mean of writing  own arguments for session_set_save_handler().  &lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Advantages:&lt;/span&gt; much simple to deploy, exists some working samples.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Handicaps:&lt;/span&gt;  all existing projects need to be customized, I mean that in all scripts where we make "session_start" we have  to include our file with declarations.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;By the way of writing &lt;span class="misspell" suggestions="PE CL,PE-CL,PECK,PEEL,PERL"&gt;PECL&lt;/span&gt; module. &lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Advantages: &lt;/span&gt;such method can be absolutely transparent for projects.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Handicaps:&lt;/span&gt; needs good  understanding  of PHP API.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7562850550612305427-3097495069255225947?l=unixinmind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixinmind.blogspot.com/feeds/3097495069255225947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7562850550612305427&amp;postID=3097495069255225947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3097495069255225947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7562850550612305427/posts/default/3097495069255225947'/><link rel='alternate' type='text/html' href='http://unixinmind.blogspot.com/2007/01/memcached-as-storrage-for-php-sessions.html' title='Memcached  as a storage for PHP sessions'/><author><name>nixlike</name><uri>http://www.blogger.com/profile/18090601772645723533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_t_xu8zc-05g/SwU7CjXtbdI/AAAAAAAAGKQ/m587Rr5I3OQ/S220/08092009(004).jpg'/></author><thr:total>0</thr:total></entry></feed>
