<?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-8187123025728820991</id><updated>2011-12-07T20:57:03.006+08:00</updated><category term='Netbackup client'/><category term='aix rmfs'/><category term='aix sendmail queue full'/><category term='aix ulimit'/><category term='solaris VCS maintenance'/><category term='tips'/><category term='veritas'/><category term='mirror rootvg'/><category term='solaris vxfs largefile'/><category term='porttopid'/><category term='remove lv copy'/><category term='Netbackup client test'/><category term='port2pid'/><category term='vcs command'/><category term='solaris'/><title type='text'>Unix Admin Guide</title><subtitle type='html'>Imran's Blog</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default?start-index=101&amp;max-results=100'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>194</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-6904844783653879376</id><published>2011-12-06T15:12:00.000+08:00</published><updated>2011-12-06T15:12:19.591+08:00</updated><title type='text'>UNIX Monitoring pipe activity with pv</title><content type='html'>Monitoring pipe activity with pv&lt;br /&gt;&lt;br /&gt;$ dd if=/dev/zero | pv &amp;gt; foo&lt;br /&gt;&lt;br /&gt;522MB 0:00:06 [ 109MB/s] [ &amp;lt;=&amp;gt; ]&lt;br /&gt;&lt;br /&gt;When pv is added to the pipeline, you get a continuous display of the amount of data that is being transferred between two pipe endpoints. I really dig this utility, and I am stoked that I found the catonmat website! Niiiiiiiiice!&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;&lt;br /&gt;Try&lt;a href="http://www.arrfab.net/blog/?p=110"&gt; using pv when sending stuff over the network using dd&lt;/a&gt;. Neato.&lt;br /&gt;&lt;br /&gt;[root@machine2 ~]# ssh machine1 “dd if=/dev/VolGroup00/domU2migrate”|pv -s 8G -petr|dd of=/dev/xen02vg/domU2migrate&lt;br /&gt;0:00:30 [11.2MB/s] [====&amp;gt; ] 4% ETA :10:13&lt;br /&gt;&lt;br /&gt;Want to rate limit the transfer so you don’t flood the pipe?&lt;br /&gt;&lt;br /&gt;-L RATE, –rate-limit RATE&lt;br /&gt;Limit the transfer to a maximum of RATE bytes per second. A suffix of “k”, “m”, “g”, or “t” can be added to denote kilobytes (*1024), megabytes, and so on.&lt;br /&gt;&lt;br /&gt;-B BYTES, –buffer-size BYTES&lt;br /&gt;Use a transfer buffer size of BYTES bytes. A suffix of “k”, “m”, “g”, or “t” can be added to denote kilobytes (*1024), megabytes, and so on. The default buffer size is the block size of the input file’s filesystem multiplied by 32 (512kb max), or 400kb if the block size cannot be determined.&lt;br /&gt;&lt;br /&gt;Already have a transfer in progress and want to rate limit it without restarting?&lt;br /&gt;&lt;br /&gt;-R PID, –remote PID&lt;br /&gt;If PID is an instance of pv that is already running, -R PID will cause that instance to act as though it had been given this instance’s command line instead. For example, if pv -L 123k is running with process ID 9876, then running pv -R 9876 -L 321k will cause it to start using a rate limit of 321k instead of 123k. Note that some options cannot be changed while running, such as -c, -l, and -&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-6904844783653879376?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/6904844783653879376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=6904844783653879376&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6904844783653879376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6904844783653879376'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/unix-monitoring-pipe-activity-with-pv.html' title='UNIX Monitoring pipe activity with pv'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5681635926495427692</id><published>2011-12-06T14:49:00.000+08:00</published><updated>2011-12-06T14:49:33.472+08:00</updated><title type='text'>Solaris 10: Adding a file system to a running zone</title><content type='html'>Since the global zone uses loopback mounts to present file systems to zones, adding a new file system was as easy as loopback mounting the file system into the zone’s file system:&lt;br /&gt;&lt;br /&gt;$ mount -F lofs /filesystems/zone1oracle03 /zones/zone1/root/ora03&lt;br /&gt;&lt;br /&gt;Once the file system was mounted, I added it to the zone configuration and then verified it was mounted:&lt;br /&gt;&lt;br /&gt;$ mount | grep ora03/filesystems/zone1oracle03 on filesystems/zone1oracle0 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d9000b on Sun Apr 12 10:43:19 2009 /zones/zone1/root/ora03 on /filesystems/zone1oracle03 read/write/setuid/devices/dev=2d9000b on Sun Apr 12 10:44:07 2009&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;With ZFS filesystem (mountpoint=legacy):&lt;/b&gt;&lt;br /&gt;mount -F zfs zpool/fs /path/to/zone/root/fs&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-5681635926495427692?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5681635926495427692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5681635926495427692&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5681635926495427692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5681635926495427692'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-10-adding-file-system-to.html' title='Solaris 10: Adding a file system to a running zone'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8827757308570880314</id><published>2011-12-06T12:13:00.000+08:00</published><updated>2011-12-06T12:13:01.199+08:00</updated><title type='text'>Linux: remount read only file system</title><content type='html'>$ mount -o remount,rw /&lt;br /&gt;&lt;br /&gt;Once you can write to the file system you should be able to write out changes to the file system to correct the issue that prevented the server from booting. Viva la remount!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8827757308570880314?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8827757308570880314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8827757308570880314&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8827757308570880314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8827757308570880314'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/linux-remount-read-only-file-system.html' title='Linux: remount read only file system'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8485950304493491036</id><published>2011-12-06T12:04:00.002+08:00</published><updated>2011-12-06T12:04:36.159+08:00</updated><title type='text'>Solaris: coreadm core file management</title><content type='html'>&lt;h2 style="background-color: #e5e5e5; clear: both; color: #515151; font-family: arial; font-size: 24px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"&gt;Using the Solaris coreadm utility to control core file generation&lt;/h2&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Solaris has shipped with the coreadm utiltiy for quite some time, and this nifty little utility allows you to control every facet of core file generation. This includes the ability to control where core files are written, the name of core files, which portions of the processes address space will be written to the core file, and my favorite option, whether or not to generate a syslog entry indicating that a core file was generated.&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;To begin using coreadm, you will first need to run it wit the “-g” option to specify where core files should be stored, and the pattern that should be used when creating the core file:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$&amp;nbsp;&lt;strong&gt;coreadm -g /var/core/core.%f.%p&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Once a directory and file pattern are specified, you can optionally adjust which portions of the processes address space (e.g., text segment, heap, ISM, etc.) will be written to the core file. To ease debugging, I like to configure coreadm to dump everything with the”-G all” option:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$&amp;nbsp;&lt;strong&gt;coreadm -G all&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Since core files are typically created at odd working hours, I also like to configure coreadm to log messages to syslog indicating that a core file was created. This can be done by using the coreadm “-e log” option:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$&amp;nbsp;&lt;strong&gt;coreadm -e log&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;After these settings are adjusted, the coreadm “-e global” option can be used to enable global core file generation, and the coreadm utility can be run without any arguments to view the settings (which are stored in /etc/coreadm.conf):&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$&amp;nbsp;&lt;strong&gt;coreadm -e global&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$&amp;nbsp;&lt;strong&gt;coreadm&lt;/strong&gt;&lt;/div&gt;&lt;pre style="background-color: #e5e5e5; color: #515151; font-size: 13px; white-space: pre-wrap; word-wrap: break-word;"&gt;global core file pattern: /var/core/core.%f.%p&lt;br /&gt;     global core file content: all&lt;br /&gt;       init core file pattern: core&lt;br /&gt;       init core file content: default&lt;br /&gt;            global core dumps: enabled&lt;br /&gt;       per-process core dumps: enabled&lt;br /&gt;      global setid core dumps: disabled&lt;br /&gt; per-process setid core dumps: disabled&lt;br /&gt;     global core dump logging: enabled&lt;br /&gt;&lt;/pre&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Once global core file support is enabled, each time a process receives a deadly signal (e.g., SIGSEGV, SIGBUS, etc.):&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$ kill -SIGSEGV 4652&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;A core file will be written to /var/core:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$&amp;nbsp;&lt;strong&gt;ls -al /var/core/*4652&lt;/strong&gt;&lt;/div&gt;&lt;pre style="background-color: #e5e5e5; color: #515151; font-size: 13px; white-space: pre-wrap; word-wrap: break-word;"&gt;-rw-------   1 root     root     4163953 Mar  9 11:51 /var/core/core.inetd.4652&lt;/pre&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;And a message similar to the following will appear in the system log:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Mar 9 11:51:48 fubar genunix: [ID 603404 kern.notice] NOTICE: core_log: inetd[4652] core dumped: /var/core/core.inetd.4652&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;This is an amazingly useful feature, and can greatly simplify root causing software problems.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8485950304493491036?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8485950304493491036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8485950304493491036&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8485950304493491036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8485950304493491036'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-coreadm-core-file-management.html' title='Solaris: coreadm core file management'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7588699208484363652</id><published>2011-12-06T12:00:00.000+08:00</published><updated>2011-12-06T12:00:13.799+08:00</updated><title type='text'>Solaris: killing defunct process</title><content type='html'>$ ps -ef | grep defunct&lt;div&gt;&amp;nbsp;root 646 426 0 - ? 0:00 &lt;defunct&gt;'&amp;nbsp;&lt;/defunct&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;root 1489 12335 0 09:32:54 pts/1 0:00 grep defunct &lt;br /&gt;$ preap 646&lt;br /&gt;646: exited with status 0&lt;br /&gt;&lt;br /&gt;This will cause the process to exit, and the kernel can then free up the resources that were allocated by that process. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7588699208484363652?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7588699208484363652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7588699208484363652&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7588699208484363652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7588699208484363652'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-killing-defunct-process.html' title='Solaris: killing defunct process'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5815135997180831716</id><published>2011-12-06T11:46:00.002+08:00</published><updated>2011-12-06T11:46:16.366+08:00</updated><title type='text'>Solaris: undelete file</title><content type='html'>&lt;h2 style="background-color: #e5e5e5; clear: both; color: #515151; font-family: arial; font-size: 24px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"&gt;How to undelete any open, deleted file on linux / solaris&lt;/h2&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;&lt;a href="http://finalcog.com/undelete-open-file-from-inode" style="color: #7eba09; text-decoration: none;"&gt;Chris Dew wrote up a neat trick on how to recover files if deleted on Linux&lt;/a&gt;, yet still open by a process.&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;This works on Solaris as well.&amp;nbsp; =)&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$:~:uname -a&lt;br /&gt;SunOS somehost.com 5.10 Generic_127112-11 i86pc i386 i86pc&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$:~:echo “sup prefetch.net folks?” &amp;gt; testfile&lt;br /&gt;$:~:tail -f testfile &amp;amp;&lt;br /&gt;[1] 17134&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$:~:rm testfile&lt;br /&gt;$:~:ls /proc/17134/fd/&lt;br /&gt;0&amp;nbsp; 1&amp;nbsp; 2&lt;br /&gt;$:~:cat /proc/17134/fd/0&lt;br /&gt;sup prefetch.net folks?&lt;br /&gt;$:~:cp !$ ./testfile&lt;br /&gt;cp /proc/17134/fd/0 ./testfile&lt;br /&gt;$:~:cat testfile&lt;br /&gt;sup prefetch.net folks?&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-5815135997180831716?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5815135997180831716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5815135997180831716&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5815135997180831716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5815135997180831716'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-undelete-file.html' title='Solaris: undelete file'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2313995054591009859</id><published>2011-12-06T11:41:00.000+08:00</published><updated>2011-12-06T11:41:49.598+08:00</updated><title type='text'>Solaris: using samba to access windows server folder</title><content type='html'>&lt;h2 style="background-color: #e5e5e5; clear: both; color: #515151; font-family: arial; font-size: 24px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"&gt;Accessing Windows shares from the Solaris/Linux command line&lt;/h2&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;If Samba is installed on the system, this is easy to do with the smbclient utility. To access the Windows server named “milton” from the command line, you can run smbclient with the “-U” option, the name of the user to authenticate with, and the name of the server and share to access:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$ smbclient -U “domain\matty” //milton/foo&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;In this example, I am authenticating as the user matty in the domain “domain,” and accessing the share foo on the server milton. If smbclient is unable to resolve the server, you will need to make sure that you have defined a WINS server, or the server exists in the lmhosts file. To define a WINS server, you can add a line similar to the following (you can get the WINS server by looking at ipconfig /all on a Windows desktop, or by reviewing the LAN traffic with ethereal) to the smb.conf file:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;wins server = 1.2.3.4&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;If you don’t want to use WINS to resolve names, you can add an entry similar to the following to the lmhosts file:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;192.168.1.200 milton&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Once you are connected to the server, you will be greeted with a “smb: \&amp;gt;” prompt. This prompt allows you to feed commands to the server, such as “pwd,” “dir,” “mget,” and “prompt.” To retrieve all of the files in the directory foo1, I can “cd” into the foo1 directory, use “prompt” to disable interactive prompts, and then run “mget” to retrieve all files in that directory:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;smb: \&amp;gt;&amp;nbsp;&lt;strong&gt;pwd&lt;/strong&gt;&lt;br /&gt;Current directory is \\server1\foo&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;smb: \&amp;gt;&amp;nbsp;&lt;strong&gt;dir&lt;/strong&gt;&lt;/div&gt;&lt;pre style="background-color: #e5e5e5; color: #515151; font-size: 13px; white-space: pre-wrap; word-wrap: break-word;"&gt;received 10 entries (eos=1)&lt;br /&gt;  .                                  DA        0  Mon May 22 07:19:21 2006&lt;br /&gt;  ..                                 DA        0  Mon May 22 07:19:21 2006&lt;br /&gt;  foo1                               DA        0  Sun Dec 11 04:51:12 2005&lt;br /&gt;  foo2                               DA        0  Thu Nov  9 09:48:40 2006&lt;br /&gt;         &amp;lt; ..... &amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;smb: \&amp;gt;&amp;nbsp;&lt;strong&gt;cd foo1&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;smb: \foo1\&amp;gt;&amp;nbsp;&lt;strong&gt;prompt&lt;/strong&gt;&lt;br /&gt;prompting is now off&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;smb: \foo1\&amp;gt;&amp;nbsp;&lt;strong&gt;mget *&lt;/strong&gt;&lt;/div&gt;&lt;pre style="background-color: #e5e5e5; color: #515151; font-size: 13px; white-space: pre-wrap; word-wrap: break-word;"&gt;received 38 entries (eos=1)&lt;br /&gt;getting file \foo1\yikes.tar of size 281768 as yikes.tar 411.3 kb/s) (average 411.3 kb/s)&lt;br /&gt;    &amp;lt; ..... &amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;smb: \foo1\&amp;gt;&amp;nbsp;&lt;strong&gt;exit&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;The smbclient manual page documents all of the available commands, and provides a great introduction to this super useful utility. If you bump into any issues connecting to a remote Windows server, you can add “-d” and a debug level (I like debug level 3) to the smbclient command line. This is perfect for debugging connectivity issues.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-2313995054591009859?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2313995054591009859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2313995054591009859&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2313995054591009859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2313995054591009859'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-using-samba-to-access-windows.html' title='Solaris: using samba to access windows server folder'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-679259102745856163</id><published>2011-12-06T11:33:00.002+08:00</published><updated>2011-12-06T11:33:46.448+08:00</updated><title type='text'>Solaris: free space in Veritas diskgroups</title><content type='html'>&lt;h2 style="background-color: #e5e5e5; clear: both; color: #515151; font-family: arial; font-size: 24px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"&gt;Finding free space in Veritas diskgroups&lt;/h2&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;The Veritas volume manager (VxVM) provides logical volume management capabilites across a variety of platforms. As you create new volumes, it is often helpful to know how much free space is available. You can find free space using two methods. The first method utilizes vxdg’s “free” option:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$&amp;nbsp;&lt;em&gt;vxdg -g oradg free&lt;/em&gt;&lt;/div&gt;&lt;pre style="background-color: #e5e5e5; color: #515151; font-size: 13px; white-space: pre-wrap; word-wrap: break-word;"&gt;GROUP        DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS&lt;br /&gt;oradg        c3t20d1      c3t20d1s2    c3t20d1      104848640 1536      -&lt;br /&gt;oradg        c3t20d3      c3t20d3s2    c3t20d3      104848640 1536      -&lt;br /&gt;oradg        c3t20d5      c3t20d5s2    c3t20d5      104848640 1536      -&lt;br /&gt;oradg        c3t20d7      c3t20d7s2    c3t20d7      104848640 1536      -&lt;br /&gt;oradg        c3t20d9      c3t20d9s2    c3t20d9      104848640 1536      -&lt;br /&gt;&lt;/pre&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;The “LENGTH” column displays the number of 512-byte blocks available on each disk drive in the disk group “oradg.”. If you don’t feel like using bc(1) to turn blocks into kilobytes, you can use vxassist’s “maxsize” option to print the number of blocks and Megabytes available:&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;$&amp;nbsp;&lt;em&gt;vxassist -g oradg maxsize layout=concat&lt;/em&gt;&lt;br /&gt;Maximum volume size: 6144 (3Mb)&lt;/div&gt;&lt;div style="background-color: #e5e5e5; color: #515151; font-family: arial; font-size: 13px; line-height: 19px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px;"&gt;Now to find out what to do with 3 MB of disk storage :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-679259102745856163?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/679259102745856163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=679259102745856163&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/679259102745856163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/679259102745856163'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-free-space-in-veritas.html' title='Solaris: free space in Veritas diskgroups'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7646343664419517209</id><published>2011-12-06T11:09:00.000+08:00</published><updated>2011-12-06T11:09:35.367+08:00</updated><title type='text'>Solaris: Vxvm calculate free chunk</title><content type='html'>root $ sh a.sh&lt;br /&gt;... Free chunk: rootmirr 25226.6 Meg&lt;br /&gt;... Free chunk: rtdisk 5122.05 Meg&lt;br /&gt;... Free chunk: rtdisk 0.250977 Meg&lt;br /&gt;... Free chunk: rtdisk 0.255859 Meg&lt;br /&gt;... Free chunk: rtdisk 2049.67 Meg&lt;br /&gt;... Free chunk: rtdisk 550.151 Meg&lt;br /&gt;root $ more a.sh&lt;br /&gt;#! /bin/sh&lt;br /&gt;&amp;nbsp; vxdg -g rootdg free | nawk '&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#if ($5/2/1024 &amp;gt; 100)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ($5/2/1024 &amp;gt; 0)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print "... Free chunk: "$1" " $5/2/1024, "Meg"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7646343664419517209?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7646343664419517209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7646343664419517209&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7646343664419517209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7646343664419517209'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-vxvm-calculate-free-chunk.html' title='Solaris: Vxvm calculate free chunk'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-6180266431189691005</id><published>2011-12-06T11:00:00.002+08:00</published><updated>2011-12-06T11:00:28.947+08:00</updated><title type='text'>Solaris : VXVM quick mirror</title><content type='html'>VXVM quickly mirroring an empty volume&lt;br /&gt;&lt;br /&gt;# vxassist make newvol 10m layout=concat-mirror init=active disk1 disk2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-6180266431189691005?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/6180266431189691005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=6180266431189691005&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6180266431189691005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6180266431189691005'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-vxvm-quick-mirror.html' title='Solaris : VXVM quick mirror'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4047000923168982851</id><published>2011-12-06T10:39:00.000+08:00</published><updated>2011-12-06T10:39:03.539+08:00</updated><title type='text'>Solaris: Change NIS user password</title><content type='html'>how to change nis user password&lt;br /&gt;&lt;br /&gt;root@t47s# passwd eddccma&lt;br /&gt;Enter login(NIS) password:&lt;br /&gt;passwd(SYSTEM): Sorry, wrong passwd&lt;br /&gt;Permission denied&lt;br /&gt;&lt;br /&gt;...just login to nis master server&lt;br /&gt;root@t47s# ypwhich -m passwd&lt;br /&gt;ededuun001&lt;br /&gt;root@t47s# ssh ededuun001&lt;br /&gt;imhas@ededuun001 # yppasswd eddccma&lt;br /&gt;New Password:&lt;br /&gt;Re-enter new Password:&lt;br /&gt;passwd: password successfully changed for eddccma&lt;br /&gt;imhas@ededuun001 #&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4047000923168982851?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4047000923168982851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4047000923168982851&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4047000923168982851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4047000923168982851'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-change-nis-user-password.html' title='Solaris: Change NIS user password'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5225993147489953232</id><published>2011-12-01T11:29:00.002+08:00</published><updated>2011-12-01T11:29:20.333+08:00</updated><title type='text'>HPUX locating WWPN</title><content type='html'>Locating the WWPN for an HP-UX host&lt;br /&gt;&lt;br /&gt;Complete this task to locate the WWPN for a Hewlett-Packard Server host.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;1. Go to the root directory of your HP-UX host.&lt;br /&gt;&amp;nbsp; &amp;nbsp;2. Type ioscan -fnC fc| more for information on the fibre-channel adapters installed on the host.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The following is example output:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; fc 0 0/2/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter /dev/td0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; fc 1 0/4/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter /dev/td1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; fc 2 0/6/2/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter /dev/td2&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;3. Look under the description for the Fibre Channel Mass Storage adapter.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For example, look for the device path name /dev/td1.&lt;br /&gt;&amp;nbsp; &amp;nbsp;4. Type: fcmsutil /dev/td1 | grep world where /dev/td1 is the path.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The following is example output:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # fcmsutil /dev/td1 | grep World&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N_Port Node World Wide Name = 0x50060b000024b139&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N_Port Port World Wide Name = 0x50060b000024b138&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (root@hpmain)/home/root# fcmsutil /dev/td0 | grep World&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N_Port Node World Wide Name = 0x50060b000023a521&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N_Port Port World Wide Name = 0x50060b000023a520&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (root@hpmain)/home/root# fcmsutil /dev/td2 | grep World&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N_Port Node World Wide Name = 0x50060b0000253a8f&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N_Port Port World Wide Name = 0x50060b0000253a8e&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (root@hpmain)/home/root#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-5225993147489953232?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5225993147489953232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5225993147489953232&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5225993147489953232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5225993147489953232'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/hpux-locating-wwpn.html' title='HPUX locating WWPN'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7873025856019298251</id><published>2011-12-01T11:26:00.002+08:00</published><updated>2011-12-01T11:26:38.675+08:00</updated><title type='text'>Solaris: checking hba qlogic status</title><content type='html'>checking hba on solaris qlogic&lt;br /&gt;qlc(0) is the internal controllers for the dual SCSI disks or if it's&lt;br /&gt;the Qlogic IPS2200 add-in card.&lt;br /&gt;&lt;br /&gt;OS: Solaris 10 (11/06)&lt;br /&gt;Kernel: 125100-07&lt;br /&gt;&lt;br /&gt;luxadm -e port&lt;br /&gt;&lt;br /&gt;/devices/pci-at-9,600000/SUNW,qlc-at-2/fp-at-0,0:devctl CONNECTED&lt;br /&gt;/devices/pci-at-8,600000/pci-at-1/SUNW,qlc-at-4/fp-at-0,0:devctl NOT CONNECTED&lt;br /&gt;/devices/pci-at-8,600000/pci-at-1/SUNW,qlc-at-5/fp-at-0,0:devctl CONNECTED&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7873025856019298251?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7873025856019298251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7873025856019298251&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7873025856019298251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7873025856019298251'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-checking-hba-qlogic-status.html' title='Solaris: checking hba qlogic status'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4484412113079248019</id><published>2011-12-01T11:22:00.001+08:00</published><updated>2011-12-01T11:23:02.824+08:00</updated><title type='text'>Solaris: metadb repair</title><content type='html'>$ df -k&lt;br /&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kbytes &amp;nbsp; &amp;nbsp;used &amp;nbsp; avail capacity &amp;nbsp;Mounted on&lt;br /&gt;/dev/md/dsk/d100 &amp;nbsp; &amp;nbsp; 10086628 8051562 1934200 &amp;nbsp; &amp;nbsp;81% &amp;nbsp; &amp;nbsp;/&lt;br /&gt;/devices &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; 0% &amp;nbsp; &amp;nbsp;/devices&lt;br /&gt;ctfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; 0% &amp;nbsp; &amp;nbsp;/system/contract&lt;br /&gt;proc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; 0% &amp;nbsp; &amp;nbsp;/proc&lt;br /&gt;mnttab &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; 0% &amp;nbsp; &amp;nbsp;/etc/mnttab&lt;br /&gt;swap &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10513824 &amp;nbsp; &amp;nbsp;1072 10512752 &amp;nbsp; &amp;nbsp; 1% &amp;nbsp; &amp;nbsp;/etc/svc/volatile&lt;br /&gt;objfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; 0% &amp;nbsp; &amp;nbsp;/system/object&lt;br /&gt;/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10086628 8051562 1934200 &amp;nbsp; &amp;nbsp;81% &amp;nbsp; &amp;nbsp;/platform/sun4u-us3/lib/libc_psr.so.1&lt;br /&gt;/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10086628 8051562 1934200 &amp;nbsp; &amp;nbsp;81% &amp;nbsp; &amp;nbsp;/platform/sun4u-us3/lib/sparcv9/libc_psr.so.1&lt;br /&gt;fd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; 0% &amp;nbsp; &amp;nbsp;/dev/fd&lt;br /&gt;swap &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6146048 4469136 1676912 &amp;nbsp; &amp;nbsp;73% &amp;nbsp; &amp;nbsp;/tmp&lt;br /&gt;swap &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10512784 &amp;nbsp; &amp;nbsp; &amp;nbsp;32 10512752 &amp;nbsp; &amp;nbsp; 1% &amp;nbsp; &amp;nbsp;/var/run&lt;br /&gt;/dev/md/dsk/d102 &amp;nbsp; &amp;nbsp; 10237036 7516386 2618280 &amp;nbsp; &amp;nbsp;75% &amp;nbsp; &amp;nbsp;/opt&lt;br /&gt;/dev/md/dsk/d104 &amp;nbsp; &amp;nbsp; 70569513 50785798 19078020 &amp;nbsp; &amp;nbsp;73% &amp;nbsp; &amp;nbsp;/opt/app&lt;br /&gt;/dev/md/dsk/d103 &amp;nbsp; &amp;nbsp; 1988623 &amp;nbsp; 29696 1899269 &amp;nbsp; &amp;nbsp; 2% &amp;nbsp; &amp;nbsp;/var/tmp&lt;br /&gt;$ uname -a&lt;br /&gt;SunOS intdev02 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V240&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[03:35:01] root@intdev02[1]# grep -i warn /var/adm/messages&lt;br /&gt;Jun 27 21:29:32 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:37 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2 (glm0):&lt;br /&gt;Jun 27 21:30:37 intdev02 glm: [ID 401478 kern.warning] WARNING: ID[SUNWpd.glm.cmd_timeout.6018]&lt;br /&gt;Jun 27 21:30:38 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2 (glm0):&lt;br /&gt;Jun 27 21:30:38 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:38 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:41 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:41 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 md_stripe: [ID 641072 kern.warning] WARNING: md: d300: write error on /dev/dsk/c1t1d0s0&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:46 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:51 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 md_stripe: [ID 641072 kern.warning] WARNING: md: d300: read error on /dev/dsk/c1t1d0s0&lt;br /&gt;Jun 27 21:30:56 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 md_stripe: [ID 641072 kern.warning] WARNING: md: d300: write error on /dev/dsk/c1t1d0s0&lt;br /&gt;Jun 27 21:30:56 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 md_stripe: [ID 641072 kern.warning] WARNING: md: d300: read error on /dev/dsk/c1t1d0s0&lt;br /&gt;Jun 27 21:30:56 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 md_stripe: [ID 641072 kern.warning] WARNING: md: d300: read error on /dev/dsk/c1t1d0s0&lt;br /&gt;Jun 27 21:30:56 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 md_stripe: [ID 641072 kern.warning] WARNING: md: d300: write error on /dev/dsk/c1t1d0s0&lt;br /&gt;Jun 27 21:30:56 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 md_stripe: [ID 641072 kern.warning] WARNING: md: d300: read error on /dev/dsk/c1t1d0s0&lt;br /&gt;Jun 27 21:30:56 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@1,0 (sd0):&lt;br /&gt;Jun 27 21:30:56 intdev02 md_stripe: [ID 641072 kern.warning] WARNING: md: d300: read error on /dev/dsk/c1t1d0s0&lt;br /&gt;Jun 27 21:31:01 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@0,0 (sd3):&lt;br /&gt;Jun 27 21:31:01 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@2,0 (sd1):&lt;br /&gt;Jun 27 21:31:01 intdev02 scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@3,0 (sd2):&lt;br /&gt;[03:35:01] root@intdev02[2]# format&lt;br /&gt;Searching for disks...done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0. c1t0d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;/sun72g&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /pci@1c,600000/scsi@2/sd@0,0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. c1t1d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;/sun72g&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /pci@1c,600000/scsi@2/sd@1,0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. c1t2d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;/sun72g&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /pci@1c,600000/scsi@2/sd@2,0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. c1t3d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;/sun72g&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /pci@1c,600000/scsi@2/sd@3,0&lt;br /&gt;Specify disk (enter its number): 1&lt;br /&gt;selecting c1t1d0&lt;br /&gt;[disk formatted]&lt;br /&gt;/dev/dsk/c1t1d0s0 is part of SVM volume stripe:d300. Please see metaclear(1M).&lt;br /&gt;/dev/dsk/c1t1d0s1 is part of SVM volume stripe:d301. Please see metaclear(1M).&lt;br /&gt;/dev/dsk/c1t1d0s3 is part of SVM volume stripe:d302. Please see metaclear(1M).&lt;br /&gt;/dev/dsk/c1t1d0s4 is part of SVM volume stripe:d303. Please see metaclear(1M).&lt;br /&gt;/dev/dsk/c1t1d0s5 is part of SVM volume stripe:d302. Please see metaclear(1M).&lt;br /&gt;/dev/dsk/c1t1d0s7 contains an SVM mdb. Please see metadb(1M).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FORMAT MENU:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; disk &amp;nbsp; &amp;nbsp; &amp;nbsp; - select a disk&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type &amp;nbsp; &amp;nbsp; &amp;nbsp; - select (define) a disk type&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; partition &amp;nbsp;- select (define) a partition table&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current &amp;nbsp; &amp;nbsp;- describe the current disk&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format &amp;nbsp; &amp;nbsp; - format and analyze the disk&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; repair &amp;nbsp; &amp;nbsp; - repair a defective sector&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label &amp;nbsp; &amp;nbsp; &amp;nbsp;- write label to the disk&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; analyze &amp;nbsp; &amp;nbsp;- surface analysis&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; defect &amp;nbsp; &amp;nbsp; - defect list management&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; backup &amp;nbsp; &amp;nbsp; - search for backup labels&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; verify &amp;nbsp; &amp;nbsp; - read and display labels&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; save &amp;nbsp; &amp;nbsp; &amp;nbsp; - save new disk/partition definitions&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inquiry &amp;nbsp; &amp;nbsp;- show vendor, product and revision&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; volname &amp;nbsp; &amp;nbsp;- set 8-character volume name&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !&lt;cmd&gt; &amp;nbsp; &amp;nbsp; - execute &lt;cmd&gt;, then return&lt;/cmd&gt;&lt;/cmd&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; quit&lt;br /&gt;format&amp;gt;&lt;br /&gt;[03:35:01] root@intdev02[3]#&lt;br /&gt;[03:35:01] root@intdev02[5]# date&lt;br /&gt;Tue Jul &amp;nbsp;1 03:39:06 MEST 2008&lt;br /&gt;[03:35:01] root@intdev02[6]# iostat -En | more&lt;br /&gt;c1t1d0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Soft Errors: 0 Hard Errors: 21 Transport Errors: 2&lt;br /&gt;Vendor: SEAGATE &amp;nbsp;Product: ST373207LSUN72G &amp;nbsp;Revision: 045A Serial No: 05433302ZN&lt;br /&gt;Size: 73.40GB &amp;lt;73400057856 bytes&amp;gt;&lt;br /&gt;Media Error: 0 Device Not Ready: 19 No Device: 1 Recoverable: 0&lt;br /&gt;Illegal Request: 0 Predictive Failure Analysis: 0&lt;br /&gt;[03:35:01] root@intdev02[9]# metadb -i&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flags &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; first blk &amp;nbsp; &amp;nbsp; &amp;nbsp; block count&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a m &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t0d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t0d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; W &amp;nbsp; p &amp;nbsp;l &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t1d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t1d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t2d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t2d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t3d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t3d0s7&lt;br /&gt;&amp;nbsp;r - replica does not have device relocation information&lt;br /&gt;&amp;nbsp;o - replica active prior to last mddb configuration change&lt;br /&gt;&amp;nbsp;u - replica is up to date&lt;br /&gt;&amp;nbsp;l - locator for this replica was read successfully&lt;br /&gt;&amp;nbsp;c - replica's location was in /etc/lvm/mddb.cf&lt;br /&gt;&amp;nbsp;p - replica's location was patched in kernel&lt;br /&gt;&amp;nbsp;m - replica is master, this is replica selected as input&lt;br /&gt;&amp;nbsp;W - replica has device write errors&lt;br /&gt;&amp;nbsp;a - replica is active, commits are occurring to this replica&lt;br /&gt;&amp;nbsp;M - replica had problem with master blocks&lt;br /&gt;&amp;nbsp;D - replica had problem with data blocks&lt;br /&gt;&amp;nbsp;F - replica had format problems&lt;br /&gt;&amp;nbsp;S - replica is too small to hold current data base&lt;br /&gt;&amp;nbsp;R - replica had device read errors&lt;br /&gt;[03:35:01] root@intdev02[10]#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# metadb -a c0t2d0s3 c1t1d0s3&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Example 3: Deleting Two Replicas&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;This example shows how to delete two replicas from the &amp;nbsp;sys-&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tem. &amp;nbsp; Assume &amp;nbsp; that &amp;nbsp; replicas &amp;nbsp; have &amp;nbsp; been &amp;nbsp; set &amp;nbsp; up &amp;nbsp;on&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c0t2d0s3 and /dev/dsk/c1t1d0s3.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# metadb -d c0t2d0s3 c1t1d0s3&lt;br /&gt;[03:35:01] root@intdev02[18]# metadb -i&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flags &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; first blk &amp;nbsp; &amp;nbsp; &amp;nbsp; block count&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a m &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t0d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t0d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; W &amp;nbsp; p &amp;nbsp;l &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t1d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t1d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t2d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t2d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t3d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t3d0s7&lt;br /&gt;&amp;nbsp;r - replica does not have device relocation information&lt;br /&gt;&amp;nbsp;o - replica active prior to last mddb configuration change&lt;br /&gt;&amp;nbsp;u - replica is up to date&lt;br /&gt;&amp;nbsp;l - locator for this replica was read successfully&lt;br /&gt;&amp;nbsp;c - replica's location was in /etc/lvm/mddb.cf&lt;br /&gt;&amp;nbsp;p - replica's location was patched in kernel&lt;br /&gt;&amp;nbsp;m - replica is master, this is replica selected as input&lt;br /&gt;&amp;nbsp;W - replica has device write errors&lt;br /&gt;&amp;nbsp;a - replica is active, commits are occurring to this replica&lt;br /&gt;&amp;nbsp;M - replica had problem with master blocks&lt;br /&gt;&amp;nbsp;D - replica had problem with data blocks&lt;br /&gt;&amp;nbsp;F - replica had format problems&lt;br /&gt;&amp;nbsp;S - replica is too small to hold current data base&lt;br /&gt;&amp;nbsp;R - replica had device read errors&lt;br /&gt;[03:35:01] root@intdev02[19]# metadb -d c1t1d0s7&lt;br /&gt;[03:35:01] root@intdev02[20]# metadb -i&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flags &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; first blk &amp;nbsp; &amp;nbsp; &amp;nbsp; block count&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a m &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t0d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t0d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t2d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t2d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t3d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t3d0s7&lt;br /&gt;&amp;nbsp;r - replica does not have device relocation information&lt;br /&gt;&amp;nbsp;o - replica active prior to last mddb configuration change&lt;br /&gt;&amp;nbsp;u - replica is up to date&lt;br /&gt;&amp;nbsp;l - locator for this replica was read successfully&lt;br /&gt;&amp;nbsp;c - replica's location was in /etc/lvm/mddb.cf&lt;br /&gt;&amp;nbsp;p - replica's location was patched in kernel&lt;br /&gt;&amp;nbsp;m - replica is master, this is replica selected as input&lt;br /&gt;&amp;nbsp;W - replica has device write errors&lt;br /&gt;&amp;nbsp;a - replica is active, commits are occurring to this replica&lt;br /&gt;&amp;nbsp;M - replica had problem with master blocks&lt;br /&gt;&amp;nbsp;D - replica had problem with data blocks&lt;br /&gt;&amp;nbsp;F - replica had format problems&lt;br /&gt;&amp;nbsp;S - replica is too small to hold current data base&lt;br /&gt;&amp;nbsp;R - replica had device read errors&lt;br /&gt;[03:35:01] root@intdev02[21]# metadb -a c1t1d0s7&lt;br /&gt;[03:35:01] root@intdev02[22]# metadb -i&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flags &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; first blk &amp;nbsp; &amp;nbsp; &amp;nbsp; block count&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a m &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t0d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t0d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t1d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t2d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t2d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t3d0s7&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp;p &amp;nbsp;luo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8208 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/dsk/c1t3d0s7&lt;br /&gt;&amp;nbsp;r - replica does not have device relocation information&lt;br /&gt;&amp;nbsp;o - replica active prior to last mddb configuration change&lt;br /&gt;&amp;nbsp;u - replica is up to date&lt;br /&gt;&amp;nbsp;l - locator for this replica was read successfully&lt;br /&gt;&amp;nbsp;c - replica's location was in /etc/lvm/mddb.cf&lt;br /&gt;&amp;nbsp;p - replica's location was patched in kernel&lt;br /&gt;&amp;nbsp;m - replica is master, this is replica selected as input&lt;br /&gt;&amp;nbsp;W - replica has device write errors&lt;br /&gt;&amp;nbsp;a - replica is active, commits are occurring to this replica&lt;br /&gt;&amp;nbsp;M - replica had problem with master blocks&lt;br /&gt;&amp;nbsp;D - replica had problem with data blocks&lt;br /&gt;&amp;nbsp;F - replica had format problems&lt;br /&gt;&amp;nbsp;S - replica is too small to hold current data base&lt;br /&gt;&amp;nbsp;R - replica had device read errors&lt;br /&gt;[03:35:01] root@intdev02[23]#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4484412113079248019?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4484412113079248019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4484412113079248019&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4484412113079248019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4484412113079248019'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/solaris-metadb-repair.html' title='Solaris: metadb repair'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2768119884944913386</id><published>2011-12-01T11:20:00.002+08:00</published><updated>2011-12-01T11:20:07.878+08:00</updated><title type='text'>Linux: Lun detection</title><content type='html'>LUN detection procedures&lt;br /&gt;&lt;br /&gt;This topic describes LUN detection procedures for the Linux host system.&lt;br /&gt;If you have a Linux driver that does not automatically configure any LUNs other than LUN 0, you can manually configure the other LUNs, depending on the parameters and settings used for the SCSI mid-layer driver. Figure 1 shows an example of the /proc/scsi/scsi file for a Linux host that only configures the first LUN, LUN 0, on each host adapter port.&lt;br /&gt;Figure 1. Example of a /proc/scsi/scsi file from a Linux host that only configures LUN 0&lt;br /&gt;&lt;br /&gt;# cat proc/scsi/scsi&lt;br /&gt;...&lt;br /&gt;Host: scsi0 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;&amp;nbsp; Vendor: IBM-PSG &amp;nbsp;Model: DPSS-318350M &amp;nbsp;F &amp;nbsp;Rev: S9HA&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;Host: scsi0 Channel: 00 Id: 15 Lun: 00&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: TP4.6 V41b3 &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: 4.1b&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Processor &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 02&lt;br /&gt;Host: scsi2 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;Host: scsi3 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;Host: scsi3 Channel: 00 Id: 01 Lun: 00&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;&lt;br /&gt;There are two ways to workaround the issue of only having LUN 0 configured:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;1. Create a script to manually add devices into /proc/scsi/scsi&lt;br /&gt;&amp;nbsp; &amp;nbsp;2. Detect LUNs automatically at system boot by modifying the initial ram-disk (initrd)&lt;br /&gt;&lt;br /&gt;Create a script to echo the /proc filesystem&lt;br /&gt;&lt;br /&gt;Use the scsi add-single-device command to consecutively configure all of the LUNs that are assigned to your host system. Write a script that repeats the scsi add-single-device command for each LUN on each ID for each host adapter. The script must scan all host adapter ports and identify all of the LUNs that are assigned to each port.&lt;br /&gt;&lt;br /&gt;After you run the script, you can view all of the assigned LUNs in the /proc/scsi/scsi file.&lt;br /&gt;&lt;br /&gt;Figure 2 shows an excerpt of an example /proc/scsi/scsi file for a Linux host after a script has configured every LUN.&lt;br /&gt;Figure 2. Example of a /proc/scsi/scsi file for a Linux host with configured LUNs&lt;br /&gt;&lt;br /&gt;# cat proc/scsi/scsi&lt;br /&gt;...&lt;br /&gt;Host: scsi3 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;Host: scsi3 Channel: 00 Id: 01 Lun: 00&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;Host: scsi3 Channel: 00 Id: 00 Lun: 01&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;Host: scsi3 Channel: 00 Id: 00 Lun: 02&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;Host: scsi3 Channel: 00 Id: 00 Lun: 03&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;Host: scsi3 Channel: 00 Id: 00 Lun: 04&lt;br /&gt;&amp;nbsp; Vendor: IBM &amp;nbsp; &amp;nbsp; &amp;nbsp;Model: 2105800 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rev: .294&lt;br /&gt;&amp;nbsp; Type: &amp;nbsp; Direct-Access &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ANSI SCSI revision: 03&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Detect LUNs automatically at system boot&lt;br /&gt;The second method of configuring LUNs for a Linux system with only LUN 0 configured involves setting the parameter for the SCSI mid-layer driver that controls how many LUNs are scanned during a SCSI bus scan. The following procedure works for both 2.4 and 2.6 kernels, but it assumes the SCSI mid-layer driver is compiled as a scsi_mod module that is loaded automatically at system boot time. For Linux 2.4 kernels, to set the maximum number of disk devices under Linux to properly detect all volumes, you need to set the max_scsi_luns option for the SCSI mid-layer driver. For example, if max_scsi_luns is set to 1 this limits SCSI bus scans to only LUN 0. This value should be set to the respective maximum number of disks the kernel can support, for example, 128 or 256. In Linux 2.6 kernels, the same procedure applies, except that the parameter has been renamed from max_scsi_luns to max_luns.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;1. Edit the /etc/modules.conf file.&lt;br /&gt;&amp;nbsp; &amp;nbsp;2. Add the following line:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * options scsi_mod max_scsi_luns=&lt;n&gt; (where &lt;n&gt; is the total number of luns to probe.&lt;/n&gt;&lt;/n&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;3. Save the file.&lt;br /&gt;&amp;nbsp; &amp;nbsp;4. Run the mkinitrd command to rebuild the ram-disk associated with the current kernel. You can use the following figures examples of what mkinitrd command to run for your operating system. &lt;kernel&gt; refers to the ‘uname –r’ output which displays the currently running kernel level, for example:. 2.4.21-292-smp.&lt;/kernel&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For SUSE distributions, use the following command:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cd /boot&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mkinitrd –k vmlinuz-&lt;kernel&gt; -i initrd-&lt;kernel&gt;&lt;/kernel&gt;&lt;/kernel&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For Red Hat distributions, use the following command:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cd /boot&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mkinitrd –v initrd-&lt;kernel&gt;.img &lt;kernel&gt;&lt;/kernel&gt;&lt;/kernel&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;5. Reboot the host.&lt;br /&gt;&amp;nbsp; &amp;nbsp;6. Verify that the boot files are correctly configured for the newly created initrd image in the /boot/grub/menu.lst file.&lt;br /&gt;&lt;div&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/8187123025728820991-2768119884944913386?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2768119884944913386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2768119884944913386&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2768119884944913386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2768119884944913386'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/12/linux-lun-detection.html' title='Linux: Lun detection'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3030397602778494307</id><published>2011-11-23T20:36:00.001+08:00</published><updated>2011-11-23T20:37:47.439+08:00</updated><title type='text'>Solaris: calculate diff filesystem size after transfer</title><content type='html'>#! /bin/sh&lt;br /&gt;value1=`df -k /app/iwstoreEMEA_snap| grep snap| awk '{print $3}'`&lt;br /&gt;value2=`df -k /server4_EMEA | grep _EMEA | awk '{print $3}'`&lt;br /&gt;exprans=`expr $value1 - $value2`&lt;br /&gt;echo "$exprans kb left"&lt;br /&gt;sleep 60&lt;br /&gt;value1=`df -k /app/iwstoreEMEA_snap| grep snap| awk '{print $3}'`&lt;br /&gt;value2=`df -k /server_EMEA | grep _EMEA | awk '{print $3}'`&lt;br /&gt;exprans1=`expr $value1 - $value2`&lt;br /&gt;transfer=`expr $exprans - $exprans1`&lt;br /&gt;echo "$transfer KB transferd"&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;$ sh a.sh&lt;/div&gt;&lt;div&gt;42318487 kb left&lt;/div&gt;&lt;div&gt;14891 KB transferd&lt;/div&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 class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3030397602778494307?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3030397602778494307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3030397602778494307&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3030397602778494307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3030397602778494307'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-calsulate-diff-filesystem-size.html' title='Solaris: calculate diff filesystem size after transfer'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8884507426019102732</id><published>2011-11-23T15:14:00.002+08:00</published><updated>2011-11-23T15:17:21.639+08:00</updated><title type='text'>Solaris: ssh tunnel and nc file transfer</title><content type='html'>You pipe the file to a listening socket on the server machine in the same way as before.&amp;nbsp;It is assumed that an SSH server runs on this machine too.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ cat backup.iso | nc -l 3333&lt;/b&gt;&lt;br /&gt;On the client machine connect to the listening socket through an SSH tunnel:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ ssh -f -L 23333:127.0.0.1:3333 me@192.168.0.1 sleep 10; \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nc 127.0.0.1 23333 | pv -b &amp;gt; backup.iso&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This way of creating and using the SSH tunnel has the advantage that the tunnel&amp;nbsp;is automagically closed after file transfer finishes. For more information and&amp;nbsp;explanation about it please read my article about auto-closing SSH tunnels.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8884507426019102732?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8884507426019102732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8884507426019102732&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8884507426019102732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8884507426019102732'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-ssh-tunnel-and-nc-file-transfer.html' title='Solaris: ssh tunnel and nc file transfer'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-881086028979356262</id><published>2011-11-23T14:22:00.004+08:00</published><updated>2011-11-23T14:23:13.310+08:00</updated><title type='text'>Solaris: ssh and tar</title><content type='html'>&lt;pre style="background-color: #ddddff; font-family: monospace, Courier, 'Courier New', Fixedsys, Terminal; font-size: 16px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-left;"&gt;&lt;b&gt;How to transfer directories into remote server using tar and ssh combined.&lt;/b&gt;&lt;/pre&gt;&lt;pre style="background-color: #ddddff; font-family: monospace, Courier, 'Courier New', Fixedsys, Terminal; font-size: 16px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-left;"&gt;&lt;/pre&gt;&lt;pre style="background-color: #ddddff; font-family: monospace, Courier, 'Courier New', Fixedsys, Terminal; font-size: 16px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-left;"&gt;&lt;/pre&gt;&lt;pre style="background-color: #ddddff; font-family: monospace, Courier, 'Courier New', Fixedsys, Terminal; font-size: 16px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-left;"&gt;$ &lt;strong&gt;tar cf - mydir/ | ssh gate 'cd /tmp &amp;amp;&amp;amp; tar xpvf -'&lt;/strong&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-881086028979356262?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/881086028979356262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=881086028979356262&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/881086028979356262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/881086028979356262'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-ssh-and-tar.html' title='Solaris: ssh and tar'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4054875916084971674</id><published>2011-11-21T14:22:00.000+08:00</published><updated>2011-11-21T14:22:59.007+08:00</updated><title type='text'>Sendmail: how to masquarate from oracle@host.domain.com to oracle@domain.com</title><content type='html'>root@wbitdb1:/etc/mail # diff sendmail.cf sendmail.cf.21012008&lt;br /&gt;986,987c986&lt;br /&gt;&amp;lt; #R$* &amp;lt; @ *LOCAL* &amp;gt; $* $: $1 &amp;lt; @ $j . &amp;gt; $2&lt;br /&gt;&amp;lt; R$* &amp;lt; @ *LOCAL* &amp;gt; $* &amp;nbsp;$: $1 &amp;lt; @ $M . &amp;gt; $2&lt;br /&gt;---&lt;br /&gt;&amp;gt; R$* &amp;lt; @ *LOCAL* &amp;gt; $* &amp;nbsp;$: $1 &amp;lt; @ $j . &amp;gt; $2&lt;br /&gt;root@wbitdb1:/etc/mail #&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;add the line shown below&lt;br /&gt;--------------&lt;br /&gt;###################################################################&lt;br /&gt;### &amp;nbsp;Ruleset 94 -- convert envelope names to masqueraded form &amp;nbsp; ###&lt;br /&gt;###################################################################&lt;br /&gt;&lt;br /&gt;SMasqEnv=94&lt;br /&gt;#R$* &amp;lt; @ *LOCAL* &amp;gt; $* &amp;nbsp; $: $1 &amp;lt; @ $j . &amp;gt; $2 &amp;lt;--------------- this line commented&lt;br /&gt;R$* &amp;lt; @ *LOCAL* &amp;gt; $* &amp;nbsp; &amp;nbsp;$: $1 &amp;lt; @ $M . &amp;gt; $2 &amp;lt;--------------- this line added&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----------&lt;br /&gt;Testing masquerading&lt;br /&gt;sendmail's address test mode makes it easy to test masquerading.&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;# sendmail -bt&lt;br /&gt;/tryflags HS (to test the header sender address; other tryflags values would be ES, HR, and ER, for envelope sender, header recipient, and envelope recipient, respectively)&lt;br /&gt;/try esmtp email_address_to_test&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;sendmail -bt&lt;br /&gt;&amp;gt; /tryflags ES&lt;br /&gt;&amp;gt; /try esmtp user@host.domain.com&lt;br /&gt;Trying envelope sender address user@host.domain.com for mailer esmtp&lt;br /&gt;&lt;br /&gt;(many lines omitted)&lt;br /&gt;&lt;br /&gt;final &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;returns: user @ domain . com&lt;br /&gt;Rcode = 0, addr = user@domain.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4054875916084971674?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4054875916084971674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4054875916084971674&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4054875916084971674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4054875916084971674'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/sendmail-how-to-masquarate-from.html' title='Sendmail: how to masquarate from oracle@host.domain.com to oracle@domain.com'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-307903034139549726</id><published>2011-11-19T21:45:00.000+08:00</published><updated>2011-11-19T21:45:35.068+08:00</updated><title type='text'>Solaris: Other tunnelling tricks</title><content type='html'>Connect to port 42 of host.example.com via an HTTP proxy at 10.2.3.4, port 8080.&amp;nbsp;&lt;div&gt;This example could also be used by &lt;a href="http://www.manpagez.com/man/1/ssh/"&gt;ssh(1)&lt;/a&gt;; see the ProxyCommand directive in &lt;a href="http://www.manpagez.com/man/5/ssh_config/"&gt;ssh_config(5)&lt;/a&gt; for more information.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ nc -x10.2.3.4:8080 -Xconnect host.example.com 42&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-307903034139549726?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/307903034139549726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=307903034139549726&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/307903034139549726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/307903034139549726'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-other-tunnelling-tricks.html' title='Solaris: Other tunnelling tricks'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2091719294921609377</id><published>2011-11-19T21:38:00.005+08:00</published><updated>2011-11-19T21:41:53.768+08:00</updated><title type='text'>Solaris: simple port scanning</title><content type='html'>PORT SCANNING&lt;br /&gt;&lt;br /&gt;It may be useful to know which ports are open and running services on a&amp;nbsp;target machine.  The -z flag can be used to tell nc to report open ports,&amp;nbsp;rather than initiate a connection.  For example:&lt;br /&gt;&lt;br /&gt;$ nc -z host.example.com 20-30&lt;br /&gt;Connection to host.example.com 22 port [tcp/ssh] succeeded!&lt;br /&gt;Connection to host.example.com 25 port [tcp/smtp] succeeded!&lt;br /&gt;&lt;br /&gt;The port range was specified to limit the search to ports 20 - 30.&lt;br /&gt;&lt;br /&gt;Alternatively, it might be useful to know which server software is running, and which versions.  This information is often contained within the&amp;nbsp;greeting banners.  In order to retrieve these, it is necessary to first&amp;nbsp;make a connection, and then break the connection when the banner has been&amp;nbsp;retrieved.  This can be accomplished by specifying a small timeout with&amp;nbsp;the -w flag, or perhaps by issuing a "QUIT" command to the server:&lt;br /&gt;&lt;br /&gt;$ echo "QUIT" | nc host.example.com 20-30&lt;br /&gt;SSH-1.99-OpenSSH_3.6.1p2&lt;br /&gt;Protocol mismatch.&lt;br /&gt;220 host.example.com IMS SMTP Receiver Version 0.84 Ready&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-2091719294921609377?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2091719294921609377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2091719294921609377&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2091719294921609377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2091719294921609377'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-simple-port-scanning.html' title='Solaris: simple port scanning'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7648260390094409170</id><published>2011-11-19T21:32:00.001+08:00</published><updated>2011-11-19T21:36:19.253+08:00</updated><title type='text'>Solaris: using nc to transfer file</title><content type='html'>&lt;h2 style="background-color: white; color: #8009d4; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 20px; font-weight: normal; line-height: 20px;"&gt;DATA TRANSFER&lt;/h2&gt;&lt;pre style="background-color: white;"&gt;The example in the previous section can be expanded to build a basic data transfermodel. Any information input into one end of the connection will be output to the other end,and input and output can be easily captured in order to emulate file transfer.&lt;span class="Apple-style-span" style="color: #333333; font-size: small;"&gt;&lt;span class="Apple-style-span" style="line-height: 13px;"&gt;&lt;br /&gt; &lt;br /&gt;     Start by using &lt;/span&gt;&lt;/span&gt;&lt;b style="color: #333333; font-size: 10pt; line-height: 13px;"&gt;nc&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-size: small;"&gt;&lt;span class="Apple-style-span" style="line-height: 13px;"&gt; to listen on a specific port, with output captured into&lt;br /&gt;     a file:&lt;br /&gt;&lt;br /&gt;           $ nc -l 1234 &amp;gt; filename.out&lt;br /&gt;&lt;br /&gt;     Using a second machine, connect to the listening &lt;/span&gt;&lt;/span&gt;&lt;b style="color: #333333; font-size: 10pt; line-height: 13px;"&gt;nc&lt;/b&gt;&lt;span class="Apple-style-span" style="color: #333333; font-size: small;"&gt;&lt;span class="Apple-style-span" style="line-height: 13px;"&gt; process, feeding it&lt;br /&gt;     the file which is to be transferred:&lt;br /&gt;&lt;br /&gt;           $ nc host.example.com 1234 &amp;lt; filename.in&lt;br /&gt;&lt;br /&gt;     After the file has been transferred, the connection will close automati-&lt;br /&gt;     cally.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div&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/8187123025728820991-7648260390094409170?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7648260390094409170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7648260390094409170&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7648260390094409170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7648260390094409170'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-using-nc-to-transfer-file.html' title='Solaris: using nc to transfer file'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-6417678471255906061</id><published>2011-11-19T21:31:00.001+08:00</published><updated>2011-11-21T11:32:33.158+08:00</updated><title type='text'>Solaris: using nc and tar to transfer file between hosts</title><content type='html'>&lt;div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;"&gt;If you can't find a way for the controllers to talk to each other (as others have mentioned), you can try doing this:&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;"&gt;On your&amp;nbsp;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;destination&lt;/em&gt;&amp;nbsp;server, run the following command:&lt;/div&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;destination-server# nc -l 9999 | tar xvzf -&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;"&gt;Then, on your&amp;nbsp;&lt;em style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;source&lt;/em&gt;&amp;nbsp;server, run the following command:&lt;/div&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;source-server# tar cvzf - &lt;sourcefiles&gt; | nc destination-server-ip &lt;dst_server&gt;9999&lt;br /&gt;&lt;/dst_server&gt;&lt;/sourcefiles&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;"&gt;The advantage to this is it avoids any encryption overhead that SSH/rsync gives, so you'll get a bit of a speed boost. This also compresses and decompresses on the source and destination servers in-stream, so it speeds up the transfer process at the expense of some CPU cycles.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;"&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;&lt;/div&gt;&lt;h2 style="background-color: white; color: #8009d4; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 20px; font-weight: normal; line-height: 20px;"&gt;CLIENT/SERVER MODEL&lt;/h2&gt;&lt;pre style="background-color: white; color: #333333; font-size: 10pt; line-height: 13px;"&gt;It is quite simple to build a very basic client/server model using &lt;b&gt;nc&lt;/b&gt;.&lt;br /&gt;     On one console, start &lt;b&gt;nc&lt;/b&gt; listening on a specific port for a connection.&lt;br /&gt;     For example:&lt;br /&gt;&lt;br /&gt;           $ nc -l 1234&lt;br /&gt;&lt;br /&gt;     &lt;b&gt;nc&lt;/b&gt; is now listening on port 1234 for a connection.  On a second console&lt;br /&gt;     (or a second machine), connect to the machine and port being listened on:&lt;br /&gt;&lt;br /&gt;           $ nc 127.0.0.1 1234&lt;br /&gt;&lt;br /&gt;     There should now be a connection between the ports.  Anything typed at&lt;br /&gt;     the second console will be concatenated to the first, and vice-versa.&lt;br /&gt;     After the connection has been set up, &lt;b&gt;nc&lt;/b&gt; does not really care which side&lt;br /&gt;     is being used as a `server' and which side is being used as a `client'.&lt;br /&gt;     The connection may be terminated using an EOF (`^D').&lt;/pre&gt;&lt;br /&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; word-wrap: break-word;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 18px;"&gt;&lt;br /&gt;&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/8187123025728820991-6417678471255906061?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/6417678471255906061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=6417678471255906061&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6417678471255906061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6417678471255906061'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-using-nc-and-tar-to-transfer.html' title='Solaris: using nc and tar to transfer file between hosts'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8702863056168913612</id><published>2011-11-19T19:21:00.003+08:00</published><updated>2011-11-19T19:27:45.755+08:00</updated><title type='text'>Solaris: rsync in parallel</title><content type='html'>&lt;div style="background-color: white; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;This does increase the amount of CPU and I/O that both your sending and receiving side use, but I’ve been able to run ~25 parallel instances without remotely degrading the rest of the system or slowing down the other RSYNC instances.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;The key is to use the –include and –exclude command line switches to create selection criteria.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;Example&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;drwxr-xr-x &amp;nbsp; 2 root &amp;nbsp; &amp;nbsp; root &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 179 Jul 19 16:22 directory_a&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;drwxr-xr-x &amp;nbsp; 2 root &amp;nbsp; &amp;nbsp; root &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 179 Aug 12 00:08 directory_b&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;If directory_a has 2,000,000 files underneath it. and directory_b also has 2,000,000 files, use the following idea to split them up. The –exclude option says in essence to “exclude everything that is not explicitly included”.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;#!/bin/bash&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;rsync -av --include="/directory_a*" --exclude="/*" --progress remote::/ /localdir/ &amp;gt; &amp;nbsp;/tmp/myoutputa.log &amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;rsync -av --include="/directory_b*" --exclude="/*" --progress remote::/ /localdir/ &amp;gt; &amp;nbsp;/tmp/myoutputb.log &amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;The following will take about twice the amount of time gathering files than the above:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;#!/bin/bash&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Verdana, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;rsync -av --progress remote::/ /localdir/ &amp;gt; /tmp/myoutput.log &amp;amp;&lt;/span&gt;&lt;/span&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/8187123025728820991-8702863056168913612?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8702863056168913612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8702863056168913612&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8702863056168913612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8702863056168913612'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-rsync-in-parallel.html' title='Solaris: rsync in parallel'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8769681343609773105</id><published>2011-11-19T13:32:00.000+08:00</published><updated>2011-11-19T13:32:51.567+08:00</updated><title type='text'>Unix: copy to remote via cpio example</title><content type='html'>cpio code for transferring files from one system to another:&lt;br /&gt;for dir in $(cat /dir.txt)#file containing ACL directories&lt;br /&gt;do&lt;br /&gt;cd $dir&lt;br /&gt;find . -print -depth | cpio -omPv | rsh "(cd $dir; cpio -idumvP&lt;br /&gt;)"&lt;br /&gt;done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8769681343609773105?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8769681343609773105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8769681343609773105&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8769681343609773105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8769681343609773105'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/unix-copy-to-remote-via-cpio-example.html' title='Unix: copy to remote via cpio example'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8890008438718814095</id><published>2011-11-19T12:10:00.003+08:00</published><updated>2011-11-19T12:18:49.564+08:00</updated><title type='text'>Solaris: Using rsync to tranfer dir between two hosts</title><content type='html'>&lt;i&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;&lt;u&gt;Transfer data from host3 to host4 via rsync and nfs&lt;/u&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;hostp3% more copyemea.sh&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;#! /bin/sh&lt;/i&gt;&lt;br /&gt;&lt;i&gt;date&amp;gt; copy.log&lt;/i&gt;&lt;br /&gt;&lt;i&gt;/opt/csw/bin/rsync -ar --stats /app/iwstoreEMEA_snap/ /hosta4_EMEA/ 2&amp;gt;&amp;amp;1 &amp;gt;&amp;gt;c&lt;/i&gt;&lt;i&gt;opy.log&lt;/i&gt;&lt;br /&gt;&lt;i&gt;date&amp;gt;&amp;gt; copy.log&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;hostp3% df -h /hosta4_EMEA&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size &amp;nbsp; used &amp;nbsp;avail capacity &amp;nbsp;Mounted on&lt;/i&gt;&lt;br /&gt;&lt;i&gt;hosta4:/opt/app/data/iw-store/EMEA&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;250G &amp;nbsp; 134G &amp;nbsp; 116G &amp;nbsp; &amp;nbsp;54% &amp;nbsp; &amp;nbsp;/hosta4_EMEA&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;hostp3%&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;in this case&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;i&gt;&lt;b&gt;hosta4#zfs set sharenfs=rw=153.88.177.59,root=153.88.177.59 app/iwstoreEMEA&lt;/b&gt;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;i&gt;where&amp;nbsp;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;&lt;div style="display: inline !important;"&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style="display: inline !important;"&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;153.88.177.59 is ip address of host3&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;on host3&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;b&gt;host3# mount host4:/opt/app/data/iw-store/EMEA /host4_EMEA&lt;/b&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Initial data on host4 must be empty, if not unexpected result might happens. Such as size final transfer &amp;gt; host3 dir&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8890008438718814095?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8890008438718814095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8890008438718814095&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8890008438718814095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8890008438718814095'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-using-rsync-to-tranfer-dir.html' title='Solaris: Using rsync to tranfer dir between two hosts'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3477633487697985342</id><published>2011-11-19T11:58:00.000+08:00</published><updated>2011-11-19T11:58:31.101+08:00</updated><title type='text'>Solaris: ZFS snapshot between two hosts</title><content type='html'>&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; font-family: sans-serif; font-size: 17px; line-height: 19px; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;Send the initial snapshot and create the filesystem on the remote host&lt;/span&gt;&lt;/h3&gt;&lt;ol style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; list-style-image: none; margin-bottom: 0px; margin-left: 3.2em; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;li style="margin-bottom: 0.1em;"&gt;make sure that the receiving host is running Solaris updated after October 2008&lt;/li&gt;&lt;li style="margin-bottom: 0.1em;"&gt;make sure the filesystem you are replicating does not exist already on the receving host&lt;/li&gt;&lt;li style="margin-bottom: 0.1em;"&gt;zfs snapshot export/upload@zrep-00001 on the origin host&lt;/li&gt;&lt;li style="margin-bottom: 0.1em;"&gt;zfs send -i export/upload@zrep-00001 | ssh otherservername "cat &amp;gt; /export/save/upload@zrep-00001"&lt;/li&gt;&lt;li style="margin-bottom: 0.1em;"&gt;wait several days depending on the size of the dataset&lt;/li&gt;&lt;li style="margin-bottom: 0.1em;"&gt;cat /export/save/upload@rzrepl-00001 | zfs recv export/upload&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&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: sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;Statistics: able to complete a transfer of 6.1T in 10 days. (From ms1 (Sun Fire X4500) to ms5 (Sun Fire X4540), both hosts in the same rack.)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;a href="" id="Send_incremental_covering_the_days_that_the_first_step_took" name="Send_incremental_covering_the_days_that_the_first_step_took" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; color: #002bb8; font-family: sans-serif; font-size: 13px; line-height: 19px; text-decoration: none;"&gt;&lt;/a&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; font-family: sans-serif; font-size: 17px; line-height: 19px; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;Send incremental covering the days that the first step took&lt;/span&gt;&lt;/h3&gt;&lt;ol style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19px; list-style-image: none; margin-bottom: 0px; margin-left: 3.2em; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;li style="margin-bottom: 0.1em;"&gt;zfs snapshot export/upload@zrep-00002 on the origin host&lt;/li&gt;&lt;li style="margin-bottom: 0.1em;"&gt;zfs send -i export/upload@zrep-00001 export/upload@zrep-00002 | ssh otherservername "cat &amp;gt; /export/save/upload@zrep-00002"&lt;/li&gt;&lt;li style="margin-bottom: 0.1em;"&gt;cat /export/save/upload@rzrepl-00002 | zfs recv export/upload&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3477633487697985342?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3477633487697985342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3477633487697985342&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3477633487697985342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3477633487697985342'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-zfs-snapshot-between-two-hosts.html' title='Solaris: ZFS snapshot between two hosts'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4217993416265126534</id><published>2011-11-19T10:37:00.000+08:00</published><updated>2011-11-19T10:37:10.582+08:00</updated><title type='text'>Solaris 10: How to mount lofs from localzone</title><content type='html'>Sol10: How to mount lofs from localzone&lt;br /&gt;&lt;br /&gt;On global zone, mounted file system looks like this&lt;br /&gt;&lt;br /&gt;/dev/md/dsk/d113 530063064 65560 524696880 1% /zones/myzone/ftp/data2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;run this zonecfg command&lt;br /&gt;zonecfg -z myzone&lt;br /&gt;&amp;gt; add fs&lt;br /&gt;&amp;gt; set dir=/ftp/data2&lt;br /&gt;&amp;gt; set special=/zones/myzone/ftp/data2&lt;br /&gt;&amp;gt; set type=lofs&lt;br /&gt;&amp;gt; end&lt;br /&gt;&amp;gt; verify&lt;br /&gt;&amp;gt; commit&lt;br /&gt;&amp;gt; exit&lt;br /&gt;&lt;br /&gt;run below command to confirm&lt;br /&gt;#zonecfg -z myzone info&lt;br /&gt;....&lt;br /&gt;fs:&lt;br /&gt;dir: /ftp/data2&lt;br /&gt;special: /zones/myzone/ftp/data2&lt;br /&gt;raw not specified&lt;br /&gt;type: lofs&lt;br /&gt;options: []&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;root@myzone # mount -F lofs /ftp/data2 /ftp/data2&lt;br /&gt;&lt;br /&gt;root@myzone # df -k /ftp/data2&lt;br /&gt;Filesystem kbytes used avail capacity Mounted on&lt;br /&gt;/ftp/data2 530063064 65560 524696880 1% /ftp/data2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4217993416265126534?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4217993416265126534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4217993416265126534&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4217993416265126534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4217993416265126534'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-10-how-to-mount-lofs-from.html' title='Solaris 10: How to mount lofs from localzone'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8127020190219371201</id><published>2011-11-19T09:39:00.003+08:00</published><updated>2011-11-19T09:43:15.203+08:00</updated><title type='text'>HPUX/LINUX: NFS mounting</title><content type='html'>&lt;h1 class="topictitle1" style="background-color: white; font-family: Arial, sans-serif; font-size: 1.5em; margin-bottom: 0.5em; margin-top: 0pc; word-spacing: 0.1em;"&gt;Exporting and mounting file systems on Linux and HP-UX&lt;/h1&gt;&lt;div style="background-color: white; font-family: Arial, sans-serif; font-size: 13px;"&gt;If you want to use a shared file system on Linux® and HP-UX systems, you must export it from the system where it is located and mount it on every system on which you want to access it.&lt;br /&gt;&lt;div class="p" style="margin-top: 1em;"&gt;You must be logged on as&amp;nbsp;&lt;span class="cmdname" style="font-weight: bold;"&gt;root&lt;/span&gt;.&lt;/div&gt;&lt;div class="section" style="margin-bottom: 1em; margin-top: 1em;"&gt;To export and mount file systems on Linux and HP-UX systems, complete these steps:&lt;/div&gt;&lt;ol style="margin-top: 0.1em; padding-top: 0.1em;"&gt;&lt;li class="stepexpand" style="margin-bottom: 1em; margin-left: 0em; margin-top: 1em;"&gt;Export a file system on Linux and HP-UX systems.&lt;ol style="margin-top: 0.1em; padding-top: 0.1em;" type="a"&gt;&lt;li style="margin-bottom: 0em; margin-left: 0em; margin-top: 0em;"&gt;Add the file system that you want to export to the file&amp;nbsp;&lt;span class="filepath" style="font-family: 'Courier New', Courier, monospace;"&gt;⁄etc⁄exports&lt;/span&gt;.&lt;/li&gt;&lt;li style="margin-bottom: 0em; margin-left: 0em; margin-top: 0em;"&gt;Export all entries in the file&amp;nbsp;&lt;span class="filepath" style="font-family: 'Courier New', Courier, monospace;"&gt;⁄etc⁄exports&lt;/span&gt;&amp;nbsp;by entering the command&amp;nbsp;&lt;span class="cmdname" style="font-weight: bold;"&gt;⁄usr⁄sbin⁄exportfs -a&lt;/span&gt;.&lt;/li&gt;&lt;li style="margin-bottom: 0em; margin-left: 0em; margin-top: 0em;"&gt;Verify that the file system is exported by entering the command&amp;nbsp;&lt;span class="cmdname" style="font-weight: bold;"&gt;⁄usr⁄sbin⁄exportfs&lt;/span&gt;.&lt;/li&gt;&lt;/ol&gt;All shared file systems are displayed.&lt;/li&gt;&lt;li class="stepexpand" style="margin-bottom: 1em; margin-left: 0em; margin-top: 1em;"&gt;Mount a file system on HP-UX and Linux systems.&lt;ol style="margin-top: 0.1em; padding-top: 0.1em;" type="a"&gt;&lt;li class="substepexpand" style="margin-bottom: 1em; margin-left: 0em; margin-top: 1em;"&gt;If the file system that you want to mount is remote, ensure you have the permission to mount it by entering the command&lt;span class="cmdname" style="font-weight: bold;"&gt;⁄usr⁄sbin⁄showmount - e &lt;remote host=""&gt;&lt;/remote&gt;&lt;/span&gt;&lt;br /&gt;where&amp;nbsp;&lt;var class="varname" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;remote host=""&gt;&lt;/remote&gt;&lt;/var&gt;&amp;nbsp;is the name of the remote operating system.&lt;/li&gt;&lt;li class="substepexpand" style="margin-bottom: 1em; margin-left: 0em; margin-top: 1em;"&gt;Choose an empty file system that serves as the mount point for the file system that you want to mount.If an empty file system does not exist, create it by entering the command&amp;nbsp;&lt;span class="cmdname" style="font-weight: bold;"&gt;mkdir /&lt;local dir=""&gt;&lt;/local&gt;&lt;/span&gt;&lt;br /&gt;where&amp;nbsp;&lt;var class="varname" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;local dir=""&gt;&lt;/local&gt;&lt;/var&gt;&amp;nbsp;is the name of the local file system.&lt;/li&gt;&lt;li class="substepexpand" style="margin-bottom: 1em; margin-left: 0em; margin-top: 1em;"&gt;Mount the file system on your local system by entering the corresponding command.&lt;ul style="margin-top: 0.1em; padding-top: 0.1em;"&gt;&lt;li style="margin-bottom: 0em; margin-left: 0em; margin-top: 0em;"&gt;On HP-UX, enter the command&lt;span class="cmdname" style="font-weight: bold;"&gt;/usr/sbin/mount -F nfs&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;sourcehost:&lt;/span&gt;&lt;remote host="" style="font-weight: bold;"&gt;/&lt;remote dir=""&gt;sourcedir /destinationdir&lt;/remote&gt;&lt;/remote&gt;&lt;/li&gt;&lt;li style="margin-bottom: 0em; margin-left: 0em; margin-top: 0em;"&gt;On Linux systems, enter the command&lt;span class="cmdname" style="font-weight: bold;"&gt;/bin/mount -t nfs sourcehost:&lt;remote host=""&gt;/&lt;remote dir=""&gt;sourcedir /destinationdir&lt;local dir=""&gt;&lt;/local&gt;&lt;/remote&gt;&lt;/remote&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;where:&lt;br /&gt;&lt;var class="varname" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;remote host=""&gt;&lt;/remote&gt;&lt;/var&gt;&amp;nbsp;is the name of the remote operating system&lt;br /&gt;&lt;var class="varname" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;remote dir=""&gt;&lt;/remote&gt;&lt;/var&gt;&amp;nbsp;is the name of the remote file system&lt;br /&gt;&lt;var class="varname" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;local dir=""&gt;&lt;/local&gt;&lt;/var&gt;&amp;nbsp;is the name of the local file system&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="section" style="margin-bottom: 1em; margin-top: 1em;"&gt;To mount the remote file system after each reboot, add it to the&amp;nbsp;&lt;span class="filepath" style="font-family: 'Courier New', Courier, monospace;"&gt;/etc/fstab&lt;/span&gt;&amp;nbsp;file.For a description of the file format of&amp;nbsp;&lt;span class="filepath" style="font-family: 'Courier New', Courier, monospace;"&gt;/etc/fstab&lt;/span&gt;, enter the command&lt;br /&gt;&lt;span class="cmdname" style="font-weight: bold;"&gt;man fstab&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;example fstab:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;strong&gt;server:/mnt&lt;/strong&gt; &lt;strong&gt;/mnt&lt;/strong&gt; &lt;strong&gt;nfs&lt;/strong&gt; &lt;strong&gt;rw,hard&lt;/strong&gt; &lt;strong&gt;0&lt;/strong&gt; &lt;strong&gt;0&lt;/strong&gt; &lt;strong&gt;#mount&lt;/strong&gt; &lt;strong&gt;from&lt;/strong&gt; &lt;strong&gt;server&lt;/strong&gt;&lt;/pre&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/8187123025728820991-8127020190219371201?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8127020190219371201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8127020190219371201&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8127020190219371201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8127020190219371201'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/exporting-and-mounting-file-systems-on.html' title='HPUX/LINUX: NFS mounting'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-256705045211698865</id><published>2011-11-18T22:32:00.000+08:00</published><updated>2011-11-18T22:32:52.946+08:00</updated><title type='text'>Solaris nfs throubleshooting</title><content type='html'>&lt;pre&gt;# showmount -a&lt;br /&gt;     All mount points on local host:&lt;br /&gt;     edcert20.ucs.indiana.edu:/home&lt;br /&gt;     edcert21.ucs.indiana.edu:/usr/local&lt;br /&gt;&lt;br /&gt;     # showmount -d&lt;br /&gt;     Directories on local host:&lt;br /&gt;     /home&lt;br /&gt;     /usr/local&lt;br /&gt;&lt;br /&gt;     # showmount -e&lt;br /&gt;     Export list on local host&lt;br /&gt;     /home           edcert21.ucs.indiana.edu edcert20.ucs.indiana.edu     &lt;br /&gt;     /usr/local      edcert21.ucs.indiana.edu&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;pre&gt;# df -F nfs&lt;br /&gt;     Filesystem                      Type  blocks     use   avail %use  Mounted on&lt;br /&gt;     edcert21.ucs.indiana.edu:/home  nfs    68510   55804   12706  81%  /usr/share/help&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;div style="font-family: 'Times New Roman'; white-space: normal;"&gt;Use the command&amp;nbsp;&lt;i&gt;nfsstat -s&lt;/i&gt;&amp;nbsp;to display NFS activity on the server side. For example:&lt;/div&gt;&lt;pre&gt;# nfsstat -s&lt;br /&gt;&lt;br /&gt;     Server RPC:&lt;br /&gt;     calls      badcalls   nullrecv   badlen     xdrcall    duphits    dupage&lt;br /&gt;     50852      0          0          0          0          0          0.00    &lt;br /&gt;&lt;br /&gt;     Server NFS:&lt;br /&gt;     calls        badcalls     &lt;br /&gt;     50852        0            &lt;br /&gt;     null         getattr      setattr      root         lookup       readlink  &lt;br /&gt;     1  0%        233  0%      0  0%        0  0%        1041  2%     0  0%  &lt;br /&gt;     read         wrcache      write        create       remove       rename    &lt;br /&gt;     49498 97%    0  0%        0  0%        0  0%        0  0%        0  0% &lt;br /&gt;     link         symlink      mkdir        rmdir        readdir      fsstat &lt;br /&gt;     0  0%        0  0%        0  0%        0  0%        75  0%       4  0%     &lt;br /&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;The output may be interpreted using the following guidelines.&lt;/span&gt;&lt;ul style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;li&gt;&lt;i&gt;badcalls&lt;/i&gt;&amp;nbsp;&amp;gt; 0 - RPC requests are being rejected by the server. This could indicate authentication problems caused by having a user in too many groups, attempts to access exported file systems as root, or an improper Secure RPC configuration.&lt;/li&gt;&lt;li&gt;&lt;i&gt;nullrecv&lt;/i&gt;&amp;nbsp;&amp;gt; 0 - NFS requests are not arriving fast enough to keep all of the&amp;nbsp;&lt;i&gt;nfsd&lt;/i&gt;&amp;nbsp;daemons busy. Reduce the number of NFS server daemons until&amp;nbsp;&lt;i&gt;nullrecv&lt;/i&gt;&amp;nbsp;is not incremented.&lt;/li&gt;&lt;li&gt;&lt;i&gt;symlink&lt;/i&gt;&amp;nbsp;&amp;gt; 10% - Clients are making excessive use of symbolic links that are on file systems exported by the server. Replace the symbolic link with a directory, and mount both the underlying file system and the link's target on the client.&lt;/li&gt;&lt;li&gt;&lt;i&gt;getattr&lt;/i&gt;&amp;nbsp;&amp;gt; 60% - Check for non-default attribute caching (&lt;i&gt;noac&lt;/i&gt;&amp;nbsp;mount option) on NFS clients.&lt;/li&gt;&lt;/ul&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;On the client side use the command&amp;nbsp;&lt;/span&gt;&lt;i style="font-family: 'Times New Roman'; white-space: normal;"&gt;nfsstat -c&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;&amp;nbsp;to display the client statistics. For example:&lt;/span&gt;&lt;pre&gt;# nfsstat -c&lt;br /&gt;&lt;br /&gt;     Client RPC:&lt;br /&gt;     calls      badcalls   retrans    badxid     timeout    wait       newcred&lt;br /&gt;     369003     62         1998       43         2053       0          0 &lt;br /&gt;&lt;br /&gt;     Client NFS:&lt;br /&gt;     calls        badcalls     nclget       nclsleep     &lt;br /&gt;     368948       0            368948       0            &lt;br /&gt;     null         getattr      setattr      root         lookup       readlink  &lt;br /&gt;     0  0%        51732 14%    680  0%      0  0%        95069 25%    542  0% &lt;br /&gt;     read         wrcache      write        create       remove       rename &lt;br /&gt;     210187 56%   0  0%        2259  0%     1117  0%     805  0%      337  0%   &lt;br /&gt;     link         symlink      mkdir        rmdir        readdir      fsstat    &lt;br /&gt;     120  0%      0  0%        7  0%        0  0%        5510  1%     583  0% &lt;br /&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;This output may be interpreted using the guidelines given below.&lt;/span&gt;&lt;ul style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;li&gt;&lt;i&gt;timeout&lt;/i&gt;&amp;nbsp;&amp;gt; 5% - The client's RPC requests are timing out before the server can answer them, or the requests are not reaching the server. Check&amp;nbsp;&lt;i&gt;badxid&lt;/i&gt;&amp;nbsp;to determine the problem.&lt;/li&gt;&lt;li&gt;&lt;i&gt;badxid&lt;/i&gt;&amp;nbsp;~&amp;nbsp;&lt;i&gt;timeout&lt;/i&gt;&amp;nbsp;- RPC requests are being handled by the server, but too slowly. Increase&amp;nbsp;&lt;i&gt;timeo&lt;/i&gt;&amp;nbsp;parameter value for this mount, or tune the server to reduce the average request service time.&lt;/li&gt;&lt;li&gt;&lt;i&gt;badxid&lt;/i&gt;&amp;nbsp;~ 0 - With&amp;nbsp;&lt;i&gt;timeout&lt;/i&gt;s greater than 3%, this indicates that packets to and from the server are getting lost on the network. Reduce the read and write block sizes (mount parameters&amp;nbsp;&lt;i&gt;rsize&lt;/i&gt;&amp;nbsp;and&lt;i&gt;wsize&lt;/i&gt;) for this mount.&lt;/li&gt;&lt;li&gt;&lt;i&gt;badxid&lt;/i&gt;&amp;nbsp;&amp;gt; 0 - RPC calls on soft-mounted file systems are timing out. If the server is running, and&amp;nbsp;&lt;i&gt;badcalls&lt;/i&gt;&amp;nbsp;is growing, then soft mounted file systems should use a larger&amp;nbsp;&lt;i&gt;timeo&lt;/i&gt;&amp;nbsp;or&amp;nbsp;&lt;i&gt;retrans&lt;/i&gt;&amp;nbsp;value.&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: 'Times New Roman'; white-space: normal;"&gt;&lt;/div&gt;&lt;hr style="font-family: 'Times New Roman'; white-space: normal;" /&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div&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/8187123025728820991-256705045211698865?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/256705045211698865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=256705045211698865&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/256705045211698865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/256705045211698865'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-nfs-throubleshooting.html' title='Solaris nfs throubleshooting'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3183837657994808138</id><published>2011-11-18T22:22:00.000+08:00</published><updated>2011-11-18T22:22:09.846+08:00</updated><title type='text'>Solaris vxvm move a disk group to another system</title><content type='html'>&lt;h5 style="background-color: white; color: #6666cc; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13pt; text-align: left;"&gt;Move a disk group to another system&lt;/h5&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;1. Unmount and stop all volumes in the disk group on the first system:&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;&lt;code style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;#&amp;nbsp;&lt;b&gt;umount /mntdir&lt;/b&gt;&lt;br /&gt;#&amp;nbsp;&lt;b&gt;vxvol -g &amp;lt;&lt;i&gt;diskgroup&lt;/i&gt;&amp;gt; stopall&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;2. Deport (disable all local access to) the disk group to be moved with this command:&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;&lt;code style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;#&amp;nbsp;&lt;b&gt;vxdg deport &amp;lt;&lt;i&gt;diskgroup&lt;/i&gt;&amp;gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;3. Import (enable local access to) the disk group and its disks from the second system with:&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;&lt;code style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;#&amp;nbsp;&lt;b&gt;vxdg import &amp;lt;&lt;i&gt;diskgroup&lt;/i&gt;&amp;gt;&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;4. After the disk group is imported, start all volumes in the disk group with this command:&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;&lt;code style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;#&amp;nbsp;&lt;b&gt;vxrecover -g &amp;lt;&lt;i&gt;diskgroup&lt;/i&gt;&amp;gt; -sb&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;The options here indicate that VERITAS Volume Manager will start all the disabled volumes (-s) in the background (-b).&lt;/div&gt;&lt;div&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/8187123025728820991-3183837657994808138?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3183837657994808138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3183837657994808138&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3183837657994808138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3183837657994808138'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-vxvm-move-disk-group-to-another.html' title='Solaris vxvm move a disk group to another system'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4096082054854662294</id><published>2011-11-18T22:19:00.000+08:00</published><updated>2011-11-18T22:19:36.965+08:00</updated><title type='text'>Solaris : vxfs large file</title><content type='html'>&lt;h5 style="background-color: white; color: #6666cc; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13pt; text-align: left;"&gt;How to check for/enable largefile support on vxfs&lt;/h5&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;To check if largefiles are enabled:&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;&lt;code style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;#&amp;nbsp;&lt;b&gt;/usr/lib/fs/vxfs/fsadm /mount/point&lt;/b&gt;&lt;/code&gt;nolargefiles&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;Unlike ufs, you can enable vxfs largefile support on the fly with fsadm:&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;&lt;code style="font-family: 'Lucida Console', 'Courier New', Courier, monospace;"&gt;#&amp;nbsp;&lt;b&gt;/usr/lib/fs/vxfs/fsadm -o largefiles /mount/point&lt;/b&gt;&lt;/code&gt;&lt;/div&gt;&lt;br style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;" /&gt;&lt;a href="" name="remmir" style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;&lt;/a&gt;&lt;h5 style="background-color: white; color: #6666cc; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13pt; text-align: left;"&gt;Remove a mirror from a volume&lt;/h5&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;Dissociate and remove a mirror (plex) from a volume:&lt;/div&gt;&lt;code style="background-color: white; color: #333333; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 15px;"&gt;#&amp;nbsp;&lt;b&gt;vxplex [-g diskgroup] -o rm dis&amp;nbsp;&lt;i&gt;plex&lt;/i&gt;&lt;/b&gt;&lt;/code&gt;&lt;div style="background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;This command will remove the mirror (plex) and all associated subdisks.&lt;/div&gt;&lt;div&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/8187123025728820991-4096082054854662294?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4096082054854662294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4096082054854662294&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4096082054854662294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4096082054854662294'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-vxfs-large-file.html' title='Solaris : vxfs large file'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7208065032452150899</id><published>2011-11-18T21:34:00.000+08:00</published><updated>2011-11-18T21:34:08.211+08:00</updated><title type='text'>HPUX LVM mirror</title><content type='html'>&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times; font-size: large;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;div align="CENTER"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times; font-size: large;"&gt;System Administration Guide for HP-UX 10.20&lt;br /&gt;Part 4 - LVM Disk Mirroring&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style="font-family: 'Courier New'; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-size: small;"&gt;&lt;div align="JUSTIFY"&gt;This note describes how to integrate a second disk into the system volume group and configure it as an alternative boot device, thereby providing LVM mirrored backup for the primary boot device.&lt;/div&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family: 'Courier New'; font-size: x-small;"&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times; font-size: medium;"&gt;Introduction&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;&lt;div align="JUSTIFY"&gt;This note describes how to configure LVM mirroring of a system disk. In this particular example, the HP server is STSRV1, the primary boot device is SCSI=6&amp;nbsp;&lt;i&gt;(/dev/dsk/c2t6d0)&lt;/i&gt;&amp;nbsp;and the alternative mirrored boot device is SCSI=5&amp;nbsp;&lt;i&gt;(/dev/dsk/c2t5d0)&lt;/i&gt;. The following commands may be found in&amp;nbsp;&lt;i&gt;/sbin&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i&gt;/usr/sbin&lt;/i&gt;&amp;nbsp;must be run as root.&lt;/div&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: x-small;"&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times; font-size: medium;"&gt;Procedure - Create a System Mirror Disk&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;&lt;div align="JUSTIFY"&gt;This procedure assumes that the HPUX-10.## Operating system and the HPUX LVM mirroring product has already been installed.&lt;/div&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# ioscan -fnC disk                                         (identify mirror disk)&lt;br /&gt;# pvcreate -Bf /dev/rdsk/c2t5d0                            (make a bootable physical volume)&lt;br /&gt;# mkboot -l /dev/rdsk/c2t5d0                               (create LVM disk layout)&lt;br /&gt;# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t5d0  (-lq = switch off quorum)&lt;br /&gt;# vgextend /dev/vg00 /dev/dsk/c2t5d0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# for P in 1 2 3 4 5 6 7 8 9 10&lt;br /&gt;&amp;gt; do&lt;br /&gt;&amp;gt; lvextend -m 1 /dev/vg00/lvol$P /dev/dsk/c2t5d0&lt;br /&gt;&amp;gt; sleep 1&lt;br /&gt;&amp;gt; done&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;div align="JUSTIFY"&gt;Following the mirroring procedure, it is now essential to setup the critical partitions concerning root, swap and boot. It is useful to confirm the partition layout using the commands&amp;nbsp;&lt;b&gt;bdf&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;lvlnboot&lt;/b&gt;.&lt;/div&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# bdf -l&lt;br /&gt;# lvlnboot –v&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;div align="JUSTIFY"&gt;Following changes seen under HPUX-10.20, the / (root) partition will appear first in the listings as&amp;nbsp;&lt;i&gt;/dev/vg00/lvol3&lt;/i&gt;&amp;nbsp;and the&amp;nbsp;&lt;i&gt;/stand&lt;/i&gt;&amp;nbsp;(boot) partition will probably be reported as "PV Name"&amp;nbsp;&lt;i&gt;and /dev/vg00/lvol1&lt;/i&gt;. The first command below is destructive, in that it removes the "PV Name" boot entry. It should therefore be reinserted using the&amp;nbsp;&lt;b&gt;lvlnboot -b&lt;/b&gt;&amp;nbsp;command below. Exercise extreme care with the following commands.&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;/div&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# lvlnboot -r /dev/vg00/lvol3                      (prepare a root LVM logical volume)&lt;br /&gt;# lvlnboot -s /dev/vg00/lvol2                      (prepare a swap LVM logical volume)&lt;br /&gt;# lvlnboot -b /dev/vg00/lvol1                      (prepare a boot LVM logical volume)&lt;br /&gt;# vgcfgbackup vg00&lt;br /&gt;# lifls -C /dev/rdsk/c2t5d0                        (confirms as a boot device)&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: x-small;"&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times; font-size: medium;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Disk Crash - D-Class Procedure (Fast Recovery - Hot-Swap Disk )&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;&lt;div align="JUSTIFY"&gt;The example below assumes that the system disk&amp;nbsp;&lt;i&gt;(/dev/dsk/c0t5d0&lt;/i&gt;) has crashed and has been replaced by a&amp;nbsp;&lt;i&gt;hot-swap&lt;/i&gt;&amp;nbsp;disk (ie. It is not necessary to halt or boot the server). The procedure would be just the same for the mirrored disk as follows :&lt;/div&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# pvcreate -Bf /dev/rdsk/c0td50&lt;br /&gt;# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0td50&lt;br /&gt;# vgchange -a y /dev/vg00&lt;br /&gt;# pvcreate -Bf /dev/rdsk/c2t5d0                            (make a bootable physical volume)&lt;br /&gt;# mkboot -l /dev/rdsk/c2t5d0                               (create LVM disk layout)&lt;br /&gt;# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t5d0  (-lq = switch off quorum)&lt;br /&gt;# vgsync /dev/vg00&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;[NB. It will only be necessary to run the&amp;nbsp;&lt;b&gt;mkboot&lt;/b&gt;&amp;nbsp;commands above if it is a system disk replacement.]&lt;br /&gt;&lt;br /&gt;When the synchronisation of the logical volumes is complete, reconfirm the following :&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# lvlnboot -r /dev/vg00/lvol3                      (prepare a root LVM logical volume)&lt;br /&gt;# lvlnboot -s /dev/vg00/lvol2                      (prepare a swap LVM logical volume)&lt;br /&gt;# lvlnboot -b /dev/vg00/lvol1                      (prepare a boot LVM logical volume)&lt;br /&gt;# vgcfgbackup vg00&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: x-small;"&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times; font-size: medium;"&gt;Disk Crash - Night Procedure (Fast Recovery - No Disk Replacement)&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;&lt;div align="JUSTIFY"&gt;The example below assumes that the system disk&amp;nbsp;&lt;i&gt;(/dev/dsk/c2t6d0&lt;/i&gt;) has crashed and has NOT been replaced. The procedure, however, would be just the same for a mirrored disk crash with the exception of the change in device name. Due to the quorum philosophy, in that half the disk space is now no longer available, it is necessary to boot up in single-user mode with the quorum argument unset as follows :&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;/div&gt;1.Escape from boot sequence&lt;br /&gt;2. Choose mirrored disk (ie. P0 = /dev/dsk/c2td50)&lt;br /&gt;3. Boot up in single user mode, without quorum, as follows :&lt;br /&gt;&lt;br /&gt;... Select from menu :&amp;nbsp;&lt;b&gt;b P0 isl&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;ISL &amp;gt;&amp;nbsp;&lt;b&gt;hpux -is -lq (;0)/stand/vmunix&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# init 4&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: x-small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times; font-size: medium;"&gt;Disk Crash - Day Procedure (Slow Recovery - Intrnal Disk Replacement)&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;&lt;div align="JUSTIFY"&gt;The example below assumes that the system disk (&lt;i&gt;/dev/dsk/c2t6d0&lt;/i&gt;) has crashed and been replaced. The procedure, however, would be just the same for a mirrored disk crash with the exception of the change in device name. Due to the quorum philosophy, in that half the disk space is now not available, it is necessary to boot up in single-user mode with the quorum argument unset as follows :&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;/div&gt;1. Escape from boot sequence&lt;br /&gt;2. Choose mirrored disk (ie. P0 = /dev/dsk/c2td50)&lt;br /&gt;3. Boot up in single user mode, without quorum, as follows :&lt;br /&gt;&lt;br /&gt;... Select from menu :&amp;nbsp;&lt;b&gt;b p0 isl&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;ISL &amp;gt;&amp;nbsp;&lt;b&gt;hpux -is -lq (;0)/stand/vmunix&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# PATH=$PATH:/sbin:/usr/sbin&lt;br /&gt;# mount -a&lt;br /&gt;# pvcreate -Bf /dev/rdsk/c2t6d0&lt;br /&gt;# mkboot -l /dev/rdsk/c2t6d0&lt;br /&gt;# mkboot -a "hpux (;0) /stand/vmunix" /dev/rdsk/c2t6d0&lt;br /&gt;# vgcfgrestore -n /dev/vg00 /dev/rdsk/c2td60&lt;br /&gt;# vgchange -a y /dev/vg00&lt;br /&gt;# lvlnboot -r /dev/vg00/lvol3                      (prepare a root LVM logical volume)&lt;br /&gt;# lvlnboot -s /dev/vg00/lvol2                      (prepare a swap LVM logical volume)&lt;br /&gt;# lvlnboot -b /dev/vg00/lvol1                      (prepare a boot LVM logical volume)&lt;br /&gt;# init 4&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div align="JUSTIFY"&gt;The machine will now boot up correctly and the disks will synchronize automatically. The replaced system disk will now mirror automatically from the original mirrored disk. There will be considerable disk activity at this time and the progress of the mirroring may be confirmed with :&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;/div&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# lvdisplay -v /dev/vg00/lvol1&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;div align="JUSTIFY"&gt;This will probably show that the first volume is "current" and therefore successfully mirrored.&lt;/div&gt;&lt;div align="JUSTIFY"&gt;&lt;/div&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# lvdisplay -v /dev/vg00/lvol8&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;div align="JUSTIFY"&gt;&lt;/div&gt;&lt;div align="JUSTIFY"&gt;This will almost certainly show that the volume is "stale" and therefore not yet mirrored. When the disks are synchronized, reboot the machine, thereby ensuring that the future is secure and the original "primary boot path" is valid.&lt;/div&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: x-small;"&gt;&lt;div align="JUSTIFY"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-family: Times; font-size: medium;"&gt;Procedure - Remove a Mirrored System Disk&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: small;"&gt;Essentially the reverse of the procedure above.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;b&gt;&lt;br /&gt;# for P in 1 2 3 4 5 6 7 8 9 10&lt;br /&gt;&amp;gt; do&lt;br /&gt;&amp;gt; lvreduce -m 0 /dev/vg00/lvol$P /dev/dsk/c2t5d0&lt;br /&gt;&amp;gt; sleep 1&lt;br /&gt;&amp;gt; done&lt;br /&gt;# vgreduce /dev/vg00 /dev/dsk/c2t5d0&lt;/b&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7208065032452150899?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7208065032452150899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7208065032452150899&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7208065032452150899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7208065032452150899'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/hpux-lvm-mirror.html' title='HPUX LVM mirror'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5613306834183717084</id><published>2011-11-18T21:29:00.001+08:00</published><updated>2011-11-18T21:31:15.613+08:00</updated><title type='text'>HPUX: Mirroring boot disks</title><content type='html'>&lt;h3&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8187123025728820991&amp;amp;postID=5613306834183717084&amp;amp;from=pencil" name="parisc"&gt;PA-RISC Mirroring procedures&lt;/a&gt;&lt;/h3&gt;&lt;ol type="1"&gt;&lt;li&gt;Use&amp;nbsp;&lt;b&gt;ioscan&lt;/b&gt;&amp;nbsp;to identify a suitable alternate boot disk. The disk should be about the same size as the primary boot disk and, preferably, on a separate I/O channel. When I do this, I typically set up variables for the character and block devices. The example commands that follow use that syntax.&lt;/li&gt;&lt;li&gt;Create the boot partitions on the disk. The args to ignore quorum are used on the hpux command. If you're booting off of the alternate boot disk, there's a better than even chance your primary isn't there anymore...&lt;ol type="a"&gt;&lt;li&gt;&lt;b&gt;pvcreate -B ${rdsk}&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;mkboot ${rdsk}&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;mkboot -a "hpux -lq" ${rdsk}&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;Add the disk to vg00 - or where ever your OS is&lt;br /&gt;&lt;b&gt;vgextend vg00 ${dsk}&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Extend the logical volumes. I typically use an inline function for this:&lt;br /&gt;&lt;pre&gt;&lt;b&gt;for lv in $(vgdisplay -v vg00 | grep -i 'lv name' | awk '{print $NF}')&lt;br /&gt;do&lt;br /&gt;    echo "#################################"&lt;br /&gt;    echo ${lv}&lt;br /&gt;    lvextend -m 1 ${lv} ${dsk}&lt;br /&gt;done&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;NOTE: Each of the lvs can take awhile particularly if they're sizeable. I will usually create a function in another window that tells me how many logical extents are stale. Rerunning the function will hopefully show a decreasing number of extents.&lt;pre&gt;hm()&lt;br /&gt;{  lvdisplay -v $1 | sed -n -e '/Logical extents/,$p' | grep stale | wc -l&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Verification:&lt;ol type="a"&gt;&lt;li&gt;Use setboot to verify the alternate boot or HA alternate boot, as appropriate, is set:&lt;br /&gt;&lt;pre&gt;&lt;b&gt;# setboot&lt;/b&gt;&lt;br /&gt;Primary bootpath : 0/1/1/0.1.0&lt;br /&gt;HA Alternate bootpath : 0/1/1/0.0.0&lt;br /&gt;Alternate bootpath : 0/1/1/0.1.0&lt;br /&gt;&lt;br /&gt;Autoboot is ON (enabled)&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Use lvlnboot to verify the alternate boot disk is configured. Use&amp;nbsp;&lt;b&gt;lvlnboot -R /dev/vg00&lt;/b&gt;&amp;nbsp;to update.&lt;pre&gt;&lt;b&gt;# lvlnboot -v vg00&lt;/b&gt;&lt;br /&gt;Boot Definitions for Volume Group /dev/vg00:&lt;br /&gt;Physical Volumes belonging in Root Volume Group:&lt;br /&gt;        /dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk&lt;br /&gt;        /dev/dsk/c2t0d0s2 (0/1/1/0.0.0) -- Boot Disk&lt;br /&gt;Boot: lvol1     on:     /dev/dsk/c2t1d0s2&lt;br /&gt;                        /dev/dsk/c2t0d0s2&lt;br /&gt;Root: lvol3     on:     /dev/dsk/c2t1d0s2&lt;br /&gt;                        /dev/dsk/c2t0d0s2&lt;br /&gt;Swap: lvol2     on:     /dev/dsk/c2t1d0s2&lt;br /&gt;                        /dev/dsk/c2t0d0s2&lt;br /&gt;Dump: lvol2     on:     /dev/dsk/c2t1d0s2, 0&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8187123025728820991&amp;amp;postID=5613306834183717084&amp;amp;from=pencil" name="ia64"&gt;Itanium mirroring procedure&lt;/a&gt;&lt;/h3&gt;As stated previously, the ia64 mirroring procedure is quite different. Using the old disk naming schemes, you will end up creating disk partitions, ${rdsk}s2, for instance. The new naming conventions create partitions named /dev/rdisk/disk#_p#. The directions below demonstrate the legacy naming convention. The commands are the same for the new naming convention.&lt;br /&gt;&lt;ol type="1"&gt;&lt;li&gt;Use&amp;nbsp;&lt;b&gt;ioscan&lt;/b&gt;&amp;nbsp;to identify a suitable alternate boot disk. The disk should be about the same size as the primary boot disk and, preferably, on a separate I/O channel. When I do this, I typically set up variables for the character and block devices. The example commands that follow use that syntax.&lt;/li&gt;&lt;li&gt;Create the boot partition on the disk and generate the partition device files:&lt;ol type="a"&gt;&lt;li&gt;Create the partition template:&lt;br /&gt;&lt;pre&gt;&lt;b&gt; cat &amp;gt; /tmp/part &amp;lt;&amp;lt; eof&lt;br /&gt;&amp;gt; 3&lt;br /&gt;&amp;gt; EFI 500MB&lt;br /&gt;&amp;gt; HPUX 100%&lt;br /&gt;&amp;gt; HPSP 400MB&lt;br /&gt;&amp;gt; eof&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;idisk -f /tmp/part -w ${rdsk}&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Verify the partitions:&amp;nbsp;&lt;b&gt;idisk ${rdsk}&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Create the device files:&amp;nbsp;&lt;b&gt;insf -eH ${hw_path}&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;Create and populate the boot partitions:&lt;ol type="a"&gt;&lt;li&gt;&lt;b&gt;pvcreate -B ${rdsk}s2&lt;/b&gt;&amp;nbsp;NOTE: the s2 partition&lt;/li&gt;&lt;li&gt;&lt;b&gt;mkboot -e -l ${rdsk}&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;mkboot -a "boot vmunix -lq" ${dsk}&lt;/b&gt;&amp;nbsp;NOTE: *not* rdsk&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;vgextend vg00 ${dsk}s2&lt;/b&gt;&amp;nbsp;#note the s2 partition again&lt;/li&gt;&lt;li&gt;Extend the logical volumes. I typically use an inline function for this:&lt;br /&gt;&lt;pre&gt;&lt;b&gt;for lv in $(vgdisplay -v vg00 | grep -i 'lv name' | awk '{print $NF}')&lt;br /&gt;do&lt;br /&gt;    echo "#################################"&lt;br /&gt;    echo ${lv}&lt;br /&gt;    lvextend -m 1 ${lv} ${dsk}s2 # note the s2 partition again&lt;br /&gt;done&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;NOTE: Each of the lvs can take awhile particularly if they're sizeable. I will usually create a function in another window that tells me how many logical extents are stale. Rerunning the function will hopefully show a decreasing number of extents.&lt;pre&gt;hm()&lt;br /&gt;{  lvdisplay -v $1 | sed -n -e '/Logical extents/,$p' | grep stale | wc -l&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Verification:&lt;ol type="a"&gt;&lt;li&gt;Use setboot to verify the alternate boot or HA alternate boot, as appropriate, is set:&lt;br /&gt;&lt;pre&gt;&lt;b&gt;# setboot&lt;/b&gt;&lt;br /&gt;Primary bootpath : 0/1/1/0.1.0&lt;br /&gt;HA Alternate bootpath : 0/1/1/0.0.0&lt;br /&gt;Alternate bootpath : 0/1/1/0.1.0&lt;br /&gt;&lt;br /&gt;Autoboot is ON (enabled)&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Use lvlnboot to verify the alternate boot disk is configured. Use&amp;nbsp;&lt;b&gt;lvlnboot -R vg00&lt;/b&gt;&amp;nbsp;to update.&lt;pre&gt;&lt;b&gt;# lvlnboot -v vg00&lt;/b&gt;&lt;br /&gt;Boot Definitions for Volume Group /dev/vg00:&lt;br /&gt;Physical Volumes belonging in Root Volume Group:&lt;br /&gt;        /dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk&lt;br /&gt;        /dev/dsk/c2t0d0s2 (0/1/1/0.0.0) -- Boot Disk&lt;br /&gt;Boot: lvol1     on:     /dev/dsk/c2t1d0s2&lt;br /&gt;                        /dev/dsk/c2t0d0s2&lt;br /&gt;Root: lvol3     on:     /dev/dsk/c2t1d0s2&lt;br /&gt;                        /dev/dsk/c2t0d0s2&lt;br /&gt;Swap: lvol2     on:     /dev/dsk/c2t1d0s2&lt;br /&gt;                        /dev/dsk/c2t0d0s2&lt;br /&gt;Dump: lvol2     on:     /dev/dsk/c2t1d0s2, 0&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;Update the boot loaderThis part is still a bit confusing for me. The&amp;nbsp;&lt;i&gt;alternate boot&lt;/i&gt;&amp;nbsp;option in the efi boot menu points to the right disk; however, it doesn't know about the hpux.efi boot command so it doesn't work. You'd figure HP would make that a bit more automatic.&lt;br /&gt;So, note the hardware paths for the primary and alternate disks, then boot to the efi menu.&amp;nbsp;&lt;i&gt;Boot configuration&lt;/i&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;i&gt;Add a boot option&lt;/i&gt;,&lt;br /&gt;Identify your new mirror disk. when it says (pun1,lun0), that's going to be c#t1d0, (pun0,lun) will be c#t0d0, etc. Highlight the suspected mirror disk and press [enter]&lt;br /&gt;Assuming you got the right disk, you should be looking at something that looks like an old norton commander menu. Highlight EFI, press [enter], then highlight HPUX, press [enter], and finally, hpux.efi and (you guessed it), press [enter]. Enter a good description for the mirror disk.&lt;br /&gt;If you want, move the mirror disk entry to the top using the other options in the boot options menu. Once done, select the mirror disk entry to attempt to boot from it.&lt;br /&gt;Troubleshoot as necessary&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Taken from:&amp;nbsp;&lt;/div&gt;&lt;table align="left"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;URL:&lt;/td&gt;&lt;td&gt;http://olearycomputers.com/ll/hpux_mirror.html&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/8187123025728820991-5613306834183717084?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5613306834183717084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5613306834183717084&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5613306834183717084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5613306834183717084'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/hpux-mirroring-boot-disks.html' title='HPUX: Mirroring boot disks'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-1839077693231160168</id><published>2011-11-18T11:30:00.001+08:00</published><updated>2011-11-18T11:31:13.013+08:00</updated><title type='text'>Solaris zfs pool command example</title><content type='html'># zpool history&lt;br /&gt;History for 'app':&lt;br /&gt;2010-05-18.05:01:14 zpool create app c3t60060E80056F110000006F110000669Cd0&lt;br /&gt;2010-05-18.05:04:04 zfs set mountpoint=/opt/app app&lt;br /&gt;2010-05-18.05:05:36 zfs set mountpoint=/opt/app app&lt;br /&gt;2010-05-18.05:09:55 zfs create app/iwstoreAPAC&lt;br /&gt;2010-05-18.05:10:00 zfs create app/iwstoreEMEA&lt;br /&gt;2010-05-18.05:10:07 zfs create app/iwstoreAmericas&lt;br /&gt;2010-05-18.05:10:44 zfs set mountpoint=/opt/app/data/iw-store/APAC app/iwstoreAPAC&lt;br /&gt;2010-05-18.05:10:59 zfs set mountpoint=/opt/app/data/iw-store/EMEA app/iwstoreEMEA&lt;br /&gt;2010-05-18.05:11:19 zfs set mountpoint=/opt/app/data/iw-store/Americas app/iwstoreAmericas&lt;br /&gt;2010-05-18.05:12:44 zfs set quota=50GB app/iwstoreAPAC&lt;br /&gt;2010-05-18.05:12:55 zfs set quota=100GB app/iwstoreEMEA&lt;br /&gt;2010-05-18.05:13:05 zfs set quota=200GB app/iwstoreAmericas&lt;br /&gt;2010-05-18.05:14:02 zfs set quota=100GB app&lt;br /&gt;2010-05-18.05:15:05 zfs destroy app/iwstoreAPAC&lt;br /&gt;2010-05-18.05:15:11 zfs destroy app/iwstoreEMEA&lt;br /&gt;2010-05-18.05:15:18 zfs destroy app/iwstoreAmericas&lt;br /&gt;2010-05-18.05:15:53 zfs set quota=none app&lt;br /&gt;2010-05-18.05:16:14 zfs create app/opt&lt;br /&gt;2010-05-18.05:18:04 zfs destroy app/opt&lt;br /&gt;2010-05-18.05:18:32 zfs create app/optapp&lt;br /&gt;2010-05-18.05:18:49 zfs set mountpoint=/opt/app app/optapp&lt;br /&gt;2010-05-18.05:19:25 zfs set mountpoint=/opt/app app/optapp&lt;br /&gt;2010-05-18.05:20:02 zfs set mountpoint=none app&lt;br /&gt;2010-05-18.05:20:09 zfs set mountpoint=/opt/app app/optapp&lt;br /&gt;2010-05-18.05:22:31 zfs create app/optapp/iwstoreAPAC&lt;br /&gt;2010-05-18.05:22:36 zfs create app/optapp/iwstoreEMEA&lt;br /&gt;2010-05-18.05:22:42 zfs create app/optapp/iwstoreAmericas&lt;br /&gt;2010-05-18.05:23:04 zfs set mountpoint=/opt/app/data/iw-store/APAC app/optapp/iwstoreAPAC&lt;br /&gt;2010-05-18.05:23:16 zfs set mountpoint=/opt/app/data/iw-store/EMEA app/optapp/iwstoreEMEA&lt;br /&gt;2010-05-18.05:23:34 zfs set mountpoint=/opt/app/data/iw-store/Americas app/optapp/iwstoreAmericas&lt;br /&gt;2010-05-18.05:24:06 zfs set quota=50GB app/optapp/iwstoreAPAC&lt;br /&gt;2010-05-18.05:24:18 zfs set quota=100GB app/optapp/iwstoreEMEA&lt;br /&gt;2010-05-18.05:24:31 zfs set quota=200GB app/optapp/iwstoreAmericas&lt;br /&gt;2010-05-18.05:24:56 zfs set quota=100GB app/optapp&lt;br /&gt;2010-05-18.05:25:24 zfs set quota=200GB app/optapp/iwstoreAmericas&lt;br /&gt;2010-05-18.05:26:05 zfs set quota=200GB app/optapp&lt;br /&gt;2010-05-18.05:26:12 zfs set quota=200GB app/optapp/iwstoreAmericas&lt;br /&gt;2010-05-18.05:29:52 zfs rename app/optapp/iwstoreAPAC app/iwstoreAPAC&lt;br /&gt;2010-05-18.05:30:18 zfs rename app/optapp/iwstoreEMEA app/iwstoreEMEA&lt;br /&gt;2010-05-18.05:30:42 zfs rename app/optapp/iwstoreAmericas app/iwstoreAmericas&lt;br /&gt;2010-05-18.05:31:07 zfs set quota=100GB app/optapp&lt;br /&gt;2010-08-02.16:11:29 zfs set quota=250G app/iwstoreEMEA&lt;br /&gt;2010-08-30.14:34:21 zfs set quota=50gb app/iwstoreAmericas&lt;br /&gt;2010-08-30.14:34:37 zfs set quota=100gb app/iwstoreAPAC&lt;br /&gt;2011-10-27.12:35:41 zfs set sharenfs=rw=@153.88.177.59,root=@153.88.177.59 app/iwstoreAPAC&lt;br /&gt;2011-10-27.12:47:57 zfs set sharenfs=rw=@153.88.177.0/24,root=@153.88.177.0/24 app/iwstoreAPAC&lt;br /&gt;2011-10-27.12:54:22 zfs set sharenfs=rw=@153.88.177.0/24,root=@153.88.177.0/24 app/iwstoreAmericas&lt;br /&gt;2011-10-27.12:54:37 zfs set sharenfs=rw=@153.88.177.0/24,root=@153.88.177.0/24 app/iwstoreEMEA&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;div&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/8187123025728820991-1839077693231160168?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/1839077693231160168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=1839077693231160168&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1839077693231160168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1839077693231160168'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-zfs-pool-command-example.html' title='Solaris zfs pool command example'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4127642706709617006</id><published>2011-11-18T08:43:00.000+08:00</published><updated>2011-11-18T08:43:05.637+08:00</updated><title type='text'>Solaris Sending a ZFS Snapshot</title><content type='html'>&lt;h3 style="background-color: white; font-family: 'Univers LT Std', Univers, Arial, Helvetica, sans-serif; font-size: 20px; margin-bottom: 6px; margin-left: 0px; margin-right: 0px; margin-top: 20px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"&gt;Sending a ZFS Snapshot&lt;/h3&gt;&lt;div style="background-color: white; font-family: Arial, Helvetica, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px; margin-bottom: 17px;"&gt;You can use the&amp;nbsp;&lt;tt style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace;"&gt;zfs send&lt;/tt&gt;&amp;nbsp;command to send a copy of a snapshot stream and receive the snapshot stream in another pool on the same system or in another pool on a different system that is used to store backup data. For example, to send the snapshot stream on a different pool to the same system, use syntax similar to the following:&lt;a href="" name="ZFSADMINindexterm-551" style="border-bottom-color: rgb(180, 180, 180); border-bottom-style: solid; border-bottom-width: 1px; text-decoration: none;"&gt;&lt;/a&gt;&lt;a href="" name="indexterm-551" style="border-bottom-color: rgb(180, 180, 180); border-bottom-style: solid; border-bottom-width: 1px; text-decoration: none;"&gt;&lt;/a&gt;&lt;a href="" name="ZFSADMINindexterm-552" style="border-bottom-color: rgb(180, 180, 180); border-bottom-style: solid; border-bottom-width: 1px; text-decoration: none;"&gt;&lt;/a&gt;&lt;a href="" name="indexterm-552" style="border-bottom-color: rgb(180, 180, 180); border-bottom-style: solid; border-bottom-width: 1px; text-decoration: none;"&gt;&lt;/a&gt;&lt;a href="" name="ZFSADMINindexterm-553" style="border-bottom-color: rgb(180, 180, 180); border-bottom-style: solid; border-bottom-width: 1px; text-decoration: none;"&gt;&lt;/a&gt;&lt;a href="" name="indexterm-553" style="border-bottom-color: rgb(180, 180, 180); border-bottom-style: solid; border-bottom-width: 1px; text-decoration: none;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;pre style="background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: Monaco, Courier, 'Courier New', monospace; font-size: 12px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em;"&gt;# &lt;b&gt;zfs send tank/dana@snap1 | zfs recv spool/ds01&lt;/b&gt;&lt;/pre&gt;&lt;div style="background-color: white; font-family: Arial, Helvetica, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px; margin-bottom: 17px; margin-top: 3px;"&gt;You can use&amp;nbsp;&lt;tt style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace;"&gt;zfs recv&lt;/tt&gt;&amp;nbsp;as an alias for the&amp;nbsp;&lt;tt style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace;"&gt;zfs receive&lt;/tt&gt;&amp;nbsp;command.&lt;/div&gt;&lt;div style="background-color: white; font-family: Arial, Helvetica, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px; margin-bottom: 17px; margin-top: 3px;"&gt;If you are sending the snapshot stream to a different system, pipe the&amp;nbsp;&lt;tt style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace;"&gt;zfs send&lt;/tt&gt;&amp;nbsp;output through the&amp;nbsp;&lt;tt style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace;"&gt;ssh&lt;/tt&gt;&amp;nbsp;command. For example:&lt;/div&gt;&lt;pre style="background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: Monaco, Courier, 'Courier New', monospace; font-size: 12px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em;"&gt;host1# &lt;b&gt;zfs send tank/dana@snap1 | ssh host2 zfs recv newtank/dana&lt;/b&gt;&lt;/pre&gt;&lt;div style="background-color: white; font-family: Arial, Helvetica, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px; margin-bottom: 17px; margin-top: 3px;"&gt;When you send a full stream, the destination file system must not exist.&lt;/div&gt;&lt;div style="background-color: white; font-family: Arial, Helvetica, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px; margin-bottom: 17px; margin-top: 3px;"&gt;You can send incremental data by using the&amp;nbsp;&lt;tt style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace;"&gt;zfs send&lt;/tt&gt;&amp;nbsp;&lt;tt style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace;"&gt;-i&lt;/tt&gt;&amp;nbsp;option. For example:&lt;/div&gt;&lt;pre style="background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; font-family: Monaco, Courier, 'Courier New', monospace; font-size: 12px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em;"&gt;host1# &lt;b&gt;zfs send -i tank/dana@snap1 tank/dana@snap2 | ssh host2 zfs recv newtank/dana&lt;/b&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4127642706709617006?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4127642706709617006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4127642706709617006&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4127642706709617006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4127642706709617006'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-sending-zfs-snapshot.html' title='Solaris Sending a ZFS Snapshot'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-9124173971176482227</id><published>2011-11-18T08:32:00.001+08:00</published><updated>2011-11-18T08:32:48.827+08:00</updated><title type='text'>Solaris Remote Replication of ZFS Dat</title><content type='html'>&lt;h3 class="sol" style="font-family: Arial, Helvetica, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 24px; text-decoration: none;"&gt;Remote Replication of ZFS Data&lt;/h3&gt;&lt;div style="color: #222222; font-family: Arial, Helvetica, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px; margin-top: 2px;"&gt;You can use the&amp;nbsp;&lt;kbd style="color: #555555; font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;zfs send&lt;/kbd&gt;&amp;nbsp;and&amp;nbsp;&lt;kbd style="color: #555555; font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;zfs recv&lt;/kbd&gt;&amp;nbsp;commands to remotely copy a snapshot stream representation from one system to another system. For example:&lt;/div&gt;&lt;div style="color: #222222; font-family: Arial, Helvetica, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px;"&gt;&lt;br /&gt;This command sends the&amp;nbsp;&lt;kbd style="color: #555555; font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;tank/cindy@today&lt;/kbd&gt;&amp;nbsp;snapshot data and receives it into the&amp;nbsp;&lt;kbd style="color: #555555; font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;sandbox/restfs&lt;/kbd&gt;&amp;nbsp;file system and also creates a&lt;kbd style="color: #555555; font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;restfs@today&lt;/kbd&gt;&amp;nbsp;snapshot on the&amp;nbsp;&lt;tt style="color: #555555; font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;newsys&lt;/tt&gt;&amp;nbsp;system. In this example, the user has been configured to use&amp;nbsp;&lt;kbd style="color: #555555; font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;ssh&lt;/kbd&gt;&amp;nbsp;on the remote system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="color: #555555; font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;# &lt;b&gt;&lt;kbd style="font-family: Monaco, Courier, 'Courier New', monospace; margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px;"&gt;zfs send tank/cindy@today | ssh newsys zfs recv sandbox/restfs@today&lt;/kbd&gt;&lt;/b&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/8187123025728820991-9124173971176482227?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/9124173971176482227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=9124173971176482227&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/9124173971176482227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/9124173971176482227'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-remote-replication-of-zfs-dat.html' title='Solaris Remote Replication of ZFS Dat'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-1532193106916456282</id><published>2011-11-18T08:23:00.000+08:00</published><updated>2011-11-18T08:23:18.986+08:00</updated><title type='text'>Solaris : ZFS clone 2</title><content type='html'># zfs snapshot mypool/myfs@now&lt;br /&gt;# zfs send mypool/myfs@now | zfs receive anotherpool/anotherfs &lt;br /&gt;\\another fs will automatically be created. It is now copying all data. 1.5TB&lt;br /&gt;&lt;br /&gt;1) machine0$ zfs send mypool/myfs@now | ssh machine1 zfs receive anotherpool/anotherfs@anothersnap&lt;br /&gt;2) machine0$ zfs send mypool/myfs@now | zfs receive anotherpool/anotherfs@anothersnap&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-1532193106916456282?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/1532193106916456282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=1532193106916456282&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1532193106916456282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1532193106916456282'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-zfs-clone-2.html' title='Solaris : ZFS clone 2'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2926210317827645582</id><published>2011-11-18T07:55:00.001+08:00</published><updated>2011-11-18T07:57:54.545+08:00</updated><title type='text'>Solaris: zfs snapshot</title><content type='html'>&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;ZFS is a&amp;nbsp;&lt;a href="http://www.sakana.fr/blog/2007/05/11/zfs-zpools-zfs-filesystems-concepts-of-a-killer-filesystem/" style="color: #333333;" target="_blank" title="Previous post about ZFS concepts"&gt;great filesystem&lt;/a&gt;. Amongst its many features, it has snapshots. Let’s see how to use them.&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;&lt;span id="more-156"&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style="background-color: white; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;"&gt;What are snapshots ?&lt;/h3&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;Snapshots are instant copies of your filesystem at a fixed past time. They are designed so that they are lightning fast to create, and they use a minimal amount of disk thanks to the COW (Copy On Write) optimization.&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;Basically, when you take a snapshot of a ZFS filesystem, only the filesystem structure is copied, not the file data blocks. Afterwards, anytime the data of a file is going to be modified, the data block is copied first the snapshot will reference the copy instead of the current data block. This is the Copy-On-Write.&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;The volume occupied by the snapshot is merely the volume of the data blocks which have been modified since the snapshot was taken.&lt;/div&gt;&lt;h3 style="background-color: white; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;"&gt;Snapshots in ZFS&lt;/h3&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;To create a snapshot, issue the following command :&lt;br /&gt;&lt;code&gt;prodigy# zfs snapshot poolName/fileSystem@labelName&lt;/code&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;You can see that the snapshot was taken with&amp;nbsp;&lt;tt&gt;zfs list&lt;/tt&gt;&amp;nbsp;:&lt;/div&gt;&lt;pre style="background-color: white; color: #333333; font-size: 11px; text-align: justify;"&gt;&lt;code&gt;# zfs list&lt;br /&gt;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;USED&amp;nbsp;&amp;nbsp;AVAIL&amp;nbsp;&amp;nbsp;REFER&amp;nbsp;&amp;nbsp;MOUNTPOINT&lt;br /&gt;poolName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.63G&amp;nbsp;&amp;nbsp; 141G&amp;nbsp;&amp;nbsp;27.5K&amp;nbsp;&amp;nbsp;/poolName&lt;br /&gt;poolName/fileSystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.97G&amp;nbsp;&amp;nbsp; 141G&amp;nbsp;&amp;nbsp;1.92G&amp;nbsp;&amp;nbsp;/poolName/fileSystem&lt;br /&gt;poolName/fileSystem@label&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;nbsp;1.92G&amp;nbsp;&amp;nbsp;-&lt;br /&gt;prodigy# &lt;/code&gt;&lt;/pre&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;To access the files of the snapshot, you can simply go in the .zfs/snapshot directory which is at the top level of your fileSystem. Take care, the .zfs directory is invisible by default.&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: verdana, arial, Helvetica, sans-serif; font-size: 11px; text-align: justify;"&gt;At last, to delete the snapshot, simply use the&amp;nbsp;&lt;tt&gt;zfs destroy&lt;/tt&gt;&amp;nbsp;command :&lt;/div&gt;&lt;pre style="background-color: white; color: #333333; font-size: 11px; text-align: justify;"&gt;&lt;code&gt;# zfs destroy poolName/fileSystem@label&lt;br /&gt;# &lt;/code&gt;&lt;/pre&gt;&lt;pre style="background-color: white; color: #333333; font-size: 11px; text-align: justify;"&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style="background-color: white; text-align: justify;"&gt;&lt;code&gt;&lt;ul style="color: black; font-family: sans-serif; font-size: 13px; line-height: 19px; list-style-type: square; margin-bottom: 0px; margin-left: 1.5em; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; white-space: normal;"&gt;&lt;li style="margin-bottom: 0.1em;"&gt;The following syntax creates recursive snapshots of all home directories in the tank/home file system. Then, you can use the zfs send -R command to create a recursive stream of the recursive home directory snapshot, which also includes the individual file system property settings.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# zfs snapshot -r tank/home@monday&lt;br /&gt;# zfs send -R tank/home/@monday | ssh remote-system zfs receive -dvu pool&lt;/pre&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;/pre&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;/pre&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;h3 style="font-family: 'Times New Roman'; line-height: normal; white-space: normal;"&gt;ZFS Clone&lt;/h3&gt;&lt;pre style="line-height: normal;"&gt;Clones can be only created from snapshot and they are actually new FS with initial content as original FS, so they are writable. &lt;br /&gt;&lt;table bgcolor="cccccc"&gt;&lt;tbody&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;# zfs list&lt;br /&gt;NAME                       USED  AVAIL  REFER  MOUNTPOINT&lt;br /&gt;mypool                    1.49G   527M   528M  /mypool&lt;br /&gt;mypool/home                993M   527M    20K  /mypool/home&lt;br /&gt;mypool/home/user1          993M   527M   993M  /mypool/home/user1&lt;br /&gt;mypool/home/user1@Monday      0      -   993M  -&lt;br /&gt;&lt;br /&gt;# &lt;b&gt;zfs clone mypool/home/user1@Monday mypool/home/user2&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# zfs list&lt;br /&gt;NAME                       USED  AVAIL  REFER  MOUNTPOINT&lt;br /&gt;mypool                    1.49G   527M   528M  /mypool&lt;br /&gt;mypool/home                993M   527M    20K  /mypool/home&lt;br /&gt;mypool/home/user1          993M   527M   993M  /mypool/home/user1&lt;br /&gt;mypool/home/user1@Monday      0      -   993M  -&lt;br /&gt;&lt;span style="color: red;"&gt;mypool/home/user2             0   527M   993M  /mypool/home/user2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Once clone is created from snapshot, the snapshot can not be deleted until clone exists.  &lt;table bgcolor="cccccc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;# &lt;b&gt;zfs get origin mypool/home/user2&lt;/b&gt;&lt;br /&gt;NAME               PROPERTY  VALUE                      SOURCE&lt;br /&gt;mypool/home/user2  &lt;span style="color: red;"&gt;origin&lt;/span&gt;    mypool/home/user1@Monday  -&lt;br /&gt;&lt;br /&gt;# &lt;b&gt;zfs destroy mypool/home/user1@Monday&lt;/b&gt;&lt;br /&gt;cannot destroy 'mypool/home/user1@Monday': snapshot has dependent clones&lt;br /&gt;use '-R' to destroy the following datasets:&lt;br /&gt;mypool/home/user2&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/pre&gt;&lt;pre style="line-height: normal;"&gt;&lt;/pre&gt;&lt;pre style="line-height: normal;"&gt;&lt;h3 style="font-family: 'Times New Roman'; white-space: normal;"&gt;ZFS Snapshot&lt;/h3&gt;&lt;pre&gt;ZFS snapshot is read-only copy of the file system. &lt;br /&gt;&lt;br /&gt;When taken, it consumes no additional disk space, but when data changes, snapshot is growing since references to old data (unique to snapshot), so space cannot be freed. &lt;br /&gt;&lt;br /&gt;Let's take snapshot of FS mypool/home/user1. Snapshot name is Monday. So you can see what's command's syntax. &lt;br /&gt;&lt;table bgcolor="cccccc"&gt;&lt;tbody&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;# &lt;b&gt;zfs snapshot mypool/home/user1@Monday&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;# &lt;b&gt;zfs list&lt;/b&gt;&lt;br /&gt;NAME                       USED  AVAIL  REFER  MOUNTPOINT&lt;br /&gt;mypool                    1.49G   527M   528M  /mypool&lt;br /&gt;mypool/home                993M   527M    20K  /mypool/home&lt;br /&gt;mypool/home/user1          993M   527M   993M  /mypool/home/user1&lt;br /&gt;mypool/home/user1@Monday      0      -   993M  -   &lt;span style="color: blue;"&gt;(consumes no additional data within zpool)&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;You even cannot destroy FS if it has any snapshot. &lt;table bgcolor="cccccc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;# &lt;b&gt;zfs destroy mypool/home/user1&lt;/b&gt;&lt;br /&gt;cannot destroy 'mypool/home/user1': filesystem has children&lt;br /&gt;use '-r' to destroy the following datasets:&lt;br /&gt;mypool/home/user1@Monday&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Let’s change some data and see now that used data of snapshot &lt;span style="color: red;"&gt;is growing&lt;/span&gt;. &lt;table bgcolor="cccccc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;# zfs list&lt;br /&gt;NAME                       USED  AVAIL  REFER  MOUNTPOINT&lt;br /&gt;mypool                    1.49G   527M   528M  /mypool&lt;br /&gt;mypool/home                993M   527M    20K  /mypool/home&lt;br /&gt;mypool/home/user1          993M   527M   993M  /mypool/home/user1&lt;br /&gt;mypool/home/user1@Monday    &lt;span style="color: red;"&gt;28K&lt;/span&gt;      -   993M  -&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Snapshot(s) is stored in hidden directory named &lt;b&gt;.zfs/snapshot/&lt;/b&gt;, located in the root of FS. So you can go there and restore files if needed, remember it is read-only copy of FS. &lt;table bgcolor="cccccc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;# /mypool/home/user1/&lt;span style="color: red;"&gt;.zfs/snapshot&lt;/span&gt;&amp;gt; ls&lt;br /&gt;total 3&lt;br /&gt;dr-xr-xr-x   2 root     root           2 Nov 16 13:23 .&lt;br /&gt;dr-xr-xr-x   3 root     root           3 Nov 16 13:23 ..&lt;br /&gt;drwxr-xr-x   3 root     root           6 Nov 16 17:09 Monday&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Beside restoring individual files from snapshot, you can roll back whole FS to previously taken snapshot. &lt;table bgcolor="cccccc"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;# zfs list -t snapshot&lt;br /&gt;NAME                       USED  AVAIL  REFER  MOUNTPOINT&lt;br /&gt;mypool/home/user1@Monday   993M      -   993M  -&lt;br /&gt;&lt;br /&gt;# &lt;b&gt;zfs rollback mypool/home/user1@Monday&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;And all changes since snapshot Monday has been taken up to now are deleted and FS is same as it was on that Monday. &lt;/pre&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&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/8187123025728820991-2926210317827645582?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2926210317827645582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2926210317827645582&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2926210317827645582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2926210317827645582'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-zfs-snapshot.html' title='Solaris: zfs snapshot'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2604438133164620055</id><published>2011-11-17T23:56:00.000+08:00</published><updated>2011-11-17T23:56:54.073+08:00</updated><title type='text'>Solaris: Rsync example</title><content type='html'>&lt;div class="left" id="sub-col6" style="background-color: white; color: #333333; float: left; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; text-align: left; width: 980px;"&gt;&lt;h2 style="font-size: 18px; font-style: italic; font-weight: normal; line-height: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 25px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Backing up data using rsync command&lt;/h2&gt;&lt;div style="margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;rsync is a great tool for backing up and restoring files. I'll use some example to explain on how it works.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Example of the remote server and folder that needs to be backup or copied:&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Remote host name:&amp;nbsp;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;server01.comentum.com&lt;/strong&gt;&amp;nbsp;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Remote folder:&amp;nbsp;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/home/user01&lt;/strong&gt;/&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Remote user:&amp;nbsp;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;user01&lt;/strong&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/strong&gt;rsync example for backing up / copying from remote server to local Linux computer:&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;rsync -arv&amp;nbsp;&lt;span class="style1" style="color: #0000cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;user01@server01.comentum.com:/home/user01/&lt;/span&gt;&amp;nbsp;&lt;span class="style2" style="color: #cc0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/home/bob/user01backup/&lt;/span&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;(&lt;span class="style2" style="color: #cc0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/home/bob/user01backup/&amp;nbsp;&lt;/span&gt;is a local Linux folder path)&lt;/div&gt;&lt;div style="margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;rsync example for backing up / copying from remote server to local Mac computer:&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;rsync -arv&amp;nbsp;&lt;span class="style1" style="color: #0000cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;user01@server01.comentum.com:/home/user01/&lt;/span&gt;&amp;nbsp;&lt;span class="style2" style="color: #cc0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/Users/bob/user01backup/&lt;/span&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;span class="style2" style="color: #cc0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(/Users/bob/user01backup/&lt;/span&gt;&amp;nbsp;is a local Mac folder path)&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;rsync example for backing up / copying from remote server to local Mac computer and external USB drive:&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;rsync -arv&amp;nbsp;&lt;span class="style1" style="color: #0000cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;user01@server01.comentum.com:/home/user01/&lt;/span&gt;&amp;nbsp;&lt;span class="style2" style="color: #cc0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/Volumes/westerndigital-usb/user01backup/&lt;/span&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;span class="style2" style="color: #cc0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(/Volumes/westerndigital-usb/user01backup/&lt;/span&gt;&amp;nbsp;is an external USB Drive path on a local Mac computer)&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Here is what the "-arv" option does:&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;a = archive - means it preserves permissions (owners, groups), times, symbolic links, and devices.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;r = recursive - means it copies directories and sub directories&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;v = verbose - means that it prints on the screen what is being copied&lt;/div&gt;&lt;div style="margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;More Examples: &lt;/strong&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;rsync&amp;nbsp;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;-rv&lt;/strong&gt;&amp;nbsp;&lt;span class="style1" style="color: #0000cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;user01@server01.comentum.com:/home/user01/&amp;nbsp;&lt;/span&gt;&lt;span class="style2" style="color: #cc0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/home/bob/user01backup/&lt;/span&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;(This example will copy folders and sub-folder but will not preserve permissions, times and symbolic links during the transfer)&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;rsync -arv&amp;nbsp;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;--exclude&lt;/strong&gt;&amp;nbsp;'logs'&amp;nbsp;&lt;span class="style1" style="color: #0000cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;user01@server01.comentum.com:/home/user01/&lt;/span&gt;&amp;nbsp;&lt;span class="style2" style="color: #cc0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/Users/bob/user01backup/&lt;/span&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;(This example will copy everything (folders, sub-folders, etc), will preserver permissions, times, links, but will exclude the folder&amp;nbsp;&lt;span class="style1" style="color: #0000cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;/home/user01/logs/&amp;nbsp;&lt;/span&gt;from being copied)&lt;/div&gt;&lt;div style="margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Use of "/" at the end of path:&lt;/strong&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;When using "/" at the end of source, rsync will copy the content of the last folder.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;When not using "/" at the end of source, rsync will copy the last folder and the content of the folder.&lt;/div&gt;&lt;div style="margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;When using "/" at the end of destination, rsync will paste the data inside the last folder.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;When not using "/" at the end of destination, rsync will create a folder with the last destination folder name and paste the data inside that folder.&lt;/div&gt;&lt;pre style="padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;OPTIONS SUMMARY&lt;br /&gt;       Here is a short summary of the options available in rsync. &lt;br /&gt;&lt;br /&gt;        -v, --verbose               increase verbosity&lt;br /&gt;        -q, --quiet                 suppress non-error messages&lt;br /&gt;            --no-motd               suppress daemon-mode MOTD (see caveat)&lt;br /&gt;        -c, --checksum              skip based on checksum, not mod-time &amp;amp; size&lt;br /&gt;        -a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)&lt;br /&gt;            --no-OPTION             turn off an implied OPTION (e.g. --no-D)&lt;br /&gt;        -r, --recursive             recurse into directories&lt;br /&gt;        -R, --relative              use relative path names&lt;br /&gt;            --no-implied-dirs       don’t send implied dirs with --relative&lt;br /&gt;        -b, --backup                make backups (see --suffix &amp;amp; --backup-dir)&lt;br /&gt;            --backup-dir=DIR        make backups into hierarchy based in DIR&lt;br /&gt;            --suffix=SUFFIX         backup suffix (default ~ w/o --backup-dir)&lt;br /&gt;        -u, --update                skip files that are newer on the receiver&lt;br /&gt;            --inplace               update destination files in-place&lt;br /&gt;            --append                append data onto shorter files&lt;br /&gt;            --append-verify         --append w/old data in file checksum&lt;br /&gt;        -d, --dirs                  transfer directories without recursing&lt;br /&gt;        -l, --links                 copy symlinks as symlinks&lt;br /&gt;        -L, --copy-links            transform symlink into referent file/dir&lt;br /&gt;            --copy-unsafe-links     only "unsafe" symlinks are transformed&lt;br /&gt;            --safe-links            ignore symlinks that point outside the tree&lt;br /&gt;        -k, --copy-dirlinks         transform symlink to dir into referent dir&lt;br /&gt;        -K, --keep-dirlinks         treat symlinked dir on receiver as dir&lt;br /&gt;        -H, --hard-links            preserve hard links&lt;br /&gt;        -p, --perms                 preserve permissions&lt;br /&gt;        -E, --executability         preserve executability&lt;br /&gt;            --chmod=CHMOD           affect file and/or directory permissions&lt;br /&gt;        -A, --acls                  preserve ACLs (implies -p)&lt;br /&gt;        -X, --xattrs                preserve extended attributes&lt;br /&gt;        -o, --owner                 preserve owner (super-user only)&lt;br /&gt;        -g, --group                 preserve group&lt;br /&gt;            --devices               preserve device files (super-user only)&lt;br /&gt;            --specials              preserve special files&lt;br /&gt;        -D                          same as --devices --specials&lt;br /&gt;        -t, --times                 preserve modification times&lt;br /&gt;        -O, --omit-dir-times        omit directories from --times&lt;br /&gt;            --super                 receiver attempts super-user activities&lt;br /&gt;            --fake-super            store/recover privileged attrs using xattrs&lt;br /&gt;        -S, --sparse                handle sparse files efficiently&lt;br /&gt;        -n, --dry-run               perform a trial run with no changes made&lt;br /&gt;        -W, --whole-file            copy files whole (w/o delta-xfer algorithm)&lt;br /&gt;        -x, --one-file-system       don’t cross filesystem boundaries&lt;br /&gt;        -B, --block-size=SIZE       force a fixed checksum block-size&lt;br /&gt;        -e, --rsh=COMMAND           specify the remote shell to use&lt;br /&gt;            --rsync-path=PROGRAM    specify the rsync to run on remote machine&lt;br /&gt;            --existing              skip creating new files on receiver&lt;br /&gt;            --ignore-existing       skip updating files that exist on receiver&lt;br /&gt;            --remove-source-files   sender removes synchronized files (non-dir)&lt;br /&gt;            --del                   an alias for --delete-during&lt;br /&gt;            --delete                delete extraneous files from dest dirs&lt;br /&gt;            --delete-before         receiver deletes before transfer (default)&lt;br /&gt;            --delete-during         receiver deletes during xfer, not before&lt;br /&gt;            --delete-delay          find deletions during, delete after&lt;br /&gt;            --delete-after          receiver deletes after transfer, not before&lt;br /&gt;            --delete-excluded       also delete excluded files from dest dirs&lt;br /&gt;            --ignore-errors         delete even if there are I/O errors&lt;br /&gt;            --force                 force deletion of dirs even if not empty&lt;br /&gt;            --max-delete=NUM        don’t delete more than NUM files&lt;br /&gt;            --max-size=SIZE         don’t transfer any file larger than SIZE&lt;br /&gt;            --min-size=SIZE         don’t transfer any file smaller than SIZE&lt;br /&gt;            --partial               keep partially transferred files&lt;br /&gt;            --partial-dir=DIR       put a partially transferred file into DIR&lt;br /&gt;            --delay-updates         put all updated files into place at end&lt;br /&gt;        -m, --prune-empty-dirs      prune empty directory chains from file-list&lt;br /&gt;            --numeric-ids           don’t map uid/gid values by user/group name&lt;br /&gt;            --timeout=SECONDS       set I/O timeout in seconds&lt;br /&gt;            --contimeout=SECONDS    set daemon connection timeout in seconds&lt;br /&gt;        -I, --ignore-times          don’t skip files that match size and time&lt;br /&gt;            --size-only             skip files that match in size&lt;br /&gt;            --modify-window=NUM     compare mod-times with reduced accuracy&lt;br /&gt;        -T, --temp-dir=DIR          create temporary files in directory DIR&lt;br /&gt;        -y, --fuzzy                 find similar file for basis if no dest file&lt;br /&gt;            --compare-dest=DIR      also compare received files relative to DIR&lt;br /&gt;            --copy-dest=DIR         ... and include copies of unchanged files&lt;br /&gt;            --link-dest=DIR         hardlink to files in DIR when unchanged&lt;br /&gt;        -z, --compress              compress file data during the transfer&lt;br /&gt;            --compress-level=NUM    explicitly set compression level&lt;br /&gt;            --skip-compress=LIST    skip compressing files with suffix in LIST&lt;br /&gt;        -C, --cvs-exclude           auto-ignore files in the same way CVS does&lt;br /&gt;        -f, --filter=RULE           add a file-filtering RULE&lt;br /&gt;        -F                          same as --filter=’dir-merge /.rsync-filter’&lt;br /&gt;                                    repeated: --filter=’- .rsync-filter’&lt;br /&gt;            --exclude=PATTERN       exclude files matching PATTERN&lt;br /&gt;            --exclude-from=FILE     read exclude patterns from FILE&lt;br /&gt;            --include=PATTERN       don’t exclude files matching PATTERN&lt;br /&gt;            --include-from=FILE     read include patterns from FILE&lt;br /&gt;            --files-from=FILE       read list of source-file names from FILE&lt;br /&gt;        -0, --from0                 all *from/filter files are delimited by 0s&lt;br /&gt;        -s, --protect-args          no space-splitting; wildcard chars only&lt;br /&gt;            --address=ADDRESS       bind address for outgoing socket to daemon&lt;br /&gt;            --port=PORT             specify double-colon alternate port number&lt;br /&gt;            --sockopts=OPTIONS      specify custom TCP options&lt;br /&gt;            --blocking-io           use blocking I/O for the remote shell&lt;br /&gt;            --stats                 give some file-transfer stats&lt;br /&gt;        -8, --8-bit-output          leave high-bit chars unescaped in output&lt;br /&gt;        -h, --human-readable        output numbers in a human-readable format&lt;br /&gt;            --progress              show progress during transfer&lt;br /&gt;        -P                          same as --partial --progress&lt;br /&gt;        -i, --itemize-changes       output a change-summary for all updates&lt;br /&gt;            --out-format=FORMAT     output updates using the specified FORMAT&lt;br /&gt;            --log-file=FILE         log what we’re doing to the specified FILE&lt;br /&gt;            --log-file-format=FMT   log updates using the specified FMT&lt;br /&gt;            --password-file=FILE    read daemon-access password from FILE&lt;br /&gt;            --list-only             list the files instead of copying them&lt;br /&gt;            --bwlimit=KBPS          limit I/O bandwidth; KBytes per second&lt;br /&gt;            --write-batch=FILE      write a batched update to FILE&lt;br /&gt;            --only-write-batch=FILE like --write-batch but w/o updating dest&lt;br /&gt;            --read-batch=FILE       read a batched update from FILE&lt;br /&gt;            --protocol=NUM          force an older protocol version to be used&lt;br /&gt;            --iconv=CONVERT_SPEC    request charset conversion of filenames&lt;br /&gt;            --checksum-seed=NUM     set block/file checksum seed (advanced)&lt;br /&gt;        -4, --ipv4                  prefer IPv4&lt;br /&gt;        -6, --ipv6                  prefer IPv6&lt;br /&gt;            --version               print version number&lt;br /&gt;       (-h) --help                  show this help (see below for -h comment)&lt;br /&gt;&lt;br /&gt;       Rsync can also be run as a daemon, in which case the following options are accepted:&lt;br /&gt;       Rsync can also be run as a daemon, in which case the following options are accepted:&lt;br /&gt;&lt;br /&gt;            --daemon                run as an rsync daemon&lt;br /&gt;            --address=ADDRESS       bind to the specified address&lt;br /&gt;            --bwlimit=KBPS          limit I/O bandwidth; KBytes per second&lt;br /&gt;            --config=FILE           specify alternate rsyncd.conf file&lt;br /&gt;            --no-detach             do not detach from the parent&lt;br /&gt;            --port=PORT             listen on alternate port number&lt;br /&gt;            --log-file=FILE         override the "log file" setting&lt;br /&gt;            --log-file-format=FMT   override the "log format" setting&lt;br /&gt;            --sockopts=OPTIONS      specify custom TCP options&lt;br /&gt;        -v, --verbose               increase verbosity&lt;br /&gt;        -4, --ipv4                  prefer IPv4&lt;br /&gt;        -6, --ipv6                  prefer IPv6&lt;br /&gt;        -h, --help                  show this help (if used after --daemon)&lt;br /&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&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/8187123025728820991-2604438133164620055?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2604438133164620055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2604438133164620055&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2604438133164620055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2604438133164620055'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-rsync-example.html' title='Solaris: Rsync example'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5880664674026466684</id><published>2011-11-16T11:51:00.000+08:00</published><updated>2011-11-16T11:51:20.475+08:00</updated><title type='text'>Solaris: Enable Non Expiry Passwd For Uid</title><content type='html'>server0084# passwd -s partsftp&lt;br /&gt;partsftp &amp;nbsp;PS &amp;nbsp; &amp;nbsp;10/20/11 &amp;nbsp; &amp;nbsp; 7 &amp;nbsp; &amp;nbsp;84 &amp;nbsp; &amp;nbsp;28&lt;br /&gt;server0084# passwd -x -1 partsftp&lt;br /&gt;passwd: password information changed for partsftp&lt;br /&gt;server0084# passwd -s partsftp&lt;br /&gt;partsftp &amp;nbsp;PS&lt;br /&gt;server0084#&lt;br /&gt;&lt;br /&gt;server0085# id -a partsftp&lt;br /&gt;uid=8457821(partsftp) gid=45046(partsftp) groups=45046(partsftp)&lt;br /&gt;server0085# passwd -s partsftp&lt;br /&gt;partsftp &amp;nbsp;PS &amp;nbsp; &amp;nbsp;10/20/11 &amp;nbsp; &amp;nbsp; 7 &amp;nbsp; &amp;nbsp;84 &amp;nbsp; &amp;nbsp;28&lt;br /&gt;server0085# passwd -x -1 partsftp&lt;br /&gt;passwd: password information changed for partsftp&lt;br /&gt;server0085# passwd -s partsftp&lt;br /&gt;partsftp &amp;nbsp;PS&lt;br /&gt;server0085#&lt;br /&gt;&lt;div&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/8187123025728820991-5880664674026466684?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5880664674026466684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5880664674026466684&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5880664674026466684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5880664674026466684'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-enable-non-expiry-passwd-for.html' title='Solaris: Enable Non Expiry Passwd For Uid'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7651533727346974951</id><published>2011-11-15T21:51:00.002+08:00</published><updated>2011-11-16T14:53:58.253+08:00</updated><title type='text'>HPUX: NFS Configuration</title><content type='html'>An HP-UX 10.x system is an NFS client by default. It can become as NFS server either through SAM or through modifications&lt;br /&gt;to /etc/rc.config.d/nfsconf.&lt;br /&gt;Set the following variable to 1:&lt;br /&gt;&amp;nbsp; &amp;nbsp;NFS_SERVER=1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# &amp;nbsp;Is this machine a server?&lt;br /&gt;Set the number of nfsd processes with the NUM_NFSD and nfs bio with NUM_NFSIOD variables:&lt;br /&gt;&amp;nbsp; &amp;nbsp;NUM_NFSD=30&lt;br /&gt;&amp;nbsp; &amp;nbsp; NUM_NFSIO=16&lt;br /&gt;NOTE: The number of nfsd processes you need depends on several factors.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The&amp;nbsp;&lt;i&gt;/etc/exports&lt;/i&gt;&amp;nbsp;file is processed automatically at boot time. Entries in&amp;nbsp;&lt;i&gt;/etc/exports&lt;/i&gt;&amp;nbsp;look something like this:&lt;br /&gt;&lt;tt&gt;/reports -access=sun.ucs.indiana.edu, rw=teak.uwsg.indiana.edu&lt;br /&gt;/usr/man -ro,access=chrome:copper:zinc,root=chrome&lt;/tt&gt;&lt;br /&gt;If the&amp;nbsp;&lt;i&gt;/etc/exports&lt;/i&gt;&amp;nbsp;file is modified the&amp;nbsp;&lt;a href="http://www.cs.bgu.ac.il/~arik/usail/man/sunos/exportfs.8.html"&gt;&lt;i&gt;exportfs&lt;/i&gt;&lt;/a&gt;&amp;nbsp;command must be run for the changes to take effect immediately.&lt;tt&gt;&lt;b&gt;exportfs -u&lt;/b&gt;&lt;/tt&gt;&amp;nbsp;can be used to remove file systems from the export list.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px;"&gt;See if the NFS client can see the exports list of the NFS Server:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;# /usr/sbin/showmount -e nfs-server&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;For example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;# /usr/sbin/showmount -e nfs-server&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;To see this example, go to&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;a href="ftp://ftp.hp.com/pub/enterprise/programming_code/c00867456_rpcinfo_examples.txt" style="background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px; text-align: left; text-decoration: none;" target="_blank"&gt;ftp://ftp.hp.com/pub/enterprise/programming_code/c00867456_rpcinfo_examples.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;Verify the export list is correct. If not, log into the server and examine the /etc/exports file. If it contains entries that you do not see in the showmount -e listing, then re-export them as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;# /usr/sbin/exportfs -av&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;For example:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;# /usr/sbin/exportfs -av re-exported /home&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;To see the re-export example, go to&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;a href="ftp://ftp.hp.com/pub/enterprise/programming_code/c00867456_exportfs_example.txt" style="background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px; text-align: left; text-decoration: none;" target="_blank"&gt;ftp://ftp.hp.com/pub/enterprise/programming_code/c00867456_exportfs_example.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;See what files the NFS Client has mounted from the NFS Server:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial; font-size: 13px; line-height: 18px; text-align: left;"&gt;NOTE: CAUTION! If you use "bdf" it causes an NFS "fsinfo" request to the NFS Server, which can cause the bdf command to hang if there are any problems! Use the "mount" command instead.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&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/8187123025728820991-7651533727346974951?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7651533727346974951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7651533727346974951&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7651533727346974951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7651533727346974951'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/hpux-nfs-configuration.html' title='HPUX: NFS Configuration'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-6390604403601041006</id><published>2011-11-11T15:56:00.003+08:00</published><updated>2011-11-11T15:56:46.921+08:00</updated><title type='text'>HPUX: gsp check system temperature</title><content type='html'>howto check houx system tempereture&lt;br /&gt;[hpserver-gsp] MP:CM&amp;gt; ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HE&lt;br /&gt;&lt;br /&gt;==== MP Help: Main Menu =======================================================&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hardware Revision a5 &amp;nbsp;Firmware Revision E.03.15 Feb 18 2005,20:09:34&lt;br /&gt;&lt;br /&gt;Integrated Lights-Out for HP Integrity and HP 9000 - Management Processor (MP)&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MP Help System&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Use Ctrl-B to exit MP command interface and return to the main MP menu.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Enter a command at the help prompt:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OVerview &amp;nbsp;: Launch the help overview&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LIst &amp;nbsp; &amp;nbsp; &amp;nbsp;: Show the list of MP Command Menu commands&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;command&gt;&lt;/command&gt; : Enter the command name for help on individual command&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TOPics &amp;nbsp; &amp;nbsp;: Show all MP Help topics and commands&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HElp &amp;nbsp; &amp;nbsp; &amp;nbsp;: Display this screen&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Q &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : Quit help&lt;br /&gt;&lt;br /&gt;====&lt;br /&gt;MP:HE&amp;gt; List&lt;br /&gt;List&lt;br /&gt;==== MP Help: Command Menu List =============================================&lt;br /&gt;&lt;br /&gt;BP &amp;nbsp;: Reset BMC Passwords &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MS &amp;nbsp;: Modem Status&lt;br /&gt;CA &amp;nbsp;: Configure asynch/serial ports &amp;nbsp; &amp;nbsp; PC &amp;nbsp;: Remote Power Control&lt;br /&gt;DATE: Display Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PG &amp;nbsp;: PaGing parameters setup&lt;br /&gt;DC &amp;nbsp;: Default Configuration &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PR &amp;nbsp;: Power Restore Policy Config.&lt;br /&gt;DF &amp;nbsp;: Display FRU Information &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PS &amp;nbsp;: Power management module Status&lt;br /&gt;DI &amp;nbsp;: DIsconnect users &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RB &amp;nbsp;: Reset BMC&lt;br /&gt;DNS : Configure DHCP and DNS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RS &amp;nbsp;: Reset System through RST signal&lt;br /&gt;FW &amp;nbsp;: Upgrade MP firmware &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SA &amp;nbsp;: Set MP Access&lt;br /&gt;HE &amp;nbsp;: Display Help &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SO &amp;nbsp;: Security Options&lt;br /&gt;ID &amp;nbsp;: System Information &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SS &amp;nbsp;: System processors Status&lt;br /&gt;IT &amp;nbsp;: Modify MP inactivity timeouts &amp;nbsp; &amp;nbsp; SYSREV: Display System firmware Revs.&lt;br /&gt;LC &amp;nbsp;: Configure LAN, SSH and Web ports &amp;nbsp;TC &amp;nbsp;: Reset system via INIT&lt;br /&gt;LDAP: Configure LDAP parameters &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TE &amp;nbsp;: TEll- send a msg. to other users&lt;br /&gt;LM &amp;nbsp;: License Management &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UC &amp;nbsp;: User Configuration&lt;br /&gt;LOC : Locator LED display &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHO : Display connected MP users&lt;br /&gt;LS &amp;nbsp;: LAN Status &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XD &amp;nbsp;: Diagnostics and reset of MP&lt;br /&gt;MR &amp;nbsp;: Modem Reset&lt;br /&gt;&lt;br /&gt;====&lt;br /&gt;(HE for main help, enter command name, or Q to quit)&lt;br /&gt;MP:HE&amp;gt; PS&lt;br /&gt;PS&lt;br /&gt;&lt;br /&gt;==== MP Help: Status ==========================================================&lt;br /&gt;&lt;br /&gt;&amp;nbsp; PS &amp;nbsp;: Power Status- display the status of the Power Management Module&lt;br /&gt;&lt;br /&gt;Command access level: Login access.&lt;br /&gt;&lt;br /&gt;This command displays the following information: system power state and&lt;br /&gt;temperature, status of the power supplies and fans.&lt;br /&gt;&lt;br /&gt;Command line usage:&lt;br /&gt;&amp;nbsp; PS [ -nc ]&lt;br /&gt;&lt;br /&gt;SEE ALSO: &amp;nbsp;PC, SS &amp;nbsp;(Power Control, System Status)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;login to gsp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;====&lt;br /&gt;(HE for main help, enter command name, or Q to quit)&lt;br /&gt;MP:HE&amp;gt; q&lt;br /&gt;q&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[hpserver-gsp] MP:CM&amp;gt; ps&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PS&lt;br /&gt;System Power state: On&lt;br /&gt;Temperature &amp;nbsp; &amp;nbsp; &amp;nbsp; : Normal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Power supplies &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; State&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;Power Supply 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Normal&lt;br /&gt;Power Supply 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Normal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fans &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; State&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;Fan1A (CPU) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Normal&lt;br /&gt;Fan1B (CPU) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Normal&lt;br /&gt;Fan2 (Memory) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Normal&lt;br /&gt;Fan3 (I/O) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Normal&lt;br /&gt;CPU0 Fan &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Normal&lt;br /&gt;CPU1 Fan &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Normal&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[hpserver-gsp] MP:CM&amp;gt;&lt;br /&gt;&lt;div&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/8187123025728820991-6390604403601041006?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/6390604403601041006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=6390604403601041006&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6390604403601041006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6390604403601041006'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/hpux-gsp-check-system-temperature.html' title='HPUX: gsp check system temperature'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-1101509901682676689</id><published>2011-11-11T15:46:00.002+08:00</published><updated>2011-11-11T15:46:20.847+08:00</updated><title type='text'>HPUX : PCIe_SAS_SmartArray_P800_RAID_Controller_Firmware upgrade</title><content type='html'>implementation step&lt;br /&gt;&lt;br /&gt;On OS shell run command&lt;br /&gt;root@hpuxserver # pwd&lt;br /&gt;/root/home/root/PCIe_SAS_SmartArray_P800_RAID_Controller_Firmware&lt;br /&gt;&lt;br /&gt;root@hpuxserver #sautil /dev/ciss2 -s&lt;br /&gt;...&lt;br /&gt;Firmware Revision (in ROM).......... 4.12&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;root@hpuxserver #sautil /dev/ciss2 download_ctlr_fw p400-e500-p800-522.pak&lt;br /&gt;root@hpuxserver #sautil /dev/ciss2 -s&lt;br /&gt;...&lt;br /&gt;Firmware Revision (in ROM).......... 5.22&lt;br /&gt;&lt;br /&gt;verify step&lt;br /&gt;&lt;br /&gt;root@hpuxserver : /root/home/root -&amp;gt; sautil /dev/ciss2 -s&lt;br /&gt;....&lt;br /&gt;....&lt;br /&gt;Firmware Revision (in ROM).......... 4.12 &amp;lt;---- should be 5.22&lt;br /&gt;.....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;before&lt;br /&gt;&lt;br /&gt;root@hpuxserver : /root/home/root -&amp;gt; sautil /dev/ciss2 -s&lt;br /&gt;&lt;br /&gt;******************************************************************************&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; S A U T I L &amp;nbsp; S u p p o r t &amp;nbsp; U t i l i t y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for the HP SmartArray RAID Controller Family &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; version A.02.13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp;(C) Copyright 2003-2007 Hewlett-Packard Development Company, L.P. &amp;nbsp; ****&lt;br /&gt;******************************************************************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---- DRIVER INFORMATION ------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Driver State........................ READY&lt;br /&gt;&lt;br /&gt;---- CONTROLLER INFORMATION --------------------------------------------------&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Controller Product Number........... P800&lt;br /&gt;&amp;nbsp; Controller Product Name............. HP PCIe SmartArray P800&lt;br /&gt;&amp;nbsp; Hardware Path....................... 0/7/0/0/0/0&lt;br /&gt;&amp;nbsp; Serial Number....................... P98690K9SW20FP&lt;br /&gt;&amp;nbsp; Device File......................... /dev/ciss2&lt;br /&gt;&amp;nbsp; Hardware Revision................... 'D'&lt;br /&gt;&amp;nbsp; Firmware Revision (in ROM).......... 4.12&lt;br /&gt;&amp;nbsp; # of Logical Drives................. 5&lt;br /&gt;&amp;nbsp; # of Physical Disks Configured...... 20&lt;br /&gt;&amp;nbsp; # of Physical Disks Detected........ 20&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;root@hpuxserver : /root/home/root/PCIe_SAS_SmartArray_P800_RAID_Controller_Firmware -&amp;gt; sautil /dev/ciss2 download_ctlr_fw p400-e500-p800-522.pak&lt;br /&gt;&lt;br /&gt;******************************************************************************&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; S A U T I L &amp;nbsp; S u p p o r t &amp;nbsp; U t i l i t y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for the HP SmartArray RAID Controller Family &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; version A.02.13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;****&lt;br /&gt;**** &amp;nbsp;(C) Copyright 2003-2007 Hewlett-Packard Development Company, L.P. &amp;nbsp; ****&lt;br /&gt;******************************************************************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---- DRIVER INFORMATION ------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Driver State........................ READY&lt;br /&gt;&lt;br /&gt;---- CONTROLLER INFORMATION --------------------------------------------------&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Controller Product Number........... P800&lt;br /&gt;&amp;nbsp; Controller Product Name............. HP PCIe SmartArray P800&lt;br /&gt;&amp;nbsp; Hardware Path....................... 0/7/0/0/0/0&lt;br /&gt;&amp;nbsp; Device File......................... /dev/ciss2&lt;br /&gt;&lt;br /&gt;---- FIRMWARE DOWNLOAD -------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&amp;nbsp; ** You are downloading the firmware image "p400-e500-p800-522.pak"&lt;br /&gt;&amp;nbsp; ** to the controller "/dev/ciss2".&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Retrieving firmware image file from disk................... [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Validating the file's signature and size................... [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Retrieving the firmware revision string from ROM........... [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Retrieving the firmware revision string from the file...... [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Current Revision (in ROM)....... 4.12&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; New Revision (in file).......... 5.22&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; WARNING: The firmware download process may take several minutes to&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;complete. All I/O to this controller will be temporarily&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;halted during this time.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Are you sure you want to continue (y/n)? y&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Preparing for download..................................... [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Sending the new firmware to the controller................. [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Activating the new firmware................................ [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Resetting the controller................................... [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Retrieving the firmware revision string from ROM........... [Done]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Current Revision (in ROM)....... 5.22&lt;br /&gt;&lt;br /&gt;&amp;nbsp; FIRMWARE DOWNLOAD WAS SUCCESSFUL!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;******************************************************************************&lt;br /&gt;**** &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End of SAUTIL Output &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ****&lt;br /&gt;******************************************************************************&lt;br /&gt;root@hpuxserver : /root/home/root/PCIe_SAS_SmartArray_P800_RAID_Controller_Firmware -&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-1101509901682676689?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/1101509901682676689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=1101509901682676689&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1101509901682676689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1101509901682676689'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/hpux-pciesassmartarrayp800raidcontrolle.html' title='HPUX : PCIe_SAS_SmartArray_P800_RAID_Controller_Firmware upgrade'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-6543000773373565885</id><published>2011-11-11T15:38:00.000+08:00</published><updated>2011-11-11T15:38:22.164+08:00</updated><title type='text'>Redhat: interface bonding</title><content type='html'>[root@server4 network-scripts]# ifconfig&lt;br /&gt;eth0 &amp;nbsp; &amp;nbsp; &amp;nbsp;Link encap:Ethernet &amp;nbsp;HWaddr 00:25:B3:24:ED:FA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet addr:10.2.16.21 &amp;nbsp;Bcast:10.2.16.255 &amp;nbsp;Mask:255.255.255.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 addr: fe80::225:b3ff:fe24:edfa/64 Scope:Link&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP BROADCAST RUNNING MULTICAST &amp;nbsp;MTU:1500 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:165251 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:193 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:1000&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:24513496 (23.3 MiB) &amp;nbsp;TX bytes:20693 (20.2 KiB)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Interrupt:169 Memory:f4000000-f4012100&lt;br /&gt;&lt;br /&gt;eth1 &amp;nbsp; &amp;nbsp; &amp;nbsp;Link encap:Ethernet &amp;nbsp;HWaddr 00:25:B3:24:ED:FC&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet addr:153.88.118.21 &amp;nbsp;Bcast:153.88.118.255 &amp;nbsp;Mask:255.255.255.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 addr: fe80::225:b3ff:fe24:edfc/64 Scope:Link&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP BROADCAST RUNNING MULTICAST &amp;nbsp;MTU:1500 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:13882 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:9844 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:1000&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:2492055 (2.3 MiB) &amp;nbsp;TX bytes:4312653 (4.1 MiB)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Interrupt:154 Memory:f2000000-f2012100&lt;br /&gt;&lt;br /&gt;lo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Link encap:Local Loopback&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet addr:127.0.0.1 &amp;nbsp;Mask:255.0.0.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 addr: ::1/128 Scope:Host&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP LOOPBACK RUNNING &amp;nbsp;MTU:16436 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:377514 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:377514 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:38182383 (36.4 MiB) &amp;nbsp;TX bytes:38182383 (36.4 MiB)&lt;br /&gt;&lt;br /&gt;[root@server4 network-scripts]#&lt;br /&gt;root@server4 network-scripts]# more ifcfg-eth2&lt;br /&gt;# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet&lt;br /&gt;DEVICE=eth2&lt;br /&gt;HWADDR=00:25:B3:24:ED:FE&lt;br /&gt;ONBOOT=no&lt;br /&gt;BOOTPROTO=dhcp&lt;br /&gt;TYPE=Ethernet&lt;br /&gt;[root@server4 network-scripts]# more ifcfg-eth1&lt;br /&gt;# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet&lt;br /&gt;HWADDR=00:25:B3:24:ED:FC&lt;br /&gt;DEVICE=eth1&lt;br /&gt;BOOTPROTO=none&lt;br /&gt;BROADCAST=153.88.118.255&lt;br /&gt;IPADDR=153.88.118.21&lt;br /&gt;NETMASK=255.255.255.0&lt;br /&gt;NETWORK=153.88.118.0&lt;br /&gt;ONBOOT=yes&lt;br /&gt;TYPE=Ethernet&lt;br /&gt;GATEWAY=153.88.118.1&lt;br /&gt;[root@server4 network-scripts]# more ifcfg-eth2&lt;br /&gt;# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet&lt;br /&gt;DEVICE=eth2&lt;br /&gt;HWADDR=00:25:B3:24:ED:FE&lt;br /&gt;ONBOOT=no&lt;br /&gt;BOOTPROTO=dhcp&lt;br /&gt;TYPE=Ethernet&lt;br /&gt;[root@server4 network-scripts]#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@server8 network-scripts]# more ifcfg-eth1&lt;br /&gt;# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet&lt;br /&gt;HWADDR=00:24:81:E2:82:DC&lt;br /&gt;DEVICE=eth1&lt;br /&gt;BOOTPROTO=none&lt;br /&gt;BROADCAST=153.88.118.255&lt;br /&gt;IPADDR=153.88.118.22&lt;br /&gt;NETMASK=255.255.255.0&lt;br /&gt;NETWORK=153.88.118.0&lt;br /&gt;ONBOOT=yes&lt;br /&gt;TYPE=Ethernet&lt;br /&gt;GATEWAY=153.88.118.1&lt;br /&gt;[root@server8 network-scripts]# more ifcfg-eth2&lt;br /&gt;# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet&lt;br /&gt;DEVICE=eth2&lt;br /&gt;HWADDR=00:24:81:E2:82:DE&lt;br /&gt;ONBOOT=no&lt;br /&gt;BOOTPROTO=dhcp&lt;br /&gt;TYPE=Ethernet&lt;br /&gt;[root@server8 network-scripts]#&lt;br /&gt;-----------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Please refer below&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@server4 network-scripts]# cat ifcfg-bond0&lt;br /&gt;DEVICE=bond0&lt;br /&gt;BOOTPROTO=none&lt;br /&gt;ONBOOT=yes&lt;br /&gt;NETMASK=255.255.255.0&lt;br /&gt;IPADDR=153.88.118.21&lt;br /&gt;GATEWAY=153.88.118.1&lt;br /&gt;USERCTL=no&lt;br /&gt;BONDING_OPTS="mode=1 miimon=100"&lt;br /&gt;[root@server4 network-scripts]# cat ifcfg-eth1&lt;br /&gt;# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet&lt;br /&gt;DEVICE=eth1&lt;br /&gt;HWADDR=00:25:B3:24:ED:FC&lt;br /&gt;ONBOOT=yes&lt;br /&gt;BOOTPROTO=none&lt;br /&gt;MASTER=bond0&lt;br /&gt;SLAVE=yes&lt;br /&gt;USERCTL=no&lt;br /&gt;[root@server4 network-scripts]# cat ifcfg-eth2&lt;br /&gt;# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet&lt;br /&gt;DEVICE=eth2&lt;br /&gt;HWADDR=00:25:B3:24:ED:FE&lt;br /&gt;ONBOOT=yes&lt;br /&gt;BOOTPROTO=none&lt;br /&gt;MASTER=bond0&lt;br /&gt;SLAVE=yes&lt;br /&gt;USERCTL=no&lt;br /&gt;[root@server4 network-scripts]# pwd&lt;br /&gt;/etc/sysconfig/network-scripts&lt;br /&gt;[root@server4 network-scripts]#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@server4 network-scripts]# vi /etc/modprobe.conf&lt;br /&gt;[root@server4 network-scripts]# more /etc/modprobe.conf&lt;br /&gt;alias eth0 bnx2&lt;br /&gt;alias eth1 bnx2&lt;br /&gt;alias eth2 bnx2&lt;br /&gt;alias eth3 bnx2&lt;br /&gt;alias scsi_hostadapter cciss&lt;br /&gt;alias scsi_hostadapter1 ata_piix&lt;br /&gt;alias scsi_hostadapter2 qla2xxx&lt;br /&gt;alias bond0 bonding&lt;br /&gt;options bonding max_bonds=2&lt;br /&gt;[root@server4 network-scripts]# modprobe bonding&lt;br /&gt;&lt;br /&gt;.... network will be temporarily unavailable, try login via backup ipaddress or via other session **&lt;br /&gt;&lt;br /&gt;[root@server4 network-scripts]#&lt;br /&gt;&lt;br /&gt;[root@server4 ~]# service network restart &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//This can be done online&lt;br /&gt;Shutting down interface bond0: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;Shutting down interface eth0: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;Shutting down loopback interface: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;Bringing up loopback interface: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;Bringing up interface bond0: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;Bringing up interface eth0: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;[root@server4 ~]#&lt;br /&gt;&lt;br /&gt;[root@server4 ~]# ifconfig&lt;br /&gt;bond0 &amp;nbsp; &amp;nbsp; Link encap:Ethernet &amp;nbsp;HWaddr 00:25:B3:24:ED:FC&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet addr:153.88.118.21 &amp;nbsp;Bcast:153.88.118.255 &amp;nbsp;Mask:255.255.255.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 addr: fe80::225:b3ff:fe24:edfc/64 Scope:Link&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP BROADCAST RUNNING MASTER MULTICAST &amp;nbsp;MTU:1500 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:15 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:26 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:4167 (4.0 KiB) &amp;nbsp;TX bytes:6747 (6.5 KiB)&lt;br /&gt;&lt;br /&gt;eth0 &amp;nbsp; &amp;nbsp; &amp;nbsp;Link encap:Ethernet &amp;nbsp;HWaddr 00:25:B3:24:ED:FA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet addr:10.2.16.21 &amp;nbsp;Bcast:10.2.16.255 &amp;nbsp;Mask:255.255.255.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 addr: fe80::225:b3ff:fe24:edfa/64 Scope:Link&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP BROADCAST RUNNING MULTICAST &amp;nbsp;MTU:1500 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:27 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:51 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:1000&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:2431 (2.3 KiB) &amp;nbsp;TX bytes:12330 (12.0 KiB)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Interrupt:169 Memory:f4000000-f4012100&lt;br /&gt;&lt;br /&gt;eth1 &amp;nbsp; &amp;nbsp; &amp;nbsp;Link encap:Ethernet &amp;nbsp;HWaddr 00:25:B3:24:ED:FC&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP BROADCAST RUNNING SLAVE MULTICAST &amp;nbsp;MTU:1500 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:10 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:26 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:1000&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:3316 (3.2 KiB) &amp;nbsp;TX bytes:6747 (6.5 KiB)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Interrupt:154 Memory:f2000000-f2012100&lt;br /&gt;&lt;br /&gt;eth2 &amp;nbsp; &amp;nbsp; &amp;nbsp;Link encap:Ethernet &amp;nbsp;HWaddr 00:25:B3:24:ED:FC&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP BROADCAST RUNNING SLAVE MULTICAST &amp;nbsp;MTU:1500 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:5 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:1000&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:851 (851.0 b) &amp;nbsp;TX bytes:0 (0.0 b)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Interrupt:178 Memory:f8000000-f8012100&lt;br /&gt;&lt;br /&gt;lo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Link encap:Local Loopback&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet addr:127.0.0.1 &amp;nbsp;Mask:255.0.0.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 addr: ::1/128 Scope:Host&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP LOOPBACK RUNNING &amp;nbsp;MTU:16436 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:379765 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:379765 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:38407728 (36.6 MiB) &amp;nbsp;TX bytes:38407728 (36.6 MiB)&lt;br /&gt;&lt;br /&gt;[root@server4 ~]#&lt;br /&gt;[root@server4 ~]# less /proc/net/bonding/bond0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ethernet Channel Bonding Driver: v3.2.4 (January 28, 2008)&lt;br /&gt;&lt;br /&gt;Bonding Mode: fault-tolerance (active-backup)&lt;br /&gt;Primary Slave: None&lt;br /&gt;Currently Active Slave: eth1&lt;br /&gt;MII Status: up&lt;br /&gt;MII Polling Interval (ms): 100&lt;br /&gt;Up Delay (ms): 0&lt;br /&gt;Down Delay (ms): 0&lt;br /&gt;&lt;br /&gt;Slave Interface: eth1&lt;br /&gt;MII Status: up&lt;br /&gt;Link Failure Count: 0&lt;br /&gt;Permanent HW addr: 00:25:b3:24:ed:fc&lt;br /&gt;&lt;br /&gt;Slave Interface: eth2&lt;br /&gt;MII Status: up&lt;br /&gt;Link Failure Count: 0&lt;br /&gt;Permanent HW addr: 00:25:b3:24:ed:fe&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-6543000773373565885?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/6543000773373565885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=6543000773373565885&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6543000773373565885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6543000773373565885'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/redhat-interface-bonding.html' title='Redhat: interface bonding'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7986924275976519920</id><published>2011-11-11T11:53:00.000+08:00</published><updated>2011-11-11T11:53:20.448+08:00</updated><title type='text'>HPUX: pv/lv/vg tasks</title><content type='html'>Adding a new PV&lt;br /&gt;A disk has to be initialized before LVM can use it. The pvcreate command writes the PVRA&lt;br /&gt;to the disk and such a disk is called a PV:&lt;br /&gt;# pvcreate /dev/rdsk/c0t5d0&lt;br /&gt;If there is a valid PVRA already on the disk (it could have been used wit LVM before) you&lt;br /&gt;will get the following error message:&lt;br /&gt;# pvcreate: The Physical Volume already belongs to a Volume Group&lt;br /&gt;If you are sure the disk is free you can force the initialization using the -f option:&lt;br /&gt;# pvcreate -f /dev/rdsk/c0t5d0&lt;br /&gt;NOTE: For bootable disks you have to use the -B option additionally. This preserves the fixed 2912KB space&lt;br /&gt;for the LVM header (see section LVM structural information). You can find the procedure how to make a&lt;br /&gt;disk bootable in the section Mirroring the root disk later in this chapter.&lt;br /&gt;To add the PV to an existing VG do:&lt;br /&gt;# vgextend vg01 /dev/dsk/c0t5d0&lt;br /&gt;# vgdisplay -v vg01&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Adding a new VG&lt;br /&gt;Here’s how to create a new VG with 2 disks:&lt;br /&gt;1) initialize the disk if not yet done:&lt;br /&gt;# pvcreate [-f] /dev/rdsk/c0t5d0&lt;br /&gt;# pvcreate [-f] /dev/rdsk/c0t6d0&lt;br /&gt;2) select a unique minor number for the VG:&lt;br /&gt;# ll /dev/*/group&lt;br /&gt;crw-r--r-- 1 root sys 64 0x000000 Apr 4 2001 /dev/vg00/group&lt;br /&gt;crw-r--r-- 1 root sys 64 0x010000 Oct 26 15:52 /dev/vg01/group&lt;br /&gt;crw-r--r-- 1 root sys 64 0x020000 Aug 2 15:49 /dev/vgsap/group&lt;br /&gt;3) create the VG control file (group file):&lt;br /&gt;# mkdir /dev/vgnew&lt;br /&gt;# mknod /dev/vgnew/group c 64 0x030000&lt;br /&gt;NOTE: Starting with LVM commands patch PHCO_24645 (UX 11.00) or PHCO_25814 (UX 11.11)&lt;br /&gt;vgcreate and vgimport will check for the uniqueness of the group file's minor number.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Adding a new LV&lt;br /&gt;The following creates a 500MB large LV named lvdata on any disk(s) of the VG vg01:&lt;br /&gt;# lvcreate -n lvdata -L 500 vg01&lt;br /&gt;You cannot specify a PV with lvcreate. If you like to place the LV on a specific PV, then first&lt;br /&gt;create an LV of 0MB. It has no extents - it just exists.&lt;br /&gt;# lvcreate -n lvdata vg01&lt;br /&gt;Now extend the LV onto a certain disk:&lt;br /&gt;# lvextend -L 500 /dev/vg01/lvdata /dev/dsk/c4t2d0&lt;br /&gt;Now you can use newfs to put a FS onto the LV:&lt;br /&gt;# newfs -F &lt;fstype&gt; /dev/vg01/rlvdata&lt;/fstype&gt;&lt;br /&gt;where fstype is either hfs or vxfs.&lt;br /&gt;NOTE: Nowadays it is recommended to use a VxFS (=JFS) file system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7986924275976519920?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7986924275976519920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7986924275976519920&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7986924275976519920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7986924275976519920'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/hpux-pvlvvg-tasks.html' title='HPUX: pv/lv/vg tasks'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7349650171890453192</id><published>2011-11-10T15:11:00.001+08:00</published><updated>2011-11-16T14:44:38.307+08:00</updated><title type='text'>Solaris: copy or moving file using cpio</title><content type='html'>Why is cpio better than tar? A number of reasons.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;cpio preserves hard links, which is important if you're using it for  backups.  &lt;/li&gt;&lt;li&gt;cpio doesn't have that annoying filename length limitation. Sure, gnutar has  a "hack" that allows you to use longer filenames (it creates a temporary file in  which it stores the real name), but it's inherently not portable to non-gnu  tar's.  &lt;/li&gt;&lt;li&gt;By default, cpio preserves timestamps  &lt;/li&gt;&lt;li&gt;When scripting, it has much better control over which files are and are not  copied, since you must explicitly list the files you want copied. For example,  which of the following is easier to read and understand?&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;root@server # pwd&lt;br /&gt;/ftp/data/pdu-msa/EDA-SLS&lt;br /&gt;root@server #&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mkdir /opt/openwin&lt;br /&gt;cd /usr/openwin&lt;br /&gt;find . | cpio -pdumv /opt/openwin&lt;br /&gt;find /usr/openwin | cpio -pdumv /opt/openwin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cd /ftp/data/pdu-msa/EDA-SLS&lt;br /&gt;&lt;br /&gt;find . -depth -print | cpio -pudmv /ftp/data2/pdu-msa/EDA-SLS&lt;br /&gt;&lt;br /&gt;*** using -print will get you defunct when you exit the shell, use find . only&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7349650171890453192?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7349650171890453192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7349650171890453192&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7349650171890453192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7349650171890453192'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-copy-or-moving-file-using-cpio.html' title='Solaris: copy or moving file using cpio'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2781885095087206587</id><published>2011-11-10T14:37:00.000+08:00</published><updated>2011-11-10T14:37:48.425+08:00</updated><title type='text'>Solaris: Using rsync to mirror or transfer data between servers</title><content type='html'>&lt;span class="Apple-style-span" style="background-color: #e6e6e6; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;A basic example being to mirror every hour on the hour:&lt;/span&gt;&lt;br style="background-color: #e6e6e6; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;" /&gt;&lt;b style="background-color: #e6e6e6; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;0 * * * * rsync -e ssh -avz user@liveserver:/home/httpd /home 2&amp;gt;&amp;amp;1 &amp;gt; /var/log/hourly_backup.log&lt;/b&gt;&lt;br style="background-color: #e6e6e6; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;" /&gt;&lt;span class="Apple-style-span" style="background-color: #e6e6e6; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;Then remove deleted files every night:&lt;/span&gt;&lt;br style="background-color: #e6e6e6; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;" /&gt;&lt;b style="background-color: #e6e6e6; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;30 0 * * * rsync -e ssh --delete-after -avz user@liveserver:/home/httpd /home 2&amp;gt;&amp;amp;1 &amp;gt; /var/log/nightly_backup.log&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-2781885095087206587?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2781885095087206587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2781885095087206587&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2781885095087206587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2781885095087206587'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-using-rsync-to-mirror-or.html' title='Solaris: Using rsync to mirror or transfer data between servers'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-6233568123955610181</id><published>2011-11-05T00:36:00.001+08:00</published><updated>2011-11-05T00:48:46.069+08:00</updated><title type='text'>Solaris:Transfer data using tar rsync</title><content type='html'>&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, mono; font-size: 11px;"&gt;tar cf - /source/file | (cd /target/file; tar xf -)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, mono; font-size: 11px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, mono; font-size: 11px;"&gt;or&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, mono; font-size: 11px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: #f2f2f2; color: #39352e; font-family: monospace; font-size: 13px; line-height: 21px;"&gt;tar cf - * | ( cd /target; tar xfp -)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: #f2f2f2; color: #39352e; font-family: monospace; font-size: 13px; line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: #f2f2f2; color: #39352e; font-family: monospace; font-size: 13px; line-height: 21px;"&gt;or&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: #f2f2f2; color: #39352e; font-family: monospace; font-size: 13px; line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;code class="functions" style="background-attachment: initial !important; background-clip: initial !important; background-color: white; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(255, 20, 147) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 11px; height: auto !important; left: auto !important; line-height: 14px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;tar&lt;/code&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 11px; line-height: 14px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;code class="plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: white; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 11px; height: auto !important; left: auto !important; line-height: 14px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;cvzf - my_dir |&amp;nbsp;&lt;/code&gt;&lt;code class="functions" style="background-attachment: initial !important; background-clip: initial !important; background-color: white; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(255, 20, 147) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 11px; height: auto !important; left: auto !important; line-height: 14px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;ssh&lt;/code&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 11px; line-height: 14px; text-align: left;"&gt;&amp;nbsp;&lt;/span&gt;&lt;code class="plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: white; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 11px; height: auto !important; left: auto !important; line-height: 14px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;server&amp;nbsp;&lt;/code&gt;&lt;code class="string" style="background-attachment: initial !important; background-clip: initial !important; background-color: white; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 11px; height: auto !important; left: auto !important; line-height: 14px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;'tar xzf -'&lt;/code&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px; line-height: 14px;"&gt;or&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px; line-height: 14px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;tar -cf - directory | ssh user@hostB "cd target_dir; tar -xf -"&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;or&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;rsync -aE -e ssh directory user@hostB:target_dir&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/8187123025728820991-6233568123955610181?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/6233568123955610181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=6233568123955610181&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6233568123955610181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6233568123955610181'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaristransfer-data-using-tar.html' title='Solaris:Transfer data using tar rsync'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-320503890864633476</id><published>2011-11-04T16:17:00.002+08:00</published><updated>2011-11-04T16:17:49.819+08:00</updated><title type='text'>Solaris : How To Grow UFS</title><content type='html'>HOw to grow filesystem under disksuite without soft partiotion for concat stripe&lt;br /&gt;find unused disk by #metastat | grep -i 2f5&lt;br /&gt;then, use format cmd to repatition the disk&lt;br /&gt;[05:58:15] root@server[31]# format&lt;br /&gt;Searching for disks...done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0. c0t0d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;/sun72g&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /pci@780/pci@0/pci@9/scsi@0/sd@0,0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. c0t1d0 &lt;sun72g 14087="" 24="" 2="" 424="" alt="" cyl="" hd="" sec=""&gt;&lt;/sun72g&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /pci@780/pci@0/pci@9/scsi@0/sd@1,0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. c4t60060E800543BE00000043BE000000BBd0 &lt;hp-open-v-sun-6002 13491="" 15="" 2="" 512="" alt="" cyl="" hd="" sec=""&gt;&lt;/hp-open-v-sun-6002&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /scsi_vhci/ssd@g60060e800543be00000043be000000bb&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3. c4t60060E800543BE00000043BE000000BCd0 &lt;hp-open-v-sun-6002 13491="" 15="" 2="" 512="" alt="" cyl="" hd="" sec=""&gt;&lt;/hp-open-v-sun-6002&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /scsi_vhci/ssd@g60060e800543be00000043be000000bc&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4. c4t60060E800543BE00000043BE000000BDd0 &lt;hp-open-v-sun-6002 13491="" 15="" 2="" 512="" alt="" cyl="" hd="" sec=""&gt;&lt;/hp-open-v-sun-6002&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /scsi_vhci/ssd@g60060e800543be00000043be000000bd&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5. c4t60060E800543BE00000043BE000000BEd0 &lt;hp-open-v-sun-6002 13491="" 15="" 2="" 512="" alt="" cyl="" hd="" sec=""&gt;&lt;/hp-open-v-sun-6002&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /scsi_vhci/ssd@g60060e800543be00000043be000000be&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6. c4t60060E800543BE00000043BE000002F4d0 &lt;hp-open-v-sun-6002 13491="" 15="" 2="" 512="" alt="" cyl="" hd="" sec=""&gt;&lt;/hp-open-v-sun-6002&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /scsi_vhci/ssd@g60060e800543be00000043be000002f4&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7. c4t60060E800543BE00000043BE000002F5d0 &lt;hp-open-v-sun-6002 13491="" 15="" 2="" 512="" alt="" cyl="" hd="" sec=""&gt;&lt;/hp-open-v-sun-6002&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /scsi_vhci/ssd@g60060e800543be00000043be000002f5&lt;br /&gt;Specify disk (enter its number):&lt;br /&gt;[05:58:15] root@server[32]#metattach d17 /dev/dsk/c4t60060E800543BE00000043BE000002F5d0s0&lt;br /&gt;d107: component is attached&lt;br /&gt;[05:58:15] root@server[33]# df -k /dbo&lt;br /&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kbytes &amp;nbsp; &amp;nbsp;used &amp;nbsp; avail capacity &amp;nbsp;Mounted on&lt;br /&gt;/dev/md/dsk/d107 &amp;nbsp; &amp;nbsp; 183417068 173603462 8489617 &amp;nbsp; &amp;nbsp;96% &amp;nbsp; &amp;nbsp;/dbo&lt;br /&gt;[05:58:15] root@server[34]# grep dbo /etc/mnttab&lt;br /&gt;/dev/md/dsk/d107 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dbo &amp;nbsp; &amp;nbsp;ufs &amp;nbsp; &amp;nbsp; rw,intr,largefiles,logging,xattr,onerror=panic,dev=154006b &amp;nbsp; &amp;nbsp; &amp;nbsp;1202293409&lt;br /&gt;[05:58:15] root@server[35]# growfs -M /dbo /dev/md/rdsk/d107&lt;br /&gt;/dev/md/rdsk/d107: &amp;nbsp; &amp;nbsp; &amp;nbsp;476067840 sectors in 77485 cylinders of 48 tracks, 128 sectors&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 232455.0MB in 4843 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)&lt;br /&gt;super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt;&amp;nbsp;32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,&lt;br /&gt;Initializing cylinder groups:&lt;br /&gt;...............................................................................&lt;br /&gt;.................&lt;br /&gt;super-block backups for last 10 cylinder groups at:&lt;br /&gt;&amp;nbsp;475107488, 475205920, 475304352, 475402784, 475501216, 475599648, 475698080,&lt;br /&gt;&amp;nbsp;475796512, 475894944, 475993376&lt;br /&gt;[05:58:15] root@server[36]# df -k /dbo&lt;br /&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kbytes &amp;nbsp; &amp;nbsp;used &amp;nbsp; avail capacity &amp;nbsp;Mounted on&lt;br /&gt;/dev/md/dsk/d107 &amp;nbsp; &amp;nbsp; 234430636 173603462 59503185 &amp;nbsp; &amp;nbsp;75% &amp;nbsp; &amp;nbsp;/dbo&lt;br /&gt;[05:58:15] root@server[37]#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-320503890864633476?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/320503890864633476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=320503890864633476&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/320503890864633476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/320503890864633476'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris-how-to-grow-ufs.html' title='Solaris : How To Grow UFS'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7321384961674202737</id><published>2011-11-03T11:37:00.000+08:00</published><updated>2011-11-03T11:37:00.635+08:00</updated><title type='text'>Solaris10: How to NFS via ZFS</title><content type='html'>By default, the root user on a client machine has restricted access to an NFS-mounted share.&lt;br /&gt;&lt;br /&gt;Here's how to grant full access to local root users to NFS mounts:&lt;br /&gt;&lt;br /&gt;zfs set sharenfs=rw=@192.168.1.0/24,root=@192.168.1.0/24 space&lt;br /&gt;&lt;br /&gt;This gives full access for root users on any machine in the 192.168.1.0/24 subnet to the zfs dataset "space".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;serverB# zfs list&lt;br /&gt;NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;USED &amp;nbsp;AVAIL &amp;nbsp;REFER &amp;nbsp;MOUNTPOINT&lt;br /&gt;app &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 284G &amp;nbsp; 157G &amp;nbsp; &amp;nbsp;18K &amp;nbsp;none&lt;br /&gt;app/iwstoreAPAC &amp;nbsp; &amp;nbsp; &amp;nbsp;51.8G &amp;nbsp;48.2G &amp;nbsp;51.8G &amp;nbsp;/opt/app/data/iw-store/APAC&lt;br /&gt;app/iwstoreAmericas &amp;nbsp;27.6G &amp;nbsp;22.4G &amp;nbsp;27.6G &amp;nbsp;/opt/app/data/iw-store/Americas&lt;br /&gt;app/iwstoreEMEA &amp;nbsp; &amp;nbsp; &amp;nbsp; 192G &amp;nbsp;57.6G &amp;nbsp; 192G &amp;nbsp;/opt/app/data/iw-store/EMEA&lt;br /&gt;app/optapp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12.3G &amp;nbsp;87.7G &amp;nbsp;12.3G &amp;nbsp;/opt/app&lt;br /&gt;&lt;br /&gt;for set of network&lt;br /&gt;zfs set sharenfs=rw=@153.88.177.0/24,root=@153.88.177.0/24 app/iwstoreAPAC&lt;br /&gt;zfs set sharenfs=rw=@153.88.177.0/24,root=@153.88.177.0/24 app/iwstoreAmericas&lt;br /&gt;zfs set sharenfs=rw=@153.88.177.0/24,root=@153.88.177.0/24 app/iwstoreEMEA&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;or for specific ips&lt;br /&gt;zfs set sharenfs=rw=153.88.177.59,root=153.88.177.59 app/iwstoreAPAC&lt;br /&gt;zfs set sharenfs=rw=153.88.177.59,root=153.88.177.59 app/iwstoreAmericas&lt;br /&gt;zfs set sharenfs=rw=153.88.177.59,root=153.88.177.59 app/iwstoreEMEA&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On serverA&lt;br /&gt;mkdir /serverB_APAC&lt;br /&gt;mkdir /serverB_Americas&lt;br /&gt;mkdir /serverB_EMEA&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;serverA# dfshares serverB&lt;br /&gt;RESOURCE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SERVER ACCESS &amp;nbsp; &amp;nbsp;TRANSPORT&lt;br /&gt;serverB:/opt/app/data/iw-store/Americas &amp;nbsp; serverB &amp;nbsp;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;br /&gt;serverB:/iwserver &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;serverB &amp;nbsp;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;br /&gt;serverB:/opt/app/data/iw-store/EMEA &amp;nbsp; serverB &amp;nbsp;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;br /&gt;serverB:/opt/app/data/iw-store/APAC &amp;nbsp; serverB &amp;nbsp;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;br /&gt;serverA# mount serverB:/opt/app/data/iw-store/Americas /serverB_Americas&lt;br /&gt;serverA# mount serverB:/opt/app/data/iw-store/EMEA /serverB_EMEA&lt;br /&gt;serverA# df -k&lt;br /&gt;&lt;div&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/8187123025728820991-7321384961674202737?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7321384961674202737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7321384961674202737&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7321384961674202737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7321384961674202737'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/11/solaris10-how-to-nfs-via-zfs.html' title='Solaris10: How to NFS via ZFS'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5412680580483833154</id><published>2011-10-20T14:55:00.002+08:00</published><updated>2011-10-20T15:01:25.788+08:00</updated><title type='text'>Solaris 10: How to configure ftp with single user restricted access and other not allowed</title><content type='html'>/etc/ftpd/ftpaccess example&lt;br /&gt;--------------&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;. omitted&lt;br /&gt;&lt;br /&gt;# limit-time &amp;nbsp; &amp;nbsp;anonymous &amp;nbsp; &amp;nbsp; &amp;nbsp; 30&lt;br /&gt;# limit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anonusers &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp;Wk0730-1800 &amp;nbsp; &amp;nbsp; &amp;nbsp; /etc/ftpd/toomany.msg&lt;br /&gt;# limit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anonusers &amp;nbsp; &amp;nbsp; &amp;nbsp; 50 &amp;nbsp; &amp;nbsp; &amp;nbsp;SaSu|Any1800-0730 /etc/ftpd/toomany.msg&lt;br /&gt;restricted-uid partsftp&lt;br /&gt;allow-uid partsftp&lt;br /&gt;deny-uid *&lt;br /&gt;defumask 022&lt;br /&gt;-----&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ftp&amp;gt; ls&lt;br /&gt;200 PORT command successful.&lt;br /&gt;150 Opening ASCII mode data connection for /bin/ls.&lt;br /&gt;total 8&lt;br /&gt;-rw-r--r-- &amp;nbsp; 1 partsftp partsftp &amp;nbsp; &amp;nbsp; 133 Oct 20 08:04 local.cshrc&lt;br /&gt;-rw-r--r-- &amp;nbsp; 1 partsftp partsftp &amp;nbsp; &amp;nbsp; 157 Oct 20 08:04 local.login&lt;br /&gt;-rw-r--r-- &amp;nbsp; 1 partsftp partsftp &amp;nbsp; &amp;nbsp; 172 Oct 20 08:04 local.profile&lt;br /&gt;-rw-r--r-- &amp;nbsp; 1 partsftp partsftp &amp;nbsp; &amp;nbsp; 207 Oct 20 08:04 .profile&lt;br /&gt;226 Transfer complete.&lt;br /&gt;ftp&amp;gt; cd ..&lt;br /&gt;550 Permission denied on server. &amp;nbsp;You are restricted to your account.&lt;br /&gt;ftp&amp;gt; bye&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;-----------------&lt;/div&gt;&lt;div&gt;/var/adm/messages example&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Oct 20 08:00:13 servername4 ftpd[24686]: [ID 177334 daemon.notice] FTP LOGIN REF &amp;nbsp;USED (username in denied-uid) FROM abc.com.se [172.17.200 &amp;nbsp;.154], username&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&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/8187123025728820991-5412680580483833154?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5412680580483833154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5412680580483833154&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5412680580483833154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5412680580483833154'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/10/solaris-10-how-to-configure-ftp-with.html' title='Solaris 10: How to configure ftp with single user restricted access and other not allowed'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2432416761384092066</id><published>2011-06-21T11:50:00.002+08:00</published><updated>2011-06-21T11:50:46.550+08:00</updated><title type='text'>Linux: Proliant check firmware</title><content type='html'>&lt;b&gt;How to check linux firmware version&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;hpiLO-&amp;gt; show /map1/firmware1&lt;br /&gt;status=0&lt;br /&gt;status_tag=COMMAND COMPLETED&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/map1/firmware1&lt;br /&gt;&amp;nbsp; Targets&lt;br /&gt;&amp;nbsp; Properties&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; version=2.01&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date=08/04/2010&lt;br /&gt;&amp;nbsp; Verbs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd version exit show load set&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hpiLO-&amp;gt; exit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use the following procedure:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Use SSH to access the iLO device&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Log in to the iLO using administrative credentials&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Type the following command and press enter: "load -source http://ip_address/path/imagename.bin /map1/firmware"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o&amp;nbsp; Example: "load -source http://192.168.0.1/ilo2_180.bin /map1/firmware"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * The interface will download the new image and will reset itself&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * To check the firmware version, log in again using SSH and enter the following command: "show /map1/firmware version"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-2432416761384092066?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2432416761384092066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2432416761384092066&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2432416761384092066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2432416761384092066'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/06/linux-proliant-check-firmware.html' title='Linux: Proliant check firmware'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3586805196106805193</id><published>2011-05-23T16:29:00.001+08:00</published><updated>2011-05-23T16:30:47.065+08:00</updated><title type='text'>Redhat: Check mirror running on HP proliant with hpacucli</title><content type='html'>&lt;b&gt;[root]# hpacucli ctrl all show&lt;/b&gt;&lt;br /&gt;No lpfc hosts found&lt;br /&gt;&lt;br /&gt;Smart Array P400 in Slot 3                (sn: PAFGL0P9SWY1S8)&lt;br /&gt;&lt;br /&gt;[root]#&lt;br /&gt;&lt;br /&gt;&lt;b&gt;[root]#  hpacucli ctrl slot=3 pd all show status&lt;/b&gt;&lt;br /&gt;No lpfc hosts found&lt;br /&gt;&lt;br /&gt;physicaldrive 2I:1:1 (port 2I:box 1:bay 1, 146 GB): OK&lt;br /&gt;physicaldrive 2I:1:2 (port 2I:box 1:bay 2, 146 GB): OK&lt;br /&gt;&lt;br /&gt;&lt;b&gt;[root]# hpacucli ctrl slot=3 ld all show status&lt;/b&gt;&lt;br /&gt;No lpfc hosts found&lt;br /&gt;&lt;br /&gt;logicaldrive 1 (136.7 GB, RAID 1): OK&lt;br /&gt;&lt;br /&gt;[root]#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3586805196106805193?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3586805196106805193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3586805196106805193&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3586805196106805193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3586805196106805193'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/05/redhat-check-mirror-running-on-hp.html' title='Redhat: Check mirror running on HP proliant with hpacucli'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-6125343514019769374</id><published>2011-05-10T16:10:00.000+08:00</published><updated>2011-05-10T16:10:36.984+08:00</updated><title type='text'>HPUX: how to reboot server</title><content type='html'>root# shutdown -r -y now&lt;br /&gt;&lt;br /&gt;SHUTDOWN PROGRAM&lt;br /&gt;05/10/11 10:06:27 METDST&lt;br /&gt;&lt;br /&gt;Broadcast Message from XXX (pts/0) Tue May 10 10:06:27...&lt;br /&gt;SYSTEM BEING BROUGHT DOWN NOW ! ! !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)&lt;br /&gt;&lt;br /&gt;ovc instance NOT running&lt;br /&gt;&lt;br /&gt;     System shutdown in progress&lt;br /&gt;     ___________________________&lt;br /&gt;&lt;br /&gt;     Stop Highly Available cluster ................................... N/A&lt;br /&gt;     Stopping Control Daemon ......................................... OK&lt;br /&gt;     Stopping OVTrcSrv ............................................... OK&lt;br /&gt;     Stoppping OVCM (radia) agent daemons ............................ OK&lt;br /&gt;     Stop LVM daemon ................................................. OK&lt;br /&gt;     Stop kwdbd ...................................................... N/A&lt;br /&gt;     Stopping HP-UX Apache-based Web Server .......................... OK&lt;br /&gt;     Stopping HP-UX Tomcat-based Servlet Engine. ..................... N/A&lt;br /&gt;     Stopping HP-UX Webmin-based Admin ............................... OK&lt;br /&gt;     Stopping the HPUX Webproxy subsystem ............................ OK&lt;br /&gt;     Stopping HP-UX XML Web Server Tools ............................. OK&lt;br /&gt;     Stop ESM network daemon ......................................... OK&lt;br /&gt;     Stop NFS server subsystem ....................................... OK&lt;br /&gt;      ................................................................ OK&lt;br /&gt;     Collecting AVIO and VIO hba and lun inventory.. ................. OK&lt;br /&gt;     Shutting down CIFS Client ....................................... N/A&lt;br /&gt;     Stopping Event Monitoring Service ............................... OK&lt;br /&gt;     Stop interrupt balance daemon ................................... N/A&lt;br /&gt;     Shutting down the Winbind Daemon ................................ OK&lt;br /&gt;     Unload/Uninstall XF86 DLKM Helper Modules ....................... N/A&lt;br /&gt;     Stopping the gWLM Agent ......................................... OK&lt;br /&gt;     Stopping Data Protector services ................................ OK&lt;br /&gt;     Stop Workload Manager subsystem ................................. OK&lt;br /&gt;     Reset PRM and shut down PRM daemons ............................. OK&lt;br /&gt;     Shutting down the System Management HomePage server ............. OK&lt;br /&gt;     Shutting down Perf Agent software ............................... OK&lt;br /&gt;     Stopping the perfd daemon. ...................................... OK&lt;br /&gt;     Shutting down OSD Down Time software ............................ OK&lt;br /&gt;     Stopping USB hub daemon ......................................... OK&lt;br /&gt;     Stop auditing subsystem ......................................... OK&lt;br /&gt;     Stop environment monitoring daemon .............................. OK&lt;br /&gt;     Stop diagnostic subsystem ....................................... OK&lt;br /&gt;     Stop oserrlogd .................................................. OK&lt;br /&gt;     Stop clock daemon ............................................... OK&lt;br /&gt;     Stop print spooler .............................................. OK&lt;br /&gt;     Stop accounting ................................................. N/A&lt;br /&gt;     Stopping time synchronization ................................... OK&lt;br /&gt;     Stop vt daemon .................................................. OK&lt;br /&gt;     Terminating X Font Server ....................................... OK&lt;br /&gt;     Stop HA cluster WBEM subagent ................................... OK&lt;br /&gt;     Stopping HP-UX Secure Shell ..................................... OK&lt;br /&gt;     Stopping Instant Capacity ....................................... N/A&lt;br /&gt;     Stop CIM cimserver subsystem .................................... OK&lt;br /&gt;     Stop RPC daemon ................................................. OK&lt;br /&gt;     Stop DCE daemons ................................................ OK&lt;br /&gt;     Stop HA cluster SNMP subagent ................................... OK&lt;br /&gt;     Stopping OSPF MIB Network Management subAgent ................... N/A&lt;br /&gt;     Stopping SNMP HP-UNIX Network Management subAgent ............... OK&lt;br /&gt;     Stopping SNMP IPv6 Network Management subAgent .................. OK&lt;br /&gt;     Stopping SNMP MIB-2 Network Management subAgent ................. OK&lt;br /&gt;     Stopping Native Adapter Agent ................................... OK&lt;br /&gt;     Stopping SNMP Trap Dest Network Management subAgent ............. OK&lt;br /&gt;     Stopping SNMP Master Network Management daemon .................. OK&lt;br /&gt;     Stop HA cluster proxy daemon .................................... OK&lt;br /&gt;     Stopping outbound connection daemons for DDFA software .......... N/A&lt;br /&gt;     Stopping syslog-ng daemons ...................................... N/A&lt;br /&gt;     Stopping cfengine's cfservd daemon .............................. N/A&lt;br /&gt;     Shutting down sendmail [Done] Shutting down sm-client [Done] .... OK&lt;br /&gt;     Stopping IPv6 router advertisement daemon ....................... N/A&lt;br /&gt;     Stopping remote system status daemon ............................ N/A&lt;br /&gt;     Stopping RARP protocol daemon ................................... N/A&lt;br /&gt;     Stop PPPoE configuration ........................................ N/A&lt;br /&gt;     Stop PPP configuration .......................................... OK&lt;br /&gt;     Stopping router discover protocol daemon ........................ N/A&lt;br /&gt;     Stopping ramd routing daemon .................................... N/A&lt;br /&gt;     Stopping dynamic routing daemon ................................. N/A&lt;br /&gt;     Stopping Internet services daemon ............................... OK&lt;br /&gt;     Stopping multicast routing daemon ............................... N/A&lt;br /&gt;     Stop AUTOFS subsystem ........................................... OK&lt;br /&gt;     Stop NFS client subsystem ....................................... OK&lt;br /&gt;     Stop lock manager subsystem ..................................... OK&lt;br /&gt;     Stop NIS client subsystem ....................................... OK&lt;br /&gt;     Stop ldap client daemon ......................................... OK&lt;br /&gt;     Stop NIS/LDAP server subsystem .................................. N/A&lt;br /&gt;     Stop NIS server subsystem ....................................... OK&lt;br /&gt;     Stop NFS core subsystem ......................................... OK&lt;br /&gt;     Stopping name server daemon ..................................... N/A&lt;br /&gt;     Unconfiguring DHCPv6 Interfaces ................................. OK&lt;br /&gt;     Stopping DHCPv6 Server daemon ................................... N/A&lt;br /&gt;     Stopping sfmdb PostgreSQL daemons ............................... OK&lt;br /&gt;     Unconfigure LAN interfaces ...................................... OK&lt;br /&gt;     Unconfigure LAN interfaces for IPv6 ............................. OK&lt;br /&gt;     Unconfigure HP igssn Gigabit Ethernet interfaces ................ OK&lt;br /&gt;     Unconfigure HP gelan Gigabit Ethernet interfaces ................ OK&lt;br /&gt;     Unconfigure HP iether 100BT/Gigabit Ethernet interfaces ......... OK&lt;br /&gt;     Unconfigure HP igelan Gigabit Ethernet interfaces ............... OK&lt;br /&gt;     Stop ESM network daemon ......................................... OK&lt;br /&gt;     Stop network tracing and logging daemon ......................... OK&lt;br /&gt;     Stop pty allocator daemon ....................................... OK&lt;br /&gt;     Stop system message logging daemon .............................. OK&lt;br /&gt;     Stop Software Distributor agent daemon .......................... OK&lt;br /&gt;     Stop Essential Services monitoring daemon ....................... OK&lt;br /&gt;     Stopping Event Management (EVM) ................................. OK&lt;br /&gt;     Unconfigure Loopback interfaces (lo0) ........................... OK&lt;br /&gt;     Stop Utmp Daemon ................................................ OK&lt;br /&gt;     Stopping livedump subsystem ..................................... OK&lt;br /&gt;     Stop syncer daemon .............................................. OK&lt;br /&gt;     Killing user processes .......................................... OK&lt;br /&gt;     Starting the fsdaemon for transition into single-user mode ...... OK&lt;br /&gt;     Apply kernel configuration changes for next boot ................ OK&lt;br /&gt;     Unmount file systems ............................................ OK&lt;br /&gt;&lt;br /&gt;Transition to run-level 0 is complete.&lt;br /&gt;Executing "/sbin/reboot          ".&lt;br /&gt;Shutdown at 10:08 (in 0 minutes)&lt;br /&gt;&lt;br /&gt;        *** FINAL System shutdown message from hpfimhas@esesbux0006 ***&lt;br /&gt;&lt;br /&gt;System going down IMMEDIATELY&lt;br /&gt;&lt;br /&gt;System shutdown time has arrived&lt;br /&gt;reboot: redirecting error messages to /dev/console&lt;br /&gt;Connection to xxx closed by remote host.&lt;br /&gt;Connection to xxx closed.&lt;br /&gt;#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-6125343514019769374?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/6125343514019769374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=6125343514019769374&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6125343514019769374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6125343514019769374'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/05/hpux-how-to-reboot-server.html' title='HPUX: how to reboot server'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-1986240156392624189</id><published>2011-05-10T11:17:00.000+08:00</published><updated>2011-05-10T11:17:13.351+08:00</updated><title type='text'>Redhat: Check NIC speed/duplex</title><content type='html'>[root]# ifconfig -a&lt;br /&gt;eth0      Link encap:Ethernet  HWaddr 00:50:56:A5:6E:28&lt;br /&gt;          inet addr:155.53.154.197  Bcast:155.53.155.255  Mask:255.255.254.0&lt;br /&gt;          inet6 addr: fe80::250:56ff:fea5:6e28/64 Scope:Link&lt;br /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;          RX packets:2657820622 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;          TX packets:2174534933 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;          collisions:0 txqueuelen:1000&lt;br /&gt;          RX bytes:3362843874812 (3.0 TiB)  TX bytes:1238184921670 (1.1 TiB)&lt;br /&gt;          Base address:0x2000 Memory:d8920000-d8940000&lt;br /&gt;[root]# ethtool eth0&lt;br /&gt;Settings for eth0:&lt;br /&gt;        Supported ports: [ TP ]&lt;br /&gt;        Supported link modes:   10baseT/Half 10baseT/Full&lt;br /&gt;                                100baseT/Half 100baseT/Full&lt;br /&gt;                                1000baseT/Full&lt;br /&gt;        Supports auto-negotiation: Yes&lt;br /&gt;        Advertised link modes:  10baseT/Half 10baseT/Full&lt;br /&gt;                                100baseT/Half 100baseT/Full&lt;br /&gt;                                1000baseT/Full&lt;br /&gt;        Advertised auto-negotiation: Yes&lt;br /&gt;        Speed: 1000Mb/s&lt;br /&gt;        Duplex: Full&lt;br /&gt;        Port: Twisted Pair&lt;br /&gt;        PHYAD: 0&lt;br /&gt;        Transceiver: internal&lt;br /&gt;        Auto-negotiation: on&lt;br /&gt;        Supports Wake-on: d&lt;br /&gt;        Wake-on: d&lt;br /&gt;        Current message level: 0x00000007 (7)&lt;br /&gt;        Link detected: yes&lt;br /&gt;[root]#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-1986240156392624189?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/1986240156392624189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=1986240156392624189&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1986240156392624189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1986240156392624189'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/05/redhat-check-nic-speedduplex.html' title='Redhat: Check NIC speed/duplex'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2612486814108499417</id><published>2011-04-28T14:56:00.000+08:00</published><updated>2011-04-28T14:56:27.195+08:00</updated><title type='text'>HPUX: check duplex on 11.0</title><content type='html'>root: /root/home/root -&gt; netstat -i&lt;br /&gt;Name      Mtu  Network         Address         Ipkts              Ierrs Opkts              Oerrs Coll&lt;br /&gt;lan1      1500 10.2.18.0       &lt;br /&gt;                                               324582173          0     380503067          0     0&lt;br /&gt;lan0      1500 153.88.127.0    &lt;br /&gt;                                               343512775          0     1606306136 &lt;br /&gt;root: /root/home/root -&gt; lanscan -p&lt;br /&gt;0&lt;br /&gt;1&lt;br /&gt;900&lt;br /&gt;901&lt;br /&gt;902&lt;br /&gt;903&lt;br /&gt;904&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;root: /root/home/root -&gt; lanadmin -x 0&lt;br /&gt;Speed = 1000 Full-Duplex.&lt;br /&gt;Autonegotiation = On.&lt;br /&gt;&lt;br /&gt;root /root/home/root -&gt; lanadmin -x 1&lt;br /&gt;Speed = 1000 Full-Duplex.&lt;br /&gt;Autonegotiation = On.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-2612486814108499417?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2612486814108499417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2612486814108499417&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2612486814108499417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2612486814108499417'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/04/hpux-check-duplex-on-110.html' title='HPUX: check duplex on 11.0'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7306307070357709137</id><published>2011-04-28T14:43:00.002+08:00</published><updated>2011-04-28T14:43:41.028+08:00</updated><title type='text'>HPUX: Determine if disk is mirrored</title><content type='html'>root: /opt -&gt; lvlnboot -v&lt;br /&gt;Boot Definitions for Volume Group /dev/vg00:&lt;br /&gt;Physical Volumes belonging in Root Volume Group:&lt;br /&gt;        /dev/disk/disk4_p2 -- Boot Disk&lt;br /&gt;        /dev/disk/disk5_p2 -- Boot Disk&lt;br /&gt;Boot: lvol1     on:     /dev/disk/disk4_p2&lt;br /&gt;                        /dev/disk/disk5_p2&lt;br /&gt;Root: lvol3     on:     /dev/disk/disk4_p2&lt;br /&gt;                        /dev/disk/disk5_p2&lt;br /&gt;Swap: lvol2     on:     /dev/disk/disk4_p2&lt;br /&gt;                        /dev/disk/disk5_p2&lt;br /&gt;Dump: lvol2     on:     /dev/disk/disk4_p2, 0&lt;br /&gt;&lt;br /&gt;root : /opt -&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7306307070357709137?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7306307070357709137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7306307070357709137&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7306307070357709137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7306307070357709137'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2011/04/hpux-determine-if-disk-is-mirrored.html' title='HPUX: Determine if disk is mirrored'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3439171300029599148</id><published>2010-07-08T12:12:00.001+08:00</published><updated>2010-07-08T12:12:51.337+08:00</updated><title type='text'>Solaris SSH and Tar combine</title><content type='html'>to push&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;tar czf - www.example.com/ | ssh joebloggs@otherserver.com tar xzf - -C ~/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;to get &lt;br /&gt;&lt;br /&gt;ssh username@from_server "tar czf - directory_to_get" | tar xzvf - -C&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3439171300029599148?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3439171300029599148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3439171300029599148&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3439171300029599148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3439171300029599148'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/07/solaris-ssh-and-tar-combine.html' title='Solaris SSH and Tar combine'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-214227433686587577</id><published>2010-07-07T12:34:00.003+08:00</published><updated>2010-07-07T12:40:35.835+08:00</updated><title type='text'>Solaris 10: Find new disk and label it</title><content type='html'>#cat format.cmd&lt;br /&gt;label&lt;br /&gt;quit&lt;br /&gt;&lt;br /&gt;#cat list&lt;br /&gt;4B19&lt;br /&gt;5B19&lt;br /&gt;6B19&lt;br /&gt;7B19&lt;br /&gt;&lt;br /&gt;#! /bin/sh&lt;br /&gt;echo "\n" | format &gt; format.before&lt;br /&gt;#cfgadm -al&lt;br /&gt;echo "\n" | format &gt; format.after&lt;br /&gt;for i in `cat list`&lt;br /&gt;do&lt;br /&gt;echo $i&lt;br /&gt;grep -i $i format.after| grep -i configured| awk -F: '{print $1}' &gt; a.out&lt;br /&gt;echo "format -s -f format.cmd `grep -i $i format.after| grep -i configured| awk -F: '{print $1}'`" &gt; labeldisk.sh&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;#sh -x labeldisk.sh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-214227433686587577?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/214227433686587577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=214227433686587577&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/214227433686587577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/214227433686587577'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/07/solaris-10-find-new-disk-and-label-it.html' title='Solaris 10: Find new disk and label it'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8396832699582262701</id><published>2010-03-23T14:48:00.000+08:00</published><updated>2010-03-23T14:49:17.459+08:00</updated><title type='text'>REDHAT LVM determine free disk space and move LVM aroun</title><content type='html'>Determine free space&lt;br /&gt;&lt;br /&gt;# pvscan&lt;br /&gt;pvscan -- reading all physical volumes (this may take a while...)&lt;br /&gt;pvscan -- ACTIVE   PV "/dev/sda"  of VG "dev"   [1.95 GB / 0 free]&lt;br /&gt;pvscan -- ACTIVE   PV "/dev/sdb"  of VG "sales" [1.95 GB / 1.27 GB free]&lt;br /&gt;pvscan -- ACTIVE   PV "/dev/sdc"  of VG "ops"   [1.95 GB / 564 MB free]&lt;br /&gt;pvscan -- ACTIVE   PV "/dev/sdd"  of VG "dev"   [1.95 GB / 0 free]&lt;br /&gt;pvscan -- ACTIVE   PV "/dev/sde"  of VG "ops"   [1.95 GB / 1.9 GB free]&lt;br /&gt;pvscan -- ACTIVE   PV "/dev/sdf"  of VG "dev"   [1.95 GB / 1.33 GB free]&lt;br /&gt;pvscan -- ACTIVE   PV "/dev/sdg1" of VG "ops"   [996 MB / 432 MB free]&lt;br /&gt;pvscan -- ACTIVE   PV "/dev/sdg2" of VG "dev"   [996 MB / 632 MB free]&lt;br /&gt;pvscan -- total: 8 [13.67 GB] / in use: 8 [13.67 GB] / in no VG: 0 [0]&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;We decide to reallocate /dev/sdg1 and /dev/sdg2 to design so first we have to move the physical extents into the free areas of the other volumes (in this case /dev/sdf for volume group dev and /dev/sde for volume group ops).&lt;br /&gt;&lt;br /&gt;Move data off the disks to be used&lt;br /&gt;&lt;br /&gt;Some space is still used on the chosen volumes so it is necessary to move that used space off onto some others.&lt;br /&gt;&lt;br /&gt;Move all the used physical extents from /dev/sdg1 to /dev/sde and from /dev/sdg2 to /dev/sdf&lt;br /&gt;&lt;br /&gt;# pvmove /dev/sdg1 /dev/sde&lt;br /&gt;pvmove -- moving physical extents in active volume group "ops"&lt;br /&gt;pvmove -- WARNING: moving of active logical volumes may cause data loss!&lt;br /&gt;pvmove -- do you want to continue? [y/n] y&lt;br /&gt;pvmove -- doing automatic backup of volume group "ops"&lt;br /&gt;pvmove -- 141 extents of physical volume "/dev/sdg1" successfully moved&lt;br /&gt;&lt;br /&gt;# pvmove /dev/sdg2 /dev/sdf&lt;br /&gt;pvmove -- moving physical extents in active volume group "dev"&lt;br /&gt;pvmove -- WARNING: moving of active logical volumes may cause data loss!&lt;br /&gt;pvmove -- do you want to continue? [y/n] y&lt;br /&gt;pvmove -- doing automatic backup of volume group "dev"&lt;br /&gt;pvmove -- 91 extents of physical volume "/dev/sdg2" successfully moved&lt;br /&gt;&lt;br /&gt;Make a file system on the volume ext3&lt;br /&gt;&lt;br /&gt;# mkfs.ext3 /dev/datavg01/datalv01&lt;br /&gt;mke2fs 1.35 (28-Feb-2004)&lt;br /&gt;Filesystem label=&lt;br /&gt;OS type: Linux&lt;br /&gt;Block size=4096 (log=2)&lt;br /&gt;Fragment size=4096 (log=2)&lt;br /&gt;19660800 inodes, 39305216 blocks&lt;br /&gt;1965260 blocks (5.00%) reserved for the super user&lt;br /&gt;First data block=0&lt;br /&gt;Maximum filesystem blocks=4294967296&lt;br /&gt;1200 block groups&lt;br /&gt;32768 blocks per group, 32768 fragments per group&lt;br /&gt;16384 inodes per group&lt;br /&gt;Superblock backups stored on blocks:&lt;br /&gt;        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,&lt;br /&gt;        4096000, 7962624, 11239424, 20480000, 23887872&lt;br /&gt;&lt;br /&gt;Writing inode tables: done&lt;br /&gt;Creating journal (8192 blocks): done&lt;br /&gt;Writing superblocks and filesystem accounting information: done&lt;br /&gt;&lt;br /&gt;This filesystem will be automatically checked every 39 mounts or&lt;br /&gt;180 days, whichever comes first.  Use tune2fs -c or -i to override.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mount the new volume&lt;br /&gt;&lt;br /&gt;# mkdir -p /mnt/design/users&lt;br /&gt;# mount /dev/datavg01/datalv01 /mnt/design/users/&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;It's also a good idea to add an entry for this file system in your /etc/fstab file as follows:&lt;br /&gt;&lt;br /&gt;/dev/datavg01/datalv01    /mnt/design/users   ext3    defaults        1 2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8396832699582262701?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8396832699582262701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8396832699582262701&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8396832699582262701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8396832699582262701'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/03/redhat-lvm-determine-free-disk-space.html' title='REDHAT LVM determine free disk space and move LVM aroun'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2003906422792200335</id><published>2010-03-23T11:12:00.001+08:00</published><updated>2010-03-23T11:12:53.921+08:00</updated><title type='text'>Multi-path Device Mapper for Linux Software - Software Installation</title><content type='html'>&lt;a href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&amp;amp;cc=us&amp;amp;taskId=115&amp;amp;prodSeriesId=3559651&amp;amp;prodTypeId=18964&amp;amp;objectID=c01475612"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&amp;amp;cc=us&amp;amp;taskId=115&amp;amp;prodSeriesId=3559651&amp;amp;prodTypeId=18964&amp;amp;objectID=c01475612&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-2003906422792200335?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2003906422792200335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2003906422792200335&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2003906422792200335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2003906422792200335'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/03/multi-path-device-mapper-for-linux.html' title='Multi-path Device Mapper for Linux Software - Software Installation'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-944885891795650338</id><published>2010-03-23T11:00:00.001+08:00</published><updated>2010-03-23T11:01:58.332+08:00</updated><title type='text'>Another good redhat blog for reference</title><content type='html'>&lt;a href="http://thomasvogt.wordpress.com/2007/12/04/linux-network-bonding/"&gt;http://thomasvogt.wordpress.com/2007/12/04/linux-network-bonding/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-944885891795650338?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/944885891795650338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=944885891795650338&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/944885891795650338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/944885891795650338'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/03/another-good-redhat-blog-for-reference.html' title='Another good redhat blog for reference'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3063613840584213457</id><published>2010-03-05T15:46:00.002+08:00</published><updated>2010-03-05T15:49:54.099+08:00</updated><title type='text'>HPUX download lsof site</title><content type='html'>&lt;a href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3063613840584213457?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3063613840584213457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3063613840584213457&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3063613840584213457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3063613840584213457'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/03/hpux-download-lsof-site.html' title='HPUX download lsof site'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-948086845647314020</id><published>2010-03-05T11:50:00.004+08:00</published><updated>2010-03-05T11:53:43.502+08:00</updated><title type='text'>REDHAT: To Test New Kernel Reboot Once</title><content type='html'>We want to change default=0 to default=1 This will boot your old kernel (not the upgraded one). Grub starts at 0, which will be your new kernel. We will switch to the new kernel later.&lt;br /&gt;&lt;br /&gt;Save and exit.&lt;br /&gt;&lt;br /&gt;Step 3: Configure server to boot once with the new kernel.&lt;br /&gt;&lt;br /&gt;Now we will configure the server to boot the new kernel only once in case it fails. This is the most important step, if its not done and the new kernel fails your out of luck. &lt;br /&gt;&lt;br /&gt;Type the following from command line (one at a time):&lt;br /&gt;&lt;br /&gt;grub&lt;br /&gt;savedefault --default=0 --once&lt;br /&gt;quit&lt;br /&gt;&lt;br /&gt;Step 4 – Reboot&lt;br /&gt;&lt;br /&gt;Then reboot the server or computer. When it comes back up run uname -a to make sure it has the new kernel. (Note: if it does not come back up, reboot it again and it will load the old kernel.)&lt;br /&gt;&lt;br /&gt;Then switch the grub.conf to boot the new kernel permanently.&lt;br /&gt;&lt;br /&gt;nano /boot/grub/grub.conf&lt;br /&gt;&lt;br /&gt;change default=1 to default=0&lt;br /&gt;&lt;br /&gt;Save and exit. Thats it you have successfully updated your kernel.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-948086845647314020?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/948086845647314020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=948086845647314020&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/948086845647314020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/948086845647314020'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/03/redhat-to-test-new-kernel-reboot-once.html' title='REDHAT: To Test New Kernel Reboot Once'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-9167010819938216535</id><published>2010-02-09T10:54:00.001+08:00</published><updated>2010-02-09T10:56:02.714+08:00</updated><title type='text'>Solaris:How can I use the Solaris ?Explorer? program to collect information on my zone(s)</title><content type='html'>Explorer 5.0 can be run on Solaris 10 in a global zone. It can be used to collect information on containers (non-global zones) with the -w option.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-9167010819938216535?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/9167010819938216535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=9167010819938216535&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/9167010819938216535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/9167010819938216535'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/02/solarishow-can-i-use-solaris-explorer.html' title='Solaris:How can I use the Solaris ?Explorer? program to collect information on my zone(s)'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5685780712502134678</id><published>2010-02-09T10:41:00.002+08:00</published><updated>2010-02-09T10:59:40.126+08:00</updated><title type='text'>Solaris: How do I modify the network configuration of a running zone?</title><content type='html'>&lt;pre&gt;global# ifconfig bge0 addif  192.168.200.2 zone myzone&lt;br /&gt;global# ifconfig bge0 removeif 192.168.200.2&lt;br /&gt;&lt;br /&gt;Or remove and add again interface via zonecfg -z myzone&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/8187123025728820991-5685780712502134678?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5685780712502134678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5685780712502134678&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5685780712502134678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5685780712502134678'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2010/02/solaris-how-do-i-modify-network.html' title='Solaris: How do I modify the network configuration of a running zone?'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3950097355542708447</id><published>2009-07-30T21:44:00.001+08:00</published><updated>2009-07-30T21:50:56.579+08:00</updated><title type='text'>Solaris 10 zones fatal signal 9</title><content type='html'>If your zones trying to boot endlessly looping like this....&lt;br /&gt;&lt;br /&gt;Jul 29 13:05:52 global zone last message repeated 158764 times&lt;br /&gt;Jul 29 13:05:52 global zone genunix: [ID 729207 kern.warning] WARNING: init(1M) for zone localzone (pid 1800) exited on fatal signal 9: restarting automatically&lt;br /&gt;Jul 29 13:11:47 global zone last message repeated 140032 times&lt;br /&gt;Jul 29 13:11:52 global zone genunix: [ID 729207 kern.warning] WARNING: init(1M) for zone localzone (pid 24509) exited on fatal signal 9: restarting automatically&lt;br /&gt;Jul 29 13:12:32 global zone last message repeated 15167 times&lt;br /&gt;Jul 29 13:12:32 global zone genunix: [ID 729207 kern.warning] WARNING: init(1M) for zone localzone (pid 24509) exited on fatal signal 9: restarting automatically&lt;br /&gt;&lt;br /&gt;Your library libc.so.1 might be in trouble. Try copy from global zone. and it will able to boot again.&lt;br /&gt;root@globalzone # /zones/localzone/root/liblibc.so.1&lt;br /&gt;-rwxr-xr-x   1 root     bin            0 Jul 29 09:44 libc.so.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;see the zlogin console, localzone is booting...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3950097355542708447?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3950097355542708447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3950097355542708447&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3950097355542708447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3950097355542708447'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2009/07/solaris-10-zones-fatal-signal-9.html' title='Solaris 10 zones fatal signal 9'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7916566588741607796</id><published>2009-05-12T11:19:00.002+08:00</published><updated>2009-05-12T11:21:43.524+08:00</updated><title type='text'>Solaris How to find LUN id of disks</title><content type='html'>&lt;hp-open-e-sun-2108 cyl="" 19757="" al=""&gt;&lt;hp-open-e-sun-2108 cyl="" 19757="" al=""&gt;&lt;hp-open-e-sun-2108 cyl="" 19757="" al=""&gt; &lt;span style="font-family: courier new;"&gt;#format ....&lt;br /&gt;&lt;br /&gt;     54. c4t50060E8003EC2D000000EC2D00001015d0 &lt;hp-open-e-sun-2108&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;          /scsi_vhci/ssd@g50060e8003ec2d000000ec2d00001015&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;      55. c4t50060E8003EC2D000000EC2D00001017d0 &lt;hp-open-e-sun-2108&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;          /scsi_vhci/ssd@g50060e8003ec2d000000ec2d00001017&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;      56. c4t50060E8003EC2D000000EC2D00001019d0 &lt;hp-open-e-sun-2108&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;          /scsi_vhci/ssd@g50060e8003ec2d000000ec2d00001019&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;[03:49:39] root@episprod[64]# luxadm probe | grep c4t50060E8003EC2D000000EC2D000                                                                             01015d0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Logical Path:/dev/rdsk/c4t50060E8003EC2D000000EC2D00001015d0s2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;64      luxadm probe | grep c4t50060E8003EC2D000000EC2D00001015d0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;65      luxadm display /dev/rdsk/c4t50060E8003EC2D000000EC2D00001015d0s2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;[03:49:39] root@episprod[65]# k/c4t50060E8003EC2D000000EC2D00001015d0s2      &lt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;DEVICE PROPERTIES for disk: /dev/rdsk/c4t50060E8003EC2D000000EC2D00001015d0s2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Vendor:               HP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Product ID:           OPEN-E      -SUN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Revision:             2114&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Serial Num:           0450EC2D1015&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Unformatted capacity: 13893.047 MBytes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Write Cache:          Enabled&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Read Cache:           Enabled&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Minimum prefetch:   0x0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Maximum prefetch:   0x0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Device Type:          Disk device&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  Path(s):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  /dev/rdsk/c4t50060E8003EC2D000000EC2D00001015d0s2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  /devices/scsi_vhci/ssd@g50060e8003ec2d000000ec2d00001015:c,raw&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;   Controller           /devices/pci@8,600000/SUNW,qlc@1/fp@0,0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Device Address              50060e8003ec2d05,14 &lt;---------- this is the LUN id in HEX&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Host controller port WWN    210000e08b81fdfa&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Class                       primary&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    State                       ONLINE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;   Controller           /devices/pci@8,600000/SUNW,qlc@2/fp@0,0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Device Address              50060e8003ec2d15,14 &lt;---------- this is the LUN id in HEX&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Host controller port WWN    210000e08b8180fb&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Class                       primary&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    State                       ONLINE&lt;/span&gt;&lt;br /&gt;&lt;/hp-open-e-sun-2108&gt;&lt;/hp-open-e-sun-2108&gt;&lt;/hp-open-e-sun-2108&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7916566588741607796?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7916566588741607796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7916566588741607796&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7916566588741607796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7916566588741607796'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2009/05/solaris-how-to-find-lun-id-of-disks.html' title='Solaris How to find LUN id of disks'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8210583420943708610</id><published>2009-05-08T16:46:00.000+08:00</published><updated>2009-05-08T16:47:39.662+08:00</updated><title type='text'>Solaris which disk we are booting from?</title><content type='html'>root # prtpicl -v | grep disk&lt;br /&gt;              :disk-write-fix&lt;br /&gt;             disk-label (disk-label, 3a00000033)&lt;br /&gt;              :devfs-path        /packages/disk-label&lt;br /&gt;              :binding-name      disk-label&lt;br /&gt;              :_class    disk-label&lt;br /&gt;              :name      disk-label&lt;br /&gt;          :bootpath      /pci@1c,600000/scsi@2/disk@1,0:a &lt;----- disk1&lt;br /&gt;          :boot-device   disk0:a&lt;br /&gt;          :diag-device   disk0:a&lt;br /&gt;          :disk  /pci@1c,600000/scsi@2/disk@0,0&lt;br /&gt;          :disk0         /pci@1c,600000/scsi@2/disk@0,0&lt;br /&gt;          :disk1         /pci@1c,600000/scsi@2/disk@1,0&lt;br /&gt;          :disk2         /pci@1c,600000/scsi@2/disk@2,0&lt;br /&gt;          :disk3         /pci@1c,600000/scsi@2/disk@3,0&lt;br /&gt;              :SlotType  disk-slot&lt;br /&gt;                 disk (fru, 3a0000b366)&lt;br /&gt;                  :name  disk&lt;br /&gt;              :SlotType  disk-slot&lt;br /&gt;                 disk (fru, 3a000006df)&lt;br /&gt;                  :name  disk&lt;br /&gt;              :SlotType  disk-slot&lt;br /&gt;              :SlotType  disk-slot&lt;br /&gt;root #&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8210583420943708610?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8210583420943708610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8210583420943708610&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8210583420943708610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8210583420943708610'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2009/05/solaris-which-disk-we-are-booting-from.html' title='Solaris which disk we are booting from?'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-6601168205142964368</id><published>2009-04-16T11:09:00.002+08:00</published><updated>2009-04-16T11:10:48.269+08:00</updated><title type='text'>HPUX check interface speed</title><content type='html'>root -&gt; lanscan&lt;br /&gt;Hardware Station        Crd  Hdw   Net-Interface    NM   MAC       HP-DLPI DLPI&lt;br /&gt;Path     Address        In#  State NamePPA          ID   Type      Support Mjr#&lt;br /&gt;0/0/0/0  0x000D9DAEFD96 0    UP    lan0 snap0       1    ETHER       Yes   119&lt;br /&gt;0/2/0/0  0x00306EEAE178 1    UP    lan1 snap1       2    ETHER       Yes   119&lt;br /&gt;root -&gt; lanadmin -x 0&lt;br /&gt;Current Config                   = 100 Full-Duplex AUTONEG&lt;br /&gt;&lt;br /&gt;root-&gt;&lt;a id="publishButton" class="cssButton" href="javascript:void(0)" target="" onclick="if (this.className.indexOf(&amp;quot;ubtn-disabled&amp;quot;) == -1) {var e = document['stuffform'].publish;(e.length) ? e[0].click() : e.click(); if (window.event) window.event.cancelBubble = true; return false;}"&gt;&lt;div class="cssButtonOuter"&gt;&lt;div class="cssButtonMiddle"&gt;&lt;div class="cssButtonInner"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-6601168205142964368?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/6601168205142964368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=6601168205142964368&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6601168205142964368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/6601168205142964368'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2009/04/hpux-check-interface-sped.html' title='HPUX check interface speed'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-1306405325755257934</id><published>2008-12-24T13:08:00.000+08:00</published><updated>2008-12-24T13:09:30.033+08:00</updated><title type='text'>Solaris 10 HP-OPEN-V-SUN</title><content type='html'>root@hostname # cfgadm -o show_FCP_dev -al&lt;br /&gt;Ap_Id                          Type         Receptacle   Occupant     Condition&lt;br /&gt;c2                             fc-fabric    connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,0         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,1         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,2         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,3         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,4         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,5         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,6         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,7         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,8         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,9         disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,10        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,11        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,12        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,13        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,14        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,15        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,16        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,17        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,18        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,19        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,20        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,21        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,22        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,23        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,24        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,25        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,26        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,27        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,28        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,29        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,30        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,31        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,32        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,33        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,34        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,35        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,36        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,37        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,38        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,39        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,40        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,41        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,42        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,43        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,44        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,45        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,46        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,47        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,48        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,49        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,50        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,51        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,52        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,53        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,54        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,55        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,56        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,57        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,58        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,59        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,60        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,61        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,62        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,63        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,64        disk         connected    configured   unknown&lt;br /&gt;c2::50060e8004f25e46,65        disk         connected    configured   unknown&lt;br /&gt;c3                             fc-fabric    connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,0         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,1         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,2         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,3         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,4         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,5         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,6         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,7         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,8         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,9         disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,10        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,11        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,12        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,13        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,14        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,15        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,16        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,17        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,18        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,19        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,20        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,21        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,22        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,23        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,24        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,25        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,26        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,27        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,28        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,29        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,30        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,31        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,32        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,33        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,34        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,35        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,36        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,37        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,38        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,39        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,40        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,41        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,42        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,43        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,44        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,45        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,46        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,47        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,48        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,49        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,50        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,51        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,52        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,53        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,54        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,55        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,56        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,57        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,58        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,59        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,60        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,61        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,62        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,63        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,64        disk         connected    configured   unknown&lt;br /&gt;c3::50060e8004f25e56,65        disk         connected    configured   unknown&lt;br /&gt;root@hostname # pwd&lt;br /&gt;/root/home/hpfimhas&lt;br /&gt;root@hostname #  cfgadm -o show_FCP_dev -al &gt; cfgadm_o_show_FCP_dev_al.out.07112008&lt;br /&gt;root@hostname # ls&lt;br /&gt;cfgadm_o_show_FCP_dev_al.out.07112008  format.out.061108&lt;br /&gt;df_k.out.061108                        metastat_p.out.061108&lt;br /&gt;root@hostname # cfg&lt;br /&gt;root@hostname #&lt;br /&gt;root@hostname #&lt;br /&gt;root@hostname #&lt;br /&gt;root@hostname #&lt;br /&gt;root@hostname # uname -a&lt;br /&gt;SunOS hostname 5.10 Generic_118833-36 sun4v sparc SUNW,Sun-Fire-T200&lt;br /&gt;root@hostname # cfgadm -c configure c2&lt;br /&gt;root@hostname # cfgadm -c configure c3&lt;br /&gt;root@hostname # tail /var/adm/messages&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000dd7 (ssd22) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,9 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000dd6 (ssd23) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,8 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000dd5 (ssd24) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,7 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000dd4 (ssd25) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,6 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000719 (ssd0) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,5 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000718 (ssd1) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,4 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000717 (ssd2) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,3 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000716 (ssd3) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,2 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000715 (ssd4) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,1 is online Load balancing: round-robin&lt;br /&gt;Nov  7 02:54:14 hostname genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060e8004f25e000000f25e00000714 (ssd5) multipath status: optimal, path /pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 (fp0) to target address: w50060e8004f25e56,0 is online Load balancing: round-robin&lt;br /&gt;root@hostname #&lt;br /&gt;root@hostname # grep -i label /var/adm/messages&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:43 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:44 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:44 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:44 hostname       Corrupt label; wrong magic number&lt;br /&gt;Nov  7 01:56:44 hostname       Corrupt label; wrong magic number&lt;br /&gt;root@hostname # echo "\n" | format &gt; format.today&lt;br /&gt;&lt;br /&gt;root@hostname # more fornat.today&lt;br /&gt;Searching for disks...done&lt;br /&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F0Ed0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F0Fd0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Ad0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Bd0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Cd0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Dd0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Ed0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Fd0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F10d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F11d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F12d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F13d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F14d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F15d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F16d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F17d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F18d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F19d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F20d0: configured with capacity of 25.28GB&lt;br /&gt;c4t60060E8004F25E000000F25E00000F21d0: configured with capacity of 25.28GB&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;root@hostname # more disktolabel.out&lt;br /&gt;c4t60060E8004F25E000000F25E00000F0Ed0: configured with capacity of 25.28GB&lt;br /&gt;      38. c4t60060E8004F25E000000F25E00000F0Ed0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt -done&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F0Fd0: configured with capacity of 25.28GB&lt;br /&gt;      39. c4t60060E8004F25E000000F25E00000F0Fd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt -done&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Ad0: configured with capacity of 25.28GB&lt;br /&gt;      40. c4t60060E8004F25E000000F25E00000F1Ad0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt -done&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Bd0: configured with capacity of 25.28GB&lt;br /&gt;      41. c4t60060E8004F25E000000F25E00000F1Bd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt - done&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Cd0: configured with capacity of 25.28GB&lt;br /&gt;      42. c4t60060E8004F25E000000F25E00000F1Cd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Dd0: configured with capacity of 25.28GB&lt;br /&gt;      43. c4t60060E8004F25E000000F25E00000F1Dd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Ed0: configured with capacity of 25.28GB&lt;br /&gt;      44. c4t60060E8004F25E000000F25E00000F1Ed0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F1Fd0: configured with capacity of 25.28GB&lt;br /&gt;      45. c4t60060E8004F25E000000F25E00000F1Fd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F10d0: configured with capacity of 25.28GB&lt;br /&gt;      46. c4t60060E8004F25E000000F25E00000F10d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F11d0: configured with capacity of 25.28GB&lt;br /&gt;      47. c4t60060E8004F25E000000F25E00000F11d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F12d0: configured with capacity of 25.28GB&lt;br /&gt;      48. c4t60060E8004F25E000000F25E00000F12d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F13d0: configured with capacity of 25.28GB&lt;br /&gt;      49. c4t60060E8004F25E000000F25E00000F13d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F14d0: configured with capacity of 25.28GB&lt;br /&gt;      50. c4t60060E8004F25E000000F25E00000F14d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F15d0: configured with capacity of 25.28GB&lt;br /&gt;      51. c4t60060E8004F25E000000F25E00000F15d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F16d0: configured with capacity of 25.28GB&lt;br /&gt;      52. c4t60060E8004F25E000000F25E00000F16d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F17d0: configured with capacity of 25.28GB&lt;br /&gt;      53. c4t60060E8004F25E000000F25E00000F17d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F18d0: configured with capacity of 25.28GB&lt;br /&gt;      54. c4t60060E8004F25E000000F25E00000F18d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F19d0: configured with capacity of 25.28GB&lt;br /&gt;      55. c4t60060E8004F25E000000F25E00000F19d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F20d0: configured with capacity of 25.28GB&lt;br /&gt;      56. c4t60060E8004F25E000000F25E00000F20d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;c4t60060E8004F25E000000F25E00000F21d0: configured with capacity of 25.28GB&lt;br /&gt;      57. c4t60060E8004F25E000000F25E00000F21d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt - done label N format using lun25gb&lt;br /&gt; 2 hd 15 sec 512&gt;&lt;br /&gt;root@hostname #&lt;br /&gt;&lt;br /&gt;------ above is done---- now need to create new metadevice concat /ftp/data2 ---&lt;br /&gt;root@hostname # more checkifdiskisused.sh&lt;br /&gt;#! /bin/sh&lt;br /&gt;for i in `cat a.out`&lt;br /&gt;do&lt;br /&gt;grep -i $i metastat_p.out&lt;br /&gt;done&lt;br /&gt;root@hostname # sh checkifdiskisused.sh&lt;br /&gt;root@hostname # more metastat_p.out&lt;br /&gt;d103 -m d203 d303 1&lt;br /&gt;d203 1 1 c0t0d0s4&lt;br /&gt;d303 1 1 c0t1d0s4&lt;br /&gt;d102 -m d202 d302 1&lt;br /&gt;d202 1 1 c0t0d0s3&lt;br /&gt;d302 1 1 c0t1d0s3&lt;br /&gt;d101 -m d201 d301 1&lt;br /&gt;d201 1 1 c0t0d0s1&lt;br /&gt;d301 1 1 c0t1d0s1&lt;br /&gt;d100 -m d200 d300 1&lt;br /&gt;d200 1 1 c0t0d0s0&lt;br /&gt;d300 1 1 c0t1d0s0&lt;br /&gt;d104 3 1 /dev/dsk/c4t60060E8004F25E000000F25E00000714d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000715d0s1 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000717d0s0&lt;br /&gt;d107 40 1 /dev/dsk/c4t60060E8004F25E000000F25E00000DD4d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DD5d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DD6d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DD7d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DD8d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DD9d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DDAd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DDBd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DDCd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DDDd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DDEd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DDFd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DE0d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DE1d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DE2d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DE3d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DE4d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DE5d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DE6d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000DE7d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000718d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000719d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00001130d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00001131d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000D6d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000D7d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000D8d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000D9d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000DAd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000DBd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000DCd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000DDd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000DEd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000DFd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000E0d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000E1d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000E2d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000E3d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000E4d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E000000E5d0s0&lt;br /&gt;d112 1 1 /dev/dsk/c4t60060E8004F25E000000F25E00000716d0s3&lt;br /&gt;d109 2 1 /dev/dsk/c4t60060E8004F25E000000F25E00000715d0s3 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000715d0s4&lt;br /&gt;d110 1 1 /dev/dsk/c4t60060E8004F25E000000F25E00000716d0s0&lt;br /&gt;d106 1 1 /dev/dsk/c4t60060E8004F25E000000F25E00000714d0s3&lt;br /&gt;d105 1 1 /dev/dsk/c4t60060E8004F25E000000F25E00000714d0s1&lt;br /&gt;d111 1 1 /dev/dsk/c4t60060E8004F25E000000F25E00000716d0s1&lt;br /&gt;d108 1 1 /dev/dsk/c4t60060E8004F25E000000F25E00000715d0s0&lt;br /&gt;root@hostname #&lt;br /&gt;root@hostname # metastat -p | grep d113&lt;br /&gt;root@hostname #&lt;br /&gt;&lt;br /&gt;metainit d113 1 1 /dev/dsk/c4t60060E8004F25E000000F25E00000F0Ed0s0&lt;br /&gt;&lt;br /&gt;-----&lt;br /&gt;&lt;br /&gt;metattach d113&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F0Fd0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F1Ad0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F1Bd0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F1Cd0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F1Dd0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F1Ed0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F1Fd0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F10d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F11d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F12d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F13d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F14d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F15d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F16d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F17d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F18d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F19d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F20d0s0&lt;br /&gt;metattach d113 c4t60060E8004F25E000000F25E00000F21d0s0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;+ metastat -p d113&lt;br /&gt;d113 20 1 /dev/dsk/c4t60060E8004F25E000000F25E00000F0Ed0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F0Fd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F1Ad0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F1Bd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F1Cd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F1Dd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F1Ed0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F1Fd0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F10d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F11d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F12d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F13d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F14d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F15d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F16d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F17d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F18d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F19d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F20d0s0 \&lt;br /&gt;         1 /dev/dsk/c4t60060E8004F25E000000F25E00000F21d0s0&lt;br /&gt;root@hostname #newfs -Tv /dev/md/rdsk/d113&lt;br /&gt;root@hostname # newfs -Tv /dev/md/rdsk/d113&lt;br /&gt;newfs: construct a new file system /dev/md/rdsk/d113: (y/n)? y&lt;br /&gt;mkfs -F ufs /dev/md/rdsk/d113 1060308480 512 15 8192 8192 -1 1 90 1048576 t 0 -1 8 16 y&lt;br /&gt;/dev/md/rdsk/d113:      1060308480 sectors in 138061 cylinders of 15 tracks, 512 sectors&lt;br /&gt;        517728.8MB in 1424 cyl groups (97 c/g, 363.75MB/g, 384 i/g)&lt;br /&gt;super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt; 32, 745504, 1490976, 2236448, 2981920, 3727392, 4472864, 5218336, 5963808,&lt;br /&gt; 6709280,&lt;br /&gt;Initializing cylinder groups:&lt;br /&gt;............................&lt;br /&gt;super-block backups for last 10 cylinder groups at:&lt;br /&gt; 1053376544, 1054122016, 1054867488, 1055612960, 1056358432, 1057103904,&lt;br /&gt; 1057849376, 1058594848, 1059340320, 1060085792&lt;br /&gt;root@hostname #&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-1306405325755257934?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/1306405325755257934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=1306405325755257934&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1306405325755257934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1306405325755257934'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/12/solaris-10-hp-open-v-sun.html' title='Solaris 10 HP-OPEN-V-SUN'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4432223901865369575</id><published>2008-12-13T12:04:00.003+08:00</published><updated>2009-02-10T11:44:02.358+08:00</updated><title type='text'>Solaris Moving Directories to Other Location</title><content type='html'>Sometimes using tar we receive error file too large. Use cpio instead for same results&lt;br /&gt;% cd /target-directory&lt;br /&gt;&lt;br /&gt;% find . -depth -print | cpio -pudmv /dest-directory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;example&lt;br /&gt;&lt;br /&gt;#! /bin/sh&lt;br /&gt;cd /ftp/data/pdu-msa/EDA-SLS&lt;br /&gt;find . -depth -print | cpio -pudmv /ftp/data2/pdu-msa/EDA-SLS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4432223901865369575?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4432223901865369575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4432223901865369575&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4432223901865369575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4432223901865369575'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/12/solaris-moving-directories-to-other.html' title='Solaris Moving Directories to Other Location'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4994525391776514988</id><published>2008-11-07T16:27:00.000+08:00</published><updated>2008-11-07T16:29:29.729+08:00</updated><title type='text'>Sol10: How to mount lofs from localzone</title><content type='html'>Sol10: How to mount lofs from localzone&lt;br /&gt;---------------------------------------&lt;br /&gt;On global zone, mounted file system looks like this&lt;br /&gt;&lt;br /&gt;/dev/md/dsk/d113     530063064   65560 524696880     1%    /zones/myzone/ftp/data2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;run this zonecfg command&lt;br /&gt;zonecfg -z myzone&lt;br /&gt;&gt; add fs&lt;br /&gt;&gt; set dir=/ftp/data2&lt;br /&gt;&gt; set special=/zones/myzone/ftp/data2&lt;br /&gt;&gt; set type=lofs&lt;br /&gt;&gt; end&lt;br /&gt;&gt; verify&lt;br /&gt;&gt; commit&lt;br /&gt;&gt; exit&lt;br /&gt;&lt;br /&gt;run below command to confirm&lt;br /&gt;#zonecfg -z myzone info&lt;br /&gt;....&lt;br /&gt;fs:&lt;br /&gt;        dir: /ftp/data2&lt;br /&gt;        special: /zones/myzone/ftp/data2&lt;br /&gt;        raw not specified&lt;br /&gt;        type: lofs&lt;br /&gt;        options: []&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;root@myzone # mount -F lofs /ftp/data2 /ftp/data2&lt;br /&gt;&lt;br /&gt;root@myzone # df -k /ftp/data2&lt;br /&gt;Filesystem            kbytes    used   avail capacity  Mounted on&lt;br /&gt;/ftp/data2           530063064   65560 524696880     1%    /ftp/data2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4994525391776514988?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4994525391776514988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4994525391776514988&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4994525391776514988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4994525391776514988'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/11/sol10-how-to-mount-lofs-from-localzone.html' title='Sol10: How to mount lofs from localzone'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8411616331783242952</id><published>2008-09-21T05:10:00.002+08:00</published><updated>2008-09-21T05:13:23.971+08:00</updated><title type='text'>Solaris 10 How to stop start automountd</title><content type='html'># svcs | grep auto&lt;br /&gt;legacy_run Oct_24 lrc:/etc/rc2_d/S72autoinstall &lt;br /&gt;online 17:31:10 svc:/system/filesystem/autofs:default &lt;br /&gt;To stop&lt;br /&gt;# svcadm -v disable svc:/system/filesystem/autofs:default&lt;br /&gt;To start&lt;br /&gt;# svcadm -v enable svc:/system/filesystem/autofs:default&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8411616331783242952?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8411616331783242952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8411616331783242952&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8411616331783242952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8411616331783242952'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-10-how-to-stop-start-automountd.html' title='Solaris 10 How to stop start automountd'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-1084395429399809486</id><published>2008-09-19T14:41:00.008+08:00</published><updated>2008-09-19T16:24:51.241+08:00</updated><title type='text'>HPUX GSP toggle between console and command mode</title><content type='html'>CO : COnsole- leave command mode and return to console mode&lt;br /&gt;This command exits the GSP command interface, and connects to the system console. All mirrored users are switched. Type CTRL-B to return to the GSP command interface.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-1084395429399809486?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/1084395429399809486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=1084395429399809486&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1084395429399809486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1084395429399809486'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/hpux-gsp-toggle-between-console-and.html' title='HPUX GSP toggle between console and command mode'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8568639108793338903</id><published>2008-09-19T14:41:00.006+08:00</published><updated>2008-09-19T16:04:00.943+08:00</updated><title type='text'>HPUX GSP Console get write access</title><content type='html'>Typing "CO" from the GSP Command interface provides a mirrored version of the OS console. All mirrored users see the same output. At any time, only one of the mirrored users has write access to the console. To get write access to the console, type CTRL-e c f (not CTRL-e CTRL-c CTRL-f).&lt;br /&gt;&lt;br /&gt;SEE ALSO: CO (COnsole)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8568639108793338903?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8568639108793338903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8568639108793338903&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8568639108793338903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8568639108793338903'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/hpux-gsp-console-get-write-access.html' title='HPUX GSP Console get write access'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-320014519376806508</id><published>2008-09-19T14:41:00.005+08:00</published><updated>2008-09-19T15:49:37.327+08:00</updated><title type='text'>Solaris when LUN dynamically removed JNI</title><content type='html'>When the driver dynamically removes a LUN, not all references to that&lt;br /&gt;      LUN are removed. This is because the file system nodes in the&lt;br /&gt;      /dev/dsk and /dev/rmt directories are scanned to show the devices.&lt;br /&gt;      However, when devices are removed dynamically via EZ Fibre or the&lt;br /&gt;      jnic146x_update_drv command, only the kernel device nodes are&lt;br /&gt;      removed. To remove the actual file system nodes, execute the&lt;br /&gt;      following command:&lt;br /&gt;&lt;br /&gt;        #devfsadm -C -v&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-320014519376806508?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/320014519376806508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=320014519376806508&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/320014519376806508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/320014519376806508'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-when-lun-dynamically-removed.html' title='Solaris when LUN dynamically removed JNI'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3769692735772377896</id><published>2008-09-19T14:41:00.004+08:00</published><updated>2008-09-19T15:01:36.273+08:00</updated><title type='text'>Solaris verify LUN disk size</title><content type='html'>Verify size of LUN.&lt;br /&gt;# prtvtoc /dev/rdsk/c#t#d#s2 &gt; vtoc.lun.out&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3769692735772377896?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3769692735772377896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3769692735772377896&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3769692735772377896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3769692735772377896'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-verify-lun-disk-size.html' title='Solaris verify LUN disk size'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4178774782855850881</id><published>2008-09-19T14:41:00.003+08:00</published><updated>2008-09-19T14:56:58.883+08:00</updated><title type='text'>Solaris save format output to file</title><content type='html'># echo|format &gt; format.out&lt;br /&gt;&lt;br /&gt;This is useful when you have new disk/lun, and lazy to find out which one is new&lt;br /&gt;And make it easy if you wnat to execute command as below &lt;br /&gt;&lt;br /&gt;#metattach d017 /dev/dsk/c6t60060E8004F25E000000F25E000009E1d0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;root@hostorap1 # grep -i warning /var/adm/messages&lt;br /&gt;Sep 18 10:07:28 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e00000623 (ssd34):&lt;br /&gt;Sep 18 10:07:28 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e00000622 (ssd35):&lt;br /&gt;Sep 18 10:07:28 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e00000621 (ssd36):&lt;br /&gt;Sep 18 10:07:28 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e00000620 (ssd37):&lt;br /&gt;Sep 18 10:07:28 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061f (ssd38):&lt;br /&gt;Sep 18 10:07:28 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061e (ssd39):&lt;br /&gt;Sep 18 10:07:29 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061d (ssd40):&lt;br /&gt;Sep 18 10:07:29 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061c (ssd41):&lt;br /&gt;Sep 18 10:07:29 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061b (ssd42):&lt;br /&gt;Sep 18 10:07:29 hostorap1 scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061a (ssd43):&lt;br /&gt;Sep 18 10:07:29 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e00000619 (ssd44):&lt;br /&gt;Sep 18 10:07:29 host scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/ssd@g60060e8004f25e000000f25e00000618 &lt;br /&gt;root@host # more format.out&lt;br /&gt;Searching for disks...done&lt;br /&gt;&lt;br /&gt;c6t60060E8004F25E000000F25E000009E1d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E000009E2d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E000009E3d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E000009E4d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E0000061Ad0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E0000061Bd0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E0000061Cd0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E0000061Dd0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E0000061Ed0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E0000061Fd0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E00000618d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E00000619d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E00000620d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E00000621d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E00000622d0: configured with capacity of 25.28GB&lt;br /&gt;c6t60060E8004F25E000000F25E00000623d0: configured with capacity of 25.28GB&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;       0. c0t0d0 &lt;SUN146G cyl 14087 alt 2 hd 24 sec 848&gt;&lt;br /&gt;          /ssm@0,0/pci@18,600000/pci@2/scsi@2/sd@0,0&lt;br /&gt;       1. c1t0d0 &lt;SUN146G cyl 14087 alt 2 hd 24 sec 848&gt;&lt;br /&gt;          /ssm@0,0/pci@1c,600000/pci@2/scsi@2,1/sd@0,0&lt;br /&gt;       2. c6t60060E8004F25E000000F25E00000DE8d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000de8&lt;br /&gt;       3. c6t60060E8004F25E000000F25E00000DE9d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000de9&lt;br /&gt;       4. c6t60060E8004F25E000000F25E00000DEAd0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000dea&lt;br /&gt;       5. c6t60060E8004F25E000000F25E00000DEBd0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000deb&lt;br /&gt;       6. c6t60060E8004F25E000000F25E00000EA0d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000ea0&lt;br /&gt;       7. c6t60060E8004F25E000000F25E00000EA1d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000ea1&lt;br /&gt;       8. c6t60060E8004F25E000000F25E00000EA2d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000ea2&lt;br /&gt;       9. c6t60060E8004F25E000000F25E00000EA3d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000ea3&lt;br /&gt;      10. c6t60060E8004F25E000000F25E00000EA4d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000ea4&lt;br /&gt;      11. c6t60060E8004F25E000000F25E00000EA5d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000ea5&lt;br /&gt;      12. c6t60060E8004F25E000000F25E00000EA6d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000ea6&lt;br /&gt;      13. c6t60060E8004F25E000000F25E00000EA7d0 &lt;HP-OPEN-V-SUN-5008 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000ea7&lt;br /&gt;      14. c6t60060E8004F25E000000F25E000004A4d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e000004a4&lt;br /&gt;      15. c6t60060E8004F25E000000F25E000004A5d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e000004a5&lt;br /&gt;      16. c6t60060E8004F25E000000F25E000004A6d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e000004a6&lt;br /&gt;      17. c6t60060E8004F25E000000F25E000004A7d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e000004a7&lt;br /&gt;      18. c6t60060E8004F25E000000F25E000009E1d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e000009e1&lt;br /&gt;      19. c6t60060E8004F25E000000F25E000009E2d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e000009e2&lt;br /&gt;      20. c6t60060E8004F25E000000F25E000009E3d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e000009e3&lt;br /&gt;      21. c6t60060E8004F25E000000F25E000009E4d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e000009e4&lt;br /&gt;      22. c6t60060E8004F25E000000F25E0000037Ad0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000037a&lt;br /&gt;      23. c6t60060E8004F25E000000F25E0000037Bd0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000037b&lt;br /&gt;      24. c6t60060E8004F25E000000F25E0000037Cd0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000037c&lt;br /&gt;      25. c6t60060E8004F25E000000F25E0000037Dd0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000037d&lt;br /&gt;      26. c6t60060E8004F25E000000F25E0000037Ed0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000037e&lt;br /&gt;      27. c6t60060E8004F25E000000F25E0000037Fd0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000037f&lt;br /&gt;      28. c6t60060E8004F25E000000F25E0000061Ad0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061a&lt;br /&gt;      29. c6t60060E8004F25E000000F25E0000061Bd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061b&lt;br /&gt;      30. c6t60060E8004F25E000000F25E0000061Cd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061c&lt;br /&gt;      31. c6t60060E8004F25E000000F25E0000061Dd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061d&lt;br /&gt;      32. c6t60060E8004F25E000000F25E0000061Ed0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061e&lt;br /&gt;      33. c6t60060E8004F25E000000F25E0000061Fd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000061f&lt;br /&gt;      34. c6t60060E8004F25E000000F25E0000097Ad0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000097a&lt;br /&gt;      35. c6t60060E8004F25E000000F25E0000097Bd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000097b&lt;br /&gt;      36. c6t60060E8004F25E000000F25E0000097Cd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000097c&lt;br /&gt;      37. c6t60060E8004F25E000000F25E0000097Dd0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000097d&lt;br /&gt;      38. c6t60060E8004F25E000000F25E0000097Ed0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e0000097e&lt;br /&gt;      39. c6t60060E8004F25E000000F25E00000378d0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000378&lt;br /&gt;      40. c6t60060E8004F25E000000F25E00000379d0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000379&lt;br /&gt;      41. c6t60060E8004F25E000000F25E00000380d0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000380&lt;br /&gt;      42. c6t60060E8004F25E000000F25E00000381d0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000381&lt;br /&gt;      43. c6t60060E8004F25E000000F25E00000382d0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000382&lt;br /&gt;      44. c6t60060E8004F25E000000F25E00000383d0 &lt;HP-OPEN-V-SUN-5005 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000383&lt;br /&gt;      45. c6t60060E8004F25E000000F25E00000618d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000618&lt;br /&gt;      46. c6t60060E8004F25E000000F25E00000619d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000619&lt;br /&gt;      47. c6t60060E8004F25E000000F25E00000620d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000620&lt;br /&gt;      48. c6t60060E8004F25E000000F25E00000621d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000621&lt;br /&gt;      49. c6t60060E8004F25E000000F25E00000622d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000622&lt;br /&gt;      50. c6t60060E8004F25E000000F25E00000623d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000623&lt;br /&gt;      51. c6t60060E8004F25E000000F25E00000979d0 &lt;HP-OPEN-V-SUN-5009 cyl 6904 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e8004f25e000000f25e00000979&lt;br /&gt;Specify disk (enter its number):&lt;br /&gt;root@host #&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4178774782855850881?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4178774782855850881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4178774782855850881&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4178774782855850881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4178774782855850881'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-save-format-output-to-file.html' title='Solaris save format output to file'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4106850778240439270</id><published>2008-09-19T14:41:00.001+08:00</published><updated>2008-09-19T14:43:44.703+08:00</updated><title type='text'>Solaris replicate copy disk structure partition</title><content type='html'>Make sure disk have same geometry.&lt;br /&gt;Usefull if you wnat to add new disk and lazy to repartion new disk&lt;br /&gt;&lt;br /&gt;# prtvtoc /dev/rdsk/c?t?d?s2 | fmthard -s - /dev/rdsk/c?t?d?s2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4106850778240439270?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4106850778240439270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4106850778240439270&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4106850778240439270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4106850778240439270'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-replicate-copy-disk-structure.html' title='Solaris replicate copy disk structure partition'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4270302830550585651</id><published>2008-09-18T23:33:00.001+08:00</published><updated>2008-09-18T23:35:42.023+08:00</updated><title type='text'>HPUX 9000/800/rp3440 how to power off and on</title><content type='html'>1- Login to the OS as root and issue #init 0&lt;br /&gt;2- Login to GSP &lt;br /&gt;            Disable all types of remote access (see SA command)&lt;br /&gt; *************************************************************************&lt;br /&gt;&lt;br /&gt; *************************************************************************&lt;br /&gt;                           Your Certificate is expired.&lt;br /&gt;               Use the SO command to generate a new certificate.&lt;br /&gt; *************************************************************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   MP MAIN MENU:&lt;br /&gt;&lt;br /&gt;         CO: Console&lt;br /&gt;        VFP: Virtual Front Panel&lt;br /&gt;         CM: Command Menu&lt;br /&gt;         CL: Console Log&lt;br /&gt;         SL: Show Event Logs&lt;br /&gt;         HE: Main Help Menu&lt;br /&gt;          X: Exit Connection&lt;br /&gt;&lt;br /&gt;[Server-rib] MP&gt; CM&lt;br /&gt;[Server-rib] MP:CM&gt; pc -off&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PC -off&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;System will be powered off.&lt;br /&gt;&lt;br /&gt;   You must shut down the OS manually before this command is executed.&lt;br /&gt;   Failure to do this can cause problems when the OS is restarted.&lt;br /&gt;   Confirm? (Y/[N]): y&lt;br /&gt;y&lt;br /&gt;&lt;br /&gt;   -&gt; System is being powered off.&lt;br /&gt;&lt;br /&gt;-&gt; Command successful.&lt;br /&gt;&lt;br /&gt;[Server-rib] MP:CM&gt; PC -on&lt;br /&gt;&lt;br /&gt;Usage:  PC [ -on | -off | -cycle ] [ -nc ]&lt;br /&gt;        PC -?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4270302830550585651?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4270302830550585651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4270302830550585651&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4270302830550585651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4270302830550585651'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/hpux-9000800rp3440-how-to-power-off-and.html' title='HPUX 9000/800/rp3440 how to power off and on'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3336901842469688045</id><published>2008-09-17T15:57:00.006+08:00</published><updated>2008-09-18T16:37:46.795+08:00</updated><title type='text'>Solaris find out what type of lun hardware and command to check it out</title><content type='html'>Solaris find out what type of lun hardware and command to check it out&lt;br /&gt;&lt;br /&gt;HDS    #lunstat&lt;br /&gt;format output&lt;br /&gt;   10. c4t98d6 DGC-RAID5-0219 cyl 40958 alt 2 hd 128 sec 10&lt;br /&gt;       /pci@9,600000/lpfc@1/sd@62,6&lt;br /&gt;&lt;br /&gt;HP XP    #xpinfo&lt;br /&gt;format output&lt;br /&gt;   10. c2t4d10 HP-OPEN-E-SUN-2108 cyl 19757 alt 2 hd 15 sec 96&lt;br /&gt;       /pci@3,2000/fibre-channel@2/sd@4,a&lt;br /&gt;To detect new luns&lt;br /&gt;#cfgadm -al -o show_SCSI_LUN&lt;br /&gt;#devfsadm&lt;br /&gt;check messages for corrupt label, that's th new disk/lun&lt;br /&gt;&lt;br /&gt;JNI&lt;br /&gt;&lt;p&gt;configuration files&lt;/p&gt; &lt;pre class="literallayout" space="preserve"&gt;/kernel/drv/&lt;br /&gt;&lt;/pre&gt; &lt;div class="itemizedlist"&gt; &lt;ul type="disc"&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;jnic146x.conf&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;jnic/conf&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;fcaw.conf&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;fca-pci.conf&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;/ul&gt; &lt;/div&gt;&lt;br /&gt;&lt;pre class="literallayout" space="preserve"&gt;&lt;span class="bold"&gt;&lt;b&gt;code diag commands (from OBP)&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt; &lt;div class="itemizedlist"&gt; &lt;ul type="disc"&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;fce-test - test the emerald chip&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;loop-init - verifies loop&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;fcd-loop - veifies loop on dual port adaper&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;prt-cfg - configure the adapters port&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;li&gt; &lt;pre class="literallayout" space="preserve"&gt;set-bootn-wwn - set the wwn of the boot disk&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;/ul&gt; &lt;/div&gt; &lt;p&gt; &lt;span class="bold"&gt; &lt;b&gt;How to verify firmware level (from Solaris)&lt;/b&gt; &lt;/span&gt; &lt;/p&gt; &lt;pre class="literallayout" space="preserve"&gt;#prtconf -cp |grep fcode&lt;br /&gt;&lt;/pre&gt; &lt;p&gt; &lt;span class="bold"&gt; &lt;b&gt;How to verify presence of adapters in os&lt;/b&gt; &lt;/span&gt; &lt;/p&gt; &lt;pre class="literallayout" space="preserve"&gt;#prtconf -v |grep -i JNI&lt;br /&gt;&lt;/pre&gt; &lt;pre class="literallayout" space="preserve"&gt;#prtconf -v |grep -i FCA&lt;br /&gt;&lt;/pre&gt; &lt;pre class="literallayout" space="preserve"&gt;#modinfo | grep -i jni&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Storage Systems&lt;br /&gt;&lt;br /&gt; * Hitachi USP V, USP, NSC, AMS, WMS Series&lt;br /&gt; * Hitachi Lightning™ 9900 and 9900 V Series&lt;br /&gt; * Hitachi Thunder™ 9200 and 9500 V Series&lt;br /&gt; * EMC Symmetrix™ 4.8, 5.0, 5.5&lt;br /&gt; * EMC DMX 800, 1000, 2000, 3000&lt;br /&gt; * EMC CLARiiON™ CX-Series, FC-4700&lt;br /&gt; * HP XP Series 48, 128, 512, 1024, 10000, 12000&lt;br /&gt; * HP EVA 3000, 4000, 5000, 6000, 8000&lt;br /&gt; * HP MSA 1000, 1500&lt;br /&gt; * HP HSG&lt;br /&gt; * HP NAS, All-in-One Storage NAS&lt;br /&gt; * HP EFS Clustered NAS Gateway&lt;br /&gt; * HP ESL, EML tape libraries&lt;br /&gt; * IBM DS4000 Series (Formerly FAStT Series)&lt;br /&gt; * IBM DS4500, DS4800&lt;br /&gt; * IBM ESS 800, F20&lt;br /&gt; * IBM DS6000, DS6800, DS8000, DS8100, DS8300&lt;br /&gt; * IBM 3581, 3582, 3583, and 3584 tape libraries&lt;br /&gt; * LSI Engenio E2600, E4600, E5600, E6000&lt;br /&gt; * NetApp FAS, V-Series, NearStore with Data ONTAP 6.5-7.1&lt;br /&gt; * 3PAR InServ&lt;br /&gt; * SGI InfiniteStorage TP Series&lt;br /&gt; * Sun StorageTek 9900 , 9985, 9990&lt;br /&gt; * Sun StorageTek 3510, 3511, 6130, 6140, 6540, 6920, 6940&lt;br /&gt; * Sun StorageTek NAS 5210, 5310, 5320&lt;br /&gt; * Sun (Formerly StorageTek) Flexline™ 200/300 Series&lt;br /&gt; * Xiotech Magnitude 3D&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Host Bus Adapters (HBAs)&lt;br /&gt;&lt;br /&gt;Various HBA series and models from each of the following HBA vendors:&lt;br /&gt;&lt;br /&gt; * Emulex&lt;br /&gt; * HP&lt;br /&gt; * IBM&lt;br /&gt; * AMCC (Formerly JNI)&lt;br /&gt; * LSI&lt;br /&gt; * Qlogic&lt;br /&gt; * Sun&lt;br /&gt;&lt;br /&gt;&lt;dgc-raid5-0219&gt;&lt;/dgc-raid5-0219&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3336901842469688045?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3336901842469688045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3336901842469688045&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3336901842469688045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3336901842469688045'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-find-out-what-type-of-lun.html' title='Solaris find out what type of lun hardware and command to check it out'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7977299460726294862</id><published>2008-09-17T10:39:00.000+08:00</published><updated>2008-09-17T10:40:19.550+08:00</updated><title type='text'>Solaris 10 patching zones</title><content type='html'>How to Apply a Patch to the Global Zone Only&lt;br /&gt;global# patchadd -G patch_id&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to Apply a Patch to the Global Zone and All Non-Global Zones&lt;br /&gt;global# patchadd patch_id&lt;br /&gt;&lt;br /&gt;How to Apply a Patch to a Specified Non-Global Zone Only&lt;br /&gt;&lt;span style="font-style: italic;"&gt;To apply a patch to a specified non-global zone only, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;the SUNW_PKG_ALLZONES package parameter for all packages &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;in the patch set must be set to false.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;local-zone# patchadd patch_id&lt;br /&gt;&lt;br /&gt;How to Remove a Patch From the Global Zone and All Non-Global Zones&lt;br /&gt;global# patchrm patch_id&lt;br /&gt;&lt;br /&gt;How to Remove a Patch From a Specified Non-Global Zone Only&lt;br /&gt;&lt;span style="font-style: italic;"&gt;To remove a patch from a specified non-global zone only, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;the SUNW_PKG_ALLZONES package parameter for all packages &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;in the patch set must be set to false.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;my-zone# patchrm patch_id&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7977299460726294862?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7977299460726294862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7977299460726294862&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7977299460726294862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7977299460726294862'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-10-patching-zones.html' title='Solaris 10 patching zones'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-9206080355227819898</id><published>2008-09-17T10:33:00.001+08:00</published><updated>2008-09-17T10:33:36.354+08:00</updated><title type='text'>Solaris 10 How to Add a Package</title><content type='html'>&lt;span style="font-weight: bold;"&gt;How to Add a Package to a Specified Non-Global Zone Only&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;local-zone# pkgadd -d /dir package_name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to Add a Package to the Global Zone and All Non-Global Zones&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;global# pkgadd -d /dir package_name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to Add a Package to the Global Zone Only&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;global# pkgadd -d /dir -G package_name&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-9206080355227819898?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/9206080355227819898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=9206080355227819898&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/9206080355227819898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/9206080355227819898'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-10-how-to-add-package.html' title='Solaris 10 How to Add a Package'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4030709589051292842</id><published>2008-09-17T10:14:00.000+08:00</published><updated>2008-09-17T10:15:57.323+08:00</updated><title type='text'>Solaris 10 modify the network configuration of a running zone</title><content type='html'>To add:&lt;br /&gt;global# ifconfig bge0 addif  192.168.200.202 zone myzone&lt;br /&gt;To remove:&lt;br /&gt;global# ifconfig bge0 removeif 192.168.200.202&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4030709589051292842?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4030709589051292842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4030709589051292842&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4030709589051292842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4030709589051292842'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-10-modify-network-configuration.html' title='Solaris 10 modify the network configuration of a running zone'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-362649357698053492</id><published>2008-09-16T14:14:00.001+08:00</published><updated>2008-09-16T14:14:48.747+08:00</updated><title type='text'>Solaris 10 login to zone console</title><content type='html'>login to global zone&lt;br /&gt;&lt;br /&gt;# zoneadm list -vc&lt;br /&gt;  ID NAME             STATUS         PATH&lt;br /&gt;   0 global           running        /&lt;br /&gt;   1 zone1            running        /zone/1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# zlogin -C -e\@ zone1&lt;br /&gt;[Connected to zone 'zone1' console]&lt;br /&gt;&lt;br /&gt;zone1 console login:&lt;br /&gt;&lt;br /&gt;zone1 console login:&lt;br /&gt;&lt;br /&gt;zone1 console login: @.&lt;br /&gt;[Connection to zone 'zone1' console closed]&lt;br /&gt;#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-362649357698053492?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/362649357698053492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=362649357698053492&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/362649357698053492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/362649357698053492'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-10-login-to-zone-console.html' title='Solaris 10 login to zone console'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2528368382356810757</id><published>2008-09-16T13:55:00.000+08:00</published><updated>2008-09-16T13:56:15.979+08:00</updated><title type='text'>VXVM: determine current booted disk</title><content type='html'>% prtconf -vp | grep bootpath&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-2528368382356810757?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2528368382356810757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2528368382356810757&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2528368382356810757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2528368382356810757'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/vxvm-determine-current-booted-disk.html' title='VXVM: determine current booted disk'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5110867715055623249</id><published>2008-09-16T13:45:00.000+08:00</published><updated>2008-09-16T13:46:20.907+08:00</updated><title type='text'>VXVM: quickly mirroring an empty volume</title><content type='html'>Use the command below to create empty mirrored volume&lt;br /&gt;&lt;br /&gt;# vxassist make newvol 10m layout=concat-mirror init=active disk1 disk2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-5110867715055623249?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5110867715055623249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5110867715055623249&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5110867715055623249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5110867715055623249'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/vxvm-quickly-mirroring-empty-volume.html' title='VXVM: quickly mirroring an empty volume'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-1653045934686467953</id><published>2008-09-12T08:44:00.001+08:00</published><updated>2008-09-12T08:47:08.199+08:00</updated><title type='text'>Solaris v440 replace failed power supply</title><content type='html'>Need to login to System Controller&lt;br /&gt;sc&gt;&lt;br /&gt;SC Alert: PSU @ PS1 has FAILED.&lt;br /&gt;&lt;br /&gt;sc&gt; removefru PS1&lt;br /&gt;Are you sure you want to remove PS1 [y/n]? y&lt;br /&gt;sc&gt;&lt;br /&gt;SC Alert: PSU @ PS1 has FAILED.&lt;br /&gt;&lt;br /&gt;SC Alert: PSU @ PS1 has FAILED.&lt;br /&gt;&lt;br /&gt;SC Alert: PSU @ PS1 has FAILED.&lt;br /&gt;&lt;br /&gt;SC Alert: PSU @ PS1 has been removed.&lt;br /&gt;&lt;br /&gt;SC Alert: Required PSU @ PS1 is not present.&lt;br /&gt;&lt;br /&gt;SC Alert: PSU @ PS1 has been inserted.&lt;br /&gt;&lt;br /&gt;sc&gt; poweron PS1&lt;br /&gt;sc&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-1653045934686467953?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/1653045934686467953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=1653045934686467953&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1653045934686467953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/1653045934686467953'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/solaris-v440-replace-failed-power.html' title='Solaris v440 replace failed power supply'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-3483230692826009019</id><published>2008-09-08T10:36:00.000+08:00</published><updated>2008-09-08T10:39:57.555+08:00</updated><title type='text'>HPUX How to check if patch have been installed and install the patch</title><content type='html'>let say we want to check for this patch&lt;br /&gt;phkl_36745 and phne_37489&lt;br /&gt;&lt;br /&gt;# swlist -l patch | grep -i phkl_36745&lt;br /&gt;  PHKL_36745.LVM-KRN       1.0               LVM.LVM-KRN       applied&lt;br /&gt;  PHKL_36745.CORE2-KRN     1.0               OS-Core.CORE2-KRN    applied       &lt;br /&gt;# PHKL_36745                            1.0            LVM Cumulative Patch&lt;br /&gt;# PHKL_36745.CORE2-KRN                     1.0               OS-Core.CORE2-KRN    applied&lt;br /&gt;# PHKL_36745.LVM-KRN                       1.0               LVM.LVM-KRN       applied&lt;br /&gt;# swlist -l patch | grep -i phne_37489&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;This shows that patch phkl_36745  is installed and phne_37489 is not installed yet&lt;br /&gt;&lt;br /&gt; 1. Back up your system before installing a patch.&lt;br /&gt;&lt;br /&gt; 2. Login as root.&lt;br /&gt;&lt;br /&gt; 3. Download and Copy the patch to the /tmp directory.&lt;br /&gt;&lt;br /&gt; 4. Move to the /tmp directory and unshar the patch:&lt;br /&gt;&lt;br /&gt;  cd /tmp&lt;br /&gt;  sh PHNE_37489&lt;br /&gt;&lt;br /&gt; 5. Run swinstall to install the patch:&lt;br /&gt;&lt;br /&gt;  swinstall -x autoreboot=true -x patch_match_target=true \&lt;br /&gt;     -s /tmp/PHNE_37489.depot&lt;br /&gt;&lt;br /&gt; By default swinstall will archive the original software in &lt;br /&gt; /var/adm/sw/save/PHNE_37489.  If you do not wish to retain a&lt;br /&gt; copy of the original software, include the patch_save_files&lt;br /&gt; option in the swinstall command above:&lt;br /&gt;&lt;br /&gt;  -x patch_save_files=false&lt;br /&gt;&lt;br /&gt; WARNING: If patch_save_files is false when a patch is installed,&lt;br /&gt;   the patch cannot be deinstalled.  Please be careful&lt;br /&gt;   when using this feature.&lt;br /&gt;&lt;br /&gt; For future reference, the contents of the PHNE_37489.text file is &lt;br /&gt; available in the product readme:&lt;br /&gt;&lt;br /&gt;  swlist -l product -a readme -d @ /tmp/PHNE_37489.depot&lt;br /&gt;&lt;br /&gt; To put this patch on a magnetic tape and install from the&lt;br /&gt; tape drive, use the command:&lt;br /&gt;&lt;br /&gt;  dd if=/tmp/PHNE_37489.depot of=/dev/rmt/0m bs=2k&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-3483230692826009019?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/3483230692826009019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=3483230692826009019&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3483230692826009019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/3483230692826009019'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/hpux-how-to-check-if-patch-have-been.html' title='HPUX How to check if patch have been installed and install the patch'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-302677899927507955</id><published>2008-09-05T11:39:00.002+08:00</published><updated>2008-09-05T11:43:29.148+08:00</updated><title type='text'>HPUX check network interface ip and status</title><content type='html'># lanscan &lt;br /&gt;Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI&lt;br /&gt;Path     Address        In# State NamePPA        ID  Type      Support Mjr#&lt;br /&gt;0/1/2/0  0x00156004DF56 0   UP    lan0 snap0     1   ETHER     Yes     119&lt;br /&gt;VLAN5001 0x00156004DF56 5001 UP    lan5001 snap5001 7   ETHER     Yes     119&lt;br /&gt;VLAN5000 0x00156004DF56 5000 UP    lan5000 snap5000 6   ETHER     Yes     119&lt;br /&gt;0/1/2/1  0x00156004DF57 1   UP    lan1 snap1     2   ETHER     Yes     119&lt;br /&gt;0/5/1/0  0x00163584E02A 2   UP    lan2 snap2     3   ETHER     Yes     119&lt;br /&gt;#&lt;br /&gt;# ifconfig lan0&lt;br /&gt;ifconfig: no such interface&lt;br /&gt;# ifconfig lan2&lt;br /&gt;ifconfig: no such interface&lt;br /&gt;# netstat -i&lt;br /&gt;Name      Mtu  Network         Address         Ipkts   Ierrs Opkts   Oerrs Coll&lt;br /&gt;lan5001   1500 172.30.225.0    mama201-nb     2531362 0     18691869 0     0&lt;br /&gt;lan5000   1500 142.133.20.0    mama201        1388313474 0     1440717679 0     0&lt;br /&gt;lo0       4136 loopback        localhost       30234682 0     30234690 0     0  &lt;br /&gt;# ifconfig lan5001&lt;br /&gt;lan5001: flags=4000000000001843&lt;UP,BROADCAST,RUNNING,MULTICAST,CKO,VLAN&gt;&lt;br /&gt;        inet 172.30.225.26 netmask ffffff00 broadcast 172.30.225.255&lt;br /&gt;#j&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-302677899927507955?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/302677899927507955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=302677899927507955&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/302677899927507955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/302677899927507955'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/hpux-check-network-interface-ip-and.html' title='HPUX check network interface ip and status'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4153569227440958890</id><published>2008-09-05T10:24:00.002+08:00</published><updated>2008-09-05T10:29:25.510+08:00</updated><title type='text'>Sudoers Example: su - root</title><content type='html'>As root&lt;br /&gt;#visudo&lt;br /&gt;add below lines, where user123 is uid that need su - privillage&lt;br /&gt;user123 ALL=(ALL) /usr/bin/su -&lt;br /&gt;user124 ALL=(ALL) /usr/bin/su -&lt;br /&gt;user125 ALL=(ALL) /usr/bin/su -&lt;br /&gt;user126 ALL=(ALL) /usr/bin/su -&lt;br /&gt;:wq!&lt;br /&gt;&lt;br /&gt;as user123&lt;br /&gt;user123% sudo su -&lt;br /&gt;We trust you have received the usual lecture from the local System&lt;br /&gt;Administrator. It usually boils down to these two things:&lt;br /&gt;&lt;br /&gt;        #1) Respect the privacy of others.&lt;br /&gt;        #2) Think before you type.&lt;br /&gt;&lt;br /&gt;Password:&lt;user123 password&gt;&lt;br /&gt;&lt;br /&gt;    Authorized access only!&lt;br /&gt;&lt;br /&gt;root#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4153569227440958890?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4153569227440958890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4153569227440958890&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4153569227440958890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4153569227440958890'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/09/sudoers-example-su-root.html' title='Sudoers Example: su - root'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5213048308219771817</id><published>2008-08-31T20:18:00.001+08:00</published><updated>2008-08-31T20:20:21.941+08:00</updated><title type='text'>Solaris VXVM grow online filesystem</title><content type='html'>root# vxdisk list&lt;br /&gt;DEVICE       TYPE      DISK         GROUP        STATUS&lt;br /&gt;c0t0d0s2     sliced    rootdisk     rootdg       online&lt;br /&gt;c0t1d0s2     sliced    x50008       x500         online&lt;br /&gt;c0t2d0s2     sliced    x50007       x500         online&lt;br /&gt;c0t3d0s2     sliced    x50004       x500         online&lt;br /&gt;c2t0d0s2     sliced    disk01       rootdg       online&lt;br /&gt;c2t1d0s2     sliced    x50002       x500         online&lt;br /&gt;c2t2d0s2     sliced    x50006       x500         online spare&lt;br /&gt;c2t3d0s2     sliced    x50003       x500         online&lt;br /&gt;c3t0d0s2     sliced    x50009       x500         online&lt;br /&gt;c3t1d0s2     sliced    x50001       x500         online&lt;br /&gt;c3t3d0s2     sliced    x50005       x500         online&lt;br /&gt;root# vxassist -g x500 maxsize&lt;br /&gt;Maximum volume size: 156450816 (76392Mb)&lt;br /&gt; &lt;br /&gt;root# df -k /opt/app/backup&lt;br /&gt;Filesystem            kbytes    used   avail capacity  Mounted on&lt;br /&gt;/dev/vx/dsk/x500/app-back&lt;br /&gt;                     9654053 9149133  473813    96%    /opt/app/backup&lt;br /&gt;root#&lt;br /&gt;root# ./vxresize -F vxfs -g x500 app-back +3g&lt;br /&gt;root# df -k /opt/app/backup&lt;br /&gt;Filesystem            kbytes    used   avail capacity  Mounted on&lt;br /&gt;/dev/vx/dsk/x500/app-back&lt;br /&gt;                     12799781 9149903 3422212    73%    /opt/app/backup&lt;br /&gt;root#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-5213048308219771817?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5213048308219771817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5213048308219771817&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5213048308219771817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5213048308219771817'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/08/solaris-vxvm-grow-online-filesystem.html' title='Solaris VXVM grow online filesystem'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-7439516730670538441</id><published>2008-07-30T22:54:00.003+08:00</published><updated>2008-09-19T15:21:50.554+08:00</updated><title type='text'>Solaris sar %sys cpu high</title><content type='html'>How to find out which pid is consuming %usr kernel cpu resources&lt;br /&gt;#prstat -m&lt;br /&gt;eg.&lt;br /&gt;$ prstat -m&lt;br /&gt;   PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/NLWP&lt;br /&gt;  3828 hpfimhas  24  75 1.1 0.0 0.0 0.0 0.0 0.0   0   0 87K   0 prstat/1&lt;br /&gt;  3812 root     0.1 0.1 0.0 0.0 0.0 0.0 100 0.0   9   0 224   0 sshd/1&lt;br /&gt;  3820 hpfimhas 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0  38   0 128   0 sshd/1&lt;br /&gt;  3822 hpfimhas 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0   3   0 110   0 sh/1&lt;br /&gt;  6105 instbas  0.0 0.0 0.0 0.0 0.0  73  27 0.0  10   0  14   0 java/48&lt;br /&gt;  6006 lmcbejo  0.0 0.0 0.0 0.0 0.0  87  13 0.0  23   1  16   0 java/30&lt;br /&gt; 13769 instbas  0.0 0.0 0.0 0.0 0.0  91 9.4 0.0   4   0   9   0 java/128&lt;br /&gt;  5974 instbas  0.0 0.0 0.0 0.0 0.0  84  16 0.0  16   0  10   0 java/57&lt;br /&gt;&lt;br /&gt;For solaris 10 can use dtrace, see example below&lt;br /&gt;&lt;br /&gt;On with the show:  let's say you're looking at mpstat(1) output on your &lt;br /&gt;multiuser server.  You might see something like this:&lt;br /&gt;&lt;br /&gt;CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl&lt;br /&gt; 12    1  27 3504   338  206  765   27  114   65    1   337    9  19  41  31&lt;br /&gt; 13    1  19 5725    98   68  723   22  108  120    0   692    3  17  20  61&lt;br /&gt; 14    0  57 3873   224  192  670   22   75   86    1   805    7  10  35  48&lt;br /&gt; 15   36   7 1551    42   28  689    6   68   59    0   132    2   9  35  54&lt;br /&gt; 16   14   7 7209   504  457 1031   37  125  244    0   459    6  30   4  60&lt;br /&gt; 17    5   5 4960   150  108  817   37   98  154    0   375    6  26   6  62&lt;br /&gt; 18    5   6 6085  1687 1661  741   60   76  248    0   434    3  33   0  64&lt;br /&gt; 19    0  15 10037    72   41  876   23  100  291    1   454    2  19   9  71&lt;br /&gt; 20   12   5 5890   746  711  992   32  122  216    2   960   10  33   4  53&lt;br /&gt; 21   60   5 1567   729  713  467   15   80   59    0   376    2  35  10  53&lt;br /&gt; 22    0   6 4378   315  291  751   17   84  142    1   312    3  16   1  80&lt;br /&gt; 23    0   6 12119    33    3  874   20   82  384    1   513    4  24  11  62&lt;br /&gt;&lt;br /&gt;And well you may wonder (as perhaps you often have) -- what the hell is&lt;br /&gt;causing all of those cross calls, anyway?  (Cross calls appear in the "xcal"&lt;br /&gt;column; see mpstat(1).)  &lt;br /&gt;&lt;br /&gt;Using DTrace, investigating this is a snap:&lt;br /&gt;&lt;br /&gt;# dtrace -n xcalls'{@[execname] = count()}'&lt;br /&gt;dtrace: description 'xcalls' matched 4 probes&lt;br /&gt;[ letting this run for a few seconds ]&lt;br /&gt;^C&lt;br /&gt;&lt;br /&gt;  mozilla-bin                                                       1&lt;br /&gt;  lockd                                                             1&lt;br /&gt;  in.mpathd                                                         2&lt;br /&gt;  nsrmmd                                                            5&lt;br /&gt;  grep                                                              6&lt;br /&gt;  chmod                                                             6&lt;br /&gt;  cat                                                               6&lt;br /&gt;  nwadmin                                                          13&lt;br /&gt;  ls                                                               24&lt;br /&gt;  in.tftpd                                                         28&lt;br /&gt;  nsrindexd                                                        34&lt;br /&gt;  fsflush                                                          38&lt;br /&gt;  cut                                                              42&lt;br /&gt;  find                                                             42&lt;br /&gt;  mkdir                                                            66&lt;br /&gt;  rm                                                               76&lt;br /&gt;  ipop3d                                                           78&lt;br /&gt;  scp                                                              79&lt;br /&gt;  inetd                                                            96&lt;br /&gt;  dtrace                                                          111&lt;br /&gt;  nawk                                                            118&lt;br /&gt;  imapd-simmonmt                                                  126&lt;br /&gt;  rmdir                                                           132&lt;br /&gt;  sshd                                                            138&lt;br /&gt;  rpc.rstatd                                                      159&lt;br /&gt;  mv                                                              398&lt;br /&gt;  save                                                           1292&lt;br /&gt;  gzip                                                           1315&lt;br /&gt;  get_all2                                                       1678&lt;br /&gt;  sched                                                          1712&lt;br /&gt;  nfsd                                                           3709&lt;br /&gt;  tar                                                           27054  &lt;----- high usage&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-7439516730670538441?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/7439516730670538441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=7439516730670538441&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7439516730670538441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/7439516730670538441'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/07/solaris-sar-sys-cpu-high.html' title='Solaris sar %sys cpu high'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8390700747444824042</id><published>2008-07-09T15:01:00.001+08:00</published><updated>2008-07-09T15:04:06.562+08:00</updated><title type='text'>Solaris 10: mount a disk slice in a sub-zone</title><content type='html'>Non-global zones in Solaris 10 do not have the ability to see drives or disk slices (to prove this, list the contents of /dev/dsk from within a zone). What filesystems are mounted in which zones is controlled exclusively from the global zone. This recipe describes persistently mounting a disk slice in a non-global zone.&lt;br /&gt;To mount the device c0t1d0s3 in the existing zone testzone under the mount point /mnt, login to the global zone and become root or a priviledged user and complete the following steps: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;zonecfg -z testzone &lt;br /&gt;zonecfg:testzone&gt; add fs &lt;br /&gt;zonecfg:testzone:fs&gt; set dir=/mnt &lt;br /&gt;zonecfg:testzone:fs&gt; set special=/dev/dsk/c0t1d0s3 &lt;br /&gt;zonecfg:testzone:fs&gt; set raw=/dev/rdsk/c0t1d0s3 &lt;br /&gt;zonecfg:testzone:fs&gt; set type=ufs &lt;br /&gt;zonecfg:testzone:fs&gt; end &lt;br /&gt;zonecfg:testzone&gt; verify &lt;br /&gt;zonecfg:testzone&gt; commit &lt;br /&gt;zonecfg:testzone&gt; exit&lt;br /&gt;&lt;br /&gt;Following the commit command, the filesystem will be immediately available in the zone. Substitute the desired mount point and device name for your system. If the zone has not yet been created, you can use the 'add fs' commands when creating the zone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8390700747444824042?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8390700747444824042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8390700747444824042&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8390700747444824042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8390700747444824042'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/07/solaris-10-mount-disk-slice-in-sub-zone.html' title='Solaris 10: mount a disk slice in a sub-zone'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-5304873049931837880</id><published>2008-07-09T13:52:00.000+08:00</published><updated>2008-07-09T13:53:54.628+08:00</updated><title type='text'>Solaris SVM grow concat//stripe</title><content type='html'>HOw to grow filesystem under disksuite without soft partiotion for concat stripe&lt;br /&gt;find unused disk by #metastat | grep -i 2f5&lt;br /&gt;then, use format cmd to repatition the disk&lt;br /&gt;[05:58:15] root@server[31]# format&lt;br /&gt;Searching for disks...done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;       0. c0t0d0 &lt;SUN72G cyl 14087 alt 2 hd 24 sec 424&gt;&lt;br /&gt;          /pci@780/pci@0/pci@9/scsi@0/sd@0,0&lt;br /&gt;       1. c0t1d0 &lt;SUN72G cyl 14087 alt 2 hd 24 sec 424&gt;&lt;br /&gt;          /pci@780/pci@0/pci@9/scsi@0/sd@1,0&lt;br /&gt;       2. c4t60060E800543BE00000043BE000000BBd0 &lt;HP-OPEN-V-SUN-6002 cyl 13491 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e800543be00000043be000000bb&lt;br /&gt;       3. c4t60060E800543BE00000043BE000000BCd0 &lt;HP-OPEN-V-SUN-6002 cyl 13491 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e800543be00000043be000000bc&lt;br /&gt;       4. c4t60060E800543BE00000043BE000000BDd0 &lt;HP-OPEN-V-SUN-6002 cyl 13491 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e800543be00000043be000000bd&lt;br /&gt;       5. c4t60060E800543BE00000043BE000000BEd0 &lt;HP-OPEN-V-SUN-6002 cyl 13491 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e800543be00000043be000000be&lt;br /&gt;       6. c4t60060E800543BE00000043BE000002F4d0 &lt;HP-OPEN-V-SUN-6002 cyl 13491 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e800543be00000043be000002f4&lt;br /&gt;       7. c4t60060E800543BE00000043BE000002F5d0 &lt;HP-OPEN-V-SUN-6002 cyl 13491 alt 2 hd 15 sec 512&gt;&lt;br /&gt;          /scsi_vhci/ssd@g60060e800543be00000043be000002f5&lt;br /&gt;Specify disk (enter its number):&lt;br /&gt;[05:58:15] root@server[32]#metattach d17 /dev/dsk/c4t60060E800543BE00000043BE000002F5d0s0 &lt;br /&gt;d107: component is attached&lt;br /&gt;[05:58:15] root@server[33]# df -k /dbo&lt;br /&gt;Filesystem            kbytes    used   avail capacity  Mounted on&lt;br /&gt;/dev/md/dsk/d107     183417068 173603462 8489617    96%    /dbo&lt;br /&gt;[05:58:15] root@server[34]# grep dbo /etc/mnttab&lt;br /&gt;/dev/md/dsk/d107        /dbo    ufs     rw,intr,largefiles,logging,xattr,onerror=panic,dev=154006b      1202293409&lt;br /&gt;[05:58:15] root@server[35]# growfs -M /dbo /dev/md/rdsk/d107&lt;br /&gt;/dev/md/rdsk/d107:      476067840 sectors in 77485 cylinders of 48 tracks, 128 sectors&lt;br /&gt;        232455.0MB in 4843 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)&lt;br /&gt;super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt; 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,&lt;br /&gt;Initializing cylinder groups:&lt;br /&gt;...............................................................................&lt;br /&gt;.................&lt;br /&gt;super-block backups for last 10 cylinder groups at:&lt;br /&gt; 475107488, 475205920, 475304352, 475402784, 475501216, 475599648, 475698080,&lt;br /&gt; 475796512, 475894944, 475993376&lt;br /&gt;[05:58:15] root@server[36]# df -k /dbo&lt;br /&gt;Filesystem            kbytes    used   avail capacity  Mounted on&lt;br /&gt;/dev/md/dsk/d107     234430636 173603462 59503185    75%    /dbo&lt;br /&gt;[05:58:15] root@server[37]#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-5304873049931837880?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/5304873049931837880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=5304873049931837880&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5304873049931837880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/5304873049931837880'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/07/solaris-svm-grow-concatstripe.html' title='Solaris SVM grow concat//stripe'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-2340503890854425044</id><published>2008-05-30T20:26:00.000+08:00</published><updated>2008-05-30T20:33:44.132+08:00</updated><title type='text'>Solaris Netapps add new filesystem</title><content type='html'>The following volume options should be configured:&lt;br /&gt;Nosnap No automatic scheduled Snapshot™ duplications&lt;br /&gt;Minra Minimal read ahead&lt;br /&gt;Nvfail NVRAM check and behavior&lt;br /&gt;sapfiler1&gt; vol options sapdata nosnap on&lt;br /&gt;sapfiler1&gt; vol options sapdata minra on&lt;br /&gt;sapfiler1&gt; vol options sapdata nvfail on&lt;br /&gt;sapfiler1&gt; vol options saplog nosnap on&lt;br /&gt;sapfiler1&gt; vol options saplog minra on&lt;br /&gt;sapfiler1&gt; vol options saplog nvfail on&lt;br /&gt;sapfiler1&gt; qtree create /vol/sapdata/sapdata_lun&lt;br /&gt;sapfiler1&gt; qtree create /vol/saplog/saplog_lun&lt;br /&gt;sapfiler1&gt; qtree create /vol/saplog/sapmnt_lun&lt;br /&gt;sapfiler1&gt; qtree create /vol/saplog/sapusr_lun&lt;br /&gt;sapfiler1&gt; qtree create /vol/saplog/trans_lun&lt;br /&gt;Create the LUNs&lt;br /&gt;sapfiler1&gt; lun create -s 30g -t solaris /vol/sapdata/sapdata_lun/sapdata&lt;br /&gt;sapfiler1&gt; lun create -s 5g -t solaris /vol/saplog/saplog_lun/saplog&lt;br /&gt;sapfiler1&gt; lun create -s 500m -t solaris /vol/saplog/sapmnt_lun/sapmnt&lt;br /&gt;sapfiler1&gt; lun create -s 500m -t solaris /vol/saplog/sapusr_lun/sapusr&lt;br /&gt;sapfiler1&gt; lun create -s 200m -t solaris /vol/saplog/trans_lun/trans&lt;br /&gt;Define the initiator group&lt;br /&gt;To create the initiator group you need to know the WWPN of the host, which will use these LUNs. The&lt;br /&gt;WWPN can be obtained with the sanlun command on the host.&lt;br /&gt;bash-2.03# sanlun fcp show adapter&lt;br /&gt;lpfc0 WWPN:10000000c92d55f3&lt;br /&gt;sapfiler1&gt; igroup create -f -t solaris pp400 10:00:00:00:c9:2d:55:f3&lt;br /&gt;Map the LUNs to the initiator group&lt;br /&gt;sapfiler1&gt; lun map /vol/sapdata/sapdata_lun/sapdata pp400 0&lt;br /&gt;sapfiler1&gt; lun map /vol/saplog/saplog_lun/saplog pp400 6&lt;br /&gt;sapfiler1&gt; lun map /vol/saplog/sapusr_lun/sapusr pp400 7&lt;br /&gt;sapfiler1&gt; lun map /vol/saplog/sapmnt_lun/sapmnt pp400 8&lt;br /&gt;sapfiler1&gt; lun map /vol/saplog/trans_lun/trans pp400 9&lt;br /&gt;&lt;br /&gt;Configure persistent binding&lt;br /&gt;Persistent binding is configured with the tool /usr/sbin/lpfc/lputil . To configure persistent&lt;br /&gt;binding you need to know the WWNN of the filer. The WWNN can be obtained with the sysconfig&lt;br /&gt;command at the filer console.&lt;br /&gt;sapfiler1&gt; sysconfig –v&lt;br /&gt;…………&lt;br /&gt;…………&lt;br /&gt;slot 3: Fibre Channel Target Host Adapter 3a&lt;br /&gt;(Dual-channel, QLogic 2312 (2342) rev. 2, 64-bit, &lt;ONLINE&gt;)&lt;br /&gt;Firmware rev: 3.1.15&lt;br /&gt;Host Port Addr: 011000&lt;br /&gt;Cacheline size: 8&lt;br /&gt;SRAM parity: Yes&lt;br /&gt;FC Nodename: 50:a9:80:00:02:00:88:f7 (50a98000020088f7)&lt;br /&gt;FC Portname: 50:a9:80:03:02:00:88:f7 (50a98003020088f7)&lt;br /&gt;Connection: PTP, Fabric&lt;br /&gt;After using lputil command the lpfc.conf file has the following entry.&lt;br /&gt;File /kernel/drv/lpfc.conf&lt;br /&gt;…………&lt;br /&gt;…………&lt;br /&gt;# BEGIN: LPUTIL-managed Persistent Bindings&lt;br /&gt;fcp-bind-WWNN="50a98000020088f7:lpfc0t1";&lt;br /&gt;Network Appliance Inc. Proprietary&lt;br /&gt;7&lt;br /&gt;TECHNICAL REPORT&lt;br /&gt;File /kernel/drv/lpfc.conf&lt;br /&gt;…………&lt;br /&gt;…………&lt;br /&gt;# BEGIN: LPUTIL-managed Persistent Bindings&lt;br /&gt;fcp-bind-WWNN="50a98000020088f7:lpfc0t1";&lt;br /&gt;Edit entries in /kernel/drv/sd.conf&lt;br /&gt;The LUN IDs that were used when mapping the LUNs to the initiator groups and the SCSI ID that was&lt;br /&gt;used with the lputil command have to be used in the entries in /kernel/drv/sd.conf.&lt;br /&gt;…………&lt;br /&gt;…………&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=0;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=1;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=2;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=3;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=4;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=5;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=6;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=7;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=8;&lt;br /&gt;name="sd" parent="lpfc" target=1 lun=9;&lt;br /&gt;&lt;br /&gt;Reboot with reconfigure&lt;br /&gt;After the new entries in /kernel/drv/sd.conf are edited, the host needs to be rebooted with the&lt;br /&gt;reconfigure option. reboot -- -r&lt;br /&gt;&lt;br /&gt;Configure new disks with format command&lt;br /&gt;The new disks can now be configured with the format command.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-2340503890854425044?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/2340503890854425044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=2340503890854425044&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2340503890854425044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/2340503890854425044'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/05/solaris-netapps-add-new-filesystem.html' title='Solaris Netapps add new filesystem'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-8775515308248936456</id><published>2008-05-30T20:10:00.000+08:00</published><updated>2008-05-30T20:12:27.636+08:00</updated><title type='text'>VCS Adding node to the existing cluster</title><content type='html'>Adding the node to the existing cluster&lt;br /&gt;Perform the tasks on one of the existing nodes in the cluster.&lt;br /&gt;To add the new node to the existing cluster&lt;br /&gt;1 Enter the command:&lt;br /&gt;# haconf -makerw&lt;br /&gt;2 Add the new system to the cluster:&lt;br /&gt;# hasys -add east&lt;br /&gt;3 Enter the following command:&lt;br /&gt;# haconf -dump&lt;br /&gt;4 Copy the main.cf file from an existing node to your new node:&lt;br /&gt;# rcp /etc/VRTSvcs/conf/config/main.cf east:/etc/VRTSvcs/conf/&lt;br /&gt;config/&lt;br /&gt;5 Start VCS on the new node:&lt;br /&gt;# hastart&lt;br /&gt;6 If necessary, modify any new system attributes.&lt;br /&gt;7 Enter the command:&lt;br /&gt;# haconf -dump -makero&lt;br /&gt;Start VCS after adding the new node to the cluster and verify the cluster.&lt;br /&gt;To start VCS and verify the cluster&lt;br /&gt;1 From the new system, start VCS with the new system added to the cluster:&lt;br /&gt;# hastart&lt;br /&gt;2 Run the GAB configuration command on each node to verify that Port a and&lt;br /&gt;Port h include the new node in the membership:&lt;br /&gt;# /sbin/gabconfig -a&lt;br /&gt;GAB Port Memberships&lt;br /&gt;===================================&lt;br /&gt;Port a gen a3640003 membership 012&lt;br /&gt;Port h gen fd570002 membership 012&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-8775515308248936456?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/8775515308248936456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=8775515308248936456&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8775515308248936456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/8775515308248936456'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/05/vcs-adding-node-to-existing-cluster.html' title='VCS Adding node to the existing cluster'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8187123025728820991.post-4058664264280289990</id><published>2008-05-30T20:02:00.000+08:00</published><updated>2008-05-30T20:04:46.821+08:00</updated><title type='text'>Solaris emc powerpath link problem</title><content type='html'>If you boot a Solaris host with all socal host adapters to storage&lt;br /&gt;system volumes disconnected or dysfunctional, PowerPath will not&lt;br /&gt;configure any socal host adapter paths. After physically restoring the&lt;br /&gt;socal connections, run the following commands to restore the paths&lt;br /&gt;in PowerPath:&lt;br /&gt;&lt;br /&gt;On hosts running this OS Run these commands&lt;br /&gt;&lt;strong&gt;Solaris 7 and 8&lt;/strong&gt;&lt;br /&gt;devfsadm&lt;br /&gt;powercf -q&lt;br /&gt;powermt config&lt;br /&gt;&lt;strong&gt;Solaris 2.6&lt;/strong&gt;&lt;br /&gt;drvconfig; disks; devlinks&lt;br /&gt;powercf -q&lt;br /&gt;powermt config&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8187123025728820991-4058664264280289990?l=howtounix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtounix.blogspot.com/feeds/4058664264280289990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8187123025728820991&amp;postID=4058664264280289990&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4058664264280289990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8187123025728820991/posts/default/4058664264280289990'/><link rel='alternate' type='text/html' href='http://howtounix.blogspot.com/2008/05/solaris-emc-powerpath-link-problem.html' title='Solaris emc powerpath link problem'/><author><name>Imran</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
