<?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-12965617</id><updated>2011-04-21T23:23:45.488-05:00</updated><title type='text'>Solaris, Sun Stuff</title><subtitle type='html'>Work Related Sun / Solaris  Stuff that I pick up from newsgroups and web sites</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default?start-index=101&amp;max-results=100'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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>316</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12965617.post-113234826363599887</id><published>2005-11-18T16:11:00.000-05:00</published><updated>2005-11-18T16:11:04.046-05:00</updated><title type='text'>Backups Under Solaris</title><content type='html'>&lt;p class="mobile-post"&gt;Backups Under Solaris&lt;br /&gt;Other Backup Utilities&lt;/p&gt;&lt;p class="mobile-post"&gt;In addition the basic Unix backup utilities, Solaris offers ufsdump&lt;br /&gt;and ufsrestore. These two commands function as a pair. ufsrestore can&lt;br /&gt;only restore from tapes created by ufsdump. Both are called from the&lt;br /&gt;command line and follow the syntax:&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsdump options arguments filenames&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsrestore options argument filenames&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsdump only copies data from a raw disk slice. It does not copy free&lt;br /&gt;blocks. If a directory contains a symbolic link that points to a file&lt;br /&gt;on another disk slice, the link itself is copied. When ufsdump is used&lt;br /&gt;with the u option, the /etc/dumpdates file is updated. This file keeps&lt;br /&gt;a record of when filesystems were last backed up, including the level&lt;br /&gt;of the last backup, day, date and time. ufsdump can be used to back up&lt;br /&gt;individual files and directories as well as entire filesystems.&lt;/p&gt;&lt;p class="mobile-post"&gt;If ufsdump is run without options or arguments the following defaults&lt;br /&gt;are assumed:&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsdump 9uf /dev/rmt/0 filenames&lt;/p&gt;&lt;p class="mobile-post"&gt;This means that ufsdump will create a level 9 incremental of the&lt;br /&gt;specified file, update /etc/dumpdates, and dump the files to&lt;br /&gt;/dev/rmt/0.&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsdump also supports an S option to estimate the amount of space, in&lt;br /&gt;bytes, that the backup will require before actually creating it. This&lt;br /&gt;number can then be divided by the capacity of the tape to determine&lt;br /&gt;how many tapes the backup will need.&lt;/p&gt;&lt;p class="mobile-post"&gt;A series of tape characteristics and options can also be specified.&lt;/p&gt;&lt;p class="mobile-post"&gt;    * c=cartridge&lt;br /&gt;    * d=density&lt;br /&gt;    * s=size&lt;br /&gt;    * t=number of tracks&lt;/p&gt;&lt;p class="mobile-post"&gt;These options can be given in any order as long as the arguments that&lt;br /&gt;follow are in the same order, i.e.&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsdump cdst 1000 425 9&lt;/p&gt;&lt;p class="mobile-post"&gt;This specifies a cartridge tape with a density of 1000, 425MB, and&lt;br /&gt;nine tracks. In terms of tape options the syntax is as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsdump 9uf /dev/rmtXAbn filenames&lt;/p&gt;&lt;p class="mobile-post"&gt;Where&lt;/p&gt;&lt;p class="mobile-post"&gt;    * X=the number of the drive beginning with 0.&lt;br /&gt;    * A=optional density.&lt;br /&gt;          o l=low&lt;br /&gt;          o m=medium&lt;br /&gt;          o h=high&lt;br /&gt;          o u=ultra&lt;br /&gt;          o c=compressed&lt;br /&gt;    * b=specifies Berkeley SunOS 4.X compatibility.&lt;br /&gt;    * n=no rewind option, which allows other files to be appended to the tape.&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsrestore has an interactive mode which can be used to select&lt;br /&gt;individual files and directories for restoration. It also supports an&lt;br /&gt;option to read the table of contents from the archive file instead of&lt;br /&gt;the backup media.&lt;/p&gt;&lt;p class="mobile-post"&gt;Limits of ufsdump:&lt;/p&gt;&lt;p class="mobile-post"&gt;    * It does not automatically calculate the number of tapes needed&lt;br /&gt;to backup a filesystem.&lt;br /&gt;    * It does not have a built in error checking mechanism.&lt;br /&gt;    * It does not enable the backing up of files that are remotely&lt;br /&gt;mounted from a server.&lt;/p&gt;&lt;p class="mobile-post"&gt;Solaris also supplies volcopy, a utility to make an image or literal&lt;br /&gt;copy of a file system.&lt;br /&gt;Tips and Quirks&lt;/p&gt;&lt;p class="mobile-post"&gt;The Solaris version of tar includes extra options. The -I option&lt;br /&gt;allows a list of files and directories that are backed up to be put&lt;br /&gt;into a text file. The -X option allows an exclusion file to be&lt;br /&gt;specified that lists the names of files and directories that should be&lt;br /&gt;skipped.&lt;/p&gt;&lt;p class="mobile-post"&gt;The Solaris version of mt supports an asf subcommand which moves the&lt;br /&gt;tape to the nth file. n being the number of the file.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-113234826363599887?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/113234826363599887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=113234826363599887' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113234826363599887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113234826363599887'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/11/backups-under-solaris.html' title='Backups Under Solaris'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-113114149384509082</id><published>2005-11-04T16:58:00.000-05:00</published><updated>2005-11-04T16:58:13.856-05:00</updated><title type='text'>QLC + QLA</title><content type='html'>&lt;p class="mobile-post"&gt;QLC + QLA&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi all.&lt;br /&gt;Sorry for my english.&lt;br /&gt;I have E4800 server, T3 array and SAN. My server have 2 FC adapters.&lt;br /&gt;One for T3, other for SAN (HP EVA5000, QLA2300). After reboot I see:&lt;br /&gt;qlc driver trying attach to both FC adapters, but cannot attach to&lt;br /&gt;QLA2300. I installed driver qla2300 from HP.com, but not initialized.&lt;br /&gt;Always qlc driver trying to attach to FCA 2300. What do I need to do ?&lt;/p&gt;&lt;p class="mobile-post"&gt;Re: QLC + QLA&lt;/p&gt;&lt;p class="mobile-post"&gt;Maybe you must look and configure the qla.conf.&lt;br /&gt;The best is, you look here for answers:&lt;/p&gt;&lt;p class="mobile-post"&gt;http://www.qlogic.com/knowledgecenter/&lt;/p&gt;&lt;p class="mobile-post"&gt;Re: QLC + QLA&lt;/p&gt;&lt;p class="mobile-post"&gt;The qlc driver can not attach to the QLA2300 card because the QLA2300&lt;br /&gt;card does not with with the QLC driver. This is normal.&lt;/p&gt;&lt;p class="mobile-post"&gt;However, you should be able to install the qla driver and run both&lt;br /&gt;drivers at the same time.&lt;/p&gt;&lt;p class="mobile-post"&gt;Re: QLC + QLA&lt;/p&gt;&lt;p class="mobile-post"&gt;The first thing to check is who's HBA each is by looking at the PCI identifiers.&lt;/p&gt;&lt;p class="mobile-post"&gt;Look at the output of the "prtconf -vpD" command.&lt;/p&gt;&lt;p class="mobile-post"&gt;Each HBA will have two lines that are important. The first to appear&lt;br /&gt;is "compatible:" and the second is "name:"&lt;br /&gt;compatible: 'pci1077,2.1077.2.5' + 'pci1077,2.1077.2' + 'pci1077&lt;br /&gt;,2' + 'pci1077,2200.5' + 'pci1077,2200' + 'pciclass,10000' + 'pciclass,0000'&lt;br /&gt;###SNIP###&lt;br /&gt;name: 'QLGC,qla'&lt;/p&gt;&lt;p class="mobile-post"&gt;Now the OS will then look for a "name" listed in the&lt;br /&gt;/etc/driver_aliases to match a driver to the HBA. If a "name" is not&lt;br /&gt;found the OS starts using each of the compatible entries and will&lt;br /&gt;match drivers to those entries.&lt;/p&gt;&lt;p class="mobile-post"&gt;What you could do is run the following commands and post their output&lt;br /&gt;here and I'll tell you what's wrong:&lt;/p&gt;&lt;p class="mobile-post"&gt;prtconf -vpD | grep 1077&lt;br /&gt;grep ql /etc/driver_aliases&lt;/p&gt;&lt;p class="mobile-post"&gt;Chesapeake&lt;/p&gt;&lt;p class="mobile-post"&gt;Re: QLC + QLA&lt;/p&gt;&lt;p class="mobile-post"&gt;Did you ever get a resolution for this? I have almost the exact same&lt;br /&gt;situation and have been unable to get the QLA driver to attach to the&lt;br /&gt;2300.&lt;/p&gt;&lt;p class="mobile-post"&gt;Re: QLC + QLA&lt;/p&gt;&lt;p class="mobile-post"&gt;402) root@cohuxfs27:/etc/cfg/fp&amp;gt; prtconf -vpD | grep 1077&lt;br /&gt;compatible: 'pci1077,2300.1077.106.1' + 'pci1077,2300.1077.106' +&lt;br /&gt;'pci1077,106' + 'pci1077,2300.1' + 'pci1077,2300' + 'pciclass,0c0400'&lt;br /&gt;+ 'pciclass,0c04'&lt;br /&gt;subsystem-vendor-id: 00001077&lt;br /&gt;vendor-id: 00001077&lt;br /&gt;compatible: 'pci1077,2200.1077.4082.5' + 'pci1077,2200.1077.4082' +&lt;br /&gt;'pci1077,4082' + 'pci1077,2200.5' + 'pci1077,2200' + 'pciclass,010000'&lt;br /&gt;+ 'pciclass,0100'&lt;br /&gt;subsystem-vendor-id: 00001077&lt;br /&gt;vendor-id: 00001077&lt;br /&gt;compatible: 'pci1077,2200.1077.4082.5' + 'pci1077,2200.1077.4082' +&lt;br /&gt;'pci1077,4082' + 'pci1077,2200.5' + 'pci1077,2200' + 'pciclass,010000'&lt;br /&gt;+ 'pciclass,0100'&lt;br /&gt;subsystem-vendor-id: 00001077&lt;br /&gt;vendor-id: 00001077&lt;br /&gt;compatible: 'pci1077,2200.5' + 'pci1077,2200' + 'pciclass,010000' +&lt;br /&gt;'pciclass,0100'&lt;br /&gt;vendor-id: 00001077&lt;br /&gt;(403) root@cohuxfs27:/etc/cfg/fp&amp;gt; grep ql /etc/driver_aliases&lt;br /&gt;qlc "pci1077,2200"&lt;br /&gt;qlc "pci1077,2300"&lt;br /&gt;qlc "pci1077,2312"&lt;br /&gt;qla2300 "pci1077,9"&lt;br /&gt;qla2300 "pci1077,100"&lt;br /&gt;qla2300 "pci1077,101"&lt;br /&gt;qla2300 "pci1077,102"&lt;br /&gt;qla2300 "pci1077,103"&lt;br /&gt;qla2300 "pci1077,104"&lt;br /&gt;qla2300 "pci1077,105"&lt;br /&gt;qla2300 "pci1077,109"&lt;br /&gt;qla2300 "pci1077,116"&lt;br /&gt;qla2300 "pci1077,115"&lt;/p&gt;&lt;p class="mobile-post"&gt;Re: QLC + QLA&lt;/p&gt;&lt;p class="mobile-post"&gt;I extracted the file adapter.properties from the QLogic SCLI utility.&lt;br /&gt;It has an index of the identities of the QLogic cards. That first one&lt;br /&gt;of 1077,106 is a Sun Amber-2 X6767, not an HP card as you thought.&lt;/p&gt;&lt;p class="mobile-post"&gt;The two 1077,4082 cards are Sun Amber HBA ports.&lt;/p&gt;&lt;p class="mobile-post"&gt;Lastly the 1077,2200,5 is probably either a generic qlogic card or a&lt;br /&gt;fibre down if this is a SB100/280R...&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-113114149384509082?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/113114149384509082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=113114149384509082' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113114149384509082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113114149384509082'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/11/qlc-qla.html' title='QLC + QLA'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-113114139245717237</id><published>2005-11-04T16:56:00.000-05:00</published><updated>2005-11-04T16:56:33.953-05:00</updated><title type='text'>how many file descriptors does the Xnewt process have open?</title><content type='html'>&lt;p class="mobile-post"&gt;&amp;gt; When this happens, how many file descriptors does the Xnewt&lt;br /&gt;&amp;gt; process have open?  ('ls -l /proc/&amp;lt;pid&amp;gt;/fd' or something&lt;br /&gt;&amp;gt; similar.)&lt;br /&gt;&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;With ls -l /proc/&amp;lt;pid&amp;gt;/fd | wc -l&lt;/p&gt;&lt;p class="mobile-post"&gt;227 for a fresh GNOME session and one gnome-terminal window open&lt;br /&gt;222 for a fresh XFCE4 session and one xterminal window open&lt;/p&gt;&lt;p class="mobile-post"&gt;(different PIDs for each of these checks)&lt;/p&gt;&lt;p class="mobile-post"&gt;A given process is:&lt;/p&gt;&lt;p class="mobile-post"&gt;root     10091  9074  2 12:09 ?        00:00:00 /usr/X11R6/bin/Xnewt :26&lt;br /&gt;-auth /var/lib/wdm/authdir/authfiles/A:26-AY24Hr -dpms&lt;/p&gt;&lt;p class="mobile-post"&gt;This is interesting, because here is some of the 'ls -l /proc/10091/fd'&lt;br /&gt;output.&lt;/p&gt;&lt;p class="mobile-post"&gt;lrwx------  1 root root 64 Mar 16 12:11 10 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:12-d8mxzX (deleted)&lt;br /&gt;lrwx------  1 root root 64 Mar 16 12:11 100 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:11-QHkbcU (deleted)&lt;br /&gt;lrwx------  1 root root 64 Mar 16 12:11 101 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:11-bbVcHq (deleted)&lt;br /&gt;lrwx------  1 root root 64 Mar 16 12:11 102 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:27-FVil3v (deleted)&lt;br /&gt;lrwx------  1 root root 64 Mar 16 12:11 103 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:9-1iqtPQ (deleted)&lt;br /&gt;lrwx------  1 root root 64 Mar 16 12:11 104 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:28-ZcO3OP (deleted)&lt;br /&gt;lrwx------  1 root root 64 Mar 16 12:11 105 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:11-65HZQD (deleted)&lt;br /&gt;lrwx------  1 root root 64 Mar 16 12:11 106 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:16-J7pYyu (deleted)&lt;br /&gt;lrwx------  1 root root 64 Mar 16 12:11 107 -&amp;gt;&lt;br /&gt;/var/lib/wdm/authdir/authfiles/A:11-RYJlqJ (deleted)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-113114139245717237?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/113114139245717237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=113114139245717237' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113114139245717237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113114139245717237'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/11/how-many-file-descriptors-does-xnewt.html' title='how many file descriptors does the Xnewt process have open?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-113052685345818466</id><published>2005-10-28T14:14:00.000-05:00</published><updated>2005-10-28T14:14:13.460-05:00</updated><title type='text'>httpd processes each with a size of 148M... is the top "size" display directly related to memory</title><content type='html'>&lt;p class="mobile-post"&gt;&amp;gt; When I run top on this box, I can see 6 httpd processes each with a&lt;br /&gt;&amp;gt; size of 148M... is the top "size" display directly related to memory?&lt;/p&gt;&lt;p class="mobile-post"&gt;Yes, it's the amount of virtual memory used by this process.  You should&lt;br /&gt;see a similar number (with much greater detail) by doing pmap -x on the&lt;br /&gt;process.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; If it is, how can I possibly be running 6x148M processes just on apache&lt;br /&gt;&amp;gt; alone?&lt;/p&gt;&lt;p class="mobile-post"&gt;Every page used by the process is not necessarily private to that&lt;br /&gt;process.  Read-only portions of the Apache binary may be shared among&lt;br /&gt;all 6, and system libraries (like libC) may be shared by many programs.&lt;/p&gt;&lt;p class="mobile-post"&gt;The 'pmap -x &amp;lt;pid&amp;gt;' output shows that more explicitly.&lt;/p&gt;&lt;p class="mobile-post"&gt;Then you might also want to know that there are even a lot more&lt;br /&gt;that offer detailed information regarding system state and performance:&lt;br /&gt;e.g.&lt;br /&gt;sar, vmstat, iostat, trapstat, cpustat, mpstat, cputrack, busstat, kstat&lt;/p&gt;&lt;p class="mobile-post"&gt;Darren already gave a good answer, but I wanted to elaborate a little.&lt;br /&gt;(Or, after looking back on this after I've written the whole post,&lt;br /&gt;apparently more than a little...)&lt;/p&gt;&lt;p class="mobile-post"&gt;On a simple computer, there is just a certain amount of RAM available&lt;br /&gt;and every address that a program uses (in a pointer, in an address&lt;br /&gt;register, or whatever) simply corresponds to part of that RAM.  And&lt;br /&gt;every program executes in the same address space, which means a given&lt;br /&gt;address refers to the same thing whether it's in the context of one&lt;br /&gt;process or another.&lt;/p&gt;&lt;p class="mobile-post"&gt;But on Solaris, there is virtual memory, and every process has its&lt;br /&gt;own address space.  Using the MMU hardware, the system maps several&lt;br /&gt;different ranges of the process's address space to different things.&lt;br /&gt;Some of the address ranges are private areas that only the process&lt;br /&gt;itself has access to.  Any memory you allocate with malloc() will be&lt;br /&gt;in a private address range.  Some address ranges correspond to regions&lt;br /&gt;of files on disk.  (In Solaris, executables are loaded by setting up&lt;br /&gt;address ranges in the process's address space that correspond to&lt;br /&gt;parts of the executable file.  And the same thing is done when an&lt;br /&gt;executable runs against a shared library.)  Some address ranges&lt;br /&gt;correspond to other things (sometimes even things like address ranges&lt;br /&gt;that are used to communicate with hardware other than RAM).&lt;/p&gt;&lt;p class="mobile-post"&gt;Now to make things even a bit more complicated, just the existence&lt;br /&gt;of an address range within a process's address space does not imply&lt;br /&gt;that any RAM is used for that range.  For example, if an address&lt;br /&gt;range corresponds to a region of a file and if you've never either&lt;br /&gt;read from or written to any addresses in that range, Solaris doesn't&lt;br /&gt;need to waste time or memory putting that data into RAM.  And to&lt;br /&gt;make things yet more complicated, even if Solaris does need to use&lt;br /&gt;RAM for (part of) an address range, if two processes are using the&lt;br /&gt;same region of the same file, Solaris can use the same RAM for&lt;br /&gt;both processes, even if the addresses that would be used within&lt;br /&gt;the processes to access that data aren't the same addresses.  And&lt;br /&gt;to make things even yet more complicated, if a process has an&lt;br /&gt;address range that contains private data and that process does a&lt;br /&gt;fork(), then the twin processes that result can both use the same&lt;br /&gt;RAM (or swap space) for that data until the time when one of them&lt;br /&gt;tries to change the data (at which point a copy must be made so&lt;br /&gt;they have their own separate copies).&lt;/p&gt;&lt;p class="mobile-post"&gt;So, when you run top, and you see the "SIZE" of the process, what&lt;br /&gt;you're seeing is the size of all the address ranges that have been&lt;br /&gt;created for that process.  Most (but not all) of these address&lt;br /&gt;ranges could correspond to data in RAM, but even if they do, it&lt;br /&gt;might be data that is shared with another process.  So when you&lt;br /&gt;see 148M for an Apache process, that just means that there are 148M&lt;br /&gt;worth of addresses that the Apache process could theoretically&lt;br /&gt;access if it wanted to.&lt;/p&gt;&lt;p class="mobile-post"&gt;The "RES" column of top's output is a lot closer to the RAM usage&lt;br /&gt;of a process, but it's still not exactly the same thing.  The "RES"&lt;br /&gt;column just tells you, of all the addresses that a process could&lt;br /&gt;potentially access, how many of them are currently connected to a&lt;br /&gt;particular spot in physical RAM.  That is, how many of those pages&lt;br /&gt;are resident in physical memory.  It doesn't say how many of those&lt;br /&gt;are shared with other processes.  It's tempting to say that the&lt;br /&gt;"RES" column tells you how much memory the process is using, but&lt;br /&gt;that's not entirely accurate.  It's totally possible for a process&lt;br /&gt;to be totally dormant and not running have its resident size increase.&lt;br /&gt;This could happen if the dormant process's address space refers to&lt;br /&gt;some region of a file that some *other* process just accessed and&lt;br /&gt;thus forced into memory.&lt;/p&gt;&lt;p class="mobile-post"&gt;And in fact, this type of thing partly accounts for why you see such&lt;br /&gt;high numbers, even in the "RES" column.  You could have a process&lt;br /&gt;which only accesses a tiny portion of some file that's mapped into&lt;br /&gt;its address space, but if a bunch of other processes also access&lt;br /&gt;tiny portions of the same file, that will make increase the resident&lt;br /&gt;size of all the processes that map the (whole) file bigger.  That&lt;br /&gt;may seem a little unlikely, but actually it is quite common because&lt;br /&gt;things like libc.so (the C shared library) are used by a bunch of&lt;br /&gt;processes, and even though each process might only use a few functions,&lt;br /&gt;still when you count the total number of functions that are actively&lt;br /&gt;used from that library, a significant portion of the library ends up&lt;br /&gt;being resident, and that means that it inflates the resident size&lt;br /&gt;numbers of all processes that use it.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; So I learned yesterday that the native stat tool for Solaris is&lt;br /&gt;&amp;gt; prstat..  So I'm guessing from your posting Logan that in prstat, the&lt;br /&gt;&amp;gt; SIZE column is the total amount of memory that each process can use and&lt;br /&gt;&amp;gt; the RSS is the actual amout thats used..&lt;/p&gt;&lt;p class="mobile-post"&gt;"can use" and "that's used" as a description of memory seem incorrect to&lt;br /&gt;me.&lt;/p&gt;&lt;p class="mobile-post"&gt;The difference is between Virtual Memory Pages that are actually&lt;br /&gt;resident in RAM (RSS) and those that are allocated (whether currently in&lt;br /&gt;RAM or not (SIZE).   I don't think that "in use" and "in RAM" are quite&lt;br /&gt;the same thing...&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; "In a virtual memory(1) system, a process' resident set is that part of&lt;br /&gt;&amp;gt; a process' address space which is currently in main memory. If this&lt;br /&gt;&amp;gt; does not include all of the process' working set, the system may&lt;br /&gt;&amp;gt; thrash."&lt;br /&gt;&amp;gt; That makes sense to me except for one thing... If the SIZE is the total&lt;br /&gt;&amp;gt; amount, how come it fluctuates?&lt;/p&gt;&lt;p class="mobile-post"&gt;Processes allocate memory while they run.  Most programs will grow, but&lt;br /&gt;not shrink, but both are possible.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Whoah.. I just looked at pmap.... thats insane.&lt;/p&gt;&lt;p class="mobile-post"&gt;Don't try to interpret everything.  Most bits are just mappings from&lt;br /&gt;other shared objects.  In an average program, the most common place for&lt;br /&gt;it to consume memory directly is in the [heap].&lt;/p&gt;&lt;p class="mobile-post"&gt;However the breakdown of shared/private/RAM/total can be useful.&lt;/p&gt;&lt;p class="mobile-post"&gt; If I can't map SIZE and RSS to whats available and whats in use, how&lt;br /&gt;&amp;gt; can I tell when the memory needs to be upgraded?&lt;/p&gt;&lt;p class="mobile-post"&gt;I was making the distinction between "in use" (which is a little fuzzy&lt;br /&gt;for me when talking about pages) and "in RAM" (which is well-defined).&lt;/p&gt;&lt;p class="mobile-post"&gt;You can map SIZE and RSS to what pages are in RAM at any one time, which&lt;br /&gt;will probably be all you need.&lt;/p&gt;&lt;p class="mobile-post"&gt;What "in use" means, and whether or not that has anything to do with RAM&lt;br /&gt;residency is a different question.&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;/p&gt;&lt;p class="mobile-post"&gt;The top part of the display of top shows memory usage. The 'swap -s' command&lt;br /&gt;shows how much swap is in use.  I think both of these include swap as&lt;br /&gt;backed up by the executables and shared images on disk as well as the&lt;br /&gt;swap backed up by the swap file.  The 'swap -l' command will show how much&lt;br /&gt;of the actual swap space is in use.  A rule of thumb is that when the amount&lt;br /&gt;of swap in use starts to be as big as your memory, you need to add memory.&lt;br /&gt;If you have a lot of mostly inactive programs in use, you can allow more&lt;br /&gt;swap to be used without hurting performance.&lt;/p&gt;&lt;p class="mobile-post"&gt;One way is to look at the pi and po (page in and page out) columns&lt;br /&gt;in the vmstat output.  Assuming you're not starting lts of new programs,&lt;br /&gt;high values here could indicate low memory.  You should check out&lt;br /&gt;Adrian Cockcroft's book, Solaris Performance Tuning (aka the Porche&lt;br /&gt;book).&lt;/p&gt;&lt;p class="mobile-post"&gt;Frequent complaints form users about poor performance can also be an&lt;br /&gt;idicator of too much paging.  :-)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-113052685345818466?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/113052685345818466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=113052685345818466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113052685345818466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113052685345818466'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/httpd-processes-each-with-size-of-148m.html' title='httpd processes each with a size of 148M... is the top &quot;size&quot; display directly related to memory'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-113052677501007001</id><published>2005-10-28T14:12:00.000-05:00</published><updated>2005-10-28T14:12:55.060-05:00</updated><title type='text'>Subject: V210 BGE0@1000FDX</title><content type='html'>&lt;p class="mobile-post"&gt;Hi,&lt;/p&gt;&lt;p class="mobile-post"&gt;When connecting a server to a Gig interface you need to enable autoneg&lt;br /&gt;on the server. It will pick up the correct speed automatically. It&lt;br /&gt;becomes a problem when trying to force it especially if using Cisco&lt;br /&gt;switches.&lt;/p&gt;&lt;p class="mobile-post"&gt;Normally I run the following script&lt;/p&gt;&lt;p class="mobile-post"&gt;ndd -set /dev/bge0 adv_autoneg_cap 1&lt;br /&gt;ndd -set /dev/bge0 adv_1000fdx_cap 1&lt;br /&gt;ndd -set /dev/bge0 adv_1000hdx_cap 0&lt;br /&gt;ndd -set /dev/bge0 adv_100fdx_cap 0&lt;br /&gt;ndd -set /dev/bge0 adv_100hdx_cap 0&lt;br /&gt;ndd -set /dev/bge0 adv_10fdx_cap 0&lt;br /&gt;ndd -set /dev/bge0 adv_10hdx_cap 0&lt;/p&gt;&lt;p class="mobile-post"&gt;Hope that it resolves your problem.&lt;/p&gt;&lt;p class="mobile-post"&gt;Regards&lt;br /&gt;Musa&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-113052677501007001?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/113052677501007001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=113052677501007001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113052677501007001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/113052677501007001'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/subject-v210-bge01000fdx.html' title='Subject: V210 BGE0@1000FDX'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992246002972157</id><published>2005-10-21T14:21:00.000-05:00</published><updated>2005-10-21T14:21:00.030-05:00</updated><title type='text'>SUMMARY: Tracking down system calls on Solaris 9</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: SUMMARY: Tracking down system calls on Solaris 9&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi all,&lt;/p&gt;&lt;p class="mobile-post"&gt;Many thanks to everyone who responded - Aleksander Pavic, francisco, and&lt;br /&gt;Darren Dunham. My original email is attached below, along with the&lt;br /&gt;replies I got - but to summarise : I was seeing a very high sysload on a&lt;br /&gt;Solaris 9 web server, and vmstat confirmed that a large number of system&lt;br /&gt;calls were being generated. I wanted to track these down and find out&lt;br /&gt;what was being called, but couldn't use Dtrace. Yet another argument for&lt;br /&gt;moving to Solaris 10 :)&lt;/p&gt;&lt;p class="mobile-post"&gt;As Darren said in his response: "The limitations on existing tools like&lt;br /&gt;'truss' are part of what drove&lt;br /&gt;dtrace, so I don't know that there's any magic out there."&lt;/p&gt;&lt;p class="mobile-post"&gt;He then went on to suggest I analyse all the Apache processes with&lt;br /&gt;truss, send the output to a file and then analyse that. This was also&lt;br /&gt;the path suggested by Aleksander, who quite correctly pointed out that&lt;br /&gt;truss can be made to follow any child processes generated via forking,&lt;br /&gt;so I could therefore truss the main Apache process and follow all it's&lt;br /&gt;children. He also suggested I send the output to a file, and&lt;br /&gt;post-process it with awk or perl. Francisco also suggested the useful&lt;br /&gt;lsof tool to see what files are open, as my original hypothesis was that&lt;br /&gt;there were a large number of file handles being opened and closed.&lt;/p&gt;&lt;p class="mobile-post"&gt;In the end, I trussed every "httpd" process, and generated a summary&lt;br /&gt;using "truss -c". I let this run for 20 seconds, and saw that there were&lt;br /&gt;a very large number of resolvepath() and open() calls being generated,&lt;br /&gt;roughly half of these calls returned with an error.&lt;/p&gt;&lt;p class="mobile-post"&gt;I then narrowed my search down, and examined what was actually being&lt;br /&gt;passed as arguments to these calls. This is easily done with "truss -t&lt;br /&gt;open,resolvepath". It turns out that a huge number of the&lt;br /&gt;resolvepath()'s and open()'s were being generated by PHP scripts running&lt;br /&gt;under Apache. They were using an inefficient include_path, and so when&lt;br /&gt;most files were being included, PHP generated many resolvepath() and&lt;br /&gt;open() calls which returned in error before finally finding the correct&lt;br /&gt;location of the file.&lt;/p&gt;&lt;p class="mobile-post"&gt;We fixed the PHP include_path and also modified some of the scripts to&lt;br /&gt;use an absolute path in include() or require() functions, and as&lt;br /&gt;expected, the number of syscalls being generated halved itself.&lt;/p&gt;&lt;p class="mobile-post"&gt;There were a number of other code-related problems on that server as&lt;br /&gt;well, but these were unrelated to my original request for help.&lt;/p&gt;&lt;p class="mobile-post"&gt;Once again, many thanks to those that responded. Problem resolved !&lt;/p&gt;&lt;p class="mobile-post"&gt;-Mark&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992246002972157?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992246002972157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992246002972157' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992246002972157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992246002972157'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/summary-tracking-down-system-calls-on.html' title='SUMMARY: Tracking down system calls on Solaris 9'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992242237516257</id><published>2005-10-21T14:20:00.000-05:00</published><updated>2005-10-21T14:20:22.376-05:00</updated><title type='text'>Configuring Qlogic HBA card</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: SUMMARY Configuring Qlogic HBA card&lt;/p&gt;&lt;p class="mobile-post"&gt;I found the solution. Thanks to those who replied!&lt;/p&gt;&lt;p class="mobile-post"&gt;At OBP:&lt;/p&gt;&lt;p class="mobile-post"&gt;ok&amp;gt; show-devs&lt;br /&gt;...&lt;br /&gt;&amp;lt;QLGC entry&amp;gt;&lt;br /&gt;...&lt;br /&gt;ok&amp;gt; select &amp;lt;QLGC entry&amp;gt;&lt;br /&gt;ok&amp;gt; show-children&lt;br /&gt;&amp;lt;Lists info about card such as WWN, LoopId Lun&amp;gt;&lt;br /&gt;ok&amp;gt; show-connection-mode&lt;br /&gt;   Current HBA connection mode: 2 - Loop preferred,&lt;br /&gt;otherwise point-to-point&lt;/p&gt;&lt;p class="mobile-post"&gt;(Possible connection mode choices:&lt;br /&gt;   0 - Loop Only&lt;br /&gt;   1 - Point-to-point only&lt;br /&gt;   2 - Loop preferred, otherwise point-to-point)&lt;/p&gt;&lt;p class="mobile-post"&gt;ok&amp;gt; set-connection-mode (0, 1, or 2)&lt;br /&gt;ok&amp;gt; show-data-rate&lt;br /&gt;Current HBA data rate: One Gigabit rate&lt;/p&gt;&lt;p class="mobile-post"&gt;   Possible data rate choices:&lt;br /&gt;   0 - One Gigabit rate&lt;br /&gt;   1 - Two Gigabit rate&lt;br /&gt;   2 - Auto-negotiated rate&lt;/p&gt;&lt;p class="mobile-post"&gt;ok&amp;gt; set-date-rate (0, 1, or 2)&lt;br /&gt;To set the data rate.&lt;/p&gt;&lt;p class="mobile-post"&gt;More info can be found at&lt;br /&gt;http://download.qlogic.com/boot_code/23020/Readme.txt&lt;/p&gt;&lt;p class="mobile-post"&gt;John&lt;/p&gt;&lt;p class="mobile-post"&gt;Original Question:&lt;/p&gt;&lt;p class="mobile-post"&gt;I have a QLogic 2300 card in a SF V440. I am trying to&lt;br /&gt;install SecurePath but the card is not seen by Solaris&lt;br /&gt;8. (It is seen at OBP level)&lt;br /&gt;At my last job I had a similar problem which I fixed&lt;br /&gt;by setting the speed at the OBP level. *The card is&lt;br /&gt;set to autoneg but I need to force it to 1 gig)&lt;br /&gt;Unfortunately I could not keep my notes from that job&lt;br /&gt;and cannot for&lt;br /&gt;the life of me remember how to set the speed.&lt;br /&gt;Has anyone got notes on how to do it. I have spent 2&lt;br /&gt;hours scouring google with no luck.&lt;br /&gt;Thanks,&lt;br /&gt;John&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992242237516257?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992242237516257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992242237516257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992242237516257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992242237516257'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/configuring-qlogic-hba-card.html' title='Configuring Qlogic HBA card'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992238536556094</id><published>2005-10-21T14:19:00.001-05:00</published><updated>2005-10-21T14:19:45.380-05:00</updated><title type='text'>How do I install Sun Explorer</title><content type='html'>&lt;p class="mobile-post"&gt;4. How do I install Sun Explorer?&lt;/p&gt;&lt;p class="mobile-post"&gt;After downloading the SunExplorer.tar.Z file from sunsolve.sun.com:&lt;/p&gt;&lt;p class="mobile-post"&gt;cp SunExplorer.tar.Z /var/tmp&lt;/p&gt;&lt;p class="mobile-post"&gt;cd to /var/tmp&lt;/p&gt;&lt;p class="mobile-post"&gt;uncompress SunExplorer.tar.Z&lt;/p&gt;&lt;p class="mobile-post"&gt;tar xvf SunExplorer.tar&lt;/p&gt;&lt;p class="mobile-post"&gt;or, if you have gzip installed,&lt;/p&gt;&lt;p class="mobile-post"&gt;zcat SunExplorer.tar.Z | tar xvf -&lt;/p&gt;&lt;p class="mobile-post"&gt;This will extract the contents of the archive into two directories,&lt;br /&gt;SUNWexplo and SUNWexplu, located in the current directory.&lt;/p&gt;&lt;p class="mobile-post"&gt;As superuser, type the following command:&lt;/p&gt;&lt;p class="mobile-post"&gt;# pkgadd -d . SUNWexplo SUNWexplu&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992238536556094?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992238536556094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992238536556094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992238536556094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992238536556094'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-do-i-install-sun-explorer.html' title='How do I install Sun Explorer'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992235729588711</id><published>2005-10-21T14:19:00.000-05:00</published><updated>2005-10-21T14:19:17.296-05:00</updated><title type='text'>Ethernet card woes</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: SUMMARY: Ethernet card woes&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks to everyone to replied!&lt;br /&gt;It turns out that /etc/inet/ipnodes had the old IP address&lt;br /&gt;set - thanks to Dale Hirchert for pointing that out.&lt;br /&gt;Also if I ran sys-unconfig it would have caught it aswell -&lt;br /&gt;thanks Dominic Clark&lt;/p&gt;&lt;p class="mobile-post"&gt;So for future reference either change the following files :&lt;br /&gt;/etc/inet/hosts&lt;br /&gt;/etc/inet/netmask&lt;br /&gt;/etc/inet/ipnodes&lt;/p&gt;&lt;p class="mobile-post"&gt;or run sys-unconfig.&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks again!&lt;/p&gt;&lt;p class="mobile-post"&gt; Will&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992235729588711?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992235729588711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992235729588711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992235729588711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992235729588711'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/ethernet-card-woes.html' title='Ethernet card woes'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992227229741085</id><published>2005-10-21T14:17:00.000-05:00</published><updated>2005-10-21T14:17:52.300-05:00</updated><title type='text'>read/ write performance on the volumes.</title><content type='html'>&lt;p class="mobile-post"&gt;Hi Greg,&lt;/p&gt;&lt;p class="mobile-post"&gt;I can't offer any suggestions , but I am interested in knowing how you&lt;br /&gt;are measuring the read/ write performance on the volumes. HDS tool? or&lt;br /&gt;something more common.&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks, V&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Hello,&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Just a quick info gathering. I am at a customer site installing a new&lt;br /&gt;&amp;gt; HDS 9990. The high level config overview:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; HDS 9990 (Open V 40GB LUNS)&lt;br /&gt;&amp;gt; HDS 9200 (Legacy Array)&lt;br /&gt;&amp;gt; Sun Fire v880&lt;br /&gt;&amp;gt; Brocade 4100's (2 Fabrics)&lt;br /&gt;&amp;gt; QLogic 2GB Cards (375-3102) to new SAN&lt;br /&gt;&amp;gt; JNI FCE2-6412 cards to old HDS 9200 Array&lt;br /&gt;&amp;gt; MPXIO enabled and configured for Round Robin&lt;br /&gt;&amp;gt; VxVM 4.1&lt;br /&gt;&amp;gt; Oracle 9i&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; During this phased implementation, we are in the date migration stage.&lt;br /&gt;&amp;gt; We are mirroring the old storage, which is from a HDS 9200 to the new&lt;br /&gt;&amp;gt; LUNS on the TS (9990).&lt;br /&gt;&amp;gt; Once the mirroring is complete, we will break of the plexes from the&lt;br /&gt;&amp;gt; old array and be fully migrated to the new Hitachi.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; The customer decided not to break the mirrors yet.  We have noticed a&lt;br /&gt;&amp;gt; decrease in write and read performance on all the volumes on the host.&lt;br /&gt;&amp;gt; I would expect a slight decrease in write performance, however, we are&lt;br /&gt;&amp;gt; seeing upto a 1/5 milli-second increase in read time as well on each of&lt;br /&gt;&amp;gt; the volumes. My assumption is that because of the double writes to two&lt;br /&gt;&amp;gt; different (types) of LUNS, that is impacting our reads.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Suggestions?&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi&lt;/p&gt;&lt;p class="mobile-post"&gt;I am using vxstat -g 'diskgroup' -i 1 (the -i is the interval I am&lt;br /&gt;polling, in this case every one second). This output is giving me a&lt;br /&gt;format like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;                        OPERATIONS           BLOCKS        AVG TIME(ms)&lt;br /&gt;TYP NAME      READ     WRITE      READ     WRITE   READ  WRITE&lt;/p&gt;&lt;p class="mobile-post"&gt;vol ora00            39364       388   4931856      6208    1.8    0.1&lt;br /&gt;vol ora00            39585       389   4950704      6224    1.9    0.0&lt;br /&gt;vol ora00            39571       391   4954960      6256    1.8    0.1&lt;/p&gt;&lt;p class="mobile-post"&gt;As for Solaris LUN metrics, I generally use iostat -xnpz 1, which is&lt;br /&gt;giving me the disk &amp;amp; tape I/O data and excluding any zero's.  It's a&lt;br /&gt;lot of information, so what I do is grep out what I am looking for, for&lt;br /&gt;example, iostat -xnpz 1 | grep c5t0d0.&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks,&lt;/p&gt;&lt;p class="mobile-post"&gt;Greg&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992227229741085?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992227229741085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992227229741085' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992227229741085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992227229741085'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/read-write-performance-on-volumes.html' title='read/ write performance on the volumes.'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992209958677660</id><published>2005-10-21T14:14:00.001-05:00</published><updated>2005-10-21T14:14:59.586-05:00</updated><title type='text'>cannot create /etc/foo: Operation not applicable</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: SUMMARY: cannot create /etc/foo: Operation not applicable&lt;/p&gt;&lt;p class="mobile-post"&gt;Original question:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; On a Solaris 8 system running fine for two months, I suddenly get this:&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; # touch /etc/foo&lt;br /&gt;&amp;gt; touch: cannot create /etc/foo: Operation not applicable&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Truss says:&lt;br /&gt;&amp;gt; creat("/etc/foo", 0666)                         Err#89 ENOSYS&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; I also noted truncated files in /etc.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; There is nothing interesting in the system log. System is a V210 running&lt;br /&gt;&amp;gt; Solaris 8 with recommended patches from feb. 28 2005. Root filesystem is&lt;br /&gt;&amp;gt; mirrored using SVM.&lt;/p&gt;&lt;p class="mobile-post"&gt;The responses I received include:&lt;/p&gt;&lt;p class="mobile-post"&gt;- Are you out of disk space&lt;br /&gt;- Are you out of inodes&lt;br /&gt;- Do you have the same problem on other partitions like /var or /opt&lt;br /&gt;- Are you running the automounter&lt;br /&gt;- Are the permissions wrong on /etc&lt;br /&gt;- Is the "touch" command malfunctioning&lt;br /&gt;- Is the root filesystem mounted read-only&lt;br /&gt;- Are you also unable to modify files in /etc&lt;br /&gt;- Does your metastat output show weird things&lt;br /&gt;- Do you already have a file name "foo" in /etc&lt;/p&gt;&lt;p class="mobile-post"&gt;The answer is "no" to all these points. So I requested downtime with the&lt;br /&gt;customer to bring the system into single-user mode to do a filesystem check.&lt;br /&gt;As expected, many errors showed up, but it was able to repair the root&lt;br /&gt;filesystem and the system is running fine now.&lt;/p&gt;&lt;p class="mobile-post"&gt;I also logged a case with Sun Support about this issue. They sent me two&lt;br /&gt;documents from SunSolve that describe common reasons for filesystem&lt;br /&gt;corruption. Since the call is closed now I cannot retrieve the document&lt;br /&gt;ID's, sorry for that. The only two reasons that remain after reading these&lt;br /&gt;documents are:&lt;/p&gt;&lt;p class="mobile-post"&gt;- Applications use the unlink(2) system call without checking if the&lt;br /&gt;  directory is empty. This is a classical UNIX problem.&lt;br /&gt;- Bugs in the O.S.&lt;/p&gt;&lt;p class="mobile-post"&gt;I have no idea how to check if some of the running processes are misusing&lt;br /&gt;unlink(2). Maybe dtrace can do this, but this is a Solaris 8 system. As for&lt;br /&gt;bugs in the OS, I haven't found applicable ones on SunSolve.&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks to all who replied.&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;br /&gt;Koef.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992209958677660?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992209958677660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992209958677660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992209958677660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992209958677660'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/cannot-create-etcfoo-operation-not.html' title='cannot create /etc/foo: Operation not applicable'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992206376821555</id><published>2005-10-21T14:14:00.000-05:00</published><updated>2005-10-21T14:14:23.783-05:00</updated><title type='text'>Question about Sun patch: How to find out what patches I've just installed</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: SUMMARY: Question about Sun patch: How to find out what&lt;br /&gt;        patches I've just installed&lt;/p&gt;&lt;p class="mobile-post"&gt;Many thanks to everybody who replied. You know who&lt;br /&gt;you are :-)&lt;/p&gt;&lt;p class="mobile-post"&gt;Original quesiton:&lt;br /&gt;I need to install a bunch of Sun patches into a&lt;br /&gt;Solaris 8 system. How do I find out the list of Sun&lt;br /&gt;patches I just installed (using patchadd patch#)&lt;/p&gt;&lt;p class="mobile-post"&gt;Answers:&lt;br /&gt;1. #ls -ltr /var/sadm/patch|tail -xx&lt;br /&gt;where xx is the # of patches I've just installed&lt;br /&gt;(ie if I installed 20 patches, then the xx number&lt;br /&gt;will be 20; for example)&lt;/p&gt;&lt;p class="mobile-post"&gt;2. #showrev -p|egrep 'patch #1|patch #2|patch #3'&lt;br /&gt;etc..&lt;br /&gt;where patch #1,2,3 are the 3 patches I've just&lt;br /&gt;installed&lt;/p&gt;&lt;p class="mobile-post"&gt;"showrev -p" alone won't cut it (but otherwise is&lt;br /&gt;technically correct) because the output&lt;br /&gt;includes too many previous patches. It will be kind&lt;br /&gt;of hard to verify which one.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992206376821555?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992206376821555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992206376821555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992206376821555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992206376821555'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/question-about-sun-patch-how-to-find.html' title='Question about Sun patch: How to find out what patches I&apos;ve just installed'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992201215392326</id><published>2005-10-21T14:13:00.000-05:00</published><updated>2005-10-21T14:13:32.153-05:00</updated><title type='text'>logical volume problem</title><content type='html'>&lt;p class="mobile-post"&gt;logical volume problem&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi all,&lt;br /&gt;I am using veritas VM 3.5. When I want to create a raid 5 volume by the&lt;br /&gt;following command,&lt;/p&gt;&lt;p class="mobile-post"&gt;bash-2.05# vxassist -g diskgroup make vol-1 10m layout=raid5&lt;br /&gt;vxvm:vxassist: ERROR: Too few disks for striping; at least 4 disks are&lt;br /&gt;needed&lt;br /&gt;bash-2.05# vxdisk -g diskgroup list&lt;br /&gt;DEVICE       TYPE      DISK         GROUP        STATUS&lt;br /&gt;c2t1d0s2     sliced    diskgro02    diskgroup    online&lt;br /&gt;c2t2d0s2     sliced    diskgro03    diskgroup    online&lt;br /&gt;c2t3d0s2     sliced    diskgro01    diskgroup    online&lt;/p&gt;&lt;p class="mobile-post"&gt;I get the error "ERROR: Too few disks for striping; at least 4 disks".&lt;br /&gt;Raid 5 only need 3 disk. Why?&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;Because there are some interesting failure modes where a crash can occur&lt;br /&gt;in the middle of a write, leaving you not knowing if parity is right or&lt;br /&gt;wrong.  Combined with a disk error, you can have problems.&lt;/p&gt;&lt;p class="mobile-post"&gt;To get around that failure mode, the default for a raid5 construction&lt;br /&gt;with vxassist is to create an additional log device which is not on any&lt;br /&gt;disk shared with the raid5 data.  It's small, but must be on a separate&lt;br /&gt;disk.  There might be a way of using the same disk but replicating it.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you don't want the log disk, you can specify 'nolog' or 'noraid5log',&lt;br /&gt;then it will only need 3 columns.&lt;/p&gt;&lt;p class="mobile-post"&gt;vxassist -g diskgroup make vol-1 10m layout=raid5,nolog&lt;/p&gt;&lt;p class="mobile-post"&gt;     log, nolog&lt;br /&gt;               Creates (or does not  create)  dirty  region  logs&lt;br /&gt;               (for  mirrored  volumes) or log plexes (for RAID-5&lt;br /&gt;               volumes) when creating a new volume.  This  attri-&lt;br /&gt;               bute  can  be specified independently for mirrored&lt;br /&gt;               and RAID-5 volumes with the raid5log and regionlog&lt;br /&gt;               layout  specifications. The current implementation&lt;br /&gt;               does not support the creation of DCM logs  in  the&lt;br /&gt;               layout specification.&lt;/p&gt;&lt;p class="mobile-post"&gt;     raid5log, noraid5log&lt;br /&gt;               Creates (default) or does not  create  log  plexes&lt;br /&gt;               for RAID-5 volumes.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992201215392326?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992201215392326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992201215392326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992201215392326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992201215392326'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/logical-volume-problem.html' title='logical volume problem'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992196406256327</id><published>2005-10-21T14:12:00.000-05:00</published><updated>2005-10-21T14:12:44.063-05:00</updated><title type='text'>restored filesystem - comparison to original</title><content type='html'>&lt;p class="mobile-post"&gt;restored filesystem - comparison to original&lt;/p&gt;&lt;p class="mobile-post"&gt;Having devised and operated a backup scheme and schedule since the start of the&lt;br /&gt;month, I'd quite like to perform a restoration in order to test it.&lt;/p&gt;&lt;p class="mobile-post"&gt;I will restore the file system to a separate disk than the original,&lt;/p&gt;&lt;p class="mobile-post"&gt;But what's the "best" way to compare the two so I can be sure the scheme I have&lt;br /&gt;devised is capable of backing up properly, but also my proposed restore&lt;br /&gt;mechanism, restores properly.&lt;/p&gt;&lt;p class="mobile-post"&gt;The fs in question is only 1GB at present. So any suggested comparison can be&lt;br /&gt;time consuming in nature.....&lt;/p&gt;&lt;p class="mobile-post"&gt;I'd obviously like to check for missing files/directories and errors with&lt;br /&gt;ownerships, permissions, ACLs, and timestamps...&lt;/p&gt;&lt;p class="mobile-post"&gt;How do I go about this?&lt;/p&gt;&lt;p class="mobile-post"&gt;Cheers&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Rob&lt;/p&gt;&lt;p class="mobile-post"&gt;running tripwire on the orignal and the copy  comes to mind.&lt;br /&gt;then compare the output tripwire databases.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; with ownerships, permissions, ACLs, and timestamps...&lt;/p&gt;&lt;p class="mobile-post"&gt;You could try the filesync tool with the "-n" option, which will make&lt;br /&gt;it just find the differences and not attempt to make changes.  If you&lt;br /&gt;back up /foo and restore it into /restore/foo, then the filesync command&lt;br /&gt;would be something like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;        filesync -n -ame -fsrc -s / -d /restore foo&lt;/p&gt;&lt;p class="mobile-post"&gt;The "-n" means not to make any changes, the "-aem" means to check&lt;br /&gt;ACLs and modification times and flag everything found (even if it&lt;br /&gt;can't be changed, the "-fsrc" means to consider the source directory&lt;br /&gt;to be the authoritative one, "-s" specifies the directory that&lt;br /&gt;CONTAINS the source thingy to be synchronized, "-d" specifies the&lt;br /&gt;directory that contains the destination thing to be synced, and&lt;br /&gt;"foo" is the thing to be synced.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you wanted to compare all of "/" against something contained&lt;br /&gt;in "/" (such as "/restore"), you could type this in ksh or bash:&lt;/p&gt;&lt;p class="mobile-post"&gt;        cd /&lt;br /&gt;        filesync -n -ame -fsrc -s / -d /restore ./&lt;/p&gt;&lt;p class="mobile-post"&gt;Then when the cursor is at the end of the line, do ESC then "*" in&lt;br /&gt;vi mode or Meta-"*" in emacs mode, and it will expand the list of&lt;br /&gt;files, at which point you can delete "restore" from the list.  (If&lt;br /&gt;you don't delete "restore" from the list, it will think everything&lt;br /&gt;in "restore" should be in "restore/restore", which make will cause&lt;br /&gt;the output to be filled with extraneous stuff.)&lt;/p&gt;&lt;p class="mobile-post"&gt;   - Logan&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;I will restore the file system to a separate disk than the original,&lt;/p&gt;&lt;p class="mobile-post"&gt;The best way is to use "star" to compare both filesystems&lt;br /&gt;as it is the only known program that is able to compare _all_&lt;br /&gt;file properties and meta-data (except for Extended attribute files).&lt;/p&gt;&lt;p class="mobile-post"&gt;As I currently know nobody who uses Extended attribute files, I am&lt;br /&gt;sure that this will fit your needs.&lt;/p&gt;&lt;p class="mobile-post"&gt;Call:&lt;/p&gt;&lt;p class="mobile-post"&gt;star -c -diff -vv -dump -acl -sparse diffopts=!atime,ctime,lmtime -C&lt;br /&gt;fromdir . todir&lt;/p&gt;&lt;p class="mobile-post"&gt;BTW: This is also the fastest known method and if you like to copy&lt;br /&gt;a filesystem, a similar method will copy the fs very fast.&lt;/p&gt;&lt;p class="mobile-post"&gt;Also have a look at star when doing incremental dumps.&lt;br /&gt;It might be more interesting for you than ufsdump/ufsrstore.&lt;/p&gt;&lt;p class="mobile-post"&gt;ftp://ftp.berlios.de/pub/star/alpha/&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992196406256327?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992196406256327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992196406256327' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992196406256327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992196406256327'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/restored-filesystem-comparison-to.html' title='restored filesystem - comparison to original'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992186499454917</id><published>2005-10-21T14:11:00.000-05:00</published><updated>2005-10-21T14:11:04.993-05:00</updated><title type='text'>How to free virtual memory</title><content type='html'>&lt;p class="mobile-post"&gt;Re: How to free virtual memory&lt;/p&gt;&lt;p class="mobile-post"&gt;Looks like some process is leaking memory continously. The process&lt;br /&gt;needs to fix it, use some open source tool like valgrind to find out&lt;br /&gt;which process is leaking memory&lt;/p&gt;&lt;p class="mobile-post"&gt;Regards,&lt;br /&gt;Chinmoy&lt;br /&gt;For free software books visit http://geocities.com/freesoftwarebooks&lt;/p&gt;&lt;p class="mobile-post"&gt;we deployed a Seebeyond project in Unix Machine in that&lt;br /&gt;i have problem of excceding the virtual memory,the virtual memory is&lt;br /&gt;keep on incresing ,at some point it is strucking up the unix server,&lt;/p&gt;&lt;p class="mobile-post"&gt;is there any way to free the virtual memomry faster,&lt;br /&gt;and can we stop the incresing of virtual memory&lt;/p&gt;&lt;p class="mobile-post"&gt;i need some urgently&lt;/p&gt;&lt;p class="mobile-post"&gt;Regards&lt;br /&gt;Rambabu.Y&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992186499454917?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992186499454917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992186499454917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992186499454917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992186499454917'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-to-free-virtual-memory.html' title='How to free virtual memory'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992183258877092</id><published>2005-10-21T14:10:00.001-05:00</published><updated>2005-10-21T14:10:32.590-05:00</updated><title type='text'>Tuning the I/O Subsystem</title><content type='html'>&lt;p class="mobile-post"&gt;Tuning the I/O Subsystem&lt;/p&gt;&lt;p class="mobile-post"&gt;I/O is probably one of the most common problems facing Oracle users.&lt;br /&gt;In many cases, the performance of the system is entirely limited by&lt;br /&gt;disk I/O. In some cases, the system actually becomes idle waiting for&lt;br /&gt;disk requests to complete. We say that these systems are I/O bound or&lt;br /&gt;disk bound.&lt;/p&gt;&lt;p class="mobile-post"&gt;As you see in Chapter 14, "Advanced Disk I/O Concepts," disks have&lt;br /&gt;certain inherent limitations that cannot be overcome. Therefore, the&lt;br /&gt;way to deal with disk I/O issues is to understand the limitations of&lt;br /&gt;the disks and design your system with these limitations in mind.&lt;br /&gt;Knowing the performance characteristics of your disks can help you in&lt;br /&gt;the design stage.&lt;/p&gt;&lt;p class="mobile-post"&gt;Optimizing your system for I/O should happen during the design stage.&lt;br /&gt;As you see in Part III, "Configuring the System," different types of&lt;br /&gt;systems have different I/O patterns and require different I/O designs.&lt;br /&gt;Once the system is built, you should first tune for memory and then&lt;br /&gt;tune for disk I/O. The reason you tune in this order is to make sure&lt;br /&gt;that you are not dealing with excessive cache misses, which cause&lt;br /&gt;additional I/Os.&lt;/p&gt;&lt;p class="mobile-post"&gt;The strategy for tuning disk I/O is to keep all drives within their&lt;br /&gt;physical limits. Doing so reduces queuing time—and thus increases&lt;br /&gt;performance. In your system, you may find that some disks process many&lt;br /&gt;more I/Os per second than other disks. These disks are called "hot&lt;br /&gt;spots." Try to reduce hot spots whenever possible. Hot spots occur&lt;br /&gt;whenever there is a lot of contention on a single disk or set of&lt;br /&gt;disks.&lt;br /&gt;Understanding Disk Contention&lt;/p&gt;&lt;p class="mobile-post"&gt;Disk contention occurs whenever the physical limitations of a disk&lt;br /&gt;drive are reached and other processes have to wait. Disk drives are&lt;br /&gt;mechanical and have a physical limitation on both disk seeks per&lt;br /&gt;second and throughput. If you exceed these limitations, you have no&lt;br /&gt;choice but to wait.&lt;/p&gt;&lt;p class="mobile-post"&gt;You can find out if you are exceeding these limits both through&lt;br /&gt;Oracle's file I/O statistics and through operating system statistics.&lt;br /&gt;This chapter looks at the Oracle statistics; Chapter 12, "Operating&lt;br /&gt;System-Specific Tuning," looks at the operating system statistics for&lt;br /&gt;some popular systems.&lt;/p&gt;&lt;p class="mobile-post"&gt;Although the Oracle statistics give you an accurate picture of how&lt;br /&gt;many I/Os have taken place for a particular data file, they may not&lt;br /&gt;accurately represent the entire disk because other activity outside of&lt;br /&gt;Oracle may be incurring disk I/Os. Remember that you must correlate&lt;br /&gt;the Oracle data file to the physical disk on which it resides.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992183258877092?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992183258877092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992183258877092' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992183258877092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992183258877092'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/tuning-io-subsystem.html' title='Tuning the I/O Subsystem'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992180760963853</id><published>2005-10-21T14:10:00.000-05:00</published><updated>2005-10-21T14:10:07.610-05:00</updated><title type='text'>debugging RC scripts. solaris9</title><content type='html'>&lt;p class="mobile-post"&gt;debugging RC scripts. solaris9&lt;/p&gt;&lt;p class="mobile-post"&gt;I can remember how to debug the startup scripts. Can someone help me&lt;br /&gt;out here. I just want Solaris to report what startup script it is&lt;br /&gt;currently executing. I thought it was as simple as adding a "+" to the&lt;br /&gt;/etc/rc* script but that didnt work.&lt;/p&gt;&lt;p class="mobile-post"&gt;There's no really simple way to do this.  You may be thinking of adding&lt;br /&gt;set -x to /etc/rc?, but that gets overly verbose for me.&lt;/p&gt;&lt;p class="mobile-post"&gt;Often I've made a small edit to /etc/rc?.  There's a startup loop in&lt;br /&gt;there where it runs /bin/sh $f start or so for each of the scripts.&lt;br /&gt;Just add a "echo starting $f" and a "echo done starting $" inside the&lt;br /&gt;"if" and outside the "case" statements.  (and make a backup!).  Then you&lt;br /&gt;can tell what it's trying to do and where it hangs.&lt;/p&gt;&lt;p class="mobile-post"&gt;Once there, you can make that one script more verbose.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you were running Solaris 10, you could use 'boot -m verbose'.&lt;/p&gt;&lt;p class="mobile-post"&gt;-&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992180760963853?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992180760963853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992180760963853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992180760963853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992180760963853'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/debugging-rc-scripts-solaris9.html' title='debugging RC scripts. solaris9'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992175710675789</id><published>2005-10-21T14:09:00.000-05:00</published><updated>2005-10-21T14:09:17.106-05:00</updated><title type='text'>statvfs / df bug?</title><content type='html'>&lt;p class="mobile-post"&gt;statvfs / df bug?&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi all,&lt;br /&gt;I am trying to get the filesystem information using statvfs/df. I have&lt;br /&gt;an automounted partition mounted on /mntauto. I am running SunOS 5.8&lt;/p&gt;&lt;p class="mobile-post"&gt;If I say 'df -k /mntauto', I get the following output:&lt;br /&gt;--------&lt;br /&gt;bash-2.03# df -k /mntauto&lt;br /&gt;Filesystem            kbytes    used   avail capacity  Mounted on&lt;br /&gt;cpsupsun1:/mntauto    482455      10  434200     1%    /mntauto&lt;br /&gt;--------&lt;/p&gt;&lt;p class="mobile-post"&gt;I have written two different programs using 'statvfs' to print the&lt;br /&gt;filesystem information. Following is the putput fron these two&lt;br /&gt;different programs:&lt;/p&gt;&lt;p class="mobile-post"&gt;Program 1:&lt;br /&gt;main() {&lt;br /&gt;  struct statvfs info;&lt;/p&gt;&lt;p class="mobile-post"&gt;  access("/mntauto",F_OK);&lt;/p&gt;&lt;p class="mobile-post"&gt;  if (-1 == statvfs("/", &amp;amp;info))&lt;br /&gt;    perror("statvfs() error");&lt;br /&gt;  else {&lt;br /&gt;    puts("statvfs() returned the following information");&lt;br /&gt;    puts("about the ('/mntauto') file system:");&lt;br /&gt;    printf("  f_bsize    : %u\n", info.f_bsize);&lt;br /&gt;    printf("  f_blocks   : %u\n", info.f_blocks);&lt;br /&gt;    printf("  f_bfree    : %u\n", info.f_bfree );&lt;br /&gt;    printf("  f_bavail   : %u\n", info.f_bavail);&lt;br /&gt;    printf("  f_files    : %u\n", info.f_files);&lt;br /&gt;    printf("  f_ffree    : %u\n", info.f_ffree);&lt;br /&gt;    printf("  f_fsid     : %u\n", info.f_fsid);&lt;br /&gt;    printf("  f_flag     : %X\n", info.f_flag);&lt;br /&gt;    printf("  f_namemax  : %u\n", info.f_namemax);&lt;br /&gt;    printf("  f_basetype : %s\n", info.f_basetype);&lt;br /&gt;    printf("  f_fstr     : %s\n", info.f_fstr);&lt;/p&gt;&lt;p class="mobile-post"&gt;  }&lt;/p&gt;&lt;p class="mobile-post"&gt;}&lt;/p&gt;&lt;p class="mobile-post"&gt;Output:&lt;br /&gt;statvfs() returned the following information&lt;br /&gt;about the ('/mntauto') file system:&lt;br /&gt;  f_bsize    : 8192&lt;br /&gt;  f_blocks   : 4129290&lt;br /&gt;  f_bfree    : 3026760&lt;br /&gt;  f_bavail   : 2985468&lt;br /&gt;  f_files    : 512512&lt;br /&gt;  f_ffree    : 507103&lt;br /&gt;  f_fsid     : 8388608&lt;br /&gt;  f_flag     : 4&lt;br /&gt;  f_namemax  : 255&lt;br /&gt;  f_basetype : ufs&lt;br /&gt;  f_fstr     :&lt;/p&gt;&lt;p class="mobile-post"&gt;Program 2:&lt;/p&gt;&lt;p class="mobile-post"&gt;main() {&lt;br /&gt;  struct statvfs info;&lt;br /&gt;struct stat sb;&lt;/p&gt;&lt;p class="mobile-post"&gt;    if (stat("/mntauto/log", &amp;amp;sb) &amp;lt; 0)&lt;br /&gt;        printf("stat failed\n");&lt;/p&gt;&lt;p class="mobile-post"&gt;    if (S_ISDIR(sb.st_mode))&lt;br /&gt;        printf("Dir\n");&lt;br /&gt;    else&lt;br /&gt;        printf("Not a dir\n");&lt;/p&gt;&lt;p class="mobile-post"&gt;  if (-1 == statvfs("/mntauto", &amp;amp;info))&lt;br /&gt;    perror("statvfs() error");&lt;br /&gt;  else {&lt;br /&gt;    puts("statvfs() returned the following information");&lt;br /&gt;    puts("about the ('/mntauto') file system:");&lt;br /&gt;    printf("  f_bsize    : %u\n", info.f_bsize);&lt;br /&gt;    printf("  f_blocks   : %u\n", info.f_blocks);&lt;br /&gt;    printf("  f_bfree    : %u\n", info.f_bfree );&lt;br /&gt;    printf("  f_bfree    : %u\n", info.f_bavail);&lt;br /&gt;    printf("  f_files    : %u\n", info.f_files);&lt;br /&gt;    printf("  f_ffree    : %u\n", info.f_ffree);&lt;br /&gt;    printf("  f_fsid     : %u\n", info.f_fsid);&lt;br /&gt;    printf("  f_flag     : %X\n", info.f_flag);&lt;br /&gt;    printf("  f_namemax  : %u\n", info.f_namemax);&lt;br /&gt;    printf("  f_basetype : %s\n", info.f_basetype);&lt;br /&gt;    printf("  f_fstr     : %s\n", info.f_fstr);&lt;br /&gt;  }&lt;/p&gt;&lt;p class="mobile-post"&gt;}&lt;/p&gt;&lt;p class="mobile-post"&gt;Output:&lt;br /&gt;Dir&lt;br /&gt;statvfs() returned the following information&lt;br /&gt;about the ('/mntauto') file system:&lt;br /&gt;  f_bsize    : 8192&lt;br /&gt;  f_blocks   : 964910&lt;br /&gt;  f_bfree    : 964890&lt;br /&gt;  f_bfree    : 868400&lt;br /&gt;  f_files    : 247296&lt;br /&gt;  f_ffree    : 247290&lt;br /&gt;  f_fsid     : 80740364&lt;br /&gt;  f_flag     : 0&lt;br /&gt;  f_namemax  : 4294967295&lt;br /&gt;  f_basetype : nfs&lt;br /&gt;  f_fstr     :&lt;/p&gt;&lt;p class="mobile-post"&gt;Could anyone please explain me the differences between the above&lt;br /&gt;outputs? I assume all of the above should print the same answer...Is&lt;br /&gt;this a know bug of statvfs?&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks in advance,&lt;br /&gt;Tushar.&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;	&lt;br /&gt;My apologies.&lt;br /&gt;I got the error!&lt;br /&gt;It was a typo...&lt;/p&gt;&lt;p class="mobile-post"&gt;I would say everything is working okay.&lt;br /&gt;Program 1 does a statvfs of "/" and program 2 calls statvfs for "/mntauto".&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992175710675789?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992175710675789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992175710675789' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992175710675789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992175710675789'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/statvfs-df-bug.html' title='statvfs / df bug?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992166721494323</id><published>2005-10-21T14:07:00.001-05:00</published><updated>2005-10-21T14:07:47.213-05:00</updated><title type='text'>use telnet command in a shell script</title><content type='html'>&lt;p class="mobile-post"&gt;Re: use telnet command in a shell script&lt;/p&gt;&lt;p class="mobile-post"&gt;I would use ssh instead of telnet setup a connection with keys so that&lt;br /&gt;the connection does not require a password (man ssh to find out how)&lt;br /&gt;then call it as follows&lt;/p&gt;&lt;p class="mobile-post"&gt;ssh hostname -l username "command" | tee -a output.txt&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992166721494323?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992166721494323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992166721494323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992166721494323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992166721494323'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/use-telnet-command-in-shell-script.html' title='use telnet command in a shell script'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992163970296856</id><published>2005-10-21T14:07:00.000-05:00</published><updated>2005-10-21T14:07:19.703-05:00</updated><title type='text'>fsck</title><content type='html'>&lt;p class="mobile-post"&gt;&amp;gt; Our system is backed up to tape each night. Unfortunately our Sys Eng&lt;br /&gt;&amp;gt; is on holidays and I do not know how to recover from tape.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Could you walk me through it please.&lt;/p&gt;&lt;p class="mobile-post"&gt;There are lots of ways to do it.  Without knowing which your system&lt;br /&gt;admin chose, it's really hard to give you any useful information.&lt;/p&gt;&lt;p class="mobile-post"&gt;The most likely thing is that you need to use something like&lt;br /&gt;"mt -f /dev/rmt/0n asf 2" to move to file #2 on the tape (the&lt;br /&gt;number 2 is just a random number picked; you'll have to determine&lt;br /&gt;where the backup of the filesystem you need is located on the&lt;br /&gt;tape and use that number instead).  Then you'd change to some&lt;br /&gt;directory (like /tmp or some place with lots of space) and do&lt;br /&gt;a "ufsrestore ivf /dev/rmt/0n".  Then use "cd", "ls", and "pwd"&lt;br /&gt;to navigate, "add" and "delete" to select which files to extract,&lt;br /&gt;and "extract" (whose prompt you should answer with "1") to extract&lt;br /&gt;them from the tape.  Oh, and then "mt -f /dev/rmt/0n offline" to&lt;br /&gt;rewind and eject the tape.&lt;/p&gt;&lt;p class="mobile-post"&gt;Of course, this assumes that the administrator chose to use ufsdump&lt;br /&gt;to back up the files, which is definitely not a given.  Also, it is&lt;br /&gt;quite possible that the administrator chose to do incremental&lt;br /&gt;backups, so if that is the case, you may need to restore from a full&lt;br /&gt;backup tape *and* an incremental backup tapem, which makes things&lt;br /&gt;even more complicated.  It's really hard to know what the right&lt;br /&gt;thing to do is without knowing what backup scheme the administrator&lt;br /&gt;chose for that system.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992163970296856?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992163970296856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992163970296856' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992163970296856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992163970296856'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/fsck.html' title='fsck'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992156819918947</id><published>2005-10-21T14:06:00.000-05:00</published><updated>2005-10-21T14:06:08.200-05:00</updated><title type='text'>if I do a metadb -a /dev/dsk/c0t0d0s4</title><content type='html'>&lt;p class="mobile-post"&gt; i.e. if I do a metadb -a /dev/dsk/c0t0d0s4 will it just add another&lt;br /&gt;&amp;gt; database replica into the slice?&lt;/p&gt;&lt;p class="mobile-post"&gt;No.  You'll have to delete all the replicas in one slice, then create&lt;br /&gt;all the replicas at one time.&lt;/p&gt;&lt;p class="mobile-post"&gt;metadb -d /dev/dsk/c0t0d0s4&lt;br /&gt;metadb -a -c 2 /dev/dsk/c0t0d0s4&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992156819918947?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992156819918947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992156819918947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992156819918947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992156819918947'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/if-i-do-metadb-devdskc0t0d0s4.html' title='if I do a metadb -a /dev/dsk/c0t0d0s4'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992153304500435</id><published>2005-10-21T14:05:00.000-05:00</published><updated>2005-10-21T14:05:33.046-05:00</updated><title type='text'>Tape Control -the mt Command:</title><content type='html'>&lt;p class="mobile-post"&gt;Tape Control -the mt Command:&lt;/p&gt;&lt;p class="mobile-post"&gt;This assume that the device is at the 0 address.&lt;/p&gt;&lt;p class="mobile-post"&gt;Shows whether device is valid, whether tape is loaded, and status of tape&lt;/p&gt;&lt;p class="mobile-post"&gt;mt -f /dev/rmt/0 status:&lt;/p&gt;&lt;p class="mobile-post"&gt;Rewinds tape to start&lt;/p&gt;&lt;p class="mobile-post"&gt;mt -f /dev/rmt/0 rewind:&lt;/p&gt;&lt;p class="mobile-post"&gt;Shows table of contents of archive. If tar tvf produces an error, then&lt;br /&gt;there are no more records on the tape.&lt;/p&gt;&lt;p class="mobile-post"&gt;tar tvf /dev/rmt/0:&lt;/p&gt;&lt;p class="mobile-post"&gt;Advanced to the next archive on the tape.&lt;/p&gt;&lt;p class="mobile-post"&gt;mt -f /dev/rmt/0 fsf:&lt;/p&gt;&lt;p class="mobile-post"&gt;Moves the tape to the end of the last archive that it can detect.&lt;/p&gt;&lt;p class="mobile-post"&gt;mt -f /dev/rmt/0 eom:&lt;/p&gt;&lt;p class="mobile-post"&gt;Erases the tape. Use with care.&lt;/p&gt;&lt;p class="mobile-post"&gt;mt -f /dev/rmt/0 erase:&lt;/p&gt;&lt;p class="mobile-post"&gt;Ejects the tape, if the device supports that option.&lt;/p&gt;&lt;p class="mobile-post"&gt;mt -f /dev/rmt/0 offline:&lt;/p&gt;&lt;p class="mobile-post"&gt;To extract lengthy archives even if you plan to log out, use the nohup&lt;br /&gt;command as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt;nohup tar xvf /dev/rmt/0 &amp;amp;&lt;/p&gt;&lt;p class="mobile-post"&gt;Identify the tape device&lt;/p&gt;&lt;p class="mobile-post"&gt;dmesg | grep st&lt;/p&gt;&lt;p class="mobile-post"&gt;Check the status of the tape drive&lt;/p&gt;&lt;p class="mobile-post"&gt;mt -f /dev/rmt/0 status&lt;/p&gt;&lt;p class="mobile-post"&gt;Tarring files to a tape&lt;/p&gt;&lt;p class="mobile-post"&gt;tar cvf /dev/rmt/0 *&lt;/p&gt;&lt;p class="mobile-post"&gt;Cpioing files to a tape&lt;/p&gt;&lt;p class="mobile-post"&gt;find . -print | cpio -ovcB &amp;gt; /dev/rmt/0&lt;/p&gt;&lt;p class="mobile-post"&gt;Viewing cpio files on a tape&lt;/p&gt;&lt;p class="mobile-post"&gt;cpio -ivtB &amp;lt; /dev/rmt/0&lt;/p&gt;&lt;p class="mobile-post"&gt;Restoring a cpio&lt;/p&gt;&lt;p class="mobile-post"&gt;cpio -ivcB &amp;lt; /dev/rmt/0&lt;/p&gt;&lt;p class="mobile-post"&gt;To compress a file&lt;/p&gt;&lt;p class="mobile-post"&gt;compress -v some.file&lt;/p&gt;&lt;p class="mobile-post"&gt;To uncompress a file&lt;/p&gt;&lt;p class="mobile-post"&gt;uncompress some.file.Z&lt;/p&gt;&lt;p class="mobile-post"&gt;To encode a file&lt;/p&gt;&lt;p class="mobile-post"&gt;uuencode some.file.Z some.file.Z&lt;/p&gt;&lt;p class="mobile-post"&gt;To unencode a file&lt;/p&gt;&lt;p class="mobile-post"&gt;uudecode some.file.Z some.file.Z&lt;/p&gt;&lt;p class="mobile-post"&gt;To dump a disk slice using ufsdump&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsdump 0cvf /dev/rmt/0 /dev/rdsk/c0t0d0s0&lt;br /&gt;or&lt;br /&gt;ufsdump 0cvf /dev/rmt/0 /export/home&lt;/p&gt;&lt;p class="mobile-post"&gt;To restore a dump with ufsrestore&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsrestore rvf /dev/rmt/0&lt;/p&gt;&lt;p class="mobile-post"&gt;To duplicate a disk slice directly&lt;/p&gt;&lt;p class="mobile-post"&gt;ufsdump 0f - /dev/rdsk/c0t0d0s7 |(cd /home;ufsrestore xf -)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992153304500435?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992153304500435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992153304500435' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992153304500435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992153304500435'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/tape-control-mt-command.html' title='Tape Control -the mt Command:'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12965617.post-112992149941878173</id><published>2005-10-21T14:04:00.002-05:00</published><updated>2005-10-21T14:04:59.420-05:00</updated><title type='text'>Mirror Removal</title><content type='html'>&lt;p class="mobile-post"&gt;How To: Mirror Removal&lt;/p&gt;&lt;p class="mobile-post"&gt;To remove a mirror from a volume (i.e., to remove one of the plexes&lt;br /&gt;that belongs to the volume), run the following command:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxplex -o rm dis&lt;/p&gt;&lt;p class="mobile-post"&gt;Any associated subdisks will then become available for other uses. To&lt;br /&gt;remove the disk from Volume Manager control entirely, run the&lt;br /&gt;following command:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxdisk rm&lt;/p&gt;&lt;p class="mobile-post"&gt;For example, "vxdisk rm c1t1d0s2".&lt;/p&gt;&lt;p class="mobile-post"&gt;How To: Mirror Backup&lt;/p&gt;&lt;p class="mobile-post"&gt;The following techniques can be used to backup mirrored volumes by&lt;br /&gt;temporarily taking one of the mirrors offline and then reattaching the&lt;br /&gt;mirror to the volume once the backup has been run.&lt;/p&gt;&lt;p class="mobile-post"&gt;1. Disassociate one of the mirrors from the volume to be backed up:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxplex dis&lt;/p&gt;&lt;p class="mobile-post"&gt;2. Create a new, temporary volume using the disassociated plex:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxmake -g -U gen vol tempvol plex=&lt;/p&gt;&lt;p class="mobile-post"&gt;3. Start the new volume:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxvol start tempvol&lt;/p&gt;&lt;p class="mobile-post"&gt;4. Clean the new volume before mounting:&lt;/p&gt;&lt;p class="mobile-post"&gt;fsck -y /dev/vx/rdsk//tempvol&lt;/p&gt;&lt;p class="mobile-post"&gt;5. Mount the new volume and perform the backup&lt;/p&gt;&lt;p class="mobile-post"&gt;6. Unmount the new volume&lt;/p&gt;&lt;p class="mobile-post"&gt;7. Stop the new volume:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxvol stop tempvol&lt;/p&gt;&lt;p class="mobile-post"&gt;8. Disassociate the plex from the new volume:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxplex dis&lt;/p&gt;&lt;p class="mobile-post"&gt;9. Reattach the plex to the original volume:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxplex att&lt;/p&gt;&lt;p class="mobile-post"&gt;10. Delete the temporary volume:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxedit rm tempvol&lt;/p&gt;&lt;p class="mobile-post"&gt;To display the current Veritas configuration, use the following command:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxprint&lt;/p&gt;&lt;p class="mobile-post"&gt;To monitor the progress of tasks, use the following command:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxtask -l list&lt;/p&gt;&lt;p class="mobile-post"&gt;To display information related to plexes, run the following command:&lt;/p&gt;&lt;p class="mobile-post"&gt;vxprint -lp&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992149941878173?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992149941878173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992149941878173' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992149941878173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992149941878173'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/mirror-removal.html' title='Mirror Removal'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992146966979762</id><published>2005-10-21T14:04:00.001-05:00</published><updated>2005-10-21T14:04:29.680-05:00</updated><title type='text'>Fixing Corrupted Files and wtmpx Errors</title><content type='html'>&lt;p class="mobile-post"&gt;Fixing Corrupted Files and wtmpx Errors&lt;/p&gt;&lt;p class="mobile-post"&gt;Unfortunately, system accounting is not foolproof. Occasionally, a&lt;br /&gt;file becomes corrupted or lost. Some of the files can simply be&lt;br /&gt;ignored or restored from backup. However, certain files must be fixed&lt;br /&gt;to maintain the integrity of system accounting.&lt;/p&gt;&lt;p class="mobile-post"&gt;The wtmpx files seem to cause the most problems in the daily operation&lt;br /&gt;of the system accounting. When the date is changed manually and the&lt;br /&gt;system is in multiuser mode, a set of date change records is written&lt;br /&gt;into the /var/adm/wtmpx file. The wtmpfix utility is designed to&lt;br /&gt;adjust the time stamps in the wtmp records when a date change is&lt;br /&gt;encountered. However, some combinations of date changes and reboots&lt;br /&gt;slip through the wtmpfix utility and cause the acctcon program to&lt;br /&gt;fail.&lt;br /&gt;How to Fix a Corrupted wtmpx File&lt;/p&gt;&lt;p class="mobile-post"&gt;   1.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Become superuser.&lt;br /&gt;   2.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Change to the /var/adm directory.&lt;br /&gt;   3.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Convert the wtmpx file from binary to ASCII format.&lt;/p&gt;&lt;p class="mobile-post"&gt;# /usr/lib/acct/fwtmp &amp;lt; wtmpx &amp;gt; wtmpx.ascii&lt;/p&gt;&lt;p class="mobile-post"&gt;   4.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Edit wtmpx.ascii to delete the corrupted records.&lt;br /&gt;   5.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Convert the wtmpx.ascii file back to a binary file.&lt;/p&gt;&lt;p class="mobile-post"&gt;# /usr/lib/acct/fwtmp -ic &amp;lt; wtmpx.ascii &amp;gt; wtmpx&lt;/p&gt;&lt;p class="mobile-post"&gt;      See fwtmp(1M) for more information.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992146966979762?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992146966979762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992146966979762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992146966979762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992146966979762'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/fixing-corrupted-files-and-wtmpx.html' title='Fixing Corrupted Files and wtmpx Errors'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112992144144340487</id><published>2005-10-21T14:04:00.000-05:00</published><updated>2005-10-21T14:04:01.453-05:00</updated><title type='text'>Is there a way to determine the PID associated with a socket ?</title><content type='html'>&lt;p class="mobile-post"&gt;lsof&lt;/p&gt;&lt;p class="mobile-post"&gt;or&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Is there a way to determine the PID associated with a socket ?&lt;/p&gt;&lt;p class="mobile-post"&gt;Or using native commands without using lsof is to use pfiles.&lt;/p&gt;&lt;p class="mobile-post"&gt;cd /proc&lt;br /&gt;pfiles * &amp;gt; /tmp/pfiles.out&lt;/p&gt;&lt;p class="mobile-post"&gt;search through pfiles.out for the process that has the socket open you&lt;br /&gt;are interested in. i.e. there will be entries such as:&lt;/p&gt;&lt;p class="mobile-post"&gt;3771:   /export/home/archiver/bin/myprocess&lt;br /&gt;   Current rlimit: 256 file descriptors&lt;br /&gt;    0: S_IFCHR mode:0666 dev:85,0 ino:191320 uid:0 gid:3 rdev:13,2&lt;br /&gt;       O_RDONLY|O_LARGEFILE&lt;br /&gt;    1: S_IFCHR mode:0666 dev:85,0 ino:191397 uid:0 gid:0 rdev:24,2&lt;br /&gt;       O_RDWR|O_LARGEFILE&lt;br /&gt;    2: S_IFREG mode:0644 dev:85,5 ino:17 uid:104 gid:1 size:139436&lt;br /&gt;       O_WRONLY|O_LARGEFILE&lt;br /&gt;    3: S_IFDOOR mode:0444 dev:293,0 ino:58 uid:0 gid:0 size:0&lt;br /&gt;       O_RDONLY|O_LARGEFILE FD_CLOEXEC  door to nscd[200]&lt;br /&gt;    4: S_IFSOCK mode:0666 dev:287,0 ino:19574 uid:0 gid:0 size:0&lt;br /&gt;       O_RDWR&lt;br /&gt;         sockname: AF_INET 10.1.1.1  port: 9001&lt;br /&gt;         peername: AF_INET 10.1.1.2  port: 9001&lt;/p&gt;&lt;p class="mobile-post"&gt;pid 3771 has port 9001 open locally.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992144144340487?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992144144340487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992144144340487' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992144144340487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992144144340487'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/is-there-way-to-determine-pid.html' title='Is there a way to determine the PID associated with a socket ?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12965617.post-112992138856470144</id><published>2005-10-21T14:03:00.000-05:00</published><updated>2005-10-21T14:03:08.673-05:00</updated><title type='text'>snapshot error: File system could not be write locked</title><content type='html'>&lt;p class="mobile-post"&gt;Thomas wrote:&lt;br /&gt;&amp;gt; Is there anyway to fssnap the root file system?  I would like to use a&lt;br /&gt;&amp;gt; snapshot for backup, but when I try to do that I get the error:&lt;br /&gt;&amp;gt; snapshot error: File system could not be write locked&lt;/p&gt;&lt;p class="mobile-post"&gt;Are you running ntp/xntp?  By default that program runs in the realtime&lt;br /&gt;processing class, and has a current directory in the root filesystem.&lt;br /&gt;You can't write lock the filesystem while that's true.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;&amp;gt; Yes, we are running ntp.  I will try killing that and see what happens.&lt;br /&gt;&amp;gt;&amp;gt; I am thinking that it might be better to repartition the disk rather than&lt;br /&gt;&amp;gt;&amp;gt; to take ntp down and up for every backup.&lt;br /&gt;&amp;gt; Why? Simply create a script that stops xntpd, creates a snapshot, starts&lt;br /&gt;&amp;gt; xntpd and perform backup. No need to repartition.&lt;/p&gt;&lt;p class="mobile-post"&gt;But that's not kind to ntp, which wants to keep running to remain&lt;br /&gt;stable.&lt;/p&gt;&lt;p class="mobile-post"&gt;The only problem here is that it's working directory is in root.  I see&lt;br /&gt;two possible workarounds.&lt;/p&gt;&lt;p class="mobile-post"&gt;#1 Have it run in a non-RT class.  You can use priocntl for that.  I&lt;br /&gt;   don't think it'll have a dramatic effect on the timekeeping, but you&lt;br /&gt;   might not want to do this if you need very accurate time on this&lt;br /&gt;   machine.&lt;/p&gt;&lt;p class="mobile-post"&gt;$ pgrep ntp&lt;br /&gt;302&lt;br /&gt;$ /usr/bin/ps -o class,pid -p 302&lt;br /&gt; CLS   PID&lt;br /&gt;  RT   302&lt;br /&gt;$ priocntl -s -c TS 302&lt;br /&gt;$ /usr/bin/ps -o class,pid -p 302&lt;br /&gt; CLS   PID&lt;br /&gt;  TS   302&lt;/p&gt;&lt;p class="mobile-post"&gt;Thus taking it from the realtime class to the timesharing class.  (I&lt;br /&gt;suppose I should have tried a fssnap at that point, but didn't...)&lt;/p&gt;&lt;p class="mobile-post"&gt;#2 Run it with the working directory not in root.  I don't see any&lt;br /&gt;   reason it couldn't run in /tmp or /var/run, unless you wanted to&lt;br /&gt;   retain any core files that might be generated.  I'm not certain how&lt;br /&gt;   best to achieve that, but I saw a post that suggested someone had&lt;br /&gt;   good luck using chroot.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112992138856470144?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112992138856470144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112992138856470144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992138856470144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112992138856470144'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/snapshot-error-file-system-could-not.html' title='snapshot error: File system could not be write locked'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932341493171106</id><published>2005-10-14T15:56:00.001-05:00</published><updated>2005-10-14T15:56:54.940-05:00</updated><title type='text'>Problems with port forwarding using SSH[R]</title><content type='html'>&lt;p class="mobile-post"&gt;Port forwarding feature using SSH is failing.&lt;br /&gt;Resolution:	Top&lt;/p&gt;&lt;p class="mobile-post"&gt;Confirm these configuration settings in /etc/ssh/sshd_config file:&lt;/p&gt;&lt;p class="mobile-post"&gt;     AllowTcpForwarding yes&lt;br /&gt;     GatewayPorts yes&lt;/p&gt;&lt;p class="mobile-post"&gt;Then execute:&lt;/p&gt;&lt;p class="mobile-post"&gt;     # ssh -g -L 8080:webserver:80 webserver&lt;/p&gt;&lt;p class="mobile-post"&gt;In this example, systems connecting to http://webserver:8080 will be&lt;br /&gt;forwarded to the web server daemon httpd listening on TCP port 80 on&lt;br /&gt;the host webserver.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you allow root access with this setting in /etc/ssh/sshd_config:&lt;/p&gt;&lt;p class="mobile-post"&gt;      PermitRootLogin yes&lt;/p&gt;&lt;p class="mobile-post"&gt;You can use privileged or reserved ports (range 1-1023) with the above command.&lt;br /&gt;Temporary Workaround:	Top&lt;/p&gt;&lt;p class="mobile-post"&gt;Additional Information:	Top&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932341493171106?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932341493171106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932341493171106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932341493171106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932341493171106'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/problems-with-port-forwarding-using.html' title='Problems with port forwarding using SSH[R]'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932337441424233</id><published>2005-10-14T15:56:00.000-05:00</published><updated>2005-10-14T15:56:14.416-05:00</updated><title type='text'>SSH Frequently Asked Questions Keys</title><content type='html'>&lt;p class="mobile-post"&gt;1.1. General troubleshooting hints&lt;/p&gt;&lt;p class="mobile-post"&gt;    *&lt;/p&gt;&lt;p class="mobile-post"&gt;      In order for us to help you, the problem has to be repeatable.&lt;br /&gt;    *&lt;/p&gt;&lt;p class="mobile-post"&gt;      When reporting problems, always send the output of&lt;/p&gt;&lt;p class="mobile-post"&gt;$ ssh -v -l &amp;lt;user&amp;gt; &amp;lt;destination&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;    *&lt;/p&gt;&lt;p class="mobile-post"&gt;      If you have a root account on the destination host, please run&lt;/p&gt;&lt;p class="mobile-post"&gt;# /usr/sue/etc/sshd -d -p 222&lt;/p&gt;&lt;p class="mobile-post"&gt;      or (on Linux)&lt;/p&gt;&lt;p class="mobile-post"&gt;# /usr/sbin/sshd -d -p 222&lt;/p&gt;&lt;p class="mobile-post"&gt;      as root there and connect using&lt;/p&gt;&lt;p class="mobile-post"&gt;$ ssh -v -p 222 &amp;lt;user&amp;gt; &amp;lt;destination&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;      (the sshd server will exit after each connection, and you may&lt;br /&gt;run into trouble with a local firewall that prevents you from&lt;br /&gt;connecting from a different machine. Same-machine connections to&lt;br /&gt;"localhost" should work)&lt;br /&gt;    *&lt;/p&gt;&lt;p class="mobile-post"&gt;      If you do not have root access on the server, you can generate&lt;br /&gt;your own "server" key pair and run on an unprivileged port:&lt;/p&gt;&lt;p class="mobile-post"&gt;$ ssh-keygen -P "" -f /tmp/sshtest&lt;br /&gt;$ pagsh -c "/usr/sue/etc/sshd -d -p 2222 -h /tmp/sshtest"&lt;/p&gt;&lt;p class="mobile-post"&gt;      or (on Linux)&lt;/p&gt;&lt;p class="mobile-post"&gt;$ pagsh -c "/usr/sbin/sshd -d -p 2222 -h /tmp/sshtest"&lt;/p&gt;&lt;p class="mobile-post"&gt;      Then connect using&lt;/p&gt;&lt;p class="mobile-post"&gt;$ ssh -v -p 2222 &amp;lt;user&amp;gt; &amp;lt;destination&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;1.5. log in using RSA keys&lt;/p&gt;&lt;p class="mobile-post"&gt;Do you really want to do this? Using RSA for login means you will not&lt;br /&gt;get an AFS token, so you cannot access most of your home directory on&lt;br /&gt;the public servers. There is no way to "translate" between RSA key and&lt;br /&gt;AFS tokens.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you want to give it a try, check the following common errors:&lt;/p&gt;&lt;p class="mobile-post"&gt;    *&lt;/p&gt;&lt;p class="mobile-post"&gt;      the UNIX permissions must be correct: 0600 for&lt;br /&gt;~/.ssh/authorized_keys, 0755 for ~/.ssh (and AFS read access for&lt;br /&gt;everybody!), home directory not writable by anybody but you.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Warning	&lt;/p&gt;&lt;p class="mobile-post"&gt;      Please make sure that your private key is somewhere safe (e.g.&lt;br /&gt;in ~/private, with a symlink to ~.ssh), and encrypted using a good&lt;br /&gt;pass phrase.&lt;br /&gt;    *&lt;/p&gt;&lt;p class="mobile-post"&gt;      in ~/.ssh/authorized_keys, there has to be one key per line (no&lt;br /&gt;linebreaks allowed)&lt;/p&gt;&lt;p class="mobile-post"&gt;The debugging tips at the beginning of this chapter (running the&lt;br /&gt;server in debug mode) should point out the reason for failure pretty&lt;br /&gt;quickly.&lt;/p&gt;&lt;p class="mobile-post"&gt;1.6. New warning messages&lt;/p&gt;&lt;p class="mobile-post"&gt;OpenSSH stores both the host name and the IP number together with the&lt;br /&gt;host key. This leads to some new messages:&lt;/p&gt;&lt;p class="mobile-post"&gt;    Warning: Permanently added 'lxplus001,137.138.161.126' (RSA) to&lt;br /&gt;the list of known hosts.&lt;br /&gt;    Warning: Permanently added the RSA host key for IP address&lt;br /&gt;'137.138.161.126' to the list of known hosts.&lt;/p&gt;&lt;p class="mobile-post"&gt;If these annoy you, use "CheckHostIP no" in your $HOME/.ssh/config&lt;br /&gt;file. However, please be aware that you are turning off an intentional&lt;br /&gt;security feature of ssh.&lt;/p&gt;&lt;p class="mobile-post"&gt;Some warning that may appear while connecting to the PLUS servers&lt;br /&gt;under their common DNS name (e.g. RSPLUS, HPPLUS) is due to the fact&lt;br /&gt;that for load-balancing purposes, these servers' DNS entry is&lt;br /&gt;constantly changing. This is detected and reported by ssh (as it&lt;br /&gt;should be).&lt;/p&gt;&lt;p class="mobile-post"&gt;    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;    @       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @&lt;br /&gt;    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;    The RSA host key for rsplus has changed,&lt;br /&gt;  5 and the key for the according IP address 137.138.246.82&lt;br /&gt;    is unknown. This could either mean that&lt;br /&gt;    DNS SPOOFING is happening or the IP address for the host&lt;br /&gt;    and its host key have changed at the same time&lt;br /&gt;    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt; 10 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @&lt;br /&gt;    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!&lt;br /&gt;    Someone could be eavesdropping on you right now (man-in-the-middle attack)!&lt;br /&gt;    It is also possible that the RSA host key has just been changed.&lt;br /&gt; 15 Please contact your system administrator.&lt;br /&gt;    Add correct host key in /afs/cern.ch/user/i/iven/.ssh/known_hosts&lt;br /&gt;to get rid of this message.&lt;br /&gt;    Offending key in /afs/cern.ch/user/i/iven/.ssh/known_hosts:246&lt;br /&gt;    Password authentication is disabled to avoid Trojan horses.&lt;br /&gt;    Agent forwarding is disabled to avoid Trojan horses.&lt;/p&gt;&lt;p class="mobile-post"&gt;To avoid these, use qualified hostnames like rsplus01, hpplus01 etc..&lt;br /&gt;(LXPLUS and SUNDEV are not prone to this problem, since a common host&lt;br /&gt;key is used on all the servers in the cluster)&lt;/p&gt;&lt;p class="mobile-post"&gt;An alternative is to (manually) insert into $HOME/.ssh/known_hosts the&lt;br /&gt;PLUS name after each qualified machine name that belongs to this PLUS&lt;br /&gt;service:&lt;/p&gt;&lt;p class="mobile-post"&gt;    rsplus01,rsplus 1024 37 15457042575...&lt;br /&gt;    rsplus02,rsplus 1024 37 10734479336...&lt;/p&gt;&lt;p class="mobile-post"&gt;To remove the above error message, simply edit the file&lt;br /&gt;~/.ssh/known_hosts (or ~/.ssh/known_hosts2 for the SSH-2 protocol) and&lt;br /&gt;remove the line (which should start with the hostname and/or IP&lt;br /&gt;address). Be careful not to break the long lines, it has to have one&lt;br /&gt;line per host/key. Next time you connect, ssh should ask you whether&lt;br /&gt;you actually want to connect, etc..&lt;br /&gt;1.7. Statistics options for scp&lt;/p&gt;&lt;p class="mobile-post"&gt;OpenSSH scp does not support a few of the command line options from&lt;br /&gt;ssh-1.2.26. Besides, the statistics output is different. The&lt;br /&gt;environment variables controlling statistics output (SSH_SCP_STATS,&lt;br /&gt;SSH_NO_SCP_STATS, SSH_ALL_SCP_STATS, SSH_NO_ALL_SCP_STATS) are not&lt;br /&gt;supported, either. The changed options are&lt;/p&gt;&lt;p class="mobile-post"&gt;ssh-1.2.26 option	meaning	OpenSSH option&lt;br /&gt;-a	Turn on statistics display for each file (on by default)	(on by default)&lt;br /&gt;-A	Turn off statistics display for each file. This appears to be a&lt;br /&gt;no-op for ssh-1.2.26	(n.a., use -q to turn off all statistics)&lt;br /&gt;-L	Use non privileged port	-o UsePriviledgedPort=no (works as well on&lt;br /&gt;ssh-1.2.26)&lt;br /&gt;-Q	Turn on statistics display	(on by default)&lt;/p&gt;&lt;p class="mobile-post"&gt;Sample statistics output from OpenSSH scp (no explicit options)&lt;/p&gt;&lt;p class="mobile-post"&gt;    junk                 100% |*****************************| 22867       00:00&lt;br /&gt;    zeroes               100% |*****************************|   512 KB    00:00&lt;/p&gt;&lt;p class="mobile-post"&gt;and output from ssh-1.2.26 scp:&lt;/p&gt;&lt;p class="mobile-post"&gt;    junk                      |         22 KB |  22.3 kB/s | ETA:&lt;br /&gt;00:00:00 | 100%&lt;br /&gt;    zeroes                    |        512 KB | 512.0 kB/s | ETA:&lt;br /&gt;00:00:00 | 100%&lt;/p&gt;&lt;p class="mobile-post"&gt;If you actually parse this output in scripts, you would have to change them.&lt;br /&gt;1.8. Errors on exit regarding X11 applications&lt;/p&gt;&lt;p class="mobile-post"&gt;Since the ssh client does forwarding for the X11 traffic from the&lt;br /&gt;remote host, it won't exit until the last X11 application has been&lt;br /&gt;closed. It appears that this mechanism sometimes fails, and the ssh&lt;br /&gt;program will report errors like below even if all remote X11&lt;br /&gt;applications are done:&lt;/p&gt;&lt;p class="mobile-post"&gt;    (logout)&lt;br /&gt;    Waiting for forwarded connections to terminate...&lt;br /&gt;    The following connections are open:&lt;br /&gt;    X11 connection from xxxxx.cern.ch port 2352&lt;/p&gt;&lt;p class="mobile-post"&gt;The session will appear to hang. It can be closed by typing "~."&lt;br /&gt;(without the quotes), and this should return you to your previous&lt;br /&gt;shell. You could use "~&amp;amp;" as well to leave the current connection as a&lt;br /&gt;background process.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you are sure that there are no X11 windows or icons from the remote&lt;br /&gt;server around, and if you can reproduce the problem, please contact&lt;br /&gt;ssh.support@cern.ch.&lt;/p&gt;&lt;p class="mobile-post"&gt;A current suspicion is that the regular network scanning mechanism&lt;br /&gt;plays a role in this: by opening a connection to the remote X11 port,&lt;br /&gt;but failing to connect through the forwarded channel, this could mess&lt;br /&gt;up the internal bookkeeping done by ssh. To be confirmed.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932337441424233?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932337441424233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932337441424233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932337441424233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932337441424233'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/ssh-frequently-asked-questions-keys.html' title='SSH Frequently Asked Questions Keys'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932332754330354</id><published>2005-10-14T15:55:00.000-05:00</published><updated>2005-10-14T15:55:27.546-05:00</updated><title type='text'>Problem replacing disk in StorEdge T3</title><content type='html'>&lt;p class="mobile-post"&gt;Problem replacing disk in StorEdge T3&lt;/p&gt;&lt;p class="mobile-post"&gt;At work we have a T3 where all disks are configured for RAID5. One of&lt;br /&gt;the disks has failed, which means that accessing the data on the T3 is&lt;br /&gt;really slow.&lt;/p&gt;&lt;p class="mobile-post"&gt;When I entered the replacement disk, it seemed to be taken in use&lt;br /&gt;automatically (proc list showed some progress), but then it failed with&lt;br /&gt;a 0D status (see vol stat, fru stat etc below).&lt;/p&gt;&lt;p class="mobile-post"&gt;I noticed that the disk is not exactly the same as the other, could this&lt;br /&gt;be the reason? It is a proper replacement disk bought from Sun with the&lt;br /&gt;proper bracket and everything, so it should work or what? What can I do&lt;br /&gt;to fix this?&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;br /&gt;- Erlend Leganger&lt;/p&gt;&lt;p class="mobile-post"&gt;T300 Release 1.17b 2001/05/31 17:47:22&lt;br /&gt;Copyright (C) 1997-2001 Sun Microsystems, Inc.&lt;br /&gt;All Rights Reserved.&lt;/p&gt;&lt;p class="mobile-post"&gt;bigdaddy:/:&amp;lt;1&amp;gt;vol stat&lt;/p&gt;&lt;p class="mobile-post"&gt;v0            u1d1   u1d2   u1d3   u1d4   u1d5   u1d6   u1d7   u1d8&lt;br /&gt;u1d9&lt;br /&gt;mounted        0D     0      0      0      0      0      0      0      0&lt;/p&gt;&lt;p class="mobile-post"&gt;bigdaddy:/:&amp;lt;2&amp;gt;fru list&lt;br /&gt;ID      TYPE               VENDOR       MODEL        REVISION  SERIAL&lt;br /&gt;------  -----------------  -----------  -----------  --------  --------&lt;br /&gt;u1ctr   controller card    SLR-MI       375-0084-02- 0210        022813&lt;br /&gt;u1d1    disk drive         SEAGATE      ST336605FSUN A338      3FP0H63D&lt;br /&gt;u1d2    disk drive         SEAGATE      ST336704FSUN A42D      3CD0VFBL&lt;br /&gt;u1d3    disk drive         SEAGATE      ST336704FSUN A42D      3CD0T89W&lt;br /&gt;u1d4    disk drive         SEAGATE      ST336704FSUN A42D      3CD0VCZ4&lt;br /&gt;u1d5    disk drive         SEAGATE      ST336704FSUN A42D      3CD0VF5L&lt;br /&gt;u1d6    disk drive         SEAGATE      ST336704FSUN A42D      3CD0TG33&lt;br /&gt;u1d7    disk drive         SEAGATE      ST336704FSUN A42D      3CD0TT8G&lt;br /&gt;u1d8    disk drive         SEAGATE      ST336704FSUN A42D      3CD0VD4T&lt;br /&gt;u1d9    disk drive         SEAGATE      ST336704FSUN A42D      3CD0TXQF&lt;br /&gt;u1l1    loop card          SLR-MI       375-0085-01-  5.02 Flash 033179&lt;br /&gt;u1l2    loop card          SLR-MI       375-0085-01-  5.02 Flash 030038&lt;br /&gt;u1pcu1  power/cooling unit TECTROL-CAN  300-1454-01( 0000        028800&lt;br /&gt;u1pcu2  power/cooling unit TECTROL-CAN  300-1454-01( 0000        028799&lt;br /&gt;u1mpn   mid plane          SLR-MI       370-3990-01- 0000        021282&lt;br /&gt;bigdaddy:/:&amp;lt;3&amp;gt;fru stat&lt;br /&gt;CTLR    STATUS   STATE       ROLE        PARTNER    TEMP&lt;br /&gt;------  -------  ----------  ----------  -------    ----&lt;br /&gt;u1ctr   ready    enabled     master      -          30.5&lt;/p&gt;&lt;p class="mobile-post"&gt;DISK    STATUS   STATE       ROLE        PORT1      PORT2      TEMP  VOLUME&lt;br /&gt;------  -------  ----------  ----------  ---------  ---------  ----  ------&lt;br /&gt;u1d1    ready    disabled    data disk   ready      ready      30    v0&lt;br /&gt;u1d2    ready    enabled     data disk   ready      ready      33    v0&lt;br /&gt;u1d3    ready    enabled     data disk   ready      ready      34    v0&lt;br /&gt;u1d4    ready    enabled     data disk   ready      ready      32    v0&lt;br /&gt;u1d5    ready    enabled     data disk   ready      ready      33    v0&lt;br /&gt;u1d6    ready    enabled     data disk   ready      ready      33    v0&lt;br /&gt;u1d7    ready    enabled     data disk   ready      ready      36    v0&lt;br /&gt;u1d8    ready    enabled     data disk   ready      ready      32    v0&lt;br /&gt;u1d9    ready    enabled     data disk   ready      ready      32    v0&lt;/p&gt;&lt;p class="mobile-post"&gt;LOOP    STATUS   STATE       MODE        CABLE1     CABLE2     TEMP&lt;br /&gt;------  -------  ----------  -------     ---------  ---------  ----&lt;br /&gt;u1l1    ready    enabled     master      -          -          27.0&lt;br /&gt;u1l2    ready    enabled     slave       -          -          27.5&lt;/p&gt;&lt;p class="mobile-post"&gt;POWER   STATUS   STATE       SOURCE  OUTPUT  BATTERY  TEMP    FAN1    FAN2&lt;br /&gt;------  -------  ---------   ------  ------  -------  ------  ------  ------&lt;br /&gt;u1pcu1  ready    enabled     line    normal  fault    normal  normal&lt;br /&gt;normal&lt;br /&gt;u1pcu2  ready    enabled     line    normal  fault    normal  normal&lt;br /&gt;normal&lt;br /&gt;bigdaddy:/:&amp;lt;4&amp;gt;exit&lt;br /&gt;Connection closed by foreign host.&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; to fix this?&lt;/p&gt;&lt;p class="mobile-post"&gt;I'd say, complain @ Sun.&lt;br /&gt;Searching google, I found the documentation from Seagate. Among other&lt;br /&gt;things, it lists this:&lt;br /&gt;ST336605:  29,549 cyl /  4 heads / 71,687,371 data blocks&lt;br /&gt;ST336704:  14,100 cyl / 12 heads / 71,687,369 data blocks&lt;br /&gt;I don't know whether these differences are a problem in this case. Sun&lt;br /&gt;should be able to tell...&lt;br /&gt;Maybe the issue can be fixed with a firmware update on the new drive (or&lt;br /&gt;on all the old ones)?&lt;/p&gt;&lt;p class="mobile-post"&gt;You need to take a look at the syslog file right after the rebuild&lt;br /&gt;fails.  There should be more information in there. I have had this&lt;br /&gt;happen before where the rebuild fails because of a read error on&lt;br /&gt;another disk...&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;1) Your boot firmware is very old.&lt;br /&gt;2) Your disk firmware is way out of date.&lt;br /&gt;3) Both the batteries in your PCUs are expired.&lt;/p&gt;&lt;p class="mobile-post"&gt;The latest boot firmware is 1.18.04 and you're at 1.17b.&lt;br /&gt;That's at least 3 years out-of-date!&lt;/p&gt;&lt;p class="mobile-post"&gt;The latest disk firmware for the ST336605FSUN is A838&lt;br /&gt;The latest disk firmware for the ST336704FSUN is AE26&lt;/p&gt;&lt;p class="mobile-post"&gt;If you're lucky you'll be able to recover. The 'proc list' command will show&lt;br /&gt;if the new disk is being reconstructed to. Otherwise hopefully you have a&lt;br /&gt;way to backup the data. If so you can get the batteries replaced, upgrade&lt;br /&gt;all the firmware and reinitialize the volume and restore the data.&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; another disk...&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks for the tip. I have now learnt that the disk should be OK, so I&lt;br /&gt;will try this again tomorrow and watch the syslog as you suggest. I will&lt;br /&gt;be back with the result.&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;br /&gt;- Erlend Leganger&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; all the firmware and reinitialize the volume and restore the data.&lt;/p&gt;&lt;p class="mobile-post"&gt;I guess this is what happens when you have a device that works OK, you&lt;br /&gt;just forget about it... The batteries have been replaced though, we had&lt;br /&gt;ordered them in.&lt;/p&gt;&lt;p class="mobile-post"&gt;I was able to copy the data from the T3 to other disk areas on the&lt;br /&gt;server, so I'm OK with the files (I also have a backup on tape made&lt;br /&gt;before it failed). I haven't RTFM yet, but are there any tips I should&lt;br /&gt;be aware of when upgrading boot and disk firmware? What to do first?&lt;br /&gt;Where do I get hold of the firmware updates?&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; ordered them in.&lt;/p&gt;&lt;p class="mobile-post"&gt;You have to do more than just replace the batteries or the T3 won't know&lt;br /&gt;anything has changed. Commands need to be ran to reset the dates back to&lt;br /&gt;zero so the errors will go away.&lt;/p&gt;&lt;p class="mobile-post"&gt;This InfoDoc should explain the procedures:&lt;/p&gt;&lt;p class="mobile-post"&gt;http://www.sunshack.org/data/sh/2.1/infoserver.central/data/syshbk/co...&lt;/p&gt;&lt;p class="mobile-post"&gt;Also the batteries should now last 3 years instead of 2 years per Sun.&lt;/p&gt;&lt;p class="mobile-post"&gt;In the same patch you would use to upgrade the boot and disk firmware:&lt;/p&gt;&lt;p class="mobile-post"&gt;http://sunsolve.sun.com/pub-cgi/pdownload.pl?target=109115-17&amp;amp;method=h&lt;/p&gt;&lt;p class="mobile-post"&gt;there is a T3extender program that will run commands to set the battery&lt;br /&gt;expiration life to 36 months instead of 24 months.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; another disk...&lt;/p&gt;&lt;p class="mobile-post"&gt;You were 100% correct. The warning light was lit on disk u1d1, so this&lt;br /&gt;disk was replaced and attempted rebuilt. The rebuild failed after a&lt;br /&gt;while, with a note of multiple disk errors in the syslog - it seems as&lt;br /&gt;u1d4 has a problem as well. I was fooled by vol stat only showing error&lt;br /&gt;on on u1d1 - I will check the syslog more carefully in the future.&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;br /&gt;- Erlend Leganger&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; http://sunsolve.sun.com/pub-cgi/pdownload.pl?target=109115-17&amp;amp;method=h&lt;/p&gt;&lt;p class="mobile-post"&gt;Excellent, thank you. I need to wait for my second replacement disk, but&lt;br /&gt;after reading up on the patch installation method, it doesn't seem too&lt;br /&gt;difficult to do.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; there is a T3extender program that will run commands to set the battery&lt;br /&gt;&amp;gt; expiration life to 36 months instead of 24 months.&lt;/p&gt;&lt;p class="mobile-post"&gt;I had a look at the T3extender program code and I decided that using&lt;br /&gt;this patch is an extreme overkill (creating a long perl script and even&lt;br /&gt;include perl itself in the patch) to do a small job: I only made two&lt;br /&gt;".id write blife &amp;lt;pcu&amp;gt; 36" commands which seems to do the trick (see&lt;br /&gt;below). Of course, if you have a room full of racks fully populated with&lt;br /&gt;T3s, the script would be handy...&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;br /&gt;- Erlend Leganger&lt;/p&gt;&lt;p class="mobile-post"&gt;bigdaddy:/:&amp;lt;48&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;48&amp;gt;id read u1pcu1&lt;br /&gt;Revision             : 0000&lt;br /&gt;Manufacture Week     : 00442000&lt;br /&gt;Battery Install Week : 00412005&lt;br /&gt;Battery Life Used    :   0 days, 2 hours&lt;br /&gt;Battery Life Span    : 730 days, 12 hours&lt;br /&gt;Serial Number        : 028800&lt;br /&gt;Battery Warranty Date: 20051010082149&lt;br /&gt;Battery Internal Flag: 0x00000000&lt;br /&gt;Vendor ID            : TECTROL-CAN&lt;br /&gt;Model ID             : 300-1454-01(50)&lt;br /&gt;bigdaddy:/:&amp;lt;49&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;49&amp;gt;id read u1pcu2&lt;br /&gt;Revision             : 0000&lt;br /&gt;Manufacture Week     : 00442000&lt;br /&gt;Battery Install Week : 00412005&lt;br /&gt;Battery Life Used    :   0 days, 2 hours&lt;br /&gt;Battery Life Span    : 730 days, 12 hours&lt;br /&gt;Serial Number        : 028799&lt;br /&gt;Battery Warranty Date: 20051010082152&lt;br /&gt;Battery Internal Flag: 0x00000000&lt;br /&gt;Vendor ID            : TECTROL-CAN&lt;br /&gt;Model ID             : 300-1454-01(50)&lt;br /&gt;bigdaddy:/:&amp;lt;50&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;50&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;50&amp;gt;.id write blife u1pcu1 36&lt;br /&gt;bigdaddy:/:&amp;lt;51&amp;gt;.id write blife u1pcu2 36&lt;br /&gt;bigdaddy:/:&amp;lt;52&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;52&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;52&amp;gt;id read u1pcu1&lt;br /&gt;Revision             : 0000&lt;br /&gt;Manufacture Week     : 00442000&lt;br /&gt;Battery Install Week : 00412005&lt;br /&gt;Battery Life Used    :   0 days, 2 hours&lt;br /&gt;Battery Life Span    : 1095 days, 18 hours&lt;br /&gt;Serial Number        : 028800&lt;br /&gt;Battery Warranty Date: 20051010082149&lt;br /&gt;Battery Internal Flag: 0x00000000&lt;br /&gt;Vendor ID            : TECTROL-CAN&lt;br /&gt;Model ID             : 300-1454-01(50)&lt;br /&gt;bigdaddy:/:&amp;lt;53&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;53&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;53&amp;gt;id read u1pcu2&lt;br /&gt;Revision             : 0000&lt;br /&gt;Manufacture Week     : 00442000&lt;br /&gt;Battery Install Week : 00412005&lt;br /&gt;Battery Life Used    :   0 days, 2 hours&lt;br /&gt;Battery Life Span    : 1095 days, 18 hours&lt;br /&gt;Serial Number        : 028799&lt;br /&gt;Battery Warranty Date: 20051010082152&lt;br /&gt;Battery Internal Flag: 0x00000000&lt;br /&gt;Vendor ID            : TECTROL-CAN&lt;br /&gt;Model ID             : 300-1454-01(50)&lt;br /&gt;bigdaddy:/:&amp;lt;54&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;54&amp;gt;&lt;br /&gt;bigdaddy:/:&amp;lt;54&amp;gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932332754330354?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932332754330354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932332754330354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932332754330354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932332754330354'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/problem-replacing-disk-in-storedge-t3.html' title='Problem replacing disk in StorEdge T3'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932325095426389</id><published>2005-10-14T15:54:00.000-05:00</published><updated>2005-10-14T15:54:10.956-05:00</updated><title type='text'>Secure remote tasks with ssh and keys</title><content type='html'>&lt;p class="mobile-post"&gt;Secure remote tasks with ssh and keys&lt;/p&gt;&lt;p class="mobile-post"&gt;Takeaway:&lt;br /&gt;If you want to set up another administrator on your server or execute&lt;br /&gt;remote tasks securely, learn to use ssh with keys. Vincent Danen tells&lt;br /&gt;you how in this Linux tip.&lt;/p&gt;&lt;p class="mobile-post"&gt;Often, if you're administering a server, you'll find you need to&lt;br /&gt;execute some small task on the server, or you want to delegate a task&lt;br /&gt;to another administrator, but you don't want to give them full access.&lt;br /&gt;Perhaps you want to execute a remote backup or status test. This can&lt;br /&gt;all be accomplished using ssh with keys so that it can be unattended,&lt;br /&gt;but still secure.&lt;/p&gt;&lt;p class="mobile-post"&gt;The first step is to create the ssh key using the ssh-keygen utility.&lt;br /&gt;This is extremely straightforward. If you plan to have the task&lt;br /&gt;unattended, be sure to not give it a password. To increase security,&lt;br /&gt;make a special account to execute the task; make sure it can't log in,&lt;br /&gt;and make sure that the ssh public key is used only on a particular&lt;br /&gt;server or set of servers.&lt;/p&gt;&lt;p class="mobile-post"&gt;On the remote server, copy the user's ssh public key into&lt;br /&gt;~/.ssh/authorized_keys. You will need to make some modifications to&lt;br /&gt;the line in authorized_keys. To begin, you should set a "command"&lt;br /&gt;keyword to ensure that only one particular command can be executed by&lt;br /&gt;that key. The syntax looks like:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;code&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;command="" KEY&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;/code&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;where command could be something as simple as "/usr/bin/rsync" or&lt;br /&gt;"/usr/local/bin/foo.sh". To enhance and secure this further, add the&lt;br /&gt;following options to authorized_keys:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;code&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;command="/usr/local/bin/foo.sh",no-port-forwarding,no-X11-&lt;br /&gt;  forwarding,no-agent-forwarding,no-pty KEY&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;/code&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;This ensures that anyone connecting cannot do any port forwarding, X11&lt;br /&gt;forwarding, agent forwarding, and ssh doesn't allocate a pseudo-TTY&lt;br /&gt;which prevents the issuing of commands through an interactive session.&lt;/p&gt;&lt;p class="mobile-post"&gt;If the client system is adequately secured to protect the&lt;br /&gt;password-less key, and the availability of commands is restricted on&lt;br /&gt;the server, using SSH to execute remote commands is a breeze.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932325095426389?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932325095426389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932325095426389' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932325095426389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932325095426389'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/secure-remote-tasks-with-ssh-and-keys.html' title='Secure remote tasks with ssh and keys'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932323315733813</id><published>2005-10-14T15:53:00.001-05:00</published><updated>2005-10-14T15:53:53.156-05:00</updated><title type='text'>plumb and unplumb</title><content type='html'>&lt;p class="mobile-post"&gt;&amp;gt; Basically it seesm its unplumbed but still existing in the running system&lt;br /&gt;&amp;gt; so commands like&lt;br /&gt;&amp;gt; arp -a&lt;br /&gt;&amp;gt; netstat -i&lt;br /&gt;&amp;gt; should show it,&lt;/p&gt;&lt;p class="mobile-post"&gt;No.  Unplumbed devices do *NOT* appear in either of those two lists.&lt;br /&gt;Unplumbed devices are simply unknown to IP and ARP.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; If you dont want to reboot, try plumbing and unplumbing it, might do the&lt;br /&gt;&amp;gt; trick.&lt;/p&gt;&lt;p class="mobile-post"&gt;Very likely not.&lt;/p&gt;&lt;p class="mobile-post"&gt;Driver loading and operation is only indirectly related to plumbing.&lt;br /&gt;"Plumb" means that IP opens the driver (triggering it to load into&lt;br /&gt;memory if necessary) and begins using it.&lt;/p&gt;&lt;p class="mobile-post"&gt;"Unplumb" means only that IP closes the driver stream.  If the driver&lt;br /&gt;itself is still in memory (and a driver that manages multiple&lt;br /&gt;instances and has one instance still plumbed, as in the original&lt;br /&gt;poster's stated configuration, is certainly in that state), then --&lt;br /&gt;depending on how the driver itself is designed -- may still be&lt;br /&gt;fielding interrupts from the underlying hardware.&lt;/p&gt;&lt;p class="mobile-post"&gt;Plumbing and unplumbing IP will do nothing in that case.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932323315733813?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932323315733813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932323315733813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932323315733813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932323315733813'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/plumb-and-unplumb.html' title='plumb and unplumb'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932320511891323</id><published>2005-10-14T15:53:00.000-05:00</published><updated>2005-10-14T15:53:25.120-05:00</updated><title type='text'>005 11:01 am Subject: directio</title><content type='html'>&lt;p class="mobile-post"&gt;directio&lt;br /&gt;n&lt;/p&gt;&lt;p class="mobile-post"&gt;I have a running process which does io:&lt;/p&gt;&lt;p class="mobile-post"&gt;last pid: 22838;  load averages:  0.94,  0.91,  0.82&lt;br /&gt;17:54:29&lt;br /&gt;103 processes: 100 sleeping, 1 zombie, 2 on cpu&lt;br /&gt;CPU states:     % idle,     % user,     % kernel,     % iowait,     %&lt;br /&gt;swap&lt;br /&gt;Memory: 4096M real, 256M free, 7188M swap in use, 3392M swap free&lt;/p&gt;&lt;p class="mobile-post"&gt;   PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND&lt;br /&gt;  7335 root       2  20    0 1223M 1164M cpu/2   24.7H 49.53%&lt;br /&gt;clemserv_9_0&lt;/p&gt;&lt;p class="mobile-post"&gt;truss -p 7335&lt;/p&gt;&lt;p class="mobile-post"&gt;/1:     read(15, "020301\0\0\0\0\0\0\0\0\0".., 8192)    = 8192&lt;br /&gt;/1:     lseek(15, 0x8F48CA00, SEEK_SET)                 = 0x8F48CA00&lt;br /&gt;/1:     read(15, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)    = 8192&lt;br /&gt;/1:     lseek(15, 0x8F48CB20, SEEK_SET)                 = 0x8F48CB20&lt;br /&gt;/1:     read(15, "020301\0\0\0\0\0\0\0\0\0".., 8192)    = 8192&lt;br /&gt;/1:     lseek(15, 0x8F48CA00, SEEK_SET)                 = 0x8F48CA00&lt;br /&gt;/1:     read(15, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)    = 8192&lt;br /&gt;/1:     lseek(15, 0x8F48CB20, SEEK_SET)                 = 0x8F48CB20&lt;br /&gt;/1:     read(15, "020301\0\0\0\0\0\0\0\0\0".., 8192)    = 8192&lt;br /&gt;/1:     lseek(15, 0x8F48CA00, SEEK_SET)                 = 0x8F48CA00&lt;br /&gt;/1:     read(15, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)    = 8192&lt;/p&gt;&lt;p class="mobile-post"&gt;When i monitor the system , both for directIO and normal - cached io ,&lt;br /&gt;i see the following patterns.I will ve appreciated if someone can&lt;br /&gt;comment in order to eplain this:&lt;/p&gt;&lt;p class="mobile-post"&gt;The program reads data from the /data filesystem. This is ufs - on emc&lt;br /&gt;disk array . ( i have 1 hba - fibre channel)&lt;/p&gt;&lt;p class="mobile-post"&gt;mount -o remount,noforcedirectio /data&lt;/p&gt;&lt;p class="mobile-post"&gt;# sar 30 10000&lt;/p&gt;&lt;p class="mobile-post"&gt;SunOS verdenfs1 5.9 Generic_117171-12 sun4u    10/05/2005&lt;/p&gt;&lt;p class="mobile-post"&gt;17:53:42    %usr    %sys    %wio   %idle&lt;br /&gt;17:54:12      14      37       0      49&lt;br /&gt;17:54:42      13      38       0      48&lt;br /&gt;17:55:12      14      39       0      47&lt;br /&gt;17:55:42      13      38       0      49&lt;/p&gt;&lt;p class="mobile-post"&gt;                  extended device statistics&lt;br /&gt;    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device&lt;br /&gt;    1.4    0.1 1206.1    0.4  0.0  0.1    0.1   44.8   0   7 c2t16d65&lt;br /&gt;    0.1    1.2    1.1    9.5  0.0  0.0    0.0    9.2   0   1 c1t1d0&lt;br /&gt;    0.0    1.0    0.0    7.8  0.0  0.0   15.2   35.4   0   0 c1t0d0&lt;br /&gt;                    extended device statistics&lt;br /&gt;    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device&lt;br /&gt;    1.2    0.1 1183.2    0.4  0.0  0.1    0.1   48.7   0   6 c2t16d65&lt;br /&gt;    0.3    1.2    2.7    9.5  0.0  0.0    0.0    7.7   0   1 c1t1d0&lt;br /&gt;    0.0    2.4    0.0   19.3  0.1  0.1   29.6   26.9   0   1 c1t0d0&lt;br /&gt;                    extended device statistics&lt;br /&gt;    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device&lt;br /&gt;    7.2    0.1 1227.7    0.4  0.0  0.1    0.0   11.1   0   8 c2t16d65&lt;br /&gt;    0.1    1.2    1.1    9.5  0.0  0.0    0.0    7.4   0   0 c1t1d0&lt;br /&gt;    0.0    0.4    0.0    2.3  0.0  0.0    0.0   11.1   0   0 c1t0d0&lt;br /&gt;                    extended device statistics&lt;br /&gt;    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device&lt;br /&gt;    1.3    0.1 1264.0    0.4  0.0  0.1    0.1   44.9   0   6 c2t16d65&lt;br /&gt;    0.3    1.1    2.7    9.5  0.0  0.0    0.0    8.0   0   1 c1t1d0&lt;br /&gt;    0.0    0.2    0.0    1.6  0.0  0.0    0.0   11.4   0   0 c1t0d0&lt;/p&gt;&lt;p class="mobile-post"&gt;verdenfs1@root/tmp #vmstat -p 30&lt;br /&gt;     memory           page          executable      anonymous&lt;br /&gt;filesystem&lt;br /&gt;   swap  free  re  mf  fr  de  sr  epi  epo  epf  api  apo  apf  fpi&lt;br /&gt;fpo  fpf&lt;br /&gt; 7402800 1789416 73 89 10   0   1    1    0    0    0    1    1 2626&lt;br /&gt;11    9&lt;br /&gt; 3474096 262832 158 0   0   0   0    0    0    0    0    0    0 1207&lt;br /&gt;0    0&lt;br /&gt; 3474120 262520 187 249 0   0   0    0    0    0    0    0    0 1216&lt;br /&gt;0    0&lt;br /&gt; 3474072 262304 166 33  1   0   0    0    0    0    0    0    0 1188&lt;br /&gt;1    1&lt;br /&gt; 3474208 262144 159 0   0   0   0    0    0    0    0    0    0 1269&lt;br /&gt;0    0&lt;/p&gt;&lt;p class="mobile-post"&gt;mount -o remount,forcedirectio /data&lt;/p&gt;&lt;p class="mobile-post"&gt;# sar 30 10000&lt;/p&gt;&lt;p class="mobile-post"&gt;SunOS verdenfs1 5.9 Generic_117171-12 sun4u    10/05/2005&lt;/p&gt;&lt;p class="mobile-post"&gt;            %usr    %sys    %wio   %idle&lt;br /&gt;17:57:12       8      24      23      46&lt;br /&gt;17:57:42       2      10      39      49&lt;/p&gt;&lt;p class="mobile-post"&gt;                  extended device statistics&lt;br /&gt;    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device&lt;br /&gt;  257.8    0.0 62434.5    0.0  0.0  0.8    0.0    3.1   1  77 c2t16d65&lt;br /&gt;    0.1    1.2    1.1    9.4  0.0  0.0    0.0    8.3   0   1 c1t1d0&lt;br /&gt;    0.4    0.4    3.2    3.2  0.0  0.0    0.0    8.8   0   0 c1t0d0&lt;br /&gt;                    extended device statistics&lt;br /&gt;    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device&lt;br /&gt;  244.4    0.0 64447.9    0.0  0.0  0.8    0.0    3.3   1  78 c2t16d65&lt;br /&gt;    0.3    1.2    2.7    9.2  0.0  0.0    0.0    7.7   0   1 c1t1d0&lt;br /&gt;    0.7    2.7    4.8   15.6  0.0  0.1    7.1   15.8   0   2 c1t0d0&lt;/p&gt;&lt;p class="mobile-post"&gt;verdenfs1@root/tmp #vmstat -p 30&lt;br /&gt;     memory           page          executable      anonymous&lt;br /&gt;filesystem&lt;br /&gt;   swap  free  re  mf  fr  de  sr  epi  epo  epf  api  apo  apf  fpi&lt;br /&gt;fpo  fpf&lt;br /&gt; 3474064 263456 31 15   0   0   0    0    0    0    2    0    0 61924&lt;br /&gt;0    0&lt;br /&gt; 3474192 263440 25  8   0   0   0    0    0    0    1    0    0 63965&lt;br /&gt;0    0&lt;br /&gt; 3474064 263088 43 88   0   0   0    5    0    0    0    0    0 63966&lt;br /&gt;0    0&lt;/p&gt;&lt;p class="mobile-post"&gt;1.When i use noforcedirectio , sar reports no wio but  38 %sys , on the&lt;br /&gt;other hand iostat shows about 1MB. read per second with 44.9 msec&lt;br /&gt;service time.This io utilized the disk only 6 or 8 percent. And ,&lt;br /&gt;vmstat -p shows that the system does pagins for file io only for 1MB.&lt;/p&gt;&lt;p class="mobile-post"&gt;2.But when i force directio , i have %39 wio , io rate grows&lt;br /&gt;significantly (65MB per second) , the disks are utilized at 77 percent&lt;br /&gt;and service time is 3.1 msec. At the same time  , i see 65MB. of fpi.&lt;/p&gt;&lt;p class="mobile-post"&gt;1. Why does the low io rate in 1 (noforcedirectio)  create 44.9 msec&lt;br /&gt;service time while the high io rate create only 3.1 msec?  Isnt it&lt;br /&gt;logical to expect to see more io more service time.&lt;/p&gt;&lt;p class="mobile-post"&gt;2. Since the option 2 uses forcedirectio , how can i explain the large&lt;br /&gt;fpi value? (If directio is in use , why does the operating system cache&lt;br /&gt; file data?)&lt;/p&gt;&lt;p class="mobile-post"&gt;3. comparing the %38 sys with %39 wio , which one of them is better ?&lt;/p&gt;&lt;p class="mobile-post"&gt;Kind Regards,&lt;br /&gt;tolga&lt;br /&gt;n&lt;br /&gt;I think the output is related with the IO's type of your application.&lt;/p&gt;&lt;p class="mobile-post"&gt;If IO is through "dd" command, the output is just what you think&lt;br /&gt;right, that is to say,1)using "noforcedirectio" option, IO is using&lt;br /&gt;more cpu power, and cached io(fpi) ,IO thoughput is higher;2)using&lt;br /&gt;"forcedirectio" option,  opposite to the former.&lt;br /&gt;"dd" command is using "read/write" system calls.&lt;/p&gt;&lt;p class="mobile-post"&gt;Rn&lt;br /&gt;Is there any progress about it?&lt;/p&gt;&lt;p class="mobile-post"&gt;To confirm whether using the filecache or not, you can install the&lt;br /&gt;tool bundle "memtool" to assist you.&lt;br /&gt;http://www.solarisinternals.com/si/tools/memtool/index.php&lt;br /&gt;As a command from "memtool", "memps -m" can tell you which file is in&lt;br /&gt;cache and how much cache the file occupy.&lt;/p&gt;&lt;p class="mobile-post"&gt;PS, another tool "directiostat" could be also helpful.&lt;br /&gt;http://www.solarisinternals.com/si/tools/directiostat/index.php&lt;/p&gt;&lt;p class="mobile-post"&gt;n&lt;br /&gt;&amp;gt;Is there any progress about it?&lt;/p&gt;&lt;p class="mobile-post"&gt;I dont understand, if cache is turned off, physial disk IO increases.&lt;br /&gt;This is natural, and the perfomance problems are to be found elsewhere.&lt;/p&gt;&lt;p class="mobile-post"&gt;/wfr&lt;br /&gt;n&lt;br /&gt;The applications such as oracle, which has own file IO management&lt;br /&gt;system, will be benefit from directio (file cache disabled);but the&lt;br /&gt;performance of the normal file system IO will get an impact.&lt;/p&gt;&lt;p class="mobile-post"&gt;n&lt;br /&gt;The applications such as oracle, which has own file IO management&lt;br /&gt;system, will benefit from directio (file cache disabled);but the&lt;br /&gt;performance of the normal file system IO will get an impact.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932320511891323?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932320511891323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932320511891323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932320511891323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932320511891323'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/005-1101-am-subject-directio.html' title='005 11:01 am Subject: directio'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932313393196414</id><published>2005-10-14T15:52:00.000-05:00</published><updated>2005-10-14T15:52:13.933-05:00</updated><title type='text'>graphics monitor and serial console on V440</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: Re: graphics monitor and serial console on V440&lt;br /&gt;n&lt;br /&gt;&amp;gt; We have a V440 running Solaris 9.  The system has an XVR-100 graphics&lt;br /&gt;&amp;gt; card and CRT monitor attached.  Currently the CRT monitor is acting as&lt;br /&gt;&amp;gt; the console.  Is there any way to continue to utilize the CRT monitor&lt;br /&gt;&amp;gt; for logging in and windowing (i.e. continue to see the dtgreet login&lt;br /&gt;&amp;gt; screen and login to CDE) while having another device attached to the&lt;br /&gt;&amp;gt; serial management port act as the console for the system?&lt;/p&gt;&lt;p class="mobile-post"&gt;Yes, that's pretty common.&lt;/p&gt;&lt;p class="mobile-post"&gt;Force the console to the device you want via 'input-device' and&lt;br /&gt;'output-device' in the eeprom.&lt;/p&gt;&lt;p class="mobile-post"&gt;Then cp /usr/dt/config/Xservers to /etc/dt/config (if you don't have one&lt;br /&gt;there already).   Read the examples at the top for the "if no character&lt;br /&gt;device is associated" example and use that at the bottom instead of the&lt;br /&gt;existing line.  It'll probably look something like this when you're&lt;br /&gt;done.&lt;/p&gt;&lt;p class="mobile-post"&gt;   :0   Local local_uid@none root /usr/openwin/bin/Xsun :0 -nobanner&lt;/p&gt;&lt;p class="mobile-post"&gt;The monitor should come alive when dtlogin launches.&lt;/p&gt;&lt;p class="mobile-post"&gt;n&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932313393196414?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932313393196414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932313393196414' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932313393196414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932313393196414'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/graphics-monitor-and-serial-console-on.html' title='graphics monitor and serial console on V440'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932310370546950</id><published>2005-10-14T15:51:00.001-05:00</published><updated>2005-10-14T15:51:43.706-05:00</updated><title type='text'>Sun warns against putting raw data on s2</title><content type='html'>&lt;p class="mobile-post"&gt;It should be noted though, that Sun warns against putting raw data on s2,&lt;br /&gt;since block zero contains the disk label, and labelling will overwrite the&lt;br /&gt;beginning of your raw data.&lt;/p&gt;&lt;p class="mobile-post"&gt;Finally, I'll mention that I saw an interesting case many years ago, where&lt;br /&gt;a disk with s0 consisting of the entire disk got unmounted rather abruptly&lt;br /&gt;to say the least. fsck on s0 complained about a bad superblock, even with&lt;br /&gt;any of the alternate superblock locations. However, I was able to fsck s2&lt;br /&gt;with success, and then mount cleanly. Don't know enough about the guts of&lt;br /&gt;the disk layout to know why this worked, but it did.&lt;/p&gt;&lt;p class="mobile-post"&gt;On the other hand, changing the length of s2 to something other than the&lt;br /&gt;entire disk is an explicit no-no, according to Sun.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932310370546950?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932310370546950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932310370546950' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932310370546950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932310370546950'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/sun-warns-against-putting-raw-data-on.html' title='Sun warns against putting raw data on s2'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932307856639306</id><published>2005-10-14T15:51:00.000-05:00</published><updated>2005-10-14T15:51:18.570-05:00</updated><title type='text'>Understanding Data Link Errors</title><content type='html'>&lt;p class="mobile-post"&gt;Understanding Data Link Errors&lt;br /&gt;Many performance issues with NICs can be related to data link errors.&lt;br /&gt;Excessive errors&lt;br /&gt;usually indicate a problem. When operating at half-duplex setting,&lt;br /&gt;some data link errors&lt;br /&gt;such as Frame Check Sequence (FCS), alignment, runts, and collisions are normal.&lt;br /&gt;Generally, a one percent ratio of errors to total traffic is&lt;br /&gt;acceptable for half-duplex&lt;br /&gt;connections. If the ratio of errors to input packets is greater than&lt;br /&gt;two or three percent,&lt;br /&gt;performance degradation may be noticed.&lt;br /&gt;In half-duplex environments, it is possible for both the switch and&lt;br /&gt;the connected device&lt;br /&gt;to sense the wire and transmit at exactly the same time and result in&lt;br /&gt;a collision.&lt;/p&gt;&lt;p class="mobile-post"&gt;Collisions can cause runts, FCS, and alignment errors due to the frame&lt;br /&gt;not being completely copied to the wire which results in fragmented&lt;br /&gt;frames.&lt;br /&gt;When operating at full-duplex, FCS, Cyclic Redundancy Checks (CRC), alignment&lt;br /&gt;errors, and runt counters should be minimal. If the link is operating&lt;br /&gt;at full-duplex, the&lt;br /&gt;collision counter is not active. If the FCS, CRC, alignment, or runt&lt;br /&gt;counters are&lt;br /&gt;incrementing, check for a duplex mismatch. Duplex mismatch is a&lt;br /&gt;situation where the&lt;br /&gt;switch is operating at full-duplex and the connected device is&lt;br /&gt;operating at half-duplex, or&lt;br /&gt;vice versa. The result of a duplex mismatch will be extremely slow performance,&lt;br /&gt;intermittent connectivity, and loss of connection. Other possible&lt;br /&gt;causes of data link errors&lt;br /&gt;at full-duplex are bad cables, faulty switch port, or NIC&lt;br /&gt;software/hardware issues.&lt;/p&gt;&lt;p class="mobile-post"&gt;Explanation of Port Errors Counter Description&lt;/p&gt;&lt;p class="mobile-post"&gt;Troubleshooting NIC Compatibility Issues on ISUnet&lt;/p&gt;&lt;p class="mobile-post"&gt;Alignment Errors&lt;br /&gt;Alignment errors are a count of the number of frames received that don't end&lt;br /&gt;with an even number of octets and have a bad CRC.&lt;/p&gt;&lt;p class="mobile-post"&gt;FCS(Frame Check Sequence)&lt;br /&gt;FCS error count is the number of frames that were transmitted/received&lt;br /&gt;with a bad&lt;br /&gt;checksum (CRC value) in the Ethernet frame. These frames are dropped and not&lt;br /&gt;propagated onto other ports.&lt;/p&gt;&lt;p class="mobile-post"&gt;Xmit-Err&lt;br /&gt;This is an indication that the internal transmit buffer is full.&lt;/p&gt;&lt;p class="mobile-post"&gt;Rcv-Err&lt;br /&gt;This is an indication that the receive buffer is full.&lt;/p&gt;&lt;p class="mobile-post"&gt;UnderSize&lt;br /&gt;These are frames which are smaller than 64 bytes (including FCS) and have a&lt;br /&gt;good FCS value.&lt;/p&gt;&lt;p class="mobile-post"&gt;Single Collisions&lt;br /&gt;Single collisions are the number of times the transmitting port had&lt;br /&gt;one collision&lt;br /&gt;before successfully transmitting the frame to the media.&lt;/p&gt;&lt;p class="mobile-post"&gt;Multiple Collisions&lt;br /&gt;Multiple collisions are the number of times the transmitting port had more than&lt;br /&gt;one collision before successfully transmitting the frame to the media.&lt;/p&gt;&lt;p class="mobile-post"&gt;Late Collisions&lt;br /&gt;A late collision occurs when two devices transmit at the same time and&lt;br /&gt;neither side&lt;br /&gt;of the connection detects a collision. The reason for this occurrence&lt;br /&gt;is because the&lt;br /&gt;time to propagate the signal from one end of the network to another is&lt;br /&gt;longer than&lt;br /&gt;the time to put the entire packet on the network. The two devices that cause the&lt;br /&gt;late collision never see that the other is sending until after it puts&lt;br /&gt;the entire&lt;br /&gt;packet on the network. Late collisions are detected by the transmitter&lt;br /&gt;after the first&lt;br /&gt;"slot time" of 64 byte times. They are only detected during transmissions of&lt;br /&gt;packets longer than 64 bytes. Its detection is exactly the same as for a&lt;br /&gt;normal collision; it just happens late when compared to a normal collision.&lt;/p&gt;&lt;p class="mobile-post"&gt;Excessive&lt;br /&gt;Excessive collision are the number of Collisions frames that are&lt;br /&gt;dropped after 16 attempts&lt;br /&gt;to send the packet resulting in 16 collisions.&lt;/p&gt;&lt;p class="mobile-post"&gt;Carrier Sense&lt;br /&gt;Carrier Sense occurs every time an Ethernet controller wants to send data&lt;br /&gt;and the counter is incremented when there is an error in the process.&lt;/p&gt;&lt;p class="mobile-post"&gt;Runts&lt;br /&gt;These are frames smaller than 64 bytes with a bad FCS value.&lt;/p&gt;&lt;p class="mobile-post"&gt;Giants&lt;br /&gt;These are frames that are greater than 1518 bytes and have a bad FCS value.&lt;/p&gt;&lt;p class="mobile-post"&gt;Possible Causes for Incrementing Port Errors&lt;br /&gt;Counter Possible Cause&lt;/p&gt;&lt;p class="mobile-post"&gt;Alignment Errors&lt;br /&gt;These are the result of collisions at half-duplex, duplex mismatch, bad hardware&lt;br /&gt;(NIC, cable or port), or connected device generating frames that do&lt;br /&gt;not end with on&lt;br /&gt;an octet and have a bad FCS.&lt;/p&gt;&lt;p class="mobile-post"&gt;FCS (Frame Check Sequence)&lt;br /&gt;These are the result of collisions at half-duplex, duplex mismatch, bad hardware&lt;br /&gt;(NIC, cable, or port), or connected device generating frames with bad FCS.&lt;/p&gt;&lt;p class="mobile-post"&gt;Xmit-Err&lt;br /&gt;This is an indication of excessive input rates of traffic. This is&lt;br /&gt;also an indication&lt;br /&gt;of transmit buffer being full. The counter should only increment in situations&lt;br /&gt;where the switch is unable to forwarded out the port at a desired&lt;br /&gt;rate. Situations&lt;br /&gt;such as excessive collisions and 10 megabit ports will cause the transmit&lt;br /&gt;buffer to become full. Increasing speed and moving link partner to full-duplex&lt;br /&gt;should minimalize this occurance.&lt;/p&gt;&lt;p class="mobile-post"&gt;Rcv-Err&lt;br /&gt;This is an indication of excessive output rates of traffic. This is&lt;br /&gt;also an indication&lt;br /&gt;of the receive buffer being full. This counter should be zero unless there is&lt;br /&gt;excessive traffic through the switch. In some switches, the outlost&lt;br /&gt;counter has a&lt;br /&gt;direct correlation to the Rcv-Err.&lt;/p&gt;&lt;p class="mobile-post"&gt;UnderSize This is an indication of a bad frame generated by the&lt;br /&gt;connected device.&lt;/p&gt;&lt;p class="mobile-post"&gt;Single Collisions&lt;br /&gt;This is an indication of a half-duplex configuration.&lt;/p&gt;&lt;p class="mobile-post"&gt;Multiple Collisions&lt;br /&gt;This is an indication of a half-duplex configuration.&lt;/p&gt;&lt;p class="mobile-post"&gt;Late Collisions&lt;br /&gt;This is an indicationof faulty hardware (NIC, cable, or switch port) or duplex&lt;br /&gt;mismatch.&lt;/p&gt;&lt;p class="mobile-post"&gt;Excessive Collisions&lt;br /&gt;This is an indication of over-utilization of switch port at&lt;br /&gt;half-duplex or duplex&lt;br /&gt;mismatch.&lt;/p&gt;&lt;p class="mobile-post"&gt;Carrier Sense&lt;br /&gt;This is an indication of faulty hardware (NIC, cable, or switch port).&lt;/p&gt;&lt;p class="mobile-post"&gt;Runts&lt;br /&gt;This is an indication of the result of collisions, duplex mismatch, dot1q, or&lt;br /&gt;ISL configuration issue.&lt;/p&gt;&lt;p class="mobile-post"&gt;Giants&lt;br /&gt;This is an indication of faulty hardware, dot1q, or ISL configuration issue.&lt;/p&gt;&lt;p class="mobile-post"&gt;Additional Troubleshooting for 1000BaseX NICs&lt;br /&gt;Gigabit Auto-Negotiation (No Link to Connected Device)&lt;br /&gt;Gigabit Ethernet has an auto-negotiation procedure that is more&lt;br /&gt;extensive than what is&lt;br /&gt;used for 10/100 Mbps Ethernet (Gigabit Auto-negotiation spec: IEEE Std&lt;br /&gt;802.3z-1998).&lt;br /&gt;The Gigabit Auto-negotiation negotiates flow control, duplex mode, and&lt;br /&gt;remote fault&lt;br /&gt;information. You must either enable or disable link negotiation on&lt;br /&gt;both ends of the link.&lt;br /&gt;Both ends of the link must be set to the same value or the link will&lt;br /&gt;not connect.&lt;br /&gt;If either device does not support Gigabit auto-negotiation, disabling&lt;br /&gt;Gigabit auto-&lt;br /&gt;negotiation will force the link up. Disabling auto-negotiation "hides"&lt;br /&gt;link drops and other&lt;br /&gt;physical layer problems. Only disable auto-negotiation to end-devices&lt;br /&gt;such as older&lt;br /&gt;Gigabit NICs that do not support Gigabit auto-negotiation. Do not disable auto-&lt;br /&gt;negotiation between switches unless absolutely required as physical&lt;br /&gt;layer problems may&lt;br /&gt;go undetected and result in spanning-tree loops. The alternative to&lt;br /&gt;disabling auto-&lt;br /&gt;negotiation is contacting the vendor for software/hardware upgrade for&lt;br /&gt;IEEE 802.3z&lt;br /&gt;Gigabit auto-negotiation support.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932307856639306?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932307856639306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932307856639306' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932307856639306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932307856639306'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/understanding-data-link-errors.html' title='Understanding Data Link Errors'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932271240526615</id><published>2005-10-14T15:45:00.000-05:00</published><updated>2005-10-14T15:45:12.430-05:00</updated><title type='text'>Network Configuration configure the driver</title><content type='html'>&lt;p class="mobile-post"&gt;Network Configuration&lt;/p&gt;&lt;p class="mobile-post"&gt;This section describes how to configure the driver after it has been&lt;br /&gt;installed on your system.&lt;br /&gt;To Configure the Host Files&lt;/p&gt;&lt;p class="mobile-post"&gt;After installing the Sun GigabitEthernet adapter driver software, you&lt;br /&gt;must create a file for the adapter's Ethernet interface. You must also&lt;br /&gt;create both an IP address and a host name for the Ethernet interface&lt;br /&gt;in the /etc/hosts file.&lt;/p&gt;&lt;p class="mobile-post"&gt;   1.&lt;/p&gt;&lt;p class="mobile-post"&gt;      At the command line, use the grep command to search the&lt;br /&gt;/etc/path_to_inst file for ge interfaces.&lt;/p&gt;&lt;p class="mobile-post"&gt;      For Sun GigabitEthernet/P:&lt;/p&gt;&lt;p class="mobile-post"&gt;      The following example shows the device instance from an adapter&lt;br /&gt;installed in slot 1.&lt;/p&gt;&lt;p class="mobile-post"&gt;# grep ge /etc/path_to_inst&lt;br /&gt;"/pci@1f,4000/network@1" 0 "ge"&lt;/p&gt;&lt;p class="mobile-post"&gt;      For Sun GigabitEthernet/S:&lt;/p&gt;&lt;p class="mobile-post"&gt;      The following example shows the device instance from an adapter&lt;br /&gt;installed in slot 0.&lt;/p&gt;&lt;p class="mobile-post"&gt;# grep ge /etc/path_to_inst&lt;br /&gt;"/sbus@1f,0/network@1" 0 "ge"&lt;/p&gt;&lt;p class="mobile-post"&gt;   2.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Create an /etc/hostname.ge&amp;lt;num&amp;gt; file, where num is the instance&lt;br /&gt;number of the ge interface you plan to use.&lt;/p&gt;&lt;p class="mobile-post"&gt;      If you wanted to use the adapter's ge interface in the Step 1&lt;br /&gt;example, you would need to create a /etc/hostname.ge0 file, where 0 is&lt;br /&gt;the number of the ge interface. If the instance number were 1, the&lt;br /&gt;file name would be /etc/hostname.ge1.&lt;br /&gt;          *&lt;/p&gt;&lt;p class="mobile-post"&gt;            Do not create an /etc/hostname.genum file for a Sun&lt;br /&gt;GigabitEthernet adapter interface you plan to leave unused.&lt;br /&gt;          *&lt;/p&gt;&lt;p class="mobile-post"&gt;            The /etc/hostname.genum file must contain the host name&lt;br /&gt;for the appropriate ge interface.&lt;br /&gt;          *&lt;/p&gt;&lt;p class="mobile-post"&gt;            The host name should have an IP address and should be&lt;br /&gt;entered in the /etc/hosts file.&lt;br /&gt;          *&lt;/p&gt;&lt;p class="mobile-post"&gt;            The host name should be different from any other host name&lt;br /&gt;of any other interface: for example, /etc/hostname.ge0 and&lt;br /&gt;/etc/hostname.ge1 cannot share the same host name.&lt;/p&gt;&lt;p class="mobile-post"&gt;      The following example shows the /etc/hostname.genum file&lt;br /&gt;required for a system called zardoz that has a Sun GigabitEthernet&lt;br /&gt;adapter (zardoz-11).&lt;/p&gt;&lt;p class="mobile-post"&gt;# cat /etc/hostname.ge0&lt;br /&gt;zardoz&lt;br /&gt;# cat /etc/hostname.ge1&lt;br /&gt;zardoz-11&lt;/p&gt;&lt;p class="mobile-post"&gt;   3.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Create an appropriate entry in the /etc/hosts file for each&lt;br /&gt;active ge interface.&lt;/p&gt;&lt;p class="mobile-post"&gt;      For example:&lt;/p&gt;&lt;p class="mobile-post"&gt;# cat /etc/hosts&lt;br /&gt;#&lt;br /&gt;# Internet host table&lt;br /&gt;#&lt;br /&gt;127.0.0.1     localhost&lt;br /&gt;129.144.10.57 zardoz    loghost&lt;br /&gt;129.144.11.83 zardoz-11&lt;/p&gt;&lt;p class="mobile-post"&gt;   4.&lt;/p&gt;&lt;p class="mobile-post"&gt;      If your system does not support Dynamic Reconfiguration (DR), reboot.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932271240526615?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932271240526615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932271240526615' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932271240526615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932271240526615'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/network-configuration-configure-driver.html' title='Network Configuration configure the driver'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932267068003248</id><published>2005-10-14T15:44:00.001-05:00</published><updated>2005-10-14T15:44:30.680-05:00</updated><title type='text'>Ethernet Jumbo Frame Configuration Procedure</title><content type='html'>&lt;p class="mobile-post"&gt;Ethernet Jumbo Frame Configuration Procedure&lt;/p&gt;&lt;p class="mobile-post"&gt;No configuration changes are required in the iSCSI driver or in the&lt;br /&gt;Solaris operating system to support jumbo frames. Instead,&lt;br /&gt;configuration changes must be made in the Network Interface Card&lt;br /&gt;(NIC), through the use of the configuration interface and tools that&lt;br /&gt;are provided by the NIC manufacturer. Not all NICs support jumbo&lt;br /&gt;frames, so check with your manufacturer to verify that this feature is&lt;br /&gt;supported. Also, the network equipment (Ethernet switches, routers,&lt;br /&gt;and so forth) between the host and the SN 5400 will have to be&lt;br /&gt;configured to accept jumbo frames, because most equipment does not&lt;br /&gt;support this capability by default.&lt;br /&gt;Performance Improvement Techniques&lt;/p&gt;&lt;p class="mobile-post"&gt;These are the most likely reasons that iSCSI network performance is&lt;br /&gt;lower than expected:&lt;/p&gt;&lt;p class="mobile-post"&gt;    *&lt;/p&gt;&lt;p class="mobile-post"&gt;      Flow control has not been enabled on the NIC card in the host.&lt;br /&gt;    *&lt;/p&gt;&lt;p class="mobile-post"&gt;      Flow control has not been enabled on one or more of the switches&lt;br /&gt;in the Ethernet network that is between the host and the SN 5400.&lt;/p&gt;&lt;p class="mobile-post"&gt;To see these problems, observe either the retransmit timeout or the&lt;br /&gt;data packets retransmitted counters in the SN 5400. You can also&lt;br /&gt;observe the TCP segments retransmitted counter: issue the netstat -s&lt;br /&gt;command in Solaris.&lt;/p&gt;&lt;p class="mobile-post"&gt;Many NICs and switches are shipped with pause frames (flow control)&lt;br /&gt;disabled. If you enable pause frames on all Gigabit Ethernet&lt;br /&gt;interfaces (the host system and all network switches), then you will&lt;br /&gt;help reduce dropped packets: a source of significant performance&lt;br /&gt;degradation. By default, pause frames are enabled on the SN 5400 and&lt;br /&gt;are not user-configurable.&lt;/p&gt;&lt;p class="mobile-post"&gt;If your server uses a Sun Gigabit Ethernet adapter NIC, then use this&lt;br /&gt;procedure to enable flow control (by default, receive flow control is&lt;br /&gt;disabled for the Sun adapter):&lt;/p&gt;&lt;p class="mobile-post"&gt;   1.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Add this line to the /kernel/drv/ge.conf file (by default, this&lt;br /&gt;file does not exist):&lt;/p&gt;&lt;p class="mobile-post"&gt;adv_pauseTX=1;&lt;/p&gt;&lt;p class="mobile-post"&gt;   2.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Reboot the Solaris host.&lt;br /&gt;   3.&lt;/p&gt;&lt;p class="mobile-post"&gt;      Issue this command to verify that adv_pauseTX is set properly:&lt;/p&gt;&lt;p class="mobile-post"&gt;ndd/dev/ge adv_pauseTX&lt;/p&gt;&lt;p class="mobile-post"&gt;      The NIC should respond with a value of 1.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932267068003248?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932267068003248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932267068003248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932267068003248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932267068003248'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/ethernet-jumbo-frame-configuration.html' title='Ethernet Jumbo Frame Configuration Procedure'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932264517504062</id><published>2005-10-14T15:44:00.000-05:00</published><updated>2005-10-14T15:44:05.183-05:00</updated><title type='text'>Troubleshooting Difficulties Network</title><content type='html'>&lt;p class="mobile-post"&gt;Troubleshooting Difficulties&lt;br /&gt;Disabling autonegotiation can result in physical layer problems going&lt;br /&gt;undetected.&lt;br /&gt;Link partner, cable problems, and other Data Link layer issues are&lt;br /&gt;hidden from the&lt;br /&gt;administrator and manual examination of driver statistics is required.&lt;br /&gt;s&lt;br /&gt;Unable to detect bad cables&lt;br /&gt;s&lt;br /&gt;Unable to detect link failures&lt;br /&gt;s&lt;br /&gt;Unable to check link partners capabilities&lt;br /&gt;s&lt;br /&gt;Unable to move systems from one port to another or to another switch or router&lt;br /&gt;s&lt;br /&gt;Unable to determine performance issues on higher layer applications&lt;br /&gt;s&lt;br /&gt;Unable to implement Pause Frames (Flow Control)&lt;br /&gt;s&lt;br /&gt;Difficulties in determining where system has forced setting configured&lt;br /&gt;(/etc/system and driver.conf using ndd in startup script&lt;br /&gt;Link syncing between link partners may not happen and the link may not come up&lt;br /&gt;when autonegotiation is absent on 100BASE-T (UTP) copper.&lt;br /&gt;Example of hme interface with duplex mismatch:&lt;br /&gt;hme0 has negotiated and failed back to HDX and experiencing crc babble and&lt;br /&gt;late_collisions.&lt;br /&gt;Console&amp;gt; show port negotiation 4/1&lt;br /&gt;Port&lt;br /&gt;Link Negotiation&lt;br /&gt;----- ----------------&lt;br /&gt;4/1 enabled&lt;br /&gt;# kstat -p hme:0::'/collisions|framing|crc|code_violations|tx_late_collisions/'&lt;br /&gt;hme:0:hme0:code_violations&lt;br /&gt;0&lt;br /&gt;hme:0:hme0:collisions&lt;br /&gt;16720&lt;br /&gt;Page 14&lt;br /&gt;12&lt;br /&gt;Ethernet Autonegotiation Best Practices • July 2004&lt;br /&gt;Example of hme interface with duplex mismatch:&lt;br /&gt;hme1 is forced to FDX and experiencing framing, crc, and code_violation errors.&lt;br /&gt;Example of switch port with duplex mismatch:&lt;br /&gt;Port 11/22 has been forced to FDX (Full Duplex) but link partner is in HDX (half&lt;br /&gt;duplex), resulting in FCS (Frame Check Sequence) and runt errors.&lt;br /&gt;Check that port negotiation is enabled on the switch:&lt;br /&gt;hme:0:hme0:crc 0&lt;br /&gt;hme:0:hme0:framing&lt;br /&gt;0&lt;br /&gt;hme:0:hme0:tx_late_collisions 5706&lt;br /&gt;# kstat -p hme:1::'/collisions|framing|crc|code_violations|tx_late_collisions/'&lt;br /&gt;hme:1:hme1:code_violations&lt;br /&gt;147&lt;br /&gt;hme:1:hme1:collisions 0&lt;br /&gt;hme:1:hme1:crc 283&lt;br /&gt;hme:1:hme1:framing&lt;br /&gt;8&lt;br /&gt;hme:1:hme1:tx_late_collisions 0&lt;br /&gt;Console&amp;gt; show port counters 11/22&lt;br /&gt;Port Align-Err FCS-Err Xmit-Err&lt;br /&gt;Rcv-Err&lt;br /&gt;UnderSize&lt;br /&gt;----- ---------- ---------- ---------- ---------- ---------&lt;br /&gt;11/22&lt;br /&gt;0&lt;br /&gt;572968&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts&lt;br /&gt;Giants&lt;br /&gt;----- ---------- ---------- ---------- ---------- --------- --------- ---------&lt;br /&gt;11/22&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;0 9765322&lt;br /&gt;0&lt;br /&gt;Console&amp;gt; show port negotiation 4/1&lt;br /&gt;Port&lt;br /&gt;Link Negotiation&lt;br /&gt;----- ----------------&lt;br /&gt;4/1 enabled&lt;br /&gt;Console&amp;gt; show port negotiation 4/1&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932264517504062?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932264517504062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932264517504062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932264517504062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932264517504062'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/troubleshooting-difficulties-network.html' title='Troubleshooting Difficulties Network'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932256370682277</id><published>2005-10-14T15:42:00.001-05:00</published><updated>2005-10-14T15:42:43.706-05:00</updated><title type='text'>Strange fsck behaviour with alternated superblock</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: Re: Strange fsck behaviour with alternated superblock&lt;/p&gt;&lt;p class="mobile-post"&gt;JBR wrote:&lt;br /&gt;&amp;gt; Why is it asking "FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE?" when doing&lt;br /&gt;&amp;gt; fsck with alternated superblock ?&lt;br /&gt;&amp;gt; Is this normal behaviour?&lt;/p&gt;&lt;p class="mobile-post"&gt;Yes, this is normal.  The dynamic data is only updated (or only&lt;br /&gt;regularly updated) in the main superblock I think, so the other ones&lt;br /&gt;get stale pretty fast.  Really, they're a repository of layout&lt;br /&gt;information about the FS so you can find things like cgs &amp;amp;c in&lt;br /&gt;emergency.&lt;/p&gt;&lt;p class="mobile-post"&gt;--tim&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; I'am using Solaris 9 on a V440 with a Sun Storedge 3310.&lt;br /&gt;&amp;gt; I have a strange behaviour with using fsck with a alternated supperblock:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; First make a filesystem:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; # newfs /dev/md/rdsk/d21&lt;br /&gt;&amp;gt; newfs: /dev/md/rdsk/d21 last mounted as /afs7&lt;br /&gt;&amp;gt; newfs: construct a new file system /dev/md/rdsk/d21: (y/n)? y&lt;br /&gt;&amp;gt; /dev/md/rdsk/d21:       1430192192 sectors in 65533 cylinders of 64&lt;br /&gt;&amp;gt; tracks,&lt;br /&gt;&amp;gt; 341 sectors&lt;br /&gt;&amp;gt;         698336.0MB in 13107 cyl groups (5 c/g, 53.28MB/g, 6528 i/g)&lt;br /&gt;&amp;gt; super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt;&amp;gt;  32, 109504, 218976, 328448, 437920, 547392, 656864, 766336, 875808,&lt;br /&gt;&amp;gt; 985280,&lt;br /&gt;&amp;gt; Initializing cylinder groups:&lt;br /&gt;&amp;gt; ............................................................................&lt;br /&gt;&amp;gt; ...&lt;br /&gt;&amp;gt; ............................................................................&lt;br /&gt;&amp;gt; ...&lt;br /&gt;&amp;gt; ............................................................................&lt;br /&gt;&amp;gt; ...&lt;br /&gt;&amp;gt; ........................&lt;br /&gt;&amp;gt; super-block backups for last 10 cylinder groups at:&lt;br /&gt;&amp;gt;  1429159104, 1429268576, 1429378048, 1429487520, 1429596992, 1429706464,&lt;br /&gt;&amp;gt;  1429815936, 1429925408, 1430034880, 1430144352,&lt;br /&gt;&amp;gt; Do normal fsck:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; # fsck -F ufs /dev/md/rdsk/d21&lt;br /&gt;&amp;gt; ** /dev/md/rdsk/d21&lt;br /&gt;&amp;gt; ** Last Mounted on /afs7&lt;br /&gt;&amp;gt; ** Phase 1 - Check Blocks and Sizes&lt;br /&gt;&amp;gt; ** Phase 2 - Check Pathnames&lt;br /&gt;&amp;gt; ** Phase 3 - Check Connectivity&lt;br /&gt;&amp;gt; ** Phase 4 - Check Reference Counts&lt;br /&gt;&amp;gt; ** Phase 5 - Check Cyl groups&lt;br /&gt;&amp;gt; 2 files, 9 used, 704125298 free (10 frags, 88015661 blocks, 0.0%&lt;br /&gt;&amp;gt; fragmentation)&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Mount de filesystem:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; # mount /afs7&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Umount without doing something on the filesystem:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; # umount /afs7&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Do fsck with alternated superblock:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; # fsck -F ufs -o b=109504 /dev/md/rdsk/d21&lt;br /&gt;&amp;gt; Alternate super block location: 109504.&lt;br /&gt;&amp;gt; ** /dev/md/rdsk/d21&lt;br /&gt;&amp;gt; ** Last Mounted on&lt;br /&gt;&amp;gt; ** Phase 1 - Check Blocks and Sizes&lt;br /&gt;&amp;gt; ** Phase 2 - Check Pathnames&lt;br /&gt;&amp;gt; ** Phase 3 - Check Connectivity&lt;br /&gt;&amp;gt; ** Phase 4 - Check Reference Counts&lt;br /&gt;&amp;gt; ** Phase 5 - Check Cyl groups&lt;br /&gt;&amp;gt; FREE BLK COUNT(S) WRONG IN SUPERBLK&lt;br /&gt;&amp;gt; SALVAGE? y&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; 2 files, 9 used, 704190842 free (10 frags, 88023854 blocks, 0.0%&lt;br /&gt;&amp;gt; fragmentation)&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; ***** FILE SYSTEM WAS MODIFIED *****&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Again same fsck without mounting fs:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; # fsck -F ufs -o b=109504 /dev/md/rdsk/d21&lt;br /&gt;&amp;gt; Alternate super block location: 109504.&lt;br /&gt;&amp;gt; ** /dev/md/rdsk/d21&lt;br /&gt;&amp;gt; ** Last Mounted on&lt;br /&gt;&amp;gt; ** Phase 1 - Check Blocks and Sizes&lt;br /&gt;&amp;gt; ** Phase 2 - Check Pathnames&lt;br /&gt;&amp;gt; ** Phase 3 - Check Connectivity&lt;br /&gt;&amp;gt; ** Phase 4 - Check Reference Counts&lt;br /&gt;&amp;gt; ** Phase 5 - Check Cyl groups&lt;br /&gt;&amp;gt; 2 files, 9 used, 704190842 free (10 frags, 88023854 blocks, 0.0%&lt;br /&gt;&amp;gt; fragmentation)&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; ***** FILE SYSTEM WAS MODIFIED *****&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Modified , without asking something!&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; When doing normal fsck everything is ok, but when using alternated&lt;br /&gt;&amp;gt; superblock (makes no difference which one) it is always asking the&lt;br /&gt;&amp;gt; salvage&lt;br /&gt;&amp;gt; question. Makes also no difference if filesystem is mounted or not&lt;br /&gt;&amp;gt; mounted&lt;br /&gt;&amp;gt; between fsck's.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Why is it asking "FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE?" when&lt;br /&gt;&amp;gt; doing&lt;br /&gt;&amp;gt; fsck with alternated superblock ?&lt;br /&gt;&amp;gt; Is this normal behaviour?&lt;/p&gt;&lt;p class="mobile-post"&gt;yes, the alternate SB's are only updated during mkfs_ufs(1M),&lt;br /&gt;tunefs(1M) and growfs(1M) - they are not kept updated during&lt;br /&gt;regular use as far as dynamic changes to allocations is concerned.&lt;/p&gt;&lt;p class="mobile-post"&gt;---&lt;br /&gt;frankB&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932256370682277?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932256370682277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932256370682277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932256370682277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932256370682277'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/strange-fsck-behaviour-with-alternated.html' title='Strange fsck behaviour with alternated superblock'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932252365267163</id><published>2005-10-14T15:42:00.000-05:00</published><updated>2005-10-14T15:42:03.653-05:00</updated><title type='text'>Veritas Volume Manager ! Changing Hostname</title><content type='html'>&lt;p class="mobile-post"&gt;Veritas Volume Manager !&lt;/p&gt;&lt;p class="mobile-post"&gt;What are the effects of a *hostname change* on a server&lt;br /&gt;which has all of it's drives including root/swap&lt;br /&gt;encapsulated by Veritas Volume Manager  ??&lt;/p&gt;&lt;p class="mobile-post"&gt;I have had a worst experience with LSM ( Digital version of&lt;br /&gt;Veritas Volume Manager ) very recently.&lt;/p&gt;&lt;p class="mobile-post"&gt;Gopala,&lt;/p&gt;&lt;p class="mobile-post"&gt;Veritas VM assigns ownership to objects based on hostname, if you change&lt;br /&gt;the hostname, the system will no longer own the objects.&lt;/p&gt;&lt;p class="mobile-post"&gt;Ron&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Ron&lt;/p&gt;&lt;p class="mobile-post"&gt;If you forget to export the volume group, you can manually change&lt;br /&gt;the volume group ownership to allow it to be reimported.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; &amp;gt; Any discussion on this will be highly appreciated.&lt;/p&gt;&lt;p class="mobile-post"&gt;It's not clear what the problem that you ran into was.  Encapsulated&lt;br /&gt;volume groups aren't the cleanest part of Veritas volume manager.&lt;br /&gt;Worst case, don't start the volume manager, manually delete anything&lt;br /&gt;you can find of the encapsulated root volume group, restart the volume&lt;br /&gt;manager and re-encapsulate the root volume group.  Can't give you&lt;br /&gt;specifics since I don't have a volume manager running currently.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you had a stand alone boot disk w/ a copy of the volume manager on&lt;br /&gt;it, you could use it to change host ownership.&lt;/p&gt;&lt;p class="mobile-post"&gt;If it turns out that Veritas can't handle hostname changes, you could&lt;br /&gt;have always delete the root volume group before hand.  Deleting volume&lt;br /&gt;manager entities doesn't delete the actual data.&lt;/p&gt;&lt;p class="mobile-post"&gt;Offhand, based on what you haven't told us, that's all I can think&lt;br /&gt;of.&lt;/p&gt;&lt;p class="mobile-post"&gt;I have changed the host name of a machine running VM 2.6 (under Solaris 2.6)&lt;br /&gt;and nothing happens except that some processes are running with the old name,&lt;br /&gt;but all works fine.&lt;/p&gt;&lt;p class="mobile-post"&gt;Check out man vxdctl&lt;/p&gt;&lt;p class="mobile-post"&gt;The commannd is vxdctl init newname&lt;/p&gt;&lt;p class="mobile-post"&gt;    vxdctl init new_name&lt;/p&gt;&lt;p class="mobile-post"&gt;To confirm the change (and you may want to save the file before the&lt;br /&gt;change, just in case ...), look in /etc/vx/volboot&lt;br /&gt;(This is the name veritas is going to use during imports).&lt;/p&gt;&lt;p class="mobile-post"&gt;Good Luck.&lt;/p&gt;&lt;p class="mobile-post"&gt;Jeff Robinson / HDG&lt;/p&gt;&lt;p class="mobile-post"&gt;I&lt;br /&gt;&amp;gt; encapsulated by Veritas Volume Manager  ??&lt;/p&gt;&lt;p class="mobile-post"&gt;None at all. VxVM doesn't care a whit what the hostname is.&lt;br /&gt;Now, if your hostid changes, you'll have licensing issues and&lt;br /&gt;diskgroup attachment issues, but that's not what you asked.&lt;/p&gt;&lt;p class="mobile-post"&gt;	&lt;br /&gt;K&lt;br /&gt;[Doug Hughes]&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;   None at all. VxVM doesn't care a whit what the hostname is.&lt;/p&gt;&lt;p class="mobile-post"&gt;Oh, if only that was true.  VxVM didn't find the A1000 until we&lt;br /&gt;changed the hostname into non-FQDN.  Now, why it cares is a mystery.&lt;br /&gt;I wouldn't take any chances with that software...&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; diskgroup attachment issues, but that's not what you asked.&lt;/p&gt;&lt;p class="mobile-post"&gt;Changing the hostname will not affect the volumes you've previously&lt;br /&gt;installed unless you&lt;br /&gt;issue a vxdctl init command which will change the output of vxdctl&lt;br /&gt;list (hostid in there) this will cause VxVM to&lt;br /&gt;think the disks are&lt;br /&gt;owned by someone else.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;br&amp;gt;Now, if your hostid changes, you'll have licensing issues and&lt;br /&gt;&amp;lt;br&amp;gt;diskgroup attachment issues, but that's not what you asked.&amp;lt;/blockquote&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;Changing the hostname will not affect the volumes you've previously&lt;br /&gt;installed unless you&lt;br /&gt;&amp;lt;br&amp;gt;issue a vxdctl init command which will change the output of vxdctl&lt;br /&gt;list (hostid in there) this will cause VxVM to think the disks are&lt;br /&gt;&amp;lt;br&amp;gt;owned by someone else.&lt;br /&gt;&amp;lt;&lt;br /&gt;&amp;gt; I wouldn't take any chances with that software...&lt;/p&gt;&lt;p class="mobile-post"&gt;That is a problem with rm6, the software that manages the A1000, not&lt;br /&gt;with VxVM.&lt;/p&gt;&lt;p class="mobile-post"&gt;I believe that the latest rm6 fixes this, not 100% sure though.&lt;br /&gt;--&lt;/p&gt;&lt;p class="mobile-post"&gt;Actually what is happening is:&lt;br /&gt;As I said it is called LSM ( logical storage Manager,&lt;br /&gt;digital VxVM )&lt;br /&gt;I start the server in single user mode, then I can see the&lt;br /&gt;contents of the /etc/vol/tempdb directory ( which contains&lt;br /&gt;all the disk groups listed ). Once I start the Veritas&lt;br /&gt;services it locks out this directory. And every service&lt;br /&gt;depends on the contents of this directory. Thus all&lt;br /&gt;Diskgroups disappear from the picture, including vold ( on&lt;br /&gt;Sun VXLD )daemon which is needed by all services and tools&lt;br /&gt;on veritas.&lt;br /&gt;My question is: Did it ever happen to anyone, wherein some&lt;br /&gt;directories/file systems, encapsulated by VxVM, are not&lt;br /&gt;accessible in *run level 3* and are accessible in *run&lt;br /&gt;level 1* or when mounted as ReadOnly ??&lt;/p&gt;&lt;p class="mobile-post"&gt;I&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932252365267163?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932252365267163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932252365267163' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932252365267163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932252365267163'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/veritas-volume-manager-changing.html' title='Veritas Volume Manager ! Changing Hostname'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932230414026585</id><published>2005-10-14T15:38:00.000-05:00</published><updated>2005-10-14T15:38:24.143-05:00</updated><title type='text'>Effective throughput can I expect on a Gigabit Ethernet link with UltraSparc-3 CPU</title><content type='html'>&lt;p class="mobile-post"&gt;As there were many various interesting answers, I will quote all of them.&lt;br /&gt;Basically, I could expect near 100 Mbytes/s with Jumbo Frames under SunFire&lt;br /&gt;(This does not take the disk backend into account, just memory-to-memory&lt;br /&gt;transfer speaking...).&lt;br /&gt;Thank you all.&lt;/p&gt;&lt;p class="mobile-post"&gt;--------------------------------------------------------------&lt;br /&gt;Joe Fletcher's answers:&lt;br /&gt;On a V880 8x900 we did some basic tests using ftp which gave us about&lt;br /&gt;45MB/s.&lt;br /&gt;This put about a 10-15% overhead on  the machine (ie it takes about a whole&lt;br /&gt;UltraIII cpu to drive the card in any serious sense). This is dumping data&lt;br /&gt;from an FC array down separate HBAs to another array volume.&lt;br /&gt;...&lt;br /&gt;Just checked some old results from another site I used to run. Probably not&lt;br /&gt;very interesting to you but on an Alpha ES40 4xEV6 serving a group of Intel&lt;br /&gt;clients we managed to get about 80MB/s. The Alpha was linked into a 3COM&lt;br /&gt;switch via gigabit with the clients each on a 100FD port on the same switch.&lt;br /&gt;Each client was tranferring  a different set of files, some via ftp, some&lt;br /&gt;via the SMB server software (ASU). We could get similar results using two&lt;br /&gt;Alphas with memory filesystems mounted which allowed us to get the storage&lt;br /&gt;out of the picture. Not representative of real world particularly but we&lt;br /&gt;just wanted to see how fast it was capable of going. I suspect the file&lt;br /&gt;caching helped quite a lot where the PC clients were concerned.&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;Christophe Dupre's answer:&lt;br /&gt;What ethernet card do you have in your server ? Sun has at least two&lt;br /&gt;chipsets used in gigabit cards: GEM (with interface as ge0) and Cassini (sun&lt;br /&gt;gigaswift, ce0 interface).&lt;br /&gt;The GEM is older and pretty much all the processing is done by the CPU, and&lt;br /&gt;the throughput isn't that great. The Cassini is much better and offload some&lt;br /&gt;processing (IP CRC and TCP CRC) to the card, yielding much better&lt;br /&gt;throughput.&lt;br /&gt;Note that GEM is only 1000BaseSX, while Cassini does both fiber and copper.&lt;br /&gt;What do you use to compute the throughput ? I use iperf and between two&lt;br /&gt;servers (both ultrasparc -2 400MHz, both dual CPU), both having GEM-based&lt;br /&gt;cards connected to a Cisco 4506 switch I get 85Mbit/s for a single&lt;br /&gt;connection, and an aggregate of 94Mbit/s with about 40% kernel time&lt;br /&gt;according to top. This is using an MTU of 1500 (the GEM and Cisco switch&lt;br /&gt;don't do jumbo frames). The TCP Window size was 64KByte.&lt;br /&gt;By comparison, iperf runs between a Sun ultraSPARC3 with a Sun gigaswift and&lt;br /&gt;a Dell PowerEdge 2650 with a Broadcom 1000TX card connected using the same&lt;br /&gt;Cisco catalyst and 48KByte TCP windows yield 480MBit/s.&lt;br /&gt;So before upgrading the CPU you should make sure you have a card that&lt;br /&gt;offloads the CPU like the gigaswift. Next, jumbo frames don't matter much -&lt;br /&gt;support is not standardized, not much equipment supports it, and you can get&lt;br /&gt;pretty good performance without.&lt;br /&gt;I'm not sure how much the CPU speed is needed, though. I'll install a&lt;br /&gt;gigaswift in an ultraSPARC2 soon, I can tell you the performance difference&lt;br /&gt;then.&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;Jason Santos's answer:&lt;br /&gt;I would suspect that your bottleneck on the E10K would be the SBUS&lt;br /&gt;interface, not CPU speed.  With a gem or GigaSwift PCI card in a 750MHz&lt;br /&gt;6800, we get about 60MB/s over NFS with a single thread.  Raw UDP or TCP&lt;br /&gt;throughtput would be much higher, although I never tested it.&lt;br /&gt;Let me test now, stand by...&lt;br /&gt;This is a quick test from a 4x750MHz 6800 to a 4x1200MHz V880 (no network&lt;br /&gt;tuning, single thread):&lt;br /&gt;ttcp-t: buflen2768, nbuf 48, align384/0, portP01  tcp  -&amp;gt;&lt;br /&gt;nbmaster&lt;br /&gt;ttcp-t: socket&lt;br /&gt;ttcp-t: connect&lt;br /&gt;ttcp-t: 1073741824 bytes in 23.59 real seconds = 44441.28 KB/sec +++&lt;br /&gt;ttcp-t: 1073741824 bytes in 23.16 CPU seconds = 45275.30 KB/cpu sec&lt;br /&gt;ttcp-t: 32768 I/O calls, msec/call = 0.74, calls/sec = 1388.79&lt;br /&gt;ttcp-t: 0.1user 23.0sys 0:23real 98% 0i+0d 0maxrss 0+0pf 3756+261csw&lt;br /&gt;ttcp-t: buffer address 0x74000&lt;/p&gt;&lt;p class="mobile-post"&gt;The fastest Gigabit transfers I have ever seen were from an IBM x345 (dual&lt;br /&gt;Intel Xeon 2.4GHz) over NFS to a NetApp FAS960, I was able to get over&lt;br /&gt;100MB/sec, which is 80% of the theoretical max of 125MB/sec.&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;Paul Theodoropoulos's  answer:&lt;br /&gt;Sun's 'Rule of Thumb' from the UltraSPARC II era was that you should have&lt;br /&gt;300Mhz of ultraSPARC II horsepower per gigabit adapter. That's 'dedicated'&lt;br /&gt;horsepower - if you had one 300Mhz cpu and one gigabit adapter, you'd have&lt;br /&gt;no horsepower to spare for your applications. In practice of course, the&lt;br /&gt;gigabit gets throttled down and the horsepower shared. But i would expect&lt;br /&gt;approximately the same performance requirements with ultrasparc III,&lt;br /&gt;frankly.&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;Alex Madden's answer:&lt;br /&gt;http://www.sun.com/blueprints/0203/817-1657.pdf&lt;br /&gt;&amp;lt;http://www.sun.com/blueprints/0203/817-1657.pdf&amp;gt;&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;JV's answer:&lt;/p&gt;&lt;p class="mobile-post"&gt;#2) Throughput may depend more on the underlying storage architecture's&lt;br /&gt;ability to READ. You will get better with Hardware RAID 0/1 than software&lt;br /&gt;RAID like Disksuite or VXVM.&lt;br /&gt;#3) copper or optical gigE? I use optical, but I just got v240s last month&lt;br /&gt;so I am beginning to experiment with their ce interfaces.  #4) On optical&lt;br /&gt;ge, with 14 column Veritas stripes, on large-ish dbf files (1.5-2GB),&lt;br /&gt;6x336Mhz cpus, I can get 45 MB/sec with 35% sys. I haven't had a chance to&lt;br /&gt;tune and test my 10-12 cpu UltraS-II (optical) or 2 cpu UltraS-III v240&lt;br /&gt;(copper ce) boxes.&lt;/p&gt;&lt;p class="mobile-post"&gt;--------------------------------------------------------------&lt;br /&gt;Tim Chipman's answer:&lt;br /&gt;You might want to use " ttcp " utility to test tcp bandwidth throughput.  It&lt;br /&gt;is more likely to represent " best case scenario " throughput that is&lt;br /&gt;in-keeping with statements like " gig-ether can do 100Mbytes/sec " :-)&lt;br /&gt;we did a bit of testing here a while back, and I'm appending the info below&lt;br /&gt;as a general reference, for what use it may be.&lt;br /&gt;test boxes were,&lt;/p&gt;&lt;p class="mobile-post"&gt;athlon MP running either Solaris x86 OR linux&lt;br /&gt;ultraSparcII running solaris8&lt;/p&gt;&lt;p class="mobile-post"&gt;note, based on my experience, it seems unlikely you will ever get " real&lt;br /&gt;world data xfer " much above 50-55Mbytes/sec over gig-ether. " ttcp "&lt;br /&gt;benchmarks are one thing, but real-world protocols are another.&lt;br /&gt;NOTE: testing done here using two dual-athlon systems, identies as follows:&lt;br /&gt;wulftest = redhat 8 (dual-1800mhz, 1 gig ram, 64-bit PCI)&lt;br /&gt;wulf2 = redhat 8 (dual-2000mhz, 1 gig ram, 64-bit PCI)&lt;br /&gt;thore = solaris8x86 (dual-2000mhz, 1 gig ram, 64-bit PCI)&lt;br /&gt;(note - Wulf2 &amp;amp; Thore are actually the same system with 2 different HDDs to&lt;br /&gt;boot the alternate OS'es)&lt;br /&gt;ultra5 = 270mhz Ultra5 (nb, 32-bit PCI bandwidth only)&lt;/p&gt;&lt;p class="mobile-post"&gt;Gig-ether NICs being tested are all 64-bit PCI / Cat5 cards:&lt;br /&gt;Syskonnect SK-9821&lt;br /&gt;3Com 3C996B-T (BroadCom chipset)&lt;/p&gt;&lt;p class="mobile-post"&gt;(note, we had 2 x SK nics and 1 x 3com on-hand, so didn't test 3com&amp;lt;-&amp;gt;3com&lt;br /&gt;perfo rmance.)&lt;/p&gt;&lt;p class="mobile-post"&gt;Software being used for testing was (1) TTCP and (2) Netbackup (for info on&lt;br /&gt;TTCP, visit the URL: http://www.pcausa.com/Utilities/pcattcp.htm&lt;br /&gt;&amp;lt;http://www.pcausa.com/Utilities/pcattcp.htm&amp;gt;  )&lt;/p&gt;&lt;p class="mobile-post"&gt;Parameters tuned include Jumbo Frames (MTU of 1500 vs 9000) ;&lt;br /&gt;combinations of NI&lt;br /&gt;C&amp;lt;-&amp;gt; NIC and system&amp;lt;-&amp;gt;system&lt;/p&gt;&lt;p class="mobile-post"&gt;Connection between NICs was made with a crossover cable, appropriately wired&lt;br /&gt;(al l strands) such that Gig-ether was operational.&lt;/p&gt;&lt;p class="mobile-post"&gt;Note these ##'s are NOT " comprehensive ", ie, NOT every combination of&lt;br /&gt;tuneable p arameters has been attempted / documented here. Sorry about that.&lt;/p&gt;&lt;p class="mobile-post"&gt;Hopefully, " so&lt;br /&gt;mething is better than nothing ".&lt;/p&gt;&lt;p class="mobile-post"&gt;[TTCP results]&lt;br /&gt;SysKonnect &amp;lt;-&amp;gt; SysKonnect = 77 MB/s&lt;br /&gt;*	Wulftest with Syskonnect (Redhat 8)&lt;br /&gt;*	Thore with Syskonnect (Solaris x86)&lt;br /&gt;*	Jumbo frames don't affect speed,&lt;br /&gt;		but offload the systems by around 20-40% for CPU loading.&lt;br /&gt;	SysKonnect &amp;lt;-&amp;gt; 3COM = 78 MB/s&lt;br /&gt;*	Wulftest with Syskonnect (Redhat 8)&lt;br /&gt;*	Wulf2 with 3com (Redhat 8)&lt;br /&gt;*	MTU = 1500&lt;/p&gt;&lt;p class="mobile-post"&gt;	SysKonnect &amp;lt;-&amp;gt; 3COM = 97 MB/s&lt;br /&gt;*	Wulftest with Syskonnect (Redhat 8)&lt;br /&gt;*	Wulf2 with 3com (Redhat 8)&lt;br /&gt;*	MTU = 9000&lt;/p&gt;&lt;p class="mobile-post"&gt;	ULTRA5 &amp;lt;-&amp;gt; Wulftest tests with TTCP:&lt;br /&gt;	(SysKonnect &amp;lt;-&amp;gt; Syskonnect NICs)&lt;br /&gt;	with JumboFrames:&lt;br /&gt;*	25% CPU load on Ultra5, 29 MB/s&lt;/p&gt;&lt;p class="mobile-post"&gt;	without JumboFrames:&lt;br /&gt;*	60% CPU load on Ultra5, 17 MB/s&lt;/p&gt;&lt;p class="mobile-post"&gt;	[Netbackup results]&lt;br /&gt;	Large ASCII file (5 gigs) = 50 MB/s&lt;br /&gt;*	Wulftest with SysKonnect (Redhat 8)&lt;br /&gt;*	Thore with 3COM (Solaris x86)&lt;br /&gt;*	MTU 1500&lt;/p&gt;&lt;p class="mobile-post"&gt;	System backup (OS files, binaries) = 11 MB/s&lt;br /&gt;*	Wulftest with SysKonnect (Redhat 8)&lt;br /&gt;*	Thore with 3COM (Solaris x86)&lt;br /&gt;*	MTU 1500&lt;/p&gt;&lt;p class="mobile-post"&gt;ORIGINAL QUESTION :&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi,&lt;/p&gt;&lt;p class="mobile-post"&gt;Basic question is : What effective throughput can I expect on a Gigabit&lt;br /&gt;Ethernet link with UltraSparc-3 CPU, with or without Jumbo Frame support,&lt;br /&gt;with or without multithreaded transfer ?&lt;/p&gt;&lt;p class="mobile-post"&gt;I ask this because with UltraSparc-2 CPU (E10K) and GE link (without Jumbo&lt;br /&gt;Frame support) we couldn't get more than :&lt;br /&gt;-	15 Mbytes/s with monothreaded transfer&lt;br /&gt;-	55 Mbytes/s with multithreaded transfer (the best rate was reached&lt;br /&gt;with 10 threads)&lt;/p&gt;&lt;p class="mobile-post"&gt;(We measured application throughput, that is to say TCP throughput).&lt;/p&gt;&lt;p class="mobile-post"&gt;As you see the CPU overhead with 1500 MTU was so high (truss showed 80%&lt;br /&gt;kernel), that we had to multithread the transfer to reach the best&lt;br /&gt;throughput  (55 Mbytes/s).&lt;br /&gt;Unfortunately we were far from the theoretical limit (100 Mbytes/s ?), even&lt;br /&gt;if there were still CPU resources free (50%), and I can't determine if it&lt;br /&gt;was caused by the small MTU, the poor US-2 throughput or both ?&lt;/p&gt;&lt;p class="mobile-post"&gt;I think that Jumbo Frame could increase the throughput and lower the CPU&lt;br /&gt;overhead, but how much ?&lt;br /&gt;Will the US-3 throughput help much ?&lt;br /&gt;Is there any chance to reach the 100 Mbytes/s limit ?&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks for your feedback, I will summarize.&lt;br /&gt;---&lt;br /&gt;Sebastien DAUBIGNE&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932230414026585?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932230414026585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932230414026585' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932230414026585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932230414026585'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/effective-throughput-can-i-expect-on.html' title='Effective throughput can I expect on a Gigabit Ethernet link with UltraSparc-3 CPU'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12965617.post-112932222223475296</id><published>2005-10-14T15:37:00.000-05:00</published><updated>2005-10-14T15:37:02.233-05:00</updated><title type='text'>Tuning the Sun Gigabit Ethernet Adapter</title><content type='html'>&lt;p class="mobile-post"&gt;Appendix B: Tuning the Sun Gigabit Ethernet Adapter&lt;br /&gt;a. Create a file named /etc/rc2.d/S99netperf&lt;br /&gt;b. Add the following lines:&lt;br /&gt;i.&lt;br /&gt;/usr/sbin/ndd -set /dev/ge instance 0&lt;br /&gt;ii.&lt;br /&gt;/usr/sbin/ndd -set /dev/ge adv_pauseTX 1&lt;br /&gt;iii.&lt;br /&gt;/usr/sbin/ndd -set /dev/ge adv_1000autoneg_cap 0&lt;br /&gt;iv.&lt;br /&gt;/usr/sbin/ndd -set /dev/ge adv_1000fdx_cap 1&lt;br /&gt;c. If you have more than one "ge" adapter on your server, you can&lt;br /&gt;either omit item b.i. and&lt;br /&gt;the settings will affect all instances, or specify the instance you&lt;br /&gt;want to refer to&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932222223475296?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932222223475296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932222223475296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932222223475296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932222223475296'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/tuning-sun-gigabit-ethernet-adapter.html' title='Tuning the Sun Gigabit Ethernet Adapter'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932219347384333</id><published>2005-10-14T15:36:00.001-05:00</published><updated>2005-10-14T15:36:33.473-05:00</updated><title type='text'>Disk Failure 880</title><content type='html'>&lt;p class="mobile-post"&gt;A number of failures on a new machine with a number of disks is quite&lt;br /&gt;common. If this is a two disk V880, I'd say you have a problem. If its&lt;br /&gt;a 12 disk V880, I'd call Sun, swap out the disk and shrug it off.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you look at the probability of disk failure over time, there is an&lt;br /&gt;initial peak as new disks spin in, then several years of low&lt;br /&gt;probability, then a ramping as they get towards the end of servicable&lt;br /&gt;life.&lt;/p&gt;&lt;p class="mobile-post"&gt;directio shouldn't make a difference. However, I would check the&lt;br /&gt;ambient temperature inside and around the machine (emphasis on&lt;br /&gt;temperature stability rather than value), ensure that it not being&lt;br /&gt;bumped or subject to (excess) vibration, note the humidity of the room&lt;br /&gt;and check for dust.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932219347384333?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932219347384333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932219347384333' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932219347384333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932219347384333'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/disk-failure-880.html' title='Disk Failure 880'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932216600873814</id><published>2005-10-14T15:36:00.000-05:00</published><updated>2005-10-14T15:36:06.010-05:00</updated><title type='text'>High Kernel Usage</title><content type='html'>&lt;p class="mobile-post"&gt;Bernd Haug &amp;lt;h...@berndhaug.net&amp;gt; wrote:&lt;br /&gt;&amp;gt; sean...@yahoo.com &amp;lt;sean...@yahoo.com&amp;gt; wrote:&lt;br /&gt;&amp;gt;&amp;gt; TOP shows Kernel has been using over 55% CPU.&lt;br /&gt;&amp;gt;&amp;gt; How can we find what are those kernel's processes? why do those use a&lt;br /&gt;&amp;gt;&amp;gt; lot of CPU? Normally i only see about 10%.&lt;br /&gt;&amp;gt; Wouldn't spending some time in syscalls be pretty normal on a DB&lt;br /&gt;&amp;gt; server?&lt;/p&gt;&lt;p class="mobile-post"&gt;Not that much.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; I rather think it's funny that you have 0 iowait.&lt;br /&gt;&amp;gt; Maybe something went wrong and now your top conflates the two into&lt;br /&gt;&amp;gt; kernel time?&lt;/p&gt;&lt;p class="mobile-post"&gt;Remember that IOwait is only a subset of idle time.  If you have no idle&lt;br /&gt;time, then you can't display any IOwait (even if the disks are slow).&lt;/p&gt;&lt;p class="mobile-post"&gt;I'd look to see if the "last PID" is increasing rapidly.  A constantly&lt;br /&gt;forking program that creates new processes which are quickly reaped will&lt;br /&gt;eat up tons of system time.  Difficult to trace directly (well, without&lt;br /&gt;Solaris 10 and dtrace).&lt;/p&gt;&lt;p class="mobile-post"&gt;Take some guesses and run 'truss' looking for forks.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932216600873814?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932216600873814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932216600873814' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932216600873814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932216600873814'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/high-kernel-usage.html' title='High Kernel Usage'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932213315206033</id><published>2005-10-14T15:35:00.000-05:00</published><updated>2005-10-14T15:35:33.153-05:00</updated><title type='text'>corelation between %iowait from top and %busy or avwait from sar -d</title><content type='html'>&lt;p class="mobile-post"&gt;MikeHT &amp;lt;mike2...@gmail.com&amp;gt; wrote:&lt;br /&gt;&amp;gt; I would like to know from the list if there is any corelation between&lt;br /&gt;&amp;gt; %iowait from top and %busy or avwait from sar -d # #?&lt;/p&gt;&lt;p class="mobile-post"&gt;No, not necessarily.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Do it mean if&lt;br /&gt;&amp;gt; %busy is high, then the %iowait&lt;br /&gt;&amp;gt; will be high too?&lt;/p&gt;&lt;p class="mobile-post"&gt;No.&lt;/p&gt;&lt;p class="mobile-post"&gt;%busy is a description of what's happening on a disk (or the driver&lt;br /&gt;talking to the disk).  %iowait is a description of what's happening on&lt;br /&gt;the CPU.&lt;/p&gt;&lt;p class="mobile-post"&gt;In some cases they may be correlated, but that's not necessarily true.&lt;br /&gt;There are many cases where they would not be.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; But that corelation is not consistent based on the&lt;br /&gt;&amp;gt; data captured from&lt;br /&gt;&amp;gt; machines A &amp;amp; B. Machine B's devices's %busy is high, but %iowait is&lt;br /&gt;&amp;gt; lower.&lt;/p&gt;&lt;p class="mobile-post"&gt;Right.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; How is %iowait calculated in top? Any insights? Thanks.&lt;/p&gt;&lt;p class="mobile-post"&gt;%iowait is the average fraction of time that the CPU is busy and that&lt;br /&gt;the system has at least one outstanding I/O request.  The outstanding&lt;br /&gt;I/O may or may not have anything to do with your %busy disk.&lt;/p&gt;&lt;p class="mobile-post"&gt;Note that a system may be completely I/O swamped while no individual&lt;br /&gt;disk is all that busy.  Also, you could have a disk that shows 100%&lt;br /&gt;busy, but it is meanwhile able to keep up with requests very rapidly.&lt;/p&gt;&lt;p class="mobile-post"&gt;So these numbers may not mean a lot in isolation.  They're most useful&lt;br /&gt;when looking at changes over time, or relationships between components.&lt;/p&gt;&lt;p class="mobile-post"&gt;Note the iowait is a subset of 'idle'.  If you can keep the CPUs busy by&lt;br /&gt;working them harder, they'll never display iowait.  That's a major&lt;br /&gt;difference between A and B below.  B may be more swamped while at the&lt;br /&gt;same time doing more CPU jobs (so that it has less idle time).&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks Darren for the reply.&lt;/p&gt;&lt;p class="mobile-post"&gt;High %iowait could also indicate that path to the disk devices (EMC&lt;br /&gt;symmetric in this case) could be problematic? We are using EMC&lt;br /&gt;powerpath.&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;MikeHT &amp;lt;mike2...@gmail.com&amp;gt; wrote:&lt;br /&gt;&amp;gt; Thanks Darren for the reply.&lt;br /&gt;&amp;gt; High %iowait could also indicate that path to the disk devices (EMC&lt;br /&gt;&amp;gt; symmetric in this case) could be problematic?&lt;/p&gt;&lt;p class="mobile-post"&gt;It *could*, but it probably doesn't.&lt;/p&gt;&lt;p class="mobile-post"&gt;%iowait is a very visible number that doesn't often indicate a problem.&lt;br /&gt;A well-tuned, perfectly reasonable machine may still have somewhat&lt;br /&gt;elevated iowait figures during normal operation.  Many admins try to&lt;br /&gt;"fix" it when they shouldn't.  (Note that because of this and a few&lt;br /&gt;other reasons, Solaris 10 apparantly does not track this any longer, so&lt;br /&gt;it will always appear as zero).&lt;/p&gt;&lt;p class="mobile-post"&gt;Look for problems by analyzing performance, not by looking at iowait.&lt;br /&gt;Does the application work?  Does it respond in good time?  Are the&lt;br /&gt;throughput and latency figures on your storage what you expect?&lt;/p&gt;&lt;p class="mobile-post"&gt;The iostat figures are much more likely to be relevant than the system&lt;br /&gt;iowait number.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932213315206033?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932213315206033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932213315206033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932213315206033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932213315206033'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/corelation-between-iowait-from-top-and.html' title='corelation between %iowait from top and %busy or avwait from sar -d'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932208778950268</id><published>2005-10-14T15:34:00.000-05:00</published><updated>2005-10-14T15:34:47.790-05:00</updated><title type='text'>/var fills when using pkgadd... query</title><content type='html'>&lt;p class="mobile-post"&gt; /var fills when using pkgadd... query&lt;/p&gt;&lt;p class="mobile-post"&gt;soplaris 8 on a sparc 20 (!)&lt;/p&gt;&lt;p class="mobile-post"&gt;i have a psarc 20 that will do a very nice job for me - I just need to&lt;br /&gt;install samba on it.  It has a 1 Gb disk that is carved up (historical&lt;br /&gt;installation).&lt;br /&gt;When I attempt to install the samba package it fails becaus ethe fairly&lt;br /&gt;small /var partition fills.&lt;/p&gt;&lt;p class="mobile-post"&gt;I added a 4 Gb disk I had jandy and created a 4gb parttion (/data) to&lt;br /&gt;play with... I have shelved off varuious areas of /var to /data to&lt;br /&gt;leave more sopace in /var but even this doesn't solve the matter.&lt;/p&gt;&lt;p class="mobile-post"&gt;So - the crux of my query.  Although samba is being installed into a&lt;br /&gt;completely seperate parttion to /var, what is it in /var that is&lt;br /&gt;filling (ie being used?).  I've hived off /var/spool/pkg to /data&lt;br /&gt;utilising a soft link, but that doesn't solve it.&lt;/p&gt;&lt;p class="mobile-post"&gt;So&lt;/p&gt;&lt;p class="mobile-post"&gt;1) what is being used in /var anyway&lt;/p&gt;&lt;p class="mobile-post"&gt;2) is there anything I can do with my pkgadd to avoid use of /var at&lt;br /&gt;all?  (-R doesn;t solve it for instance...)&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; 1) what is being used in /var anyway&lt;/p&gt;&lt;p class="mobile-post"&gt;/var/tmp&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; 2) is there anything I can do with my pkgadd to avoid use of /var at&lt;br /&gt;&amp;gt; all?  (-R doesn;t solve it for instance...)&lt;/p&gt;&lt;p class="mobile-post"&gt;set $TMPDIR to a location where you have an adequate amount of space.&lt;/p&gt;&lt;p class="mobile-post"&gt;See pkgadd(1M), 2d paragraph under DESCRIPTION.&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;	&lt;br /&gt;&amp;gt;utilising a soft link, but that doesn't solve it.&lt;/p&gt;&lt;p class="mobile-post"&gt;/var/sadm&lt;/p&gt;&lt;p class="mobile-post"&gt;Casper&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932208778950268?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932208778950268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932208778950268' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932208778950268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932208778950268'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/var-fills-when-using-pkgadd-query.html' title='/var fills when using pkgadd... query'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932202393622175</id><published>2005-10-14T15:33:00.001-05:00</published><updated>2005-10-14T15:33:43.936-05:00</updated><title type='text'>ufsdump warning</title><content type='html'>&lt;p class="mobile-post"&gt;&amp;gt; lolo wrote:&lt;br /&gt;&amp;gt;&amp;gt; When a make ufsdump&lt;br /&gt;&amp;gt;&amp;gt;     /usr/sbin/ufsdump 0uf Server1:/dev/rmt/On /export/home&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;&amp;gt; I have this message&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;&amp;gt; DUMP: Dumping (Pass IV) [regular files]&lt;br /&gt;&amp;gt;&amp;gt; DUMP: Warning - block 1543503872 is beyond the end of `/dev/md/rdsk/d3'&lt;br /&gt;&amp;gt; that's a typical error when you try to backup a filesystem that is&lt;br /&gt;&amp;gt; active.  Either unmount /export/home or check "man fssnap"&lt;/p&gt;&lt;p class="mobile-post"&gt;I've never seen that error on simply an active filesystem.&lt;br /&gt;If the filesystem is larger than d3, you can get that message.&lt;/p&gt;&lt;p class="mobile-post"&gt;To the OP, can you post 'metastat d3', and 'fstyp -v /dev/md/rdsk/d3 |&lt;br /&gt;grep size', and prtvtoc info for the disk or disks holding d3?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932202393622175?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932202393622175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932202393622175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932202393622175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932202393622175'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/ufsdump-warning.html' title='ufsdump warning'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932199448779388</id><published>2005-10-14T15:33:00.000-05:00</published><updated>2005-10-14T15:33:14.496-05:00</updated><title type='text'>Password Aging, Part 2</title><content type='html'>&lt;p class="mobile-post"&gt;Password Aging, Part 2&lt;/p&gt;&lt;p class="mobile-post"&gt;If you're starting with a group of users who have been active for a&lt;br /&gt;long time and not had their passwords aged, how should you go about&lt;br /&gt;introducing password aging?&lt;/p&gt;&lt;p class="mobile-post"&gt;To start, you might first take a look at the dates on which your&lt;br /&gt;users' passwords were last changed. To view the dates by themselves,&lt;br /&gt;you might use a command such as this (run as root):&lt;/p&gt;&lt;p class="mobile-post"&gt;# cat /etc/shadow | awk -F: '{print $3}' | sort -n | uniq -c&lt;/p&gt;&lt;p class="mobile-post"&gt;This command sorts the lastchg (last time the password was changed)&lt;br /&gt;field numerically and prints out the number of records with each&lt;br /&gt;particular date value.&lt;/p&gt;&lt;p class="mobile-post"&gt;Of course, the dates in this command's output are going to be&lt;br /&gt;presented to you as a list of numbers (rather than recognizable&lt;br /&gt;dates). You will see something that looks more or less like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;   7 6445&lt;br /&gt;   1 11289&lt;br /&gt;   2 11632&lt;br /&gt;  53 11676&lt;br /&gt;   5 11677&lt;br /&gt;   2 11683&lt;br /&gt;   1 11849&lt;br /&gt;   2 12038&lt;br /&gt;  23 12345&lt;br /&gt;   1 12881&lt;br /&gt;   1 13062&lt;/p&gt;&lt;p class="mobile-post"&gt;These numbers are a little hard to interpret, but the range of values&lt;br /&gt;and the "popular" values suggest that most users on this system have&lt;br /&gt;not changed their passwords in a very long time and that many of them&lt;br /&gt;might have last changed their passwords in response to a request to do&lt;br /&gt;so (since two groups of people changed their passwords on the same two&lt;br /&gt;days).&lt;/p&gt;&lt;p class="mobile-post"&gt;But let's try to pin these numbers down and get an idea what dates we&lt;br /&gt;are really looking at. How do you do this? Well, if you have the GNU&lt;br /&gt;date command installed on your system, you can view today's date with&lt;br /&gt;a command such as this:&lt;/p&gt;&lt;p class="mobile-post"&gt;% expr `date +%s` / 86400&lt;/p&gt;&lt;p class="mobile-post"&gt;Alternately, you can package this date conversion command in in a&lt;br /&gt;script such as that shown below, call it "today" and run it whenever&lt;br /&gt;you want to know what the current date looks like in the&lt;br /&gt;days-since-the-epoch format. If you're reading this column on the day&lt;br /&gt;that it was first published, that value would be 13062.&lt;/p&gt;&lt;p class="mobile-post"&gt;#!/usr/bin/perl -w&lt;br /&gt;#  today: a script to print date in days-since-epoch format&lt;/p&gt;&lt;p class="mobile-post"&gt;$now=`/usr/local/bin/date +%s`;&lt;br /&gt;$_=$now / 86400;&lt;br /&gt;($today)=/(\d+)./;              # number of days since 01/01/1970&lt;/p&gt;&lt;p class="mobile-post"&gt;print "$today\n";&lt;/p&gt;&lt;p class="mobile-post"&gt;In both the command and the "today" script, we use the "date +%s"&lt;br /&gt;command to produce the current date/time as the number of seconds&lt;br /&gt;since midnight on January 1, 1970. We then divide this value by the&lt;br /&gt;number of seconds in a day (86,400) to convert this value to the&lt;br /&gt;number of days since January 1, 1970. The commented line lops off the&lt;br /&gt;digits on the right side of the decimal point (along with the decimal&lt;br /&gt;point itself). This gives us a value for today.&lt;/p&gt;&lt;p class="mobile-post"&gt;To determine how long ago one of the other dates in the lastchg list&lt;br /&gt;above happened to be, we can use an expr to calculate the number of&lt;br /&gt;days between today and the date the password was last changed. Let's&lt;br /&gt;choose the most popular value (line 4) for this:&lt;/p&gt;&lt;p class="mobile-post"&gt;# expr 13062 - 11676&lt;br /&gt;1386&lt;/p&gt;&lt;p class="mobile-post"&gt;That's 1,386 days ago -- nearly four years! NOTE: The shadow records&lt;br /&gt;with 6445 in the lastchg field are disabled accounts and, thus, don't&lt;br /&gt;factor into our password aging concerns.&lt;/p&gt;&lt;p class="mobile-post"&gt;If the bulk of your users have the same last-set date, they have&lt;br /&gt;probably never changed their passwords -- or never changed them since&lt;br /&gt;they were last required to do so. Whenever you change a user's&lt;br /&gt;password or one of your users changes his own password, that field in&lt;br /&gt;the /etc/shadow file will be updated.&lt;/p&gt;&lt;p class="mobile-post"&gt;So, how do you introduce password aging in a situation such as this?&lt;br /&gt;If you add a max value when a user's password hasn't been reset for&lt;br /&gt;nearly four years, chances are that his password will already be&lt;br /&gt;expired and he will not be able to log in.&lt;/p&gt;&lt;p class="mobile-post"&gt;A better approach would be to initiate password aging by modifying the&lt;br /&gt;lastchg date in your shadow records and then selecting a max value&lt;br /&gt;that will give your users time to change their passwords before they&lt;br /&gt;run out of time. You should also publish notices explaining the change&lt;br /&gt;and focusing your users attention on the need to change their&lt;br /&gt;passwords from time to time.&lt;/p&gt;&lt;p class="mobile-post"&gt;For example, if you make the lastchg date of a record five months in&lt;br /&gt;the past and then require that the user change his password every six&lt;br /&gt;months, this would give him a month to change his password before he&lt;br /&gt;is locked out. And, from that point forward, he would need to change&lt;br /&gt;his password every six months.&lt;/p&gt;&lt;p class="mobile-post"&gt;Five months in the past would roughly put the (fictitious) lastchg&lt;br /&gt;date at 12912 (13062 - (5 * 30)). A shadow entry such as that shown&lt;br /&gt;below would, therefore, force sbob to change his password within the&lt;br /&gt;month and would give him a month's worth of warnings before he's&lt;br /&gt;locked out of his account:&lt;/p&gt;&lt;p class="mobile-post"&gt;sbob:dZlJpUNyyusab:12912:30:180:30:::&lt;/p&gt;&lt;p class="mobile-post"&gt;On login, sbob would see something like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;Your password will expire in 30 days.&lt;br /&gt;Last login: Wed Oct  6 16:28:34 2005 from corp.particles.com&lt;br /&gt;Sun Microsystems Inc.   SunOS 5.8       Generic February 2005&lt;/p&gt;&lt;p class="mobile-post"&gt;If you've never used password aging before, it's probably a good idea&lt;br /&gt;to get your users' attention to the fact that passwords are going to&lt;br /&gt;expire. The one-line warning above may not be enough to get your&lt;br /&gt;users' attention. Perhaps a notice like this in your /etc/motd file&lt;br /&gt;would be more effective:&lt;/p&gt;&lt;p class="mobile-post"&gt;     &amp;gt;&amp;gt;&amp;gt; Passwords must be changed every 6 months &amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;     &amp;gt;&amp;gt;&amp;gt; Look for password expiration information &amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;     &amp;gt;&amp;gt;&amp;gt;        in the system output above        &amp;lt;&amp;lt;&amp;lt;&lt;/p&gt;&lt;p class="mobile-post"&gt;When a message like this is displayed on login for a month, your users&lt;br /&gt;are likely to notice and take action before their passwords expire.&lt;/p&gt;&lt;p class="mobile-post"&gt;You can also change the default settings for password aging in the&lt;br /&gt;/etc/default/passwd file. For example, if you want users to be&lt;br /&gt;required to keep a password for a month and change it every 6 months,&lt;br /&gt;your values might look like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;MAXWEEKS=26 MINWEEKS=4 PASSLENGTH=6&lt;/p&gt;&lt;p class="mobile-post"&gt;Next week, we will look at a script that analyzes the aging parameters&lt;br /&gt;in the /etc/shadow file and warns you about users who are getting&lt;br /&gt;close to their password expiration dates.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932199448779388?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932199448779388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932199448779388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932199448779388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932199448779388'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/password-aging-part-2.html' title='Password Aging, Part 2'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932196108503941</id><published>2005-10-14T15:32:00.001-05:00</published><updated>2005-10-14T15:32:41.086-05:00</updated><title type='text'>Disk performance</title><content type='html'>&lt;p class="mobile-post"&gt;UNIX Museum wrote:&lt;br /&gt;&amp;gt; Hi there,&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; I am trying to understand why my SB1K gives me abysmal performance on&lt;br /&gt;&amp;gt; sequential read/write...&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; So, it appears to me that the culprit is the scratch filesystem... I&lt;br /&gt;&amp;gt; tried to mount the drive with forcedirectio, but it looks like it made&lt;br /&gt;&amp;gt; things even worse... Does anybody have any suggestion?&lt;/p&gt;&lt;p class="mobile-post"&gt; Yepp, forcedirectio   is for databases that do their own caching.&lt;/p&gt;&lt;p class="mobile-post"&gt; If you are doing verylargefiles  you should :&lt;/p&gt;&lt;p class="mobile-post"&gt; 1.  make the filessystem with  fragsize set equal  to blocksize&lt;br /&gt; 2.  set cylinder group size  to 32.&lt;br /&gt; 3   set the "maxbpg"  to 50% or 99% of  the amount of blocks&lt;br /&gt;     in a cylinder group&lt;/p&gt;&lt;p class="mobile-post"&gt;     Look at fstyp(1M)   and  tunefs(1M) and newfs(1M)&lt;/p&gt;&lt;p class="mobile-post"&gt;//Lars&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932196108503941?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932196108503941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932196108503941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932196108503941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932196108503941'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/disk-performance.html' title='Disk performance'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932192837032394</id><published>2005-10-14T15:32:00.000-05:00</published><updated>2005-10-14T15:32:08.370-05:00</updated><title type='text'>Apache installation</title><content type='html'>&lt;p class="mobile-post"&gt;Greetings,&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; I know this is a Solaris forum, but I'm having problems installing&lt;br /&gt;&amp;gt; apache on Solaris 9; maybe someone on solaris-l has experience&lt;br /&gt;&amp;gt; installing apache.   I've done an exhaustive search using Google; no&lt;br /&gt;&amp;gt; useful information was returned.  Listed below are the system specifics:&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Apache version: 2.0.48&lt;br /&gt;&amp;gt; Compiled Apache source using gcc 3.4.4&lt;br /&gt;&amp;gt; OS: Solaris 9&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; I used the following commands to compile the apache source:&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; 1. ./configure --prefix=/mp1/software/apache-2.0.48 --enable-module=so&lt;br /&gt;&amp;gt; 2. make&lt;br /&gt;&amp;gt; 3. make install&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; The above three steps completed without error.  The configure option of&lt;br /&gt;&amp;gt; "--enable-module=so" was listed in my installation guide (not apache&lt;br /&gt;&amp;gt; doc.) as being necessary.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; When I attempt to start apache by using, "apachectl start", the&lt;br /&gt;&amp;gt; following error is returned:&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Illegal instruction - core dumped&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; The error is being generated when attempting to run the "httpd" command.&lt;br /&gt;&amp;gt; All of the other commands in $APACHE_HOME/bin load and run without&lt;br /&gt;&amp;gt; errors.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Any help to get apache up and running would be greatly appreciated.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Mike Badar&lt;/p&gt;&lt;p class="mobile-post"&gt;Re: Apache installation&lt;br /&gt;Posted By Luis Hansen&lt;/p&gt;&lt;p class="mobile-post"&gt;Im using apache 2.054 with Solaris 9&lt;br /&gt;I compiled:&lt;br /&gt;/configure --enable-module=so --enable-module=all --with-mpm=worker&lt;br /&gt;--enable-shared=max --prefix=/usr/local/apache2054&lt;/p&gt;&lt;p class="mobile-post"&gt;with mpm=woker apache works in fork &amp;amp; thread ,mpm its an hybrid.&lt;/p&gt;&lt;p class="mobile-post"&gt;Check if in /usr/local/lib if some library is missing&lt;/p&gt;&lt;p class="mobile-post"&gt;the user must be nobody as group too in the httpd.conf file&lt;/p&gt;&lt;p class="mobile-post"&gt;check your configuration with ./apachectl configtest&lt;/p&gt;&lt;p class="mobile-post"&gt;regards&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932192837032394?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932192837032394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932192837032394' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932192837032394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932192837032394'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/apache-installation.html' title='Apache installation'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932189670410864</id><published>2005-10-14T15:31:00.001-05:00</published><updated>2005-10-14T15:31:36.706-05:00</updated><title type='text'>Replacing Multiple Failed Disks on StoreEdge T3 Array</title><content type='html'>&lt;p class="mobile-post"&gt;Replacing Multiple Failed Disks on StoreEdge T3 Array&lt;/p&gt;&lt;p class="mobile-post"&gt;You had a double failure, the data is lost, so the system cant reenable it&lt;br /&gt;on its own, the simplest is to remove the volume and rebuild it so that it&lt;br /&gt;can create the parity correctly.&lt;/p&gt;&lt;p class="mobile-post"&gt;With a single failure it would have recovered on its own when you replaced&lt;br /&gt;the drive, if it doesnt you recover it with&lt;/p&gt;&lt;p class="mobile-post"&gt;vol recon &amp;lt;drive&amp;gt; [from Standby]&lt;/p&gt;&lt;p class="mobile-post"&gt;if you didnt have a standby it can recover anyway, it just takes longer.&lt;/p&gt;&lt;p class="mobile-post"&gt;Also see to that you have the latest firmware for the array and that no&lt;br /&gt;disk in the log has given the "disk error 03" code which might indicate&lt;br /&gt;that they will be kicked out of config during an upgrade of firmware or&lt;br /&gt;very soon after.&lt;/p&gt;&lt;p class="mobile-post"&gt;running the command&lt;/p&gt;&lt;p class="mobile-post"&gt;vol verify &amp;lt;volume&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;once a week is a good practice since it will test for read failures&lt;br /&gt;hopefully before you have double ones, check the log for the test result.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932189670410864?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932189670410864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932189670410864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932189670410864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932189670410864'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/replacing-multiple-failed-disks-on.html' title='Replacing Multiple Failed Disks on StoreEdge T3 Array'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932187475252702</id><published>2005-10-14T15:31:00.000-05:00</published><updated>2005-10-14T15:31:14.753-05:00</updated><title type='text'>Cisco Counters meaning</title><content type='html'>&lt;p class="mobile-post"&gt;Counters&lt;/p&gt;&lt;p class="mobile-post"&gt;    * Packets input - Total number of error-free packets received.&lt;br /&gt;    * Broadcasts - Total number of broadcast or multicast packets received.&lt;br /&gt;    * Runts - Number of packets discarded because they are smaller&lt;br /&gt;than the medium's minimum packet size.&lt;br /&gt;    * Giants - Number of packets that are discarded because they&lt;br /&gt;exceed the medium's maximum packet size.&lt;br /&gt;    * Throttle - This counter indicates the number of times the input&lt;br /&gt;buffers of an interface have been cleaned because they have not been&lt;br /&gt;serviced fast enough or they are overwhelmed. Typically, an explorer&lt;br /&gt;storm can cause the throttles counter to increment. It's important to&lt;br /&gt;note that every time you have a throttle, all the packets in the input&lt;br /&gt;queue get dropped. This causes very slow performance and may also&lt;br /&gt;disrupt existing sessions.&lt;br /&gt;    * Parity - Number of parity errors on the HSSI.&lt;br /&gt;    * RX Disabled - Indicates inability to get a buffer when accessing a packet.&lt;br /&gt;    * Input Errors - Sum of all errors that prevented the receipt of&lt;br /&gt;datagrams. This may not balance with the sum of the enumerated output&lt;br /&gt;errors, because some datagrams may have more than one error and others&lt;br /&gt;may have errors that do not fall into any of the specific categories.&lt;br /&gt;    * CRC - Cyclic redundancy checksum generated mismatch. CRC errors&lt;br /&gt;also are reported when a far-end abort occurs and when the idle flag&lt;br /&gt;pattern is corrupted. This makes it possible to get CRC errors even&lt;br /&gt;when there is no data traffic.&lt;br /&gt;    * Frame - Number of packets received incorrectly having a CRC&lt;br /&gt;error and a noninteger number of octets.&lt;br /&gt;    * Overrun - Number of times the serial receiver hardware was&lt;br /&gt;unable to hand received data to a hardware buffer because the input&lt;br /&gt;rate exceeded the receiver's ability to handle the data.&lt;br /&gt;    * Ignored - Number of received packets ignored by the interface&lt;br /&gt;because the interface hardware ran low on internal buffers.&lt;br /&gt;    * Abort - Number of packets whose receipt was aborted.&lt;br /&gt;    * Bytes - Total number of bytes, including data and MAC&lt;br /&gt;encapsulation, transmitted by the system.&lt;br /&gt;    * Underruns - Number of times that the far-end router's&lt;br /&gt;transmitter has been running faster than the near-end router's&lt;br /&gt;receiver can handle. This may never happen (be reported) on some&lt;br /&gt;interfaces.&lt;br /&gt;    * Congestion Drop - Number of messages discarded because the&lt;br /&gt;output queue on an interface grew too long.&lt;br /&gt;    * Output Errors - Sum of all errors that prevented the final&lt;br /&gt;transmission. This may not balance with the sum of the enumerated&lt;br /&gt;output errors, because some datagrams may have more than one error and&lt;br /&gt;others may have errors that do not fall into any of the specific&lt;br /&gt;categories.&lt;br /&gt;    * Interface Resets - Number of times an interface has been completely reset.&lt;br /&gt;    * Restarts - Number of times the controller was restarted because of errors.&lt;br /&gt;    * Carrier Transitions - Number of times the carrier detect signal&lt;br /&gt;of a serial interface has changed state.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932187475252702?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932187475252702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932187475252702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932187475252702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932187475252702'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/cisco-counters-meaning.html' title='Cisco Counters meaning'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932184444844243</id><published>2005-10-14T15:30:00.000-05:00</published><updated>2005-10-14T15:30:44.456-05:00</updated><title type='text'>solaris 9 ssh ahangs on exit ?</title><content type='html'>&lt;p class="mobile-post"&gt;solaris 9 ssh ahangs on exit ?&lt;/p&gt;&lt;p class="mobile-post"&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;On solaris 9, recommended patches as of Dec 5th applied.&lt;/p&gt;&lt;p class="mobile-post"&gt;On occasion, exiting from an ssh session to another machine hangs. Is there&lt;br /&gt;a fix for that ? We're using solaris' ssh.&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; On occasion, exiting from an ssh session to another machine hangs. Is there&lt;br /&gt;&amp;gt; a fix for that ?&lt;/p&gt;&lt;p class="mobile-post"&gt;It usually happens when you start a background process and it doesn't&lt;br /&gt;properly close its stdin/out/err. Adding &amp;gt;/dev/null and 2&amp;gt;&amp;amp;1 to command&lt;br /&gt;line usually helps. Keyword here is "usually" -- if you run a program&lt;br /&gt;that does something funny, like piping its stdout to child's stdin&lt;br /&gt;with dup(), all bets are off.&lt;/p&gt;&lt;p class="mobile-post"&gt;The real problem is in SSH protocol and that can't be fixed in&lt;br /&gt;implementation. So the real fix is to not use ssh.&lt;/p&gt;&lt;p class="mobile-post"&gt;Dima&lt;br /&gt;--&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;The real problem is in SSH protocol and that can't be fixed in&lt;br /&gt;&amp;gt;implementation. So the real fix is to not use ssh.&lt;/p&gt;&lt;p class="mobile-post"&gt;So what *do* you use, if, say, you want to go from your&lt;br /&gt;cable modem connection and log into the "shell account"&lt;br /&gt;you have on an isp?  Everyone says that telnet way, way too&lt;br /&gt;dangerous, too easy to hack into.&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; So what *do* you use, if, say, you want to go from your&lt;/p&gt;&lt;p class="mobile-post"&gt; You use ssh.  DM was being pedantic in saying that because the&lt;br /&gt; protocol is broken then the only "fix" is not to use it -- unless you&lt;br /&gt; fancy improving the protocol.  On the other hand, I'm guessing that&lt;br /&gt; ssh handles all of your needs bar the occasional hung session.  Join&lt;br /&gt; the club.&lt;/p&gt;&lt;p class="mobile-post"&gt; Read the section on Escape Characters in the manual and when your&lt;br /&gt; session hangs on exit apply:&lt;/p&gt;&lt;p class="mobile-post"&gt;[RETURN] ~ &amp;amp;&lt;/p&gt;&lt;p class="mobile-post"&gt; or&lt;/p&gt;&lt;p class="mobile-post"&gt;[RETURN] ~ .&lt;/p&gt;&lt;p class="mobile-post"&gt; as appropriate.  Noting, of course, that if you've ssh'd through&lt;br /&gt; several boxes you may need to increase the number of escape chars.&lt;/p&gt;&lt;p class="mobile-post"&gt;Cheers,&lt;/p&gt;&lt;p class="mobile-post"&gt;        Ian&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;  the club.&lt;/p&gt;&lt;p class="mobile-post"&gt;Yep. Interactive sessions are not a problem as there's a human&lt;br /&gt;there to press enter-tilde-dot if it doesn't close. It's when&lt;br /&gt;you run it from e.g. cron is when you should worry.&lt;/p&gt;&lt;p class="mobile-post"&gt;Dima&lt;br /&gt;--&lt;br /&gt;Things seemed simpler before we kept computers.              -- IX, Revelation&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932184444844243?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932184444844243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932184444844243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932184444844243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932184444844243'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/solaris-9-ssh-ahangs-on-exit.html' title='solaris 9 ssh ahangs on exit ?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932176467975794</id><published>2005-10-14T15:29:00.000-05:00</published><updated>2005-10-14T15:29:24.696-05:00</updated><title type='text'>Solaris 9 sshd / ssh exit codes</title><content type='html'>&lt;p class="mobile-post"&gt;Solaris 9 sshd / ssh exit codes&lt;/p&gt;&lt;p class="mobile-post"&gt;On Solaris 9, with the latest ssh/sshd patches installed ...&lt;/p&gt;&lt;p class="mobile-post"&gt;  114356-03: SunOS 5.9: /usr/bin/ssh Patch&lt;br /&gt;  113273-06: SunOS 5.9: /usr/lib/ssh/sshd Patch&lt;/p&gt;&lt;p class="mobile-post"&gt;... why is there inconsistent behaviour with ssh exit codes?  Why are&lt;br /&gt;there sporadic exit codes of 0 from the following ssh command?&lt;/p&gt;&lt;p class="mobile-post"&gt;% repeat 100 sh -c 'ssh -n localhost "exit 33" ; echo $?'&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;0&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;0&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;33&lt;br /&gt;^Z&lt;br /&gt;Suspended&lt;/p&gt;&lt;p class="mobile-post"&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;Juergen Keil &amp;lt;j...@tools.de&amp;gt; writes:&lt;br /&gt;&amp;gt;On Solaris 9, with the latest ssh/sshd patches installed ...&lt;br /&gt;&amp;gt;  114356-03: SunOS 5.9: /usr/bin/ssh Patch&lt;br /&gt;&amp;gt;  113273-06: SunOS 5.9: /usr/lib/ssh/sshd Patch&lt;br /&gt;&amp;gt;... why is there inconsistent behaviour with ssh exit codes?  Why are&lt;br /&gt;&amp;gt;there sporadic exit codes of 0 from the following ssh command?&lt;/p&gt;&lt;p class="mobile-post"&gt;It's a bug which is being addressed.&lt;/p&gt;&lt;p class="mobile-post"&gt;(There's a race condition between processes exiting and stdin/stdout&lt;br /&gt;being closed, so sshd can close the connection before it has seen&lt;br /&gt;the exit status)&lt;/p&gt;&lt;p class="mobile-post"&gt;Casper&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;&amp;gt;... why is there inconsistent behaviour with ssh exit codes?  Why are&lt;br /&gt;&amp;gt;&amp;gt;there sporadic exit codes of 0 from the following ssh command?&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; It's a bug which is being addressed.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; (There's a race condition between processes exiting and stdin/stdout&lt;br /&gt;&amp;gt; being closed, so sshd can close the connection before it has seen&lt;br /&gt;&amp;gt; the exit status)&lt;/p&gt;&lt;p class="mobile-post"&gt;Is that the same bug that causes my CVS over ssh sessions to hang?&lt;/p&gt;&lt;p class="mobile-post"&gt;Dragan&lt;/p&gt;&lt;p class="mobile-post"&gt;-&lt;br /&gt;&amp;gt;0&lt;br /&gt;&amp;gt;33&lt;br /&gt;&amp;gt;33&lt;br /&gt;&amp;gt;^Z&lt;br /&gt;&amp;gt;Suspended&lt;/p&gt;&lt;p class="mobile-post"&gt;Obviously your "localhost" is round-robin DNS to hosts with different&lt;br /&gt;definitions of "exit" !    Have you had a visit from my SAs ?&lt;/p&gt;&lt;p class="mobile-post"&gt;Is it more informative to do "uname ; exit 33" to let you see&lt;br /&gt;whether the remote command got run ?&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;Is that the same bug that causes my CVS over ssh sessions to hang?&lt;/p&gt;&lt;p class="mobile-post"&gt;It happens mostly on Linux clients.... Here is what I do for my Star&lt;br /&gt;backup script:&lt;/p&gt;&lt;p class="mobile-post"&gt;        _cmd=` eval echo "$STAR -cM -time f=$RTAPE VOLHDR= $host:$i&lt;br /&gt;$STAR_ARGS $STAR_EXTRA -C $i . \; r=\$\? \; sleep 10 \; exit \$\r"`&lt;br /&gt;        ssh -q "$host" -l root "$_cmd"&lt;br /&gt;        excode=$?&lt;br /&gt;        if [ $excode -ne 0 ]; then&lt;br /&gt;                echo "----&amp;gt; EXICODE: $excode for $host:$i"&lt;br /&gt;        fi&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932176467975794?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932176467975794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932176467975794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932176467975794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932176467975794'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/solaris-9-sshd-ssh-exit-codes.html' title='Solaris 9 sshd / ssh exit codes'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932166633775028</id><published>2005-10-14T15:27:00.000-05:00</published><updated>2005-10-14T15:27:46.350-05:00</updated><title type='text'>sh not ending (sometimes) from inside a script, why?</title><content type='html'>&lt;p class="mobile-post"&gt;ssh not ending (sometimes) from inside a script, why?&lt;/p&gt;&lt;p class="mobile-post"&gt;Okay I have this script file that runs from cron job (on a unix box&lt;br /&gt;running solaris 9 with SSH version Sun_SSH_1.0 protocols 1.5/2.0) and&lt;br /&gt;most the time it works just find. Except every so often one of the&lt;br /&gt;three ssh commands I have in the script just doesn't know it's done&lt;br /&gt;and that of course causes the whole thing to hang!&lt;/p&gt;&lt;p class="mobile-post"&gt;The ssh command has executed. I can tell this because the command is&lt;br /&gt;as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt;ssh username@hostname "ls /somedirectory" &amp;gt;somedir.file&lt;/p&gt;&lt;p class="mobile-post"&gt;and a new somedir.file has been created on the machine running the&lt;br /&gt;cron script.&lt;/p&gt;&lt;p class="mobile-post"&gt;Also, when this happens I can use the "kill sshprocessid" command and&lt;br /&gt;the cron script will continue, fat dumb and happy!&lt;/p&gt;&lt;p class="mobile-post"&gt;The machine I'm "ssh"ing to is a unix box with OpenSSH_3.7.1p2&lt;br /&gt;protocols 1.5/2.0, OpenSSL 0.9.6 on it.&lt;/p&gt;&lt;p class="mobile-post"&gt;I have tried running the ssh command in -v mode and looking at the out&lt;br /&gt;put but can't really make much from it but can see a difference in the&lt;br /&gt;order of things when the command hangs.&lt;/p&gt;&lt;p class="mobile-post"&gt;The –v output when ssh ended properly is as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt; 1 -debug1: Entering interactive session.&lt;br /&gt; 2 - debug1: client_init id 0 arg 0&lt;br /&gt; 3 - debug1: Sending command: ls /Rawdata/Archive2/*VCID4.tlm.gz&lt;br /&gt; 4 - debug1: channel 0: open confirm rwindow 0 rmax 32768&lt;br /&gt; 5 - debug1: channel 0: read&amp;lt;=0 rfd 6 len 0&lt;br /&gt; 6 - debug1: channel 0: read failed&lt;br /&gt; 7 - debug1: channel 0: input open-&amp;gt;drain&lt;br /&gt; 8 - debug1: channel 0: close_read&lt;br /&gt; 9 - debug1: channel 0: input: no drain shortcut&lt;br /&gt;10 - debug1: channel 0: ibuf empty&lt;br /&gt;11 - debug1: channel 0: input drain-&amp;gt;closed&lt;br /&gt;12 - debug1: channel 0: send eof&lt;br /&gt;13 - debug1: channel 0: rcvd eof&lt;br /&gt;14 - debug1: channel 0: output open-&amp;gt;drain&lt;br /&gt;15 - debug1: channel: 0 rcvd request for exit-status&lt;br /&gt;16 - debug1: cb_fn 267a4 cb_event 91&lt;br /&gt;17 - debug1: channel 0: rcvd close&lt;br /&gt;18 - debug1: channel 0: obuf empty&lt;br /&gt;19 - debug1: channel 0: output drain-&amp;gt;closed&lt;br /&gt;20 - debug1: channel 0: close_write&lt;br /&gt;21 - debug1: channel 0: send close&lt;br /&gt;22 - debug1: channel 0: full closed2&lt;br /&gt;23 - debug1: channel_free: channel 0: status: The following&lt;br /&gt;connections are open: #0 client-session (t4 r0 i8/0 o128/0 fd -1/-1)&lt;/p&gt;&lt;p class="mobile-post"&gt;24 - debug1: channel_free: channel 0: dettaching channel user&lt;br /&gt;25 - debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.6&lt;br /&gt;seconds&lt;br /&gt;26 - debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0&lt;br /&gt;27 - debug1: Exit status 0&lt;/p&gt;&lt;p class="mobile-post"&gt;The –v output when ssh hung is as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt; 1 - debug1: Entering interactive session.&lt;br /&gt; 2 - debug1: client_init id 0 arg 0&lt;br /&gt; 3 - debug1: Sending command: ls /Rawdata/Archive2/*VCID4.tlm.gz&lt;br /&gt; 4 - debug1: channel 0: open confirm rwindow 0 rmax 32768&lt;br /&gt; 5 -debug1: channel 0: read&amp;lt;=0 rfd 6 len 0&lt;br /&gt; 6 - debug1: channel 0: read failed&lt;br /&gt; 7 - debug1: channel 0: input open-&amp;gt;drain&lt;br /&gt; 8 - debug1: channel 0: close_read&lt;br /&gt; 9 - debug1: channel 0: input: no drain shortcut&lt;br /&gt;10 - debug1: channel 0: ibuf empty&lt;br /&gt;11 - debug1: channel 0: input drain-&amp;gt;closed&lt;br /&gt;12 - debug1: channel 0: send eof&lt;br /&gt;13 - debug1: channel 0: rcvd eof&lt;br /&gt;14 - debug1: channel 0: output open-&amp;gt;drain&lt;br /&gt;15 - debug1: channel 0: obuf empty&lt;br /&gt;16 - debug1: channel 0: output drain-&amp;gt;closed&lt;br /&gt;17 - debug1: channel 0: close_write&lt;br /&gt;18 - debug1: channel 0: send close&lt;br /&gt;19 - debug1: channel: 0 rcvd request for exit-status&lt;br /&gt;20 - debug1: cb_fn 267a4 cb_event 91&lt;br /&gt;21 - debug1: channel 0: rcvd close&lt;br /&gt;22 - debug1: channel 0: full closed2&lt;br /&gt;23 - debug1: channel_free: channel 0: status: The following&lt;br /&gt;connections are open: #0 client-session (t4 r0 i8/0 o128/0 fd -1/-1)&lt;/p&gt;&lt;p class="mobile-post"&gt;24 - debug1: channel_free: channel 0: dettaching channel user&lt;/p&gt;&lt;p class="mobile-post"&gt;Note I put the numbers on the trace.&lt;/p&gt;&lt;p class="mobile-post"&gt;I figure there is a race condition of some kind going on for the end&lt;br /&gt;of command signal and once in awhile it gets missed but.... I just&lt;br /&gt;don't know where else to look....&lt;/p&gt;&lt;p class="mobile-post"&gt;I'll take any ideas or comments, please!&lt;/p&gt;&lt;p class="mobile-post"&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;http://www.snailbook.com/faq/background-jobs.auto.html&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;/p&gt;&lt;p class="mobile-post"&gt;Subject: Re: ssh not ending (sometimes) from inside a script, why?&lt;/p&gt;&lt;p class="mobile-post"&gt;Thank you for the link. I did read through this before posting my&lt;br /&gt;question but I just read through it again and wonder if the answer to&lt;br /&gt;my question is not simply it is going to hang sometimes and there is&lt;br /&gt;nothing I can do about it.&lt;/p&gt;&lt;p class="mobile-post"&gt;This is of course not the answer I was hoping for but if it is so I&lt;br /&gt;guess I should move on and just write code to kill the process after a&lt;br /&gt;period of time. I just don't think that this answer is very pretty :(&lt;/p&gt;&lt;p class="mobile-post"&gt;Again any thoughts or comments are welcome, and thanks.&lt;br /&gt;Kym&lt;/p&gt;&lt;p class="mobile-post"&gt;End of messages&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932166633775028?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932166633775028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932166633775028' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932166633775028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932166633775028'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/sh-not-ending-sometimes-from-inside.html' title='sh not ending (sometimes) from inside a script, why?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112932132207321064</id><published>2005-10-14T15:22:00.000-05:00</published><updated>2005-10-14T15:22:02.150-05:00</updated><title type='text'>SSH Frequently Asked Questions</title><content type='html'>&lt;p class="mobile-post"&gt;SSH Frequently Asked Questions&lt;br /&gt;Sometimes my SSH connection hangs when exiting — the shell (or remote&lt;br /&gt;command) exits, but the connection remains open, doing nothing.&lt;br /&gt;Quick Fix&lt;br /&gt;You're probably using the OpenSSH server, and started a background&lt;br /&gt;process on the server which you intended to continue after logging out&lt;br /&gt;of the SSH session. Fix: redirect the background process&lt;br /&gt;stdin/stdout/stderr streams (e.g. to files, or /dev/null if you don't&lt;br /&gt;care about them). For example, this hangs:&lt;/p&gt;&lt;p class="mobile-post"&gt;client% ssh server&lt;br /&gt;server% xterm &amp;amp;&lt;br /&gt;server% logout&lt;br /&gt;hangs...&lt;/p&gt;&lt;p class="mobile-post"&gt;but this behaves as expected:&lt;/p&gt;&lt;p class="mobile-post"&gt;client% ssh server&lt;br /&gt;server% xterm &amp;lt; /dev/null &amp;gt;&amp;amp; /dev/null &amp;amp;&lt;br /&gt;server% logout&lt;br /&gt;SSH session terminates&lt;br /&gt;client%&lt;/p&gt;&lt;p class="mobile-post"&gt;Short Explanation&lt;br /&gt;This problem is usually due to a feature of the OpenSSH server. When&lt;br /&gt;writing an SSH server, you have to answer the question, "When should&lt;br /&gt;the server close the SSH connection?" The obvious answer might seem to&lt;br /&gt;be: close it when the server-side user program started by client&lt;br /&gt;request (shell or remote command) exits. However, it's actually a bit&lt;br /&gt;more complicated; this simple strategy allows a race condition which&lt;br /&gt;can cause data loss (see the explanation below). To avoid this&lt;br /&gt;problem, sshd instead waits until it encounters end-of-file (eof) on&lt;br /&gt;the pipes connecting to the stdout and stderr of the user program.&lt;/p&gt;&lt;p class="mobile-post"&gt;This strategy, however, can have unexpected consequences. In Unix, an&lt;br /&gt;open file does not return eof until all references to it have been&lt;br /&gt;closed. When you start a background process from the shell on the&lt;br /&gt;server, it inherits references to the shell's standard streams. Unless&lt;br /&gt;you prevent this by redirecting these, or the process closes them&lt;br /&gt;itself (daemons will generally do this), the existence of the new&lt;br /&gt;process will cause sshd to wait indefinitely, since it will never see&lt;br /&gt;eof on the pipe connecting it to the (now defunct) shell process —&lt;br /&gt;because that pipe also connects it to your background process.&lt;/p&gt;&lt;p class="mobile-post"&gt;This design choice has changed over time. Early versions of OpenSSH&lt;br /&gt;behaved as described here. For some time, it was changed to exit&lt;br /&gt;immediately upon exit of the user program; then, it was changed back&lt;br /&gt;when the possibility of data loss was discovered.&lt;br /&gt;Race Condition Details&lt;br /&gt;As an example, let's take the simple case of:&lt;/p&gt;&lt;p class="mobile-post"&gt;ssh server cat foo.txt&lt;/p&gt;&lt;p class="mobile-post"&gt;This should result in the entire contents of the file foo.txt coming&lt;br /&gt;back to the client — but in fact, it may not. Consider the following&lt;br /&gt;sequence of events:&lt;/p&gt;&lt;p class="mobile-post"&gt;    * The SSH connection is set up; sshd starts the target account's&lt;br /&gt;shell as shell -c "cat foo.txt" in a child process, reading the&lt;br /&gt;shell's stdout and sending the data over the SSH connection. sshd is&lt;br /&gt;waiting for the shell to exit.&lt;br /&gt;    * The shell, in turn, starts cat foo.txt in a child process, and&lt;br /&gt;waits for it to exit. The file data from foo.txt which cat write to&lt;br /&gt;its stdout, however, does not pass through the shell process on its&lt;br /&gt;way to sshd. cat inherits its stdout file descriptor (fd) from it&lt;br /&gt;parent process, the shell — that fd is a direct reference to the pipe&lt;br /&gt;connecting the shell's stdout to sshd.&lt;br /&gt;    * cat writes the last chunk of data from foo.txt, and exits; the&lt;br /&gt;data is passed to the kernel via the write system call, and is waiting&lt;br /&gt;in the pipe buffer to be read by sshd. The shell, which was waiting on&lt;br /&gt;the cat process, exits, and then sshd in turn exits, closing the SSH&lt;br /&gt;connection. However, there is a race condition here: through the&lt;br /&gt;vagaries of process scheduling, it is possible that sshd will receive&lt;br /&gt;and act on the SIGCHLD notifying it of the shell's exit, before it&lt;br /&gt;reads the last chunk of data from the pipe. If so, then it misses that&lt;br /&gt;data.&lt;/p&gt;&lt;p class="mobile-post"&gt;This sequence of events can, for example, cause file truncation when using scp.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112932132207321064?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112932132207321064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112932132207321064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932132207321064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112932132207321064'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/ssh-frequently-asked-questions.html' title='SSH Frequently Asked Questions'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112870229585831554</id><published>2005-10-07T11:24:00.001-05:00</published><updated>2005-10-07T11:24:55.860-05:00</updated><title type='text'>Qlogic Driver Solaris</title><content type='html'>&lt;p class="mobile-post"&gt;All,&lt;/p&gt;&lt;p class="mobile-post"&gt;How do I get my Solaris 8 server to "see" what is attached on the&lt;br /&gt;switch?&lt;/p&gt;&lt;p class="mobile-post"&gt;I've read the Procedure Manual (350 pages) for the Brocade 3250 as well&lt;br /&gt;as the QLogic Manuals but so far I have not found any good documentation&lt;br /&gt;that deals with the integration between the HBA and the Brocade switch.&lt;/p&gt;&lt;p class="mobile-post"&gt;I have 1 LTO2 tape drive on a 3250 Brocade switch, I have a lot more&lt;br /&gt;actually, but I want to start out simple, with 1 attached device.&lt;/p&gt;&lt;p class="mobile-post"&gt;Also, in my cfgadm -al it shows the device that is attached to the&lt;br /&gt;switch as failing...&lt;/p&gt;&lt;p class="mobile-post"&gt;c3                             fc-private   connected    configured&lt;br /&gt;unknown&lt;br /&gt;c3::500104f00052cf22           tape         connected    configured&lt;br /&gt;unknown&lt;br /&gt;c4                             fc-private   connected    configured&lt;br /&gt;unknown&lt;br /&gt;c4::500104f00052cf25           tape         connected    configured&lt;br /&gt;unknown&lt;br /&gt;c5                             fc-fabric    connected    configured&lt;br /&gt;unknown&lt;br /&gt;c5::500104f00052cf1c           unavailable  connected    configured&lt;br /&gt;failing&lt;br /&gt;c5::500104f00052cf1f           unavailable  connected    configured&lt;br /&gt;failing&lt;br /&gt;c6                             fc           connected    unconfigured&lt;br /&gt;unknown&lt;/p&gt;&lt;p class="mobile-post"&gt;Note: c5 is the card/port(s) that is/are connected to the switch.&lt;/p&gt;&lt;p class="mobile-post"&gt;Diagram:&lt;/p&gt;&lt;p class="mobile-post"&gt;Sun V440:&lt;br /&gt;----------------&lt;br /&gt;|   |HBA|      |&lt;br /&gt;----------------&lt;br /&gt;      |&lt;br /&gt;      |&lt;br /&gt;     /&lt;br /&gt;    /&lt;br /&gt;   /&lt;br /&gt;  |        (Brocade)&lt;br /&gt;-------------------&lt;br /&gt;| P0 P1 P2 P3     |&lt;br /&gt;-------------------&lt;br /&gt;      |&lt;br /&gt;      |&lt;br /&gt;                        -&amp;gt; HPUltrium-LTO2 2GBps Drive.&lt;/p&gt;&lt;p class="mobile-post"&gt;Here is the switch information:&lt;/p&gt;&lt;p class="mobile-post"&gt;s3250:admin&amp;gt; nsshow&lt;br /&gt;{&lt;br /&gt; Type Pid    COS     PortName                NodeName&lt;br /&gt;TTL(sec)&lt;br /&gt; N    010000;      3;21:00:00:e0:8b:14:12:05;20:00:00:e0:8b:14:12:05; na&lt;br /&gt;    FC4s: FCP&lt;br /&gt;    Fabric Port Name: 20:00:00:05:1e:35:78:77&lt;br /&gt; NL   010155;      3;50:01:04:f0:00:52:cf:04;50:01:04:f0:00:52:cf:03; na&lt;br /&gt;    FC4s: FCP [HP      Ultrium 2-SCSI  K470]&lt;br /&gt;    Fabric Port Name: 20:01:00:05:1e:35:78:77&lt;br /&gt;The Local Name Server has 2 entries }&lt;br /&gt;s3250:admin&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;I have setup a zone for this tape drive:&lt;/p&gt;&lt;p class="mobile-post"&gt;s3250:admin&amp;gt; zoneshow&lt;br /&gt;Defined configuration:&lt;br /&gt; cfg:   myconfig001&lt;br /&gt;                zone1&lt;br /&gt; zone:  zone1   3,21; 3,50&lt;br /&gt; zone:  zone2   50:01:04:f0:00:52:cf:04&lt;br /&gt; zone:  zone3   50:01:04:f0:00:52:cf:03&lt;/p&gt;&lt;p class="mobile-post"&gt;Effective configuration:&lt;br /&gt; cfg:   myconfig001&lt;br /&gt; zone:  zone1   3,21&lt;br /&gt;                3,50&lt;/p&gt;&lt;p class="mobile-post"&gt;Here is my current qlc.conf:&lt;/p&gt;&lt;p class="mobile-post"&gt;# cat qlc.conf | grep -v ^# | grep . | sort&lt;br /&gt;hba0-adapter-hard-loop-ID=0;&lt;br /&gt;hba0-enable-adapter-hard-loop-ID=0;&lt;/p&gt;&lt;p class="mobile-post"&gt;# pkginfo -i | grep qlc&lt;br /&gt;system      SUNWqlc        Qlogic ISP 2200/2202 Fibre Channel Device&lt;br /&gt;Driver&lt;br /&gt;system      SUNWqlcx       Qlogic ISP 2200/2202 Fibre Channel Device&lt;br /&gt;Driver (64 bit)&lt;/p&gt;&lt;p class="mobile-post"&gt;# prtdiag -v | grep qlc&lt;br /&gt; 0   pci    66         PCI2  SUNW,qlc-pci1077,2312 (scsi-+&lt;/p&gt;&lt;p class="mobile-post"&gt; 0   pci    66         PCI2  SUNW,qlc-pci1077,2312 (scsi-+&lt;/p&gt;&lt;p class="mobile-post"&gt; 0   pci    33         PCI3  SUNW,qlc-pci1077,2312 (scsi-+&lt;/p&gt;&lt;p class="mobile-post"&gt; 0   pci    33         PCI3  SUNW,qlc-pci1077,2312 (scsi-+&lt;/p&gt;&lt;p class="mobile-post"&gt;Yes, I know I have two dual-port cards; I am only using the first one at&lt;br /&gt;the moment.&lt;/p&gt;&lt;p class="mobile-post"&gt;I've noticed there are actual QLOGIC HBA drivers, I have installed them&lt;br /&gt;in the past but either I did not configure them properly, or something--&lt;br /&gt;as I did not notice any effect with the drivers installed or not&lt;br /&gt;installed.&lt;/p&gt;&lt;p class="mobile-post"&gt;The drivers being:&lt;/p&gt;&lt;p class="mobile-post"&gt;Solaris.QLogic.HBA.Fiber.Drivers$ ls&lt;br /&gt;Troubleshooting\ For\ The\ QLogic\ 2342\ HBAs.pdf&lt;br /&gt;qla2300-readme.txt&lt;br /&gt;qla2300.sparc_pkg.Z&lt;br /&gt;sansurfer2.0.30b23-1_solaris_install.bin&lt;br /&gt;scli.1.06.16-15.SPARC-X86.Solaris.pkg.Z&lt;/p&gt;&lt;p class="mobile-post"&gt;Anyone have any clues?&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks,&lt;/p&gt;&lt;p class="mobile-post"&gt;Justin.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112870229585831554?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112870229585831554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112870229585831554' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870229585831554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870229585831554'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/qlogic-driver-solaris.html' title='Qlogic Driver Solaris'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12965617.post-112870224873090240</id><published>2005-10-07T11:24:00.000-05:00</published><updated>2005-10-07T11:24:08.746-05:00</updated><title type='text'>large file limitation Veritas</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: RE: large file limitation&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks to all for your replies, obviously many options but I went with&lt;br /&gt;the option below to use fsadm to reconfigure the FS to use largefiles on&lt;br /&gt;the fly, Thanks to VXFS, and also thanks to James Scott for a similar&lt;br /&gt;reply. Worked like a charm.&lt;/p&gt;&lt;p class="mobile-post"&gt;Paul&lt;/p&gt;&lt;p class="mobile-post"&gt;Subject: Re: large file limitation&lt;/p&gt;&lt;p class="mobile-post"&gt;VxFS. Good :-)&lt;/p&gt;&lt;p class="mobile-post"&gt;2GB not an issue, can enable on the fly without unmounting etc.&lt;br /&gt;  /usr/lib/fs/vxfs/fsadm -o largefiles /MOUNTPOINT&lt;/p&gt;&lt;p class="mobile-post"&gt;  ( ex: /usr/lib/fs/vxfs/fsadm -o largefiles /data1)&lt;/p&gt;&lt;p class="mobile-post"&gt;verify:&lt;/p&gt;&lt;p class="mobile-post"&gt;/usr/lib/fs/vxfs/fsadm /data1&lt;/p&gt;&lt;p class="mobile-post"&gt;There you are, that is why you have Veritas :-)&lt;/p&gt;&lt;p class="mobile-post"&gt;Cheers&lt;/p&gt;&lt;p class="mobile-post"&gt;E&lt;/p&gt;&lt;p class="mobile-post"&gt;Paul.Sagneri@cox.com wrote:&lt;br /&gt;&amp;gt; Guru's&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; I have 6gig of data that I need to tar up and move to my local drive&lt;br /&gt;and&lt;br /&gt;&amp;gt; would like to move it all in one tar file.  However, my tar bombs out&lt;br /&gt;&amp;gt; after the 2g limitation.  I'm running Solaris 8 with vxfs but didn't&lt;br /&gt;&amp;gt; make the file system using the largefiles option.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Is there a way to tar up a directory structure larger than 2g at this&lt;br /&gt;&amp;gt; point.  I thought this was only a restriction in 2.6 and prior.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; TIA&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Paul Sagneri&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112870224873090240?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112870224873090240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112870224873090240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870224873090240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870224873090240'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/large-file-limitation-veritas.html' title='large file limitation Veritas'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112870219723140656</id><published>2005-10-07T11:23:00.000-05:00</published><updated>2005-10-07T11:23:17.243-05:00</updated><title type='text'>Permissions messed in /devices - easy fix?</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: [SUMMARY] Permissions messed in /devices - easy fix?&lt;/p&gt;&lt;p class="mobile-post"&gt;-----&lt;br /&gt;Original Post:&lt;br /&gt;Due to an errant command during a security-tightening process, I have&lt;br /&gt;a Solaris 8 box that has had all of the Other Write bits turned off&lt;br /&gt;on the special files in /devices.&lt;/p&gt;&lt;p class="mobile-post"&gt;Is there a reasonably easy method to get Solaris to regenerate&lt;br /&gt;/devices from scratch?&lt;/p&gt;&lt;p class="mobile-post"&gt;I've tried "touch /reconfigure and reboot" - no dice - doesn't seem&lt;br /&gt;to regenerate something that's needed that's already there.&lt;/p&gt;&lt;p class="mobile-post"&gt;Suggestion: how about nuking /devices and /dev from a script as the&lt;br /&gt;last thing the OS does on the way down then boot -r?&lt;/p&gt;&lt;p class="mobile-post"&gt;-----&lt;/p&gt;&lt;p class="mobile-post"&gt;IMHO the best responses came from Casper Dik and David Foster to use&lt;br /&gt;pkgchk -f SUNWcsd&lt;br /&gt;to force the reinstallation (and presumably permissions) of the&lt;br /&gt;devices.&lt;/p&gt;&lt;p class="mobile-post"&gt;Unfortunately, this advice came too late. What I did was&lt;br /&gt;touch /reconfigure&lt;br /&gt;rm -rf /dev /devices&lt;br /&gt;from single user mode&lt;br /&gt;init 0&lt;br /&gt;at which point the system locked.&lt;/p&gt;&lt;p class="mobile-post"&gt;From this point on the system would lock sometime shortly after&lt;br /&gt;reading /etc/system.  I made many efforts to restore /devices to no&lt;br /&gt;avail after that point. Attempts included:&lt;br /&gt;*) disabled SVM - I could, after all, only really change one side of&lt;br /&gt;the mirror when booting from CD.&lt;br /&gt;*) boot from CD, copy /devices and /dev from the running image to the&lt;br /&gt;boot drive.&lt;br /&gt;*) boot from CD, use the suggested devfsadm -r /tmp/a method to&lt;br /&gt;rebuild the hierarchy.&lt;br /&gt;*) Last message I was getting looked like the system had loaded the&lt;br /&gt;RDAC driver for my SAN disks, so I disabled it.&lt;/p&gt;&lt;p class="mobile-post"&gt;Basically got the same lock every boot attempt.&lt;/p&gt;&lt;p class="mobile-post"&gt;Interestingly enough, on all these boot attempts where the 880&lt;br /&gt;locked, it would not even respond to BREAK on the ttya line (what I'm&lt;br /&gt;using for console). In all attempts I had to power cycle the box.&lt;/p&gt;&lt;p class="mobile-post"&gt;The box is now back in production with a fresh new Solaris 9 load. It&lt;br /&gt;is something we probably should have started at Tuesday noon instead&lt;br /&gt;of Wednesday afternoon, but hindsight is always 20/20.&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks for all replies.&lt;/p&gt;&lt;p class="mobile-post"&gt;-----&lt;br /&gt;This would generally be my experience, from Grant:&lt;br /&gt;I would be careful about the /devices directory.  I had to restore a&lt;br /&gt;system from backup, using NetBackup and the system wouldn't boot.&lt;br /&gt;After I rebuilt the system from a full backup, the system wouldn't&lt;br /&gt;boot.  I even tried rebooting with -r and even touch /reconfigure.&lt;br /&gt;It turned out the /devices tree wasn't restored (NetBackup doesn't&lt;br /&gt;back up the /devices directory).  The system would hang right after&lt;br /&gt;reading the system file.  I finally had to boot from cdrom, run&lt;br /&gt;devfsadm on the mounted /a filesystem, and then rebooted.  Then it&lt;br /&gt;booted.  Hope this helps.&lt;br /&gt;-----&lt;br /&gt;From Tim:&lt;br /&gt;Possibly a red herring, but wouldn't a&lt;br /&gt;sudo find /dev -name '*' -exec chmod o+w \;&lt;br /&gt;do the trick?&lt;br /&gt;Response: Yes, but Yes. Not everything should have write permission.&lt;br /&gt;-----&lt;br /&gt;Remove everything *except* for your boot device, rename&lt;br /&gt;/etc/path_to_inst then 'reboot -- -ra'. It'll ask you if you want to&lt;br /&gt;rebuild the path_to_inst&lt;br /&gt;Response: might have worked, but I didn't need path_to_inst rebuilt&lt;br /&gt;as far as I knew. As stated earlier, keeping the path to the boot&lt;br /&gt;device would have been useful.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112870219723140656?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112870219723140656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112870219723140656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870219723140656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870219723140656'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/permissions-messed-in-devices-easy-fix.html' title='Permissions messed in /devices - easy fix?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112870214651389975</id><published>2005-10-07T11:22:00.000-05:00</published><updated>2005-10-07T11:22:26.526-05:00</updated><title type='text'>Live Upgrade Help</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: UPDATE: Live Upgrade Help&lt;br /&gt;Hi Gurus,&lt;/p&gt;&lt;p class="mobile-post"&gt;I haven't received any response to this. I need help to resolve this as&lt;br /&gt;we are planning to upgrade all our Production Servers from Solaris 2.6&lt;br /&gt;to Solaris 8 by next week. Any Help will be greatly appreciated.&lt;/p&gt;&lt;p class="mobile-post"&gt;I tried it on a different box with same result.&lt;br /&gt;One thing which i noticed is SUNWluu and SUNlur&lt;br /&gt;I installed both from my Jumpstart Box Solaris 8 5/03 however live&lt;br /&gt;upgrade version is:&lt;br /&gt;"Live Upgrade 2.0 10/01"&lt;br /&gt;I have only one version of Solaris 8 5/03 on my Jumpstart Box.&lt;br /&gt;ALso i am not clear about profile which i am using&lt;br /&gt;My profile file is upgrade and its content is&lt;br /&gt;install_type upgrade&lt;/p&gt;&lt;p class="mobile-post"&gt;Here is theoutput of my Live Upgrade:&lt;/p&gt;&lt;p class="mobile-post"&gt;------------------------------------------------------------------------&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;--------------------------&lt;/p&gt;&lt;p class="mobile-post"&gt;# lucreate -c "Solaris26" -m /:/dev/dsk/c0t1d0s0:ufs -m&lt;br /&gt;/usr:/dev/dsk/c0t1d0s5:ufs -m /var:/dev/dsk/c0t1d0s3:ufs -m&lt;br /&gt;/opt:/dev/dsk/c0t1d0s4:ufs -m /home:/dev/dsk/c0t1d0s6:ufs -m&lt;br /&gt;-:/dev/dsk/c0t1d0s1:swap -m /citadon:/dev/dsk/c0t1d0s7 -n "Solaris_8"&lt;br /&gt;Please wait while your system configuration is determined.&lt;br /&gt;No name for Current BE.&lt;br /&gt;Current BE is named &amp;lt;Solaris26&amp;gt;.&lt;br /&gt;Creating initial configuration for primary BE &amp;lt;Solaris26&amp;gt;.&lt;br /&gt;PBE configuration successful: PBE name &amp;lt;Solaris26&amp;gt; PBE Boot Device&lt;br /&gt;&amp;lt;/dev/dsk/c0t0d0s0&amp;gt;.&lt;br /&gt;Determining what file systems should be in the new BE.&lt;/p&gt;&lt;p class="mobile-post"&gt;Searching /dev for possible BE filesystem devices&lt;/p&gt;&lt;p class="mobile-post"&gt;Please wait while the configuration files are updated.&lt;br /&gt;Please wait. Configuration validation in progress...&lt;/p&gt;&lt;p class="mobile-post"&gt;************************************************************&lt;br /&gt;********************&lt;br /&gt;Beginning process of creating Boot Environment &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;No more user interaction is required until this process is complete.&lt;br /&gt;************************************************************&lt;br /&gt;********************&lt;/p&gt;&lt;p class="mobile-post"&gt;Setting BE &amp;lt;Solaris_8&amp;gt; state to Not Complete.&lt;br /&gt;Creating file systems on BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Creating &amp;lt;ufs&amp;gt; file system on &amp;lt;/dev/dsk/c0t1d0s0&amp;gt;.&lt;br /&gt;/dev/rdsk/c0t1d0s0: 1027216 sectors in 218 cylinders of 19 tracks, 248&lt;br /&gt;sectors&lt;br /&gt;501.6MB in 14 cyl groups (16 c/g, 36.81MB/g, 17664 i/g)&lt;br /&gt;super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt;32, 75680, 151328, 226976, 302624, 378272, 453920, 529568, 605216,&lt;br /&gt;680864,&lt;br /&gt;756512, 832160, 907808, 983456,&lt;br /&gt;Creating &amp;lt;ufs&amp;gt; file system on &amp;lt;/dev/dsk/c0t1d0s6&amp;gt;.&lt;br /&gt;/dev/rdsk/c0t1d0s6: 2101552 sectors in 446 cylinders of 19 tracks, 248&lt;br /&gt;sectors&lt;br /&gt;1026.1MB in 23 cyl groups (20 c/g, 46.02MB/g, 11200 i/g)&lt;br /&gt;super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt;32, 94528, 189024, 283520, 378016, 472512, 567008, 661504, 756000,&lt;br /&gt;850496,&lt;br /&gt;944992, 1039488, 1133984, 1228480, 1322976, 1417472, 1511968, 1606464,&lt;br /&gt;1700960, 1795456, 1889952, 1984448, 2078944,&lt;br /&gt;Creating &amp;lt;ufs&amp;gt; file system on &amp;lt;/dev/dsk/c0t1d0s4&amp;gt;.&lt;br /&gt;/dev/rdsk/c0t1d0s4: 12326592 sectors in 2616 cylinders of 19 tracks, 248&lt;br /&gt;sectors&lt;br /&gt;6018.8MB in 119 cyl groups (22 c/g, 50.62MB/g, 6208 i/g)&lt;br /&gt;super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt;32, 103952, 207872, 311792, 415712, 519632, 623552, 727472, 831392,&lt;br /&gt;935312,&lt;br /&gt;1039232, 1143152, 1247072, 1350992, 1454912, 1558832, 1662752, 1766672,&lt;br /&gt;1870592, 1974512, 2078432, 2182352, 2286272, 2390192, 2494112, 2598032,&lt;br /&gt;2701952, 2805872, 2909792, 3013712, 3117632, 3221552, 3317280, 3421200,&lt;br /&gt;3525120, 3629040, 3732960, 3836880, 3940800, 4044720, 4148640, 4252560,&lt;br /&gt;4356480, 4460400, 4564320, 4668240, 4772160, 4876080, 4980000, 5083920,&lt;br /&gt;5187840, 5291760, 5395680, 5499600, 5603520, 5707440, 5811360, 5915280,&lt;br /&gt;6019200, 6123120, 6227040, 6330960, 6434880, 6538800, 6634528, 6738448,&lt;br /&gt;6842368, 6946288, 7050208, 7154128, 7258048, 7361968, 7465888, 7569808,&lt;br /&gt;7673728, 7777648, 7881568, 7985488, 8089408, 8193328, 8297248, 8401168,&lt;br /&gt;8505088, 8609008, 8712928, 8816848, 8920768, 9024688, 9128608, 9232528,&lt;br /&gt;9336448, 9440368, 9544288, 9648208, 9752128, 9856048, 9951776, 10055696,&lt;br /&gt;10159616, 10263536, 10367456, 10471376, 10575296, 10679216, 10783136,&lt;br /&gt;10887056, 10990976, 11094896, 11198816, 11302736, 11406656, 11510576,&lt;br /&gt;11614496, 11718416, 11822336, 11926256, 12030176, 12134096, 12238016,&lt;br /&gt;Creating &amp;lt;ufs&amp;gt; file system on &amp;lt;/dev/dsk/c0t1d0s5&amp;gt;.&lt;br /&gt;/dev/rdsk/c0t1d0s5: 4198392 sectors in 891 cylinders of 19 tracks, 248&lt;br /&gt;sectors&lt;br /&gt;2050.0MB in 41 cyl groups (22 c/g, 50.62MB/g, 8256 i/g)&lt;br /&gt;super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt;32, 103952, 207872, 311792, 415712, 519632, 623552, 727472, 831392,&lt;br /&gt;935312,&lt;br /&gt;1039232, 1143152, 1247072, 1350992, 1454912, 1558832, 1662752, 1766672,&lt;br /&gt;1870592, 1974512, 2078432, 2182352, 2286272, 2390192, 2494112, 2598032,&lt;br /&gt;2701952, 2805872, 2909792, 3013712, 3117632, 3221552, 3317280, 3421200,&lt;br /&gt;3525120, 3629040, 3732960, 3836880, 3940800, 4044720, 4148640,&lt;br /&gt;Creating &amp;lt;ufs&amp;gt; file system on &amp;lt;/dev/dsk/c0t1d0s3&amp;gt;.&lt;br /&gt;/dev/rdsk/c0t1d0s3: 1027216 sectors in 218 cylinders of 19 tracks, 248&lt;br /&gt;sectors&lt;br /&gt;501.6MB in 14 cyl groups (16 c/g, 36.81MB/g, 17664 i/g)&lt;br /&gt;super-block backups (for fsck -F ufs -o b=#) at:&lt;br /&gt;32, 75680, 151328, 226976, 302624, 378272, 453920, 529568, 605216,&lt;br /&gt;680864,&lt;br /&gt;756512, 832160, 907808, 983456,&lt;br /&gt;Mounting file systems for BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Calculating required sizes of file systems for BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Populating file systems on BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Copying file system contents to BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;INFORMATION: Setting asynchronous flag on ABE &amp;lt;Solaris_8&amp;gt; mount point&lt;br /&gt;&amp;lt;/.alt.2703/var&amp;gt; file system type &amp;lt;ufs&amp;gt;.&lt;br /&gt;INFORMATION: Setting asynchronous flag on ABE &amp;lt;Solaris_8&amp;gt; mount point&lt;br /&gt;&amp;lt;/.alt.2703/usr&amp;gt; file system type &amp;lt;ufs&amp;gt;.&lt;br /&gt;INFORMATION: Setting asynchronous flag on ABE &amp;lt;Solaris_8&amp;gt; mount point&lt;br /&gt;&amp;lt;/.alt.2703/opt&amp;gt; file system type &amp;lt;ufs&amp;gt;.&lt;br /&gt;INFORMATION: Setting asynchronous flag on ABE &amp;lt;Solaris_8&amp;gt; mount point&lt;br /&gt;&amp;lt;/.alt.2703/home&amp;gt; file system type &amp;lt;ufs&amp;gt;.&lt;br /&gt;INFORMATION: Setting asynchronous flag on ABE &amp;lt;Solaris_8&amp;gt; mount point&lt;br /&gt;&amp;lt;/.alt.2703/&amp;gt; file system type &amp;lt;ufs&amp;gt;.&lt;br /&gt;Copying of file system / directory &amp;lt;/var&amp;gt; is in progress...&lt;br /&gt;Copying of file system / directory &amp;lt;/var&amp;gt; completed successfully.&lt;br /&gt;Copying of file system / directory &amp;lt;/usr&amp;gt; is in progress...&lt;br /&gt;Copying of file system / directory &amp;lt;/usr&amp;gt; completed successfully.&lt;br /&gt;Copying of file system / directory &amp;lt;/opt&amp;gt; is in progress...&lt;br /&gt;Copying of file system / directory &amp;lt;/opt&amp;gt; completed successfully.&lt;br /&gt;Copying of file system / directory &amp;lt;/home&amp;gt; is in progress...&lt;br /&gt;Copying of file system / directory &amp;lt;/home&amp;gt; completed successfully.&lt;br /&gt;Copying of file system / directory &amp;lt;/&amp;gt; is in progress...&lt;br /&gt;Copying of file system / directory &amp;lt;/&amp;gt; completed successfully.&lt;br /&gt;Creating compare database for file system &amp;lt;/var&amp;gt;.&lt;br /&gt;Creating compare database for file system &amp;lt;/usr&amp;gt;.&lt;br /&gt;Creating compare database for file system &amp;lt;/opt&amp;gt;.&lt;br /&gt;Creating compare database for file system &amp;lt;/home&amp;gt;.&lt;br /&gt;Creating compare database for file system &amp;lt;/&amp;gt;.&lt;br /&gt;Updating compare database on other BEs.&lt;br /&gt;Updating compare database on BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Compare databases updated on all BEs.&lt;br /&gt;Making Boot Environment &amp;lt;Solaris_8&amp;gt; bootable.&lt;br /&gt;Making the ABE bootable.&lt;br /&gt;Updating ABE's /etc/vfstab file.&lt;br /&gt;The update of the vfstab file on the ABE succeeded.&lt;br /&gt;Updating ABE's /etc/mnttab file.&lt;br /&gt;The update of the mnttab file on the ABE succeeded.&lt;br /&gt;Updating ABE's /etc/dumpadm.conf file.&lt;br /&gt;The update of the dumpadm.conf file on the ABE succeeded.&lt;br /&gt;Updating partition ID tag on boot environment &amp;lt;Solaris_8&amp;gt; device&lt;br /&gt;&amp;lt;/dev/rdsk/c0t1d0s2&amp;gt; to be root slice.&lt;br /&gt;Updating boot loader for &amp;lt;SUNW,UltraSPARC-IIi-cEngine&amp;gt; on boot&lt;br /&gt;environment &amp;lt;Solaris_8&amp;gt; device &amp;lt;/dev/dsk/c0t1d0s0&amp;gt; to match OS release.&lt;br /&gt;Making the ABE &amp;lt;Solaris_8&amp;gt; bootable succeeded.&lt;br /&gt;Setting BE &amp;lt;Solaris_8&amp;gt; state to Complete.&lt;br /&gt;Creation of Boot Environment &amp;lt;Solaris_8&amp;gt; successful.&lt;br /&gt;Creation of Boot Environment &amp;lt;Solaris_8&amp;gt; successful.&lt;br /&gt;# luupgrade -u -n "Solaris_8" -s /opt/install/Solaris_28_503 -j&lt;br /&gt;/opt/install/config/liveupgrade/upgrade&lt;br /&gt;Validating the contents of the media &amp;lt;/opt/install/Solaris_28_503&amp;gt;.&lt;br /&gt;The media is a standard Solaris media.&lt;br /&gt;The media contains an operating system upgrade image.&lt;br /&gt;The media contains &amp;lt;Solaris&amp;gt; version &amp;lt;8&amp;gt;.&lt;br /&gt;The media contains patches for the product.&lt;br /&gt;Locating upgrade profile template to use.&lt;br /&gt;Locating the operating system upgrade program.&lt;br /&gt;Checking for existence of previously scheduled Live Upgrade requests.&lt;br /&gt;Creating upgrade profile for BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Updating ABE's /etc/vfstab file.&lt;br /&gt;The update of the vfstab file on the ABE succeeded.&lt;br /&gt;Determining packages to install or upgrade for BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Performing the operating system upgrade of the BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;CAUTION: Interrupting this process may leave the boot environment&lt;br /&gt;unstable&lt;br /&gt;or unbootable.&lt;br /&gt;Segmentation Fault&lt;br /&gt;The operating system patch installation completed.&lt;br /&gt;WARNING: BE file system &amp;lt;/dev/dsk/c0t1d0s6&amp;gt; not mounted.&lt;br /&gt;The Solaris upgrade of the BE &amp;lt;Solaris_8&amp;gt; failed.&lt;/p&gt;&lt;p class="mobile-post"&gt;------------------------------------------------------------------------&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;---------------------------------------------------------------------&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi Gurus,&lt;/p&gt;&lt;p class="mobile-post"&gt;I figured out the problem. It was typo in the lucreate command near /opt&lt;br /&gt;(s was missing) .After rectifying that I was able to create BE but while&lt;br /&gt;in upgrade process it failed with error "segmentation fault".&lt;/p&gt;&lt;p class="mobile-post"&gt;luupgrade -u -n "Solaris_8" -s /install/Solaris_28_503/ -j&lt;br /&gt;/install/config/liveupgrade/upgrade&lt;/p&gt;&lt;p class="mobile-post"&gt;Snip.....&lt;/p&gt;&lt;p class="mobile-post"&gt;Creating upgrade profile for BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Updating ABE's /etc/vfstab file.&lt;br /&gt;The update of the vfstab file on the ABE succeeded.&lt;br /&gt;Determining packages to install or upgrade for BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;Performing the operating system upgrade of the BE &amp;lt;Solaris_8&amp;gt;.&lt;br /&gt;CAUTION: Interrupting this process may leave the boot environment&lt;br /&gt;unstable or unbootable.&lt;/p&gt;&lt;p class="mobile-post"&gt;Segmentation Fault&lt;br /&gt;The operating system patch installation completed.&lt;br /&gt;The Solaris upgrade of the BE &amp;lt;Solaris_8&amp;gt; failed.&lt;/p&gt;&lt;p class="mobile-post"&gt;Any help/pointer will be greatly appreciated. I will summarize.&lt;/p&gt;&lt;p class="mobile-post"&gt;Regards&lt;/p&gt;&lt;p class="mobile-post"&gt;B&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi Gurus,&lt;/p&gt;&lt;p class="mobile-post"&gt;This is my first Live Upgrade so please bear with me if my questions&lt;br /&gt;sound silly.&lt;/p&gt;&lt;p class="mobile-post"&gt;I am trying to do live upgrade from Solaris 2.6 to Solaris 8 and ran&lt;br /&gt;into following error:&lt;/p&gt;&lt;p class="mobile-post"&gt;# lucreate -c "Solaris_26" -m /:/dev/dsk/c0t1d0s0:ufs -m&lt;br /&gt;/usr:/dev/dsk/c0t1d0s3:&lt;/p&gt;&lt;p class="mobile-post"&gt;ufs -m /var:/dev/dsk/c0t1d0s4:ufs -m /opt:/dev/dsk/c0t1d06:ufs -m&lt;br /&gt;-:/dev/dsk/c0t1d0s1:swap -m /home:/dev/dsk/c0t1d0s5 -n "Solaris_8"&lt;/p&gt;&lt;p class="mobile-post"&gt;Please wait while your system configuration is determined.&lt;br /&gt;No name for Current BE.&lt;br /&gt;Current BE is named &amp;lt;Solaris_26&amp;gt;.&lt;br /&gt;Creating initial configuration for primary BE &amp;lt;Solaris_26&amp;gt;.&lt;br /&gt;PBE configuration successful: PBE name &amp;lt;Solaris_26&amp;gt; PBE Boot Device&lt;br /&gt;&amp;lt;/dev/dsk/c0t0d0s0&amp;gt;.&lt;/p&gt;&lt;p class="mobile-post"&gt;Determining what file systems should be in the new BE.&lt;/p&gt;&lt;p class="mobile-post"&gt;Searching /dev for possible BE filesystem devices&lt;/p&gt;&lt;p class="mobile-post"&gt;luconfig: ERROR: Template filesystem definition failed for /opt..&lt;/p&gt;&lt;p class="mobile-post"&gt;ERROR: Configuration of BE failed.&lt;/p&gt;&lt;p class="mobile-post"&gt;I id the flowing steps to create a boot environment:&lt;/p&gt;&lt;p class="mobile-post"&gt;1) Install Latest patch Cluster on Target Box&lt;br /&gt;2) Install SUNWluu and SUNWlur from Solaris 8 CD to target box.&lt;br /&gt;3) Created partition on Target box on second Disk&lt;br /&gt;4) Mount Jumstart /opt/install to target box as /install&lt;br /&gt;5) Ran lucreate to create a boot environment on target box second disk&lt;br /&gt;as below:&lt;/p&gt;&lt;p class="mobile-post"&gt;# lucreate -c "Solaris_26" -m /:/dev/dsk/c0t1d0s0:ufs -m&lt;br /&gt;/usr:/dev/dsk/c0t1d0s3:&lt;/p&gt;&lt;p class="mobile-post"&gt;ufs -m /var:/dev/dsk/c0t1d0s4:ufs -m /opt:/dev/dsk/c0t1d06:ufs -m&lt;br /&gt;-:/dev/dsk/c0t1d0s1:swap -m /home:/dev/dsk/c0t1d0s5 -n "Solaris_8"&lt;/p&gt;&lt;p class="mobile-post"&gt;1) Do I need to create a file system with newfs? Or just partition will&lt;/p&gt;&lt;p class="mobile-post"&gt;do?&lt;/p&gt;&lt;p class="mobile-post"&gt;2) On Jumpstart Box what steps I need to follow besides creating a&lt;/p&gt;&lt;p class="mobile-post"&gt;profile file which contains - "install_type upgrade" ?&lt;/p&gt;&lt;p class="mobile-post"&gt;3) How do I select cluster type? Cluster SUNWCall?&lt;/p&gt;&lt;p class="mobile-post"&gt;4) How do I select the Patch Cluster for Solaris 8 on jumpstart Box?&lt;/p&gt;&lt;p class="mobile-post"&gt;Any help will be greatly appreciated&lt;/p&gt;&lt;p class="mobile-post"&gt;TIA&lt;/p&gt;&lt;p class="mobile-post"&gt;B&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112870214651389975?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112870214651389975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112870214651389975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870214651389975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870214651389975'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/live-upgrade-help.html' title='Live Upgrade Help'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112870191654253590</id><published>2005-10-07T11:18:00.000-05:00</published><updated>2005-10-07T11:18:36.616-05:00</updated><title type='text'>How do I tell what caused my machine to crash?</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 6.1)    How do I tell what caused my machine to crash?&lt;/p&gt;&lt;p class="mobile-post"&gt;  The crash messages will usually be displayed on the console, and are&lt;br /&gt;  usually logged to /var/adm/messages via syslog as well after a warm&lt;br /&gt;  reboot.  In older versions of Solaris, the "dmesg" command may also&lt;br /&gt;  show crash messages.  If your system repeatedly crashes with similar&lt;br /&gt;  looking errors, try searching through the patch list on the Sun&lt;br /&gt;  patch database for a description that matches your machine.&lt;/p&gt;&lt;p class="mobile-post"&gt;  In versions of Solaris 2 up to and including Solaris 2.6, uncomment&lt;br /&gt;  the "savecore" line in the file /etc/init.d/sysetup to enable crash&lt;br /&gt;  dumps.  As of Solaris 7 and later, crash dumps are enabled by&lt;br /&gt;  default; see the manual page for dumpadm(1M) for information on how&lt;br /&gt;  to customize system dump configuration.&lt;/p&gt;&lt;p class="mobile-post"&gt;  To report a crash dump, you need  a symbolic traceback for it to be&lt;br /&gt;  useful to the person looking at it. Type the following:&lt;br /&gt;        cd /var/crash/`hostname`&lt;br /&gt;        echo '$c' | adb -k unix.0 vmcore.0&lt;/p&gt;&lt;p class="mobile-post"&gt;  The "crash" utility can be useful for analyzing crash dumps for&lt;br /&gt;  Solaris up to and including Solaris 8.  "Crash" has been superseded&lt;br /&gt;  by "mdb" (modular debugger) as of Solaris 8.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112870191654253590?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112870191654253590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112870191654253590' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870191654253590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112870191654253590'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-do-i-tell-what-caused-my-machine.html' title='How do I tell what caused my machine to crash?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869774723198602</id><published>2005-10-07T10:09:00.000-05:00</published><updated>2005-10-07T10:09:07.243-05:00</updated><title type='text'>What can I do if my machine slows to a crawl or just hangs?</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 6.2)    What can I do if my machine slows to a crawl or just hangs?&lt;/p&gt;&lt;p class="mobile-post"&gt;  Try running "ps" to look for large numbers of the duplicate programs or&lt;br /&gt;  processes with a huge size field. Some system daemons occasionally can&lt;br /&gt;  get into a state where they fork repeatedly and eventually swamp the&lt;br /&gt;  system. Killing off the child processes doesn't do any good, so you have&lt;br /&gt;  to find the "master" process. It will usually have the lowest pid.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Another useful approach is to run vmstat to pin down what resource(s)&lt;br /&gt;  your machine is running out of. You can tell vmstat to give ongoing&lt;br /&gt;  reports by specifying a report interval as its first argument.&lt;/p&gt;&lt;p class="mobile-post"&gt;  The programs "top" and "sps" are good for finding processes that are&lt;br /&gt;  loading your system. "Top" will give you the processes that are consuming&lt;br /&gt;  the most cpu time. "Sps" is a better version of "ps" that runs much faster&lt;br /&gt;  and displays processes in an intuitive manner. Top is available at&lt;br /&gt;  ftp://ftp.groupsys.com/pub/top/.  Sps is available at&lt;br /&gt;  ftp://ftp.csv.warwick.ac.uk/pub/solaris2/sps-sol2.tar.gz.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Doug Hughes &amp;lt;Doug dot Hughes at Eng dot Auburn dot EDU&amp;gt; has written a&lt;br /&gt;  small, quick PS workalike called "qps", available from his web page at&lt;br /&gt;  http://www.eng.auburn.edu/users/doug/second.html&lt;/p&gt;&lt;p class="mobile-post"&gt;  Sometimes you run out of memory and you won't be able to run enough&lt;br /&gt;  commands to even find out what is wrong. You will get messages of the type&lt;br /&gt;  "out of memory" or "no more processes". Note that "out of memory" refers to&lt;br /&gt;  virtual memory, not physical memory.  On a Solaris system, virtual memory&lt;br /&gt;  is generally equal to the sum of the swap space and the amount of physical&lt;br /&gt;  memory (less a roughly constant amount for the kernel) on the machine. The&lt;br /&gt;  command "swap -s" will tell you how much virtual memory is available.&lt;/p&gt;&lt;p class="mobile-post"&gt;  You can sync the disks to minimize filesystem corruption if you have to&lt;br /&gt;  crash the system:&lt;/p&gt;&lt;p class="mobile-post"&gt;  Use the L1-A sequence to crash the system. If you are on an older system,&lt;br /&gt;  type "g0" and you will get the message "panic: ... syncing file systems".&lt;br /&gt;  When you see the word "done", hit L1-A again and reboot. On systems&lt;br /&gt;  with the "new" prom, type "n" to get into the new command mode and type&lt;br /&gt;  "sync".&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869774723198602?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869774723198602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869774723198602' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869774723198602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869774723198602'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/what-can-i-do-if-my-machine-slows-to.html' title='What can I do if my machine slows to a crawl or just hangs?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869763383359047</id><published>2005-10-07T10:07:00.000-05:00</published><updated>2005-10-07T10:07:13.833-05:00</updated><title type='text'>How do I find out how much physical memory a machine has?</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 6.3)    How do I find out how much physical memory a machine has?&lt;/p&gt;&lt;p class="mobile-post"&gt;  Use /usr/sbin/prtconf if the machine is running Solaris.  If it's a&lt;br /&gt;  sun4u running Solaris 8 or previous, /usr/platform/sun4u/sbin/prtdiag&lt;br /&gt;  is very helpful.  It's /usr/sbin/prtdiag in Solaris 9 and later.&lt;/p&gt;&lt;p class="mobile-post"&gt;  On high-end machines, /usr/sbin/cfgadm -al can also provide memory&lt;br /&gt;  information.&lt;/p&gt;&lt;p class="mobile-post"&gt;  The banner message on reboot (or type "banner" in the monitor on machines&lt;br /&gt;  with Openboot proms) will usually report the amount of physical memory.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Alternatively, you can open up the case and count SIMMS and/or memory&lt;br /&gt;  boards.&lt;/p&gt;&lt;p class="mobile-post"&gt;  A perl script "memconf" is also available that identifies the sizes and&lt;br /&gt;  locations of SIMM/DIMM memory modules installed in a Sun system. It&lt;br /&gt;  also works on several SPARC clones and with Sun Explorer data. It is&lt;br /&gt;  maintained by Tom Schmidt &amp;lt;tschmidt at micron dot com&amp;gt;. Download memconf from&lt;br /&gt;  http://www.4schmidts.com/unix.html&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869763383359047?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869763383359047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869763383359047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869763383359047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869763383359047'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-do-i-find-out-how-much-physical.html' title='How do I find out how much physical memory a machine has?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869757931122175</id><published>2005-10-07T10:06:00.000-05:00</published><updated>2005-10-07T10:06:19.416-05:00</updated><title type='text'>How do I find out what my machine's memory is being used for? How can I tell if I need more memory?</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 6.4)    How do I find out what my machine's memory is being used for?&lt;br /&gt;                 How can I tell if I need more memory?&lt;/p&gt;&lt;p class="mobile-post"&gt;  To discover how much virtual memory (i.e. swap) is free, run "swap -s" or&lt;br /&gt;  "vmstat".  If you're using tmpfs for /tmp, "df /tmp" will also work.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Discovering how physical memory is being used can be more difficult,&lt;br /&gt;  however.  Memory pages that are not being used by processes are used as a&lt;br /&gt;  sort of extended cache, storing pages of memory-mapped files for possible&lt;br /&gt;  later use. The kernel keeps only a small set of pages free for short-term&lt;br /&gt;  use, and frees up more on demand. Hence the free memory reported by vmstat&lt;br /&gt;  is not an accurate reflection, for example, of the amount of memory&lt;br /&gt;  available for user processes.&lt;/p&gt;&lt;p class="mobile-post"&gt;  An easy way to determine whether or not your machine needs more memory&lt;br /&gt;  is to run vmstat and examine the po (page out) column and the sr (scan&lt;br /&gt;  rate) column. If these columns consistently show large numbers, this&lt;br /&gt;  suggests that your machine does not have enough memory to support its&lt;br /&gt;  current workload, and frequently needs to write pages belonging to&lt;br /&gt;  active processes to disk in order to free up enough memory to run the&lt;br /&gt;  current job.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869757931122175?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869757931122175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869757931122175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869757931122175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869757931122175'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-do-i-find-out-what-my-machines.html' title='How do I find out what my machine&apos;s memory is being used for? How can I tell if I need more memory?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869753505970821</id><published>2005-10-07T10:05:00.000-05:00</published><updated>2005-10-07T10:05:35.060-05:00</updated><title type='text'>How can my program tell what model Sun it is running on?</title><content type='html'>&lt;p class="mobile-post"&gt;How can my program tell what model Sun it is running on?Subject: 9.2)&lt;/p&gt;&lt;p class="mobile-post"&gt;  On older suns, the model type is encoded in the hostid. For&lt;br /&gt;  suns with the "Openboot" prom (All sparcstations and the 600 series),&lt;br /&gt;  /usr/sbin/prtconf will reveal the model type.&lt;/p&gt;&lt;p class="mobile-post"&gt;  "Suntype", written by John DiMarco (jdd@cs.toronto.edu) is a shell&lt;br /&gt;  script which does the appropriate thing on all suns. It is available&lt;br /&gt;  for anonymous ftp at ftp://ftp.cs.toronto.edu/pub/jdd/suntype&lt;/p&gt;&lt;p class="mobile-post"&gt;  Alternatively, grab Michael Cooper's &amp;lt;mcooper at magnicomp dot com&amp;gt; "sysinfo"&lt;br /&gt;  program, which provides all sorts of information about a given system,&lt;br /&gt;  including the machine type. sysinfo is available on the web at&lt;br /&gt;  http://www.magnicomp.com/, although it is now a commercial product that is&lt;br /&gt;  free only for educational and non-profit organizations.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869753505970821?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869753505970821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869753505970821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869753505970821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869753505970821'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-can-my-program-tell-what-model-sun.html' title='How can my program tell what model Sun it is running on?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869747938674814</id><published>2005-10-07T10:04:00.000-05:00</published><updated>2005-10-07T10:04:39.386-05:00</updated><title type='text'>My remote ufsdump is failing with a "Protocol botched" message.</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 10.1)   My remote ufsdump is failing with a "Protocol botched"&lt;br /&gt;message. What do I do?&lt;/p&gt;&lt;p class="mobile-post"&gt;  The problem produces output like the following:&lt;/p&gt;&lt;p class="mobile-post"&gt;        ...&lt;br /&gt;       DUMP: Dumping /dev/rsd0a (/) to /dev/nrst8 on host foo&lt;br /&gt;       DUMP: mapping (Pass I) [regular files]&lt;br /&gt;       DUMP: mapping (Pass II) [directories]&lt;br /&gt;       DUMP: estimated 8232 blocks (4.02MB) on 0.00 tape(s).&lt;br /&gt;       DUMP: Protocol to remote tape server botched (in rmtgets).&lt;br /&gt;      rdump: Lost connection to remote host.&lt;br /&gt;       DUMP: Bad return code from dump: 1&lt;/p&gt;&lt;p class="mobile-post"&gt;  This occurs when something in .cshrc on the remote machine prints something&lt;br /&gt;  to stdout or stderr (eg. stty, echo). The remote ufsdump command doesn't&lt;br /&gt;  expect this, and chokes. Other commands which use the rsh protocol (eg.&lt;br /&gt;  rdist, rtar) may also be affected.&lt;/p&gt;&lt;p class="mobile-post"&gt;  The way to get around this is to add the following line near the&lt;br /&gt;  beginning of .cshrc, before any command that might send something&lt;br /&gt;  to stdout or stderr:&lt;/p&gt;&lt;p class="mobile-post"&gt;  if ( ! $?prompt ) exit&lt;/p&gt;&lt;p class="mobile-post"&gt;  This causes .cshrc to exit when prompt isn't set, which distinguishes&lt;br /&gt;  between remote commands (eg. rdump, rsh) where these variables are not&lt;br /&gt;  set, and interactive sessions (eg. rlogin) where they are.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869747938674814?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869747938674814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869747938674814' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869747938674814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869747938674814'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/my-remote-ufsdump-is-failing-with.html' title='My remote ufsdump is failing with a &quot;Protocol botched&quot; message.'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869738177573206</id><published>2005-10-07T10:03:00.000-05:00</published><updated>2005-10-07T10:03:01.783-05:00</updated><title type='text'>How do I restore to a different location the contents of a tarfile created with absolute pathnames</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 10.4)   How do I restore to a different location the contents of a&lt;br /&gt;                 tarfile created with absolute pathnames?&lt;/p&gt;&lt;p class="mobile-post"&gt;  Tarfiles should not normally be created with absolute pathnames, only&lt;br /&gt;  with relative pathnames.  Do not type "tar c /path/name" to create a tar&lt;br /&gt;  archive, type "(cd /path; tar c name)" instead.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Note: if you do "(cd /path/name; tar c .)", you will indeed avoid absolute&lt;br /&gt;  pathnames, but beware that the tarfile created may silently overwrite the&lt;br /&gt;  permissions of the current directory when unpacked.  That's OK if you&lt;br /&gt;  unpack it via:&lt;br /&gt;        "mkdir name; cd name; tar xf /my/tarfile.tar&lt;br /&gt;  That's not OK if you unpack it via:&lt;br /&gt;        "cd /tmp; tar xf /my/tarfile.tar" -- you will change the permissions&lt;br /&gt;  of /tmp.&lt;/p&gt;&lt;p class="mobile-post"&gt;  If you do have an archive created with absolute pathnames, you can unpack&lt;br /&gt;  it in a different location by using GNU's version of tar, which will strip&lt;br /&gt;  off the leading /.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Alternatively, you can use pax to strip off the leading /, as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt;         pax -r -s '/^\///' &amp;lt;abspath.tar&lt;/p&gt;&lt;p class="mobile-post"&gt;  Or you can use chroot and a statically linked version of tar, as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt;        cp /usr/sbin/static/tar /tmp/restore&lt;br /&gt;        # cd /tmp/restore&lt;br /&gt;        # cat abspath.tar | chroot /tmp/restore /tar xf -&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869738177573206?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869738177573206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869738177573206' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869738177573206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869738177573206'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-do-i-restore-to-different-location.html' title='How do I restore to a different location the contents of a tarfile created with absolute pathnames'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869711083985181</id><published>2005-10-07T09:58:00.000-05:00</published><updated>2005-10-07T09:58:30.846-05:00</updated><title type='text'>Why do both my net interfaces have the same ethernet address?</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 12.1)   Why do both my net interfaces have the same ethernet address?&lt;/p&gt;&lt;p class="mobile-post"&gt;  The Ethernet version 2.0 specification (November 1982) states:&lt;/p&gt;&lt;p class="mobile-post"&gt;          The physical address of each station is set by network&lt;br /&gt;          management to a unique value associated with the station,&lt;br /&gt;          and distinct from the address of any other station on any&lt;br /&gt;          Ethernet.  The setting of the station's physical address&lt;br /&gt;          by network management allows multiple multiple data link&lt;br /&gt;          controllers connected to a single station to respond to&lt;br /&gt;          the same physical address.&lt;/p&gt;&lt;p class="mobile-post"&gt;  This doesn't normally constitute a problem because each interface will&lt;br /&gt;  typically be on a different subnet. If, for some reason, different&lt;br /&gt;  ethernet addresses are required on different interfaces (for example, to&lt;br /&gt;  attach two interfaces to the same subnet), a new one may be assigned&lt;br /&gt;  using the ifconfig command.  Alternatively, for all modern Sun hardware,&lt;br /&gt;  you can set the "local-mac-address?" eeprom variable to "true", which will&lt;br /&gt;  cause each NIC to use a unique MAC address.  This is needed for many&lt;br /&gt;  failover and trunking configurations.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869711083985181?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869711083985181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869711083985181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869711083985181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869711083985181'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/why-do-both-my-net-interfaces-have.html' title='Why do both my net interfaces have the same ethernet address?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869591782232624</id><published>2005-10-07T09:38:00.000-05:00</published><updated>2005-10-07T09:38:37.823-05:00</updated><title type='text'>How do I set my hme interface to e.g. 100Mb full duplex</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 12.3)   How do I set my hme interface to e.g. 100Mb full duplex?&lt;/p&gt;&lt;p class="mobile-post"&gt;  This applies only to Solaris 2.5 or later; hme interfaces are not supported&lt;br /&gt;  under SunOS 4.x or earlier versions of Solaris.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Sun's 10/100 network interface on the Ultra systems and on the SunSWIFT&lt;br /&gt;  network cards are capable of negotiating with a network switch; if this&lt;br /&gt;  is working, and if the other end is capable of 100Mb full duplex (FD)&lt;br /&gt;  operation, the hme card will automatically set itself properly.  However,&lt;br /&gt;  this may not necessarily work with some networking gear.&lt;/p&gt;&lt;p class="mobile-post"&gt;  If the two ends have different ideas about what mode the link is, you&lt;br /&gt;  may see "late collision" messages, dropped packets, or complete failure.&lt;/p&gt;&lt;p class="mobile-post"&gt;  To force a particular mode, e.g. 100Mb FD, you can use ndd as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt;        # turn off autonegotiation&lt;br /&gt;        ndd -set /dev/hme adv_autoneg_cap  0&lt;br /&gt;        # turn on 100Mb full-duplex capability&lt;br /&gt;        ndd -set /dev/hme adv_100fdx_cap   1&lt;br /&gt;        # turn off 100Mb half-duplex capability&lt;br /&gt;        ndd -set /dev/hme adv_100hdx_cap   0&lt;br /&gt;        # turn off 10Mb full-duplex capability&lt;br /&gt;        ndd -set /dev/hme adv_10fdx_cap    0&lt;br /&gt;        # turn off 10Mb half-duplex capability&lt;br /&gt;        ndd -set /dev/hme adv_10hdx_cap    0&lt;/p&gt;&lt;p class="mobile-post"&gt;  You may have to force the other end (e.g. switch) to use the same mode.&lt;br /&gt;  Consult the manual for your switch.  NB: Fast ethernet hubs are always&lt;br /&gt;  100Mb half-duplex, and ethernet hubs are always 10Mb half-duplex.&lt;/p&gt;&lt;p class="mobile-post"&gt;  If you have more than one hme card in your system, before issuing the&lt;br /&gt;  above ndd commands, you need to first select the specific hme card you&lt;br /&gt;  want to set.  For example, to select hme2, type:&lt;br /&gt;        ndd -set /dev/hme instance 2&lt;br /&gt;  Subsequent ndd commands to /dev/hme will only apply to hme2.&lt;/p&gt;&lt;p class="mobile-post"&gt;  If you want to force all the hme cards on your system to a specific&lt;br /&gt;  mode at machine boot, you can set hme driver variables in /etc/system.&lt;br /&gt;  For example, to force all hme cards on the system to use 100Mbit FD,&lt;br /&gt;  put the following in /etc/system:&lt;/p&gt;&lt;p class="mobile-post"&gt;        set hme:hme_adv_autoneg_cap=0&lt;br /&gt;        set hme:hme_adv_100fdx_cap=1&lt;br /&gt;        set hme:hme_adv_100hdx_cap=0&lt;br /&gt;        set hme:hme_adv_10hdx_cap=0&lt;br /&gt;        set hme:hme_adv_10fdx_cap=0&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869591782232624?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869591782232624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869591782232624' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869591782232624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869591782232624'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-do-i-set-my-hme-interface-to-eg.html' title='How do I set my hme interface to e.g. 100Mb full duplex'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869586306823310</id><published>2005-10-07T09:37:00.001-05:00</published><updated>2005-10-07T09:37:43.080-05:00</updated><title type='text'>How do I find out what process is using a particular port?</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 12.4)   How do I find out what process is using a particular port?&lt;/p&gt;&lt;p class="mobile-post"&gt;  Ports are held open in the same way as files are, by file handles within&lt;br /&gt;  the process.  In most states, a port will also have a handle into another&lt;br /&gt;  process on the other side of that connection.  If you need to find out&lt;br /&gt;  which process is holding open a particular port, run lsof&lt;br /&gt;  (ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof) and grep for the&lt;br /&gt;  port number.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Thanks to Stuart Whitby &amp;lt;swhitby at legato dot com&amp;gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869586306823310?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869586306823310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869586306823310' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869586306823310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869586306823310'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-do-i-find-out-what-process-is.html' title='How do I find out what process is using a particular port?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869584076819906</id><published>2005-10-07T09:37:00.000-05:00</published><updated>2005-10-07T09:37:20.826-05:00</updated><title type='text'>I've forgotten the root password; how can I recover?</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: 15.1)   I've forgotten the root password; how can I recover?&lt;/p&gt;&lt;p class="mobile-post"&gt;  You need to have access to the machine's console.&lt;/p&gt;&lt;p class="mobile-post"&gt;  1. Note the root partition (e.g. /dev/sd0a or /dev/dsk/c0t3d0s0)&lt;br /&gt;  2. Hit STOP-A or L1-A (or, on an ASCII terminal or emulator, send a&lt;br /&gt;     &amp;lt;BREAK&amp;gt;) to halt the operating system, if it's running.&lt;br /&gt;  3. Boot single-user from CD-ROM (boot cdrom -s) or network&lt;br /&gt;     install/jumpstart server (boot net -s)  (NB: if it asks you for a prom&lt;br /&gt;     password, see below.)&lt;br /&gt;  4. Mount the root partition (e.g. /dev/dsk/c0t3d0s0) on "/a".  "/a" is&lt;br /&gt;     an empty mount point that exists at this stage of the installation&lt;br /&gt;     procedure. (mount /dev/dsk/c0t3d0s0 /a)&lt;br /&gt;  5. Set your terminal type so you can use a full-screen editor, e.g. vi.&lt;br /&gt;     (you can skip this step if you know how to use "ex" or "vi" from open&lt;br /&gt;     mode).  If you're on a sun console, type "TERM=sun; export TERM"; if&lt;br /&gt;     you're using an ascii terminal (or terminal emulator on a PC) for your&lt;br /&gt;     console, set TERM to the terminal type (e.g. TERM=vt100; export TERM).&lt;br /&gt;  6. Edit the passwd file (/a/etc/passwd for SunOS 4.x, /a/etc/passwd.adjunct&lt;br /&gt;     for SunOS 4.x with shadow passwords/C2 security), /a/etc/shadow for&lt;br /&gt;     Solaris 2.x and remove the encrypted password entry for root&lt;br /&gt;  7. cd to /; Type "umount /a"&lt;br /&gt;  8. reboot as normal in single-user mode ("boot -s").  The root account will&lt;br /&gt;     not have a password.  Give it a new one using the passwd command.&lt;/p&gt;&lt;p class="mobile-post"&gt;  Thanks to Stefan Voss &amp;lt;s dot voss at terradata dot de&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;  PROM passwords:&lt;/p&gt;&lt;p class="mobile-post"&gt;  Naturally, you may not want anyone with physical access to the machine to&lt;br /&gt;  be able to do the above to erase the root password.  Suns have a security&lt;br /&gt;  password mechanism in the PROM which can be set (this is turned off by&lt;br /&gt;  default).  The man page for the eeprom command describes this feature.&lt;/p&gt;&lt;p class="mobile-post"&gt;  If security-mode is set to "command", the machine only be booted without&lt;br /&gt;  the prom password from the default device (i.e. booting from CD-ROM or&lt;br /&gt;  install server will require the prom password).  Changing the root password&lt;br /&gt;  in this case requires moving the default device (e.g. the boot disk) to a&lt;br /&gt;  different SCSI target (or equivalent), and replacing it with a similarly&lt;br /&gt;  bootable device for which the root password is known.  If security-mode is&lt;br /&gt;  set to full, the machine cannot be booted without the prom password, even&lt;br /&gt;  from the default device; defeating this requires replacing the NVRAM on the&lt;br /&gt;  motherboard.  "Full" security has its drawbacks -- if, during normal&lt;br /&gt;  operations,  the machine is power-cycled (e.g. by a power outage) or halted&lt;br /&gt;  (e.g. by STOP-A), it cannot reboot without the intervention of someone&lt;br /&gt;  who knows the prom password.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869584076819906?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869584076819906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869584076819906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869584076819906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869584076819906'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/ive-forgotten-root-password-how-can-i.html' title='I&apos;ve forgotten the root password; how can I recover?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869415778007568</id><published>2005-10-07T09:09:00.000-05:00</published><updated>2005-10-07T09:09:17.780-05:00</updated><title type='text'>modifying scripts with binary inside</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: SUMMARY: modifying scripts with binary inside&lt;/p&gt;&lt;p class="mobile-post"&gt;Hi Managers,&lt;/p&gt;&lt;p class="mobile-post"&gt;Sorry for the long delay. I have just completed fixing my problem.&lt;/p&gt;&lt;p class="mobile-post"&gt;I want to thank you all for your responses.&lt;br /&gt;At the end of this msg I have attached the 3-4 suggestions I had from ppl.&lt;br /&gt;I have not tried editing the binary but I wanted you all to see the other&lt;br /&gt;suggestions.&lt;/p&gt;&lt;p class="mobile-post"&gt;My goal was to edit the text portion of the script w/o corrupting the binary.&lt;/p&gt;&lt;p class="mobile-post"&gt;First of all this file did in fact have text and binary w/i one file (script).&lt;br /&gt;The script removes the binary w/ the "tail" cmd and then unzips, "tar xf" and&lt;br /&gt;installs the binary.&lt;br /&gt;The binary contains patches and packages, so the script was huge 240MB +. That&lt;br /&gt;posed another problem, the file being&lt;br /&gt;too large for vi.&lt;/p&gt;&lt;p class="mobile-post"&gt;I attacked this problem using Brad's method. Thank you Brad.&lt;/p&gt;&lt;p class="mobile-post"&gt;Objective:  Remove the binary, edit the text portion, and still be able to run&lt;br /&gt;my script.&lt;/p&gt;&lt;p class="mobile-post"&gt;At first I wanted to reattach my edited text back to the binary but instead I&lt;br /&gt;just made the edited script (which has no binary now) access the original&lt;br /&gt;script and work with the binary from that file.  This worked wonderfully.&lt;/p&gt;&lt;p class="mobile-post"&gt;Solution:&lt;/p&gt;&lt;p class="mobile-post"&gt;##Take the binary out&lt;br /&gt;$ mv scriptname scriptname.yuck&lt;br /&gt;$ strings scriptname.yuck &amp;gt; scriptname&lt;br /&gt;$ vi scriptname&lt;br /&gt;##Above works but the binary was turned into crazy chars and stayed inside the&lt;br /&gt;file, so still too large for vi so here are the cmds to deal w/ that&lt;br /&gt;##quote from Brad&lt;br /&gt;Use split(1). I'd recommend&lt;/p&gt;&lt;p class="mobile-post"&gt;split -b 1m pre-req.install.orig.nobin chunk&lt;/p&gt;&lt;p class="mobile-post"&gt;This will produce about 156 one-megabyte files, named chunk.aa, chunk.ab, etc.&lt;/p&gt;&lt;p class="mobile-post"&gt;Then use:&lt;/p&gt;&lt;p class="mobile-post"&gt;for FILE in chunk.*&lt;br /&gt;do&lt;br /&gt;file $FILE&lt;br /&gt;done &amp;gt; /tmp/chunkstyle&lt;/p&gt;&lt;p class="mobile-post"&gt;Now scan /tmp/chunkstyle for the first file that file(1) reports to be&lt;br /&gt;non-text. If, for example, that one is chunk.je, edit chunk.jd to remove the&lt;br /&gt;binary characters at the end (if any), then:&lt;/p&gt;&lt;p class="mobile-post"&gt;cat chunk.[a-i]* chunk.j[a-d] &amp;gt; script&lt;/p&gt;&lt;p class="mobile-post"&gt;Afterwards, script should contain your script.&lt;/p&gt;&lt;p class="mobile-post"&gt;A better way is to find out which chunk contains the last line of the script.&lt;br /&gt;It's probably "exit 0", test this with:&lt;/p&gt;&lt;p class="mobile-post"&gt;grep "exit 0" pre-req.install.orig.nobin&lt;/p&gt;&lt;p class="mobile-post"&gt;If you only get one result, that's the string to use to find the end of the&lt;br /&gt;file in the middle of some chunk:&lt;/p&gt;&lt;p class="mobile-post"&gt;grep "exit 0" chunk.*&lt;/p&gt;&lt;p class="mobile-post"&gt;Then edit that chunk to get rid of binary characters, and cat using wildcards&lt;br /&gt;as above.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you don't get the wildcards part, here's the scoop: chunk.[a-i]* matches&lt;br /&gt;chunk.aa, chunk.ab, ..., chunk.iz. You could also use chunk.[a-i][a-z]. The&lt;br /&gt;second expression (chunk.j[a-d]) matches chunk.ja, chunk.jb, chunk.jc, and&lt;br /&gt;chunk.jd. This assumes that the end of the script and the beginning of the&lt;br /&gt;binary data is in the file chunk.jd.&lt;/p&gt;&lt;p class="mobile-post"&gt;Be sure to read the man page for split(1), and of course, take great care not&lt;br /&gt;to clobber your original, pre-split files.&lt;br /&gt;## END quote from Brad&lt;br /&gt;I just edited the chunk that contained the text script portion which was the&lt;br /&gt;first one.  All the other junks had crazy chars (very much readable) that&lt;br /&gt;represented the binary.  Like I said up top my edited script (no bin) was&lt;br /&gt;modified to just access and create the tar file from the orig. text/binary&lt;br /&gt;script.&lt;br /&gt;Suggestions from others:&lt;br /&gt;(You can use plain old Bill Joy vi just fine. vim, on the other hand,&lt;br /&gt;will corrupt the binary portion.)&lt;br /&gt;(You probably need a hex editor. Try this one&lt;br /&gt;&amp;lt;http://www.hhdsoftware.com/hexeditor.html&amp;gt; )&lt;br /&gt;(If you can replace text with the same number of characters you may get&lt;br /&gt;away with using emacs. If you're not familair with emacs, play with it a&lt;br /&gt;little on some othe files first. It's very powerful, but it has a bit of a&lt;br /&gt;learning curve. Also, and this should go without saying, work on a copy of&lt;br /&gt;the script, not the original, and test the modified version before putting&lt;br /&gt;it up for general consumption.&lt;br /&gt;Allan)&lt;br /&gt;(Perl...but vi should work, too. )&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Subject:      modifying scripts with binary inside&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; I am just curious as to what is used to modify text scripts that also have&lt;br /&gt;binaries inside of them.&lt;br /&gt;&amp;gt; I want to modify the text only portion. I was told you can't use vi.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Thank you for your time.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Al&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869415778007568?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869415778007568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869415778007568' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869415778007568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869415778007568'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/modifying-scripts-with-binary-inside.html' title='modifying scripts with binary inside'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869410097625703</id><published>2005-10-07T09:08:00.000-05:00</published><updated>2005-10-07T09:08:21.040-05:00</updated><title type='text'>V440 hardware disk mirroring</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: Summary: V440 hardware disk mirroring&lt;/p&gt;&lt;p class="mobile-post"&gt;Many thanks to every one who replied,&lt;br /&gt;     the builtin LSI controller does not show any progress indicator&lt;br /&gt;     when syncing disks, ie '% complete'; there is no extra arg to the&lt;br /&gt;     'raidctl' cmd that will cause a progress indicator to be displayed.&lt;/p&gt;&lt;p class="mobile-post"&gt;     only two of the four internal disks can be mirrored with the&lt;br /&gt;     builtin hardware RAID controller, the other 2 internal disks&lt;br /&gt;     can be mirrored with SVM.&lt;/p&gt;&lt;p class="mobile-post"&gt;George&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; I have bunch of newly bought V440 servers and am keen on using the&lt;br /&gt;&amp;gt; Hardware Mirroring feature.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; One thing I have noticed that there does not seem to be any indication&lt;br /&gt;&amp;gt; of a progress when rebuilding/syncing the disks.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Q:&lt;br /&gt;&amp;gt;    o does anyone know where I can get more information on this&lt;br /&gt;&amp;gt;      hardware feature ?&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;    o is there a way to see the progress when it is syncing disks ?&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;    o after a server is built and mirroring is active, can one disk&lt;br /&gt;&amp;gt;      be pulled out and used in another server as a base for that new&lt;br /&gt;&amp;gt;      system ? I've been doing this with DiskSuite for some time now but&lt;br /&gt;&amp;gt;      an not sure how this will work under hardware mirroring.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;    o does anyone have any good or bad things that in regards to&lt;br /&gt;&amp;gt;      hardware mirroring that might help me ?&lt;br /&gt;&amp;gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869410097625703?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869410097625703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869410097625703' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869410097625703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869410097625703'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/v440-hardware-disk-mirroring.html' title='V440 hardware disk mirroring'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112869008104412848</id><published>2005-10-07T08:01:00.000-05:00</published><updated>2005-10-07T08:01:21.043-05:00</updated><title type='text'>file belongs to which package ?</title><content type='html'>&lt;p class="mobile-post"&gt;How do I know which file (such as  /usr/lib/libgtk-x11-2.0.so ) belongs&lt;br /&gt;to which package?&lt;/p&gt;&lt;p class="mobile-post"&gt;% pkgchk -l -p &amp;lt;filename&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112869008104412848?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112869008104412848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112869008104412848' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869008104412848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112869008104412848'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/file-belongs-to-which-package.html' title='file belongs to which package ?'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868999962486073</id><published>2005-10-07T07:59:00.001-05:00</published><updated>2005-10-07T07:59:59.626-05:00</updated><title type='text'>Summary: Sun patches cluster broke sendmail</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: Summary: Sun patches cluster broke sendmail&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks to William Cole, Rob Windsor and Christ Clark. My problem was that&lt;br /&gt;a patch broke my sendmail.&lt;/p&gt;&lt;p class="mobile-post"&gt;All told me the reason was because there was a sendmail package original&lt;br /&gt;from Sun remaining in the system, while we have been using a locally&lt;br /&gt;compiled sendmail (SUNWsndmu and SUNWsndmr from patch 110615-13) Hence the&lt;br /&gt;mixup.&lt;br /&gt;        Version 8.11.7p1+Sun&lt;/p&gt;&lt;p class="mobile-post"&gt;I just had to&lt;br /&gt;# pkginfo|grep -i sendmail&lt;br /&gt;8_Recommended# find . -name 'SUNWsndm*'&lt;/p&gt;&lt;p class="mobile-post"&gt;Here are some lessons.&lt;/p&gt;&lt;p class="mobile-post"&gt;"Go look for the patches from the last batch that touched sendmail in&lt;br /&gt;/var/sadm/pkg/sndmr/save and /var/sadm/pkg/sndmu/save."&lt;/p&gt;&lt;p class="mobile-post"&gt;"The overall lesson is that you should always work with the package&lt;br /&gt;system when changing any file on Solaris that is part of an existing Sun&lt;br /&gt;package. The patch tools all assume that the package database is correct,&lt;br /&gt;so if you are going to modify or replace any file that already has an&lt;br /&gt;entry in /var/sadm/install/contents you should start by removing whatever&lt;br /&gt;package that file is part of and replacing every piece of that package,&lt;br /&gt;preferably with your own packaged collection. "&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks all.&lt;/p&gt;&lt;p class="mobile-post"&gt;======= original post ==============&lt;/p&gt;&lt;p class="mobile-post"&gt;- Solaris 8, SunFire280R -&lt;/p&gt;&lt;p class="mobile-post"&gt;I applied the latest recommended patch cluster and suddenly I'm seeing&lt;br /&gt;problems with my sendmail. Could anyone with similar experience help me&lt;br /&gt;pinpoint the problem patch and tell me if I can remove it? If this is not&lt;br /&gt;a proper forum to ask, can I get some pointers on where to look?&lt;/p&gt;&lt;p class="mobile-post"&gt;Problems I see are:&lt;/p&gt;&lt;p class="mobile-post"&gt;- We used to be on V6, but now sendmail requires V4 for the queue file&lt;br /&gt;version. (unsupported qf file version error)&lt;/p&gt;&lt;p class="mobile-post"&gt;- rRFC line causes invalid queue format error (bad line error), and it's&lt;br /&gt;"almost" the same as RPFD line, so I remove them by scripts, but I'm not&lt;br /&gt;comfortable with that.&lt;/p&gt;&lt;p class="mobile-post"&gt;My problem is similar to what's described here.&lt;/p&gt;&lt;p class="mobile-post"&gt;http://www.issociate.de/board/post/213139/Force_sendmail_8.13_to_write_V2-style_qf_file&lt;br /&gt;s_...._is_it_possible?.html&lt;/p&gt;&lt;p class="mobile-post"&gt;There's a slight complication, since we are running 3 daemons, 1st and 3rd&lt;br /&gt;in the main host and 2nd in a linux box which only handles amavis&lt;br /&gt;processing.&lt;/p&gt;&lt;p class="mobile-post"&gt;sendmail -d0.1 -bv root shows:&lt;/p&gt;&lt;p class="mobile-post"&gt;1) main host&lt;br /&gt;Version 8.11.7p1+Sun&lt;/p&gt;&lt;p class="mobile-post"&gt;2) amavis host&lt;br /&gt;Version 8.13.1&lt;/p&gt;&lt;p class="mobile-post"&gt;The "+Sun" part is really giving me a headache. That patch seems to be a&lt;br /&gt;retro...&lt;/p&gt;&lt;p class="mobile-post"&gt;I have some customized configuration so it's not easy to upgrade sendmail&lt;br /&gt;version. I had to ask for permission to apply patches for a very long time&lt;br /&gt;before getting this chance. And now I find myself guilty. Which makes me&lt;br /&gt;feel I can't justify the time spent on fixing them, so I'm hoping to find&lt;br /&gt;the problem and take that specific patch out...&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868999962486073?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868999962486073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868999962486073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868999962486073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868999962486073'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/summary-sun-patches-cluster-broke.html' title='Summary: Sun patches cluster broke sendmail'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868996108845106</id><published>2005-10-07T07:59:00.000-05:00</published><updated>2005-10-07T07:59:21.090-05:00</updated><title type='text'>Share cdrom Jumpstart E10k</title><content type='html'>&lt;p class="mobile-post"&gt;After talking with a Sun Support Engineer I finally decided to share the cdrom&lt;br /&gt;and run the add_install_client off the cdrom&lt;/p&gt;&lt;p class="mobile-post"&gt;it works&lt;/p&gt;&lt;p class="mobile-post"&gt;so&lt;/p&gt;&lt;p class="mobile-post"&gt;1)             # share -F nfs -o ro,anon=0 /cdrom/cdrom0/s0&lt;br /&gt;2)              # cd /cdrom/cdrom0/s0/Solaris_2.6/Tools&lt;br /&gt;3)              # ./add_install_client newdomain sun4u1&lt;/p&gt;&lt;p class="mobile-post"&gt;and output is&lt;br /&gt;&amp;lt;#20&amp;gt; ok&lt;br /&gt;&amp;lt;#20&amp;gt; ok limit-ecache-size&lt;br /&gt;&amp;lt;#20&amp;gt; ok boot qfe0 -sv&lt;br /&gt;Timeout waiting for ARP/RARP packet&lt;br /&gt;Timeout waiting for ARP/RARP packet&lt;br /&gt;2ee00 X&lt;br /&gt;Requesting Internet address for 0:0:be:a6:a3:a9&lt;br /&gt;Internet address is 192.168.42.50 = C0A82A32&lt;br /&gt;hostname: banner-a&lt;br /&gt;whoami: no domain name&lt;br /&gt;root server: sspp-qfe2&lt;br /&gt;root directory: /cdrom/sol_2_6_598_sparc_smcc_svr/s0/Solaris_2.6/Tools/Boot&lt;br /&gt;SunOS Release 5.6 Version Generic_105181-05 [UNIX(R) System V Release 4.0]&lt;br /&gt;Copyright (c) 1983-1997, Sun Microsystems, Inc.&lt;br /&gt;whoami: no domain name&lt;br /&gt;Configuring devices...&lt;br /&gt;SUNW,qfe7: Link Down - cable problem?&lt;br /&gt;SUNW,qfe7: Link Down - cable problem?&lt;br /&gt;SUNW,qfe7: Link Down - cable problem?&lt;br /&gt;SUNW,qfe6: Link Down - cable problem?&lt;br /&gt;SUNW,qfe6: Link Down - cable problem?&lt;br /&gt;SUNW,qfe6: Link Down - cable problem?&lt;br /&gt;SUNW,qfe5: Link Down - cable problem?&lt;br /&gt;SUNW,qfe5: Link Down - cable problem?&lt;br /&gt;SUNW,qfe5: Link Down - cable problem?&lt;br /&gt;SUNW,qfe4: Link Down - cable problem?&lt;br /&gt;SUNW,qfe4: Link Down - cable problem?&lt;br /&gt;SUNW,qfe4: Link Down - cable problem?&lt;br /&gt;SUNW,qfe3: Link Down - cable problem?&lt;br /&gt;SUNW,qfe3: Link Down - cable problem?&lt;br /&gt;SUNW,qfe3: Link Down - cable problem?&lt;br /&gt;SUNW,qfe1: Link Down - cable problem?&lt;br /&gt;SUNW,qfe1: Link Down - cable problem?&lt;br /&gt;SUNW,qfe1: Link Down - cable problem?&lt;/p&gt;&lt;p class="mobile-post"&gt;etc etc etc&lt;br /&gt;&amp;gt;  -----Original Message-----&lt;br /&gt;&amp;gt; From:         Saxon, Stuart&lt;br /&gt;&amp;gt; Sent: 05 September 2005 18:02&lt;br /&gt;&amp;gt; To:   'sunmanagers@sunmanagers.org'&lt;br /&gt;&amp;gt; Subject:      10k jumpstart solaris 2.6 problems&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Can some kind soul please tell me what am I doing wrong here ..........&lt;br /&gt;thanks&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; 10k netcon output&lt;br /&gt;&amp;gt; ---------------------------&lt;br /&gt;&amp;gt; SUNW,Ultra-Enterprise-10000, using Network Console&lt;br /&gt;&amp;gt; OpenBoot 3.2.136, 10240 MB memory installed, Serial #10920873.&lt;br /&gt;&amp;gt; Ethernet address 0:0:be:a6:a3:a9, Host ID: 80a6a3a9.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; &amp;lt;#20&amp;gt; ok&lt;br /&gt;&amp;gt; &amp;lt;#20&amp;gt; ok limit-ecache-size&lt;br /&gt;&amp;gt; &amp;lt;#20&amp;gt; ok boot qfe0 -sv&lt;br /&gt;&amp;gt; Boot device: /sbus@55,0/SUNW,qfe@0,8c20000  File and args: -sv&lt;br /&gt;&amp;gt; Timeout waiting for ARP/RARP packet&lt;br /&gt;&amp;gt; Timeout waiting for ARP/RARP packet&lt;br /&gt;&amp;gt; Timeout waiting for ARP/RARP packet&lt;br /&gt;&amp;gt; Timeout waiting for ARP/RARP packet&lt;br /&gt;&amp;gt; 2ee00 X&lt;br /&gt;&amp;gt; Requesting Internet address for 0:0:be:a6:a3:a9&lt;br /&gt;&amp;gt; Internet address is 192.168.42.50 = C0A82A32&lt;br /&gt;&amp;gt; hostname: banner-a&lt;br /&gt;&amp;gt; whoami: no domain name&lt;br /&gt;&amp;gt; root server: sspp-qfe2&lt;br /&gt;&amp;gt; root directory: /export/install/Solaris_2.6/Tools/Boot&lt;br /&gt;&amp;gt; RPC: Timed out.&lt;br /&gt;&amp;gt; lookup: RPC error.&lt;br /&gt;&amp;gt; boot: cannot open kernel/unix&lt;br /&gt;&amp;gt; Enter filename [kernel/unix]:&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; shares on the ssp&lt;br /&gt;&amp;gt; ---------------------------&lt;br /&gt;&amp;gt; root@sspp # share&lt;br /&gt;&amp;gt; -               /export/install   ro,anon=0   ""&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; /etc/bootparams&lt;br /&gt;&amp;gt; -----------------------&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; root@sspp # cat /etc/bootparams&lt;br /&gt;&amp;gt; banner-a root=sspp-qfe2:/export/install/Solaris_2.6/Tools/Boot&lt;br /&gt;install=sspp-qfe2:/export/install/Solaris_2.6 boottype=:in&lt;br /&gt;rootopts=:rsize=32768&lt;br /&gt;&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868996108845106?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868996108845106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868996108845106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868996108845106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868996108845106'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/share-cdrom-jumpstart-e10k.html' title='Share cdrom Jumpstart E10k'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868985988858228</id><published>2005-10-07T07:57:00.000-05:00</published><updated>2005-10-07T07:57:39.886-05:00</updated><title type='text'>Remove Disk Label</title><content type='html'>&lt;p class="mobile-post"&gt;Dave Uhring wrote:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;&amp;gt; And execute `suninstall` after the disks are labelled.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;Well what I now did is create my own disk type with the harddisk&lt;br /&gt;&amp;gt;specifications from www.seagate.com and labelled the disk but still only&lt;br /&gt;&amp;gt;8 GB is seen. I am now clueless and don't know what to do to get the 20&lt;br /&gt;&amp;gt;GB available.&lt;br /&gt;&amp;gt;Any other ideas ?&lt;/p&gt;&lt;p class="mobile-post"&gt;Did you try:&lt;/p&gt;&lt;p class="mobile-post"&gt;        dd if=/dev/zero of=/dev/rdsk/cXdYtZs2 count=16&lt;/p&gt;&lt;p class="mobile-post"&gt;and then restart so that it looks unlabeled.&lt;/p&gt;&lt;p class="mobile-post"&gt;Casper&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868985988858228?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868985988858228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868985988858228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868985988858228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868985988858228'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/remove-disk-label.html' title='Remove Disk Label'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868981416315900</id><published>2005-10-07T07:56:00.001-05:00</published><updated>2005-10-07T07:56:54.170-05:00</updated><title type='text'>DE/dtterm: any *mouseless* way to "blacken" (whole screen?)</title><content type='html'>&lt;p class="mobile-post"&gt;I noticed that 2-click selects word, 3-click selects line&lt;br /&gt;so I tried 4-click to see what happens  :-)&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;Subject: Re: CDE/dtterm: any *mouseless* way to "blacken" (whole&lt;br /&gt;screen?)? Via key-stroke?&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; &amp;gt;&amp;gt; Any key-direct way to "choose" the whole screen?&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; &amp;gt;I don't think dtterm (or xterm) has a Select All (mouseless) feature.&lt;br /&gt;&amp;gt; &amp;gt;The shortest way I can think of is to quad-click on the screen&lt;br /&gt;&amp;gt; &amp;gt;to select all. It's not mouseless but beats dragging the mouse.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; A "quad-click"?  4 clicks, fast?&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; What (short doc) did you read to learn that?&lt;/p&gt;&lt;p class="mobile-post"&gt;Actually, the quadruple click was defined in the Nextstep Human&lt;br /&gt;Interface Guidelines - the reasoning was:&lt;/p&gt;&lt;p class="mobile-post"&gt;Single click - set insertion point&lt;br /&gt;Double click - select word&lt;br /&gt;Triple click - select line&lt;br /&gt;Quadruple click - select all text&lt;/p&gt;&lt;p class="mobile-post"&gt;A somewhat logical progression. Mind you, I'm going off my memory here&lt;br /&gt;(it's been a while since I've messed about with OpenSTEP).&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;br /&gt;Ken&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868981416315900?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868981416315900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868981416315900' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868981416315900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868981416315900'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/dedtterm-any-mouseless-way-to-blacken.html' title='DE/dtterm: any *mouseless* way to &quot;blacken&quot; (whole screen?)'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868977615186614</id><published>2005-10-07T07:56:00.000-05:00</published><updated>2005-10-07T07:56:16.160-05:00</updated><title type='text'>Check Process</title><content type='html'>&lt;p class="mobile-post"&gt;Hi,&lt;br /&gt;I have another request.&lt;br /&gt;Simulate this problem, and then when ps is hung, take truss &amp;amp; pstack&lt;br /&gt;output of the&lt;br /&gt;process using the options for showing complete contents of buffers&lt;br /&gt;while reading &amp;amp; writing.&lt;br /&gt;That should help us to find out why ps is hanging.&lt;br /&gt;Thanks,&lt;br /&gt;~Amol&lt;/p&gt;&lt;p class="mobile-post"&gt;. srv216bdnfs# truss -eaf -o /tmp/truss_ps-eaf.txt -p 2569&lt;/p&gt;&lt;p class="mobile-post"&gt;srv216bdnfs# pstack 2569&lt;/p&gt;&lt;p class="mobile-post"&gt;rv216bdnfs# truss -eaf -o /tmp/truss_ps-eaf_other.txt ps -eaf&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868977615186614?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868977615186614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868977615186614' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868977615186614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868977615186614'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/check-process.html' title='Check Process'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868971399303093</id><published>2005-10-07T07:55:00.000-05:00</published><updated>2005-10-07T07:55:13.993-05:00</updated><title type='text'>How Solaris[TM] Operating System calculates available swap.</title><content type='html'>&lt;p class="mobile-post"&gt;*Keyword(s):*swap, swapfs, swapfs_minfree, tmpfs&lt;/p&gt;&lt;p class="mobile-post"&gt;*Description:*&lt;/p&gt;&lt;p class="mobile-post"&gt;When configuring swap space on a system, it is useful to know how&lt;br /&gt;Solaris[TM] Operating System calculates available swap.&lt;/p&gt;&lt;p class="mobile-post"&gt;*Document Body:*&lt;/p&gt;&lt;p class="mobile-post"&gt;Swap size is equal to all available physical memory (RAM swap) plus any physical&lt;br /&gt;disk partitions dedicated for swap, plus space allocated to swap in the form of&lt;br /&gt;swapfiles.&lt;/p&gt;&lt;p class="mobile-post"&gt;The amount of memory available for RAM swap is less than the size of physical&lt;br /&gt;memory. This is because only pageable memory is available for RAM swap.&lt;br /&gt;Memory that is not pageable includes most of the kernel, any memory that is&lt;br /&gt;mlock()ed and intimate shared memory (ISM).&lt;/p&gt;&lt;p class="mobile-post"&gt;You can see the summary of memory by running "netstat -k system_pages" or&lt;br /&gt;"kstat -n system_pages".&lt;/p&gt;&lt;p class="mobile-post"&gt;Note that the -k option to the netstat command is undocumented and its use is&lt;br /&gt;deprecated. In Solaris 10 the -k option is unavailable and "kstat -n&lt;br /&gt;system_pages" must be used. The output format of "kstat -n" differs from that of&lt;br /&gt;"netstat -k" however all the values of interest are present in "kstat -n" output&lt;br /&gt;and have the same names as they do in the output of "netstat -k" with the&lt;br /&gt;exception of "pages total" which is renamed "pagestotal".&lt;/p&gt;&lt;p class="mobile-post"&gt;The discussion below uses "netstat -k"; similar values for "pp_kernel",&lt;br /&gt;"pageslocked" and "pagestotal" would be displayed by "kstat -n system_pages".&lt;/p&gt;&lt;p class="mobile-post"&gt;% netstat -k system_pages&lt;br /&gt;system_pages:&lt;/p&gt;&lt;p class="mobile-post"&gt;physmem 15153 nalloc 5931096 nfree 5868115 nalloc_calls 3092 nfree_calls&lt;br /&gt;2386&lt;br /&gt;kernelbase 268463432 econtig 280756224 freemem 1719 availrmem 11932&lt;br /&gt;lotsfree 236 desfree 118 minfree 59 fastscan 7568 slowscan 100 nscan 0&lt;br /&gt;desscan 25&lt;br /&gt;pp_kernel 2773 pagesfree 1719 pageslocked 3204 pages total 15136&lt;br /&gt;^^^^^^^^^^^^^^                ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^&lt;/p&gt;&lt;p class="mobile-post"&gt;The kernel on this 128MB machine is 2773 pages, or 21MB, and the&lt;br /&gt;total size of locked memory (including the kernel) is 3204 pages, 25MB&lt;br /&gt;(Note that on Solaris 10 and above, pp_kernel excludes pageslocked,&lt;br /&gt;and thus they must be added).  A page is 8KB (8192 bytes).&lt;/p&gt;&lt;p class="mobile-post"&gt;One would expect this machine to have a virtual swap size of: 128MB - 25MB =&lt;br /&gt;103MB.&lt;br /&gt;Note however that "pages total" is 15136 pages which corresponds to 118MB and&lt;br /&gt;not the 128MB of physical memory installed.&lt;/p&gt;&lt;p class="mobile-post"&gt;During boot, some of the system's memory is used for statically-allocated&lt;br /&gt;portions of the kernel, such as the kernel text, TSBs (translation storage&lt;br /&gt;buffers), page structures, the page table, etc.  Memory left after those&lt;br /&gt;allocations is shown in the physmem above.  In this case, there is 118MB (15153&lt;br /&gt;* pagesize, or 8KB) memory for which page structures are created  (Note that&lt;br /&gt;on Solaris 10 and above, this memory is already accounted for in pp_kernel).&lt;/p&gt;&lt;p class="mobile-post"&gt;So, we have 118MB - 25MB = 93MB of pageable virtual memory, but there is one&lt;br /&gt;last factor. The swap file system leaves a reserve of 1/8th of memory, or 118/8&lt;br /&gt;= 14.6MB.  The minimum for this is 2MB.&lt;/p&gt;&lt;p class="mobile-post"&gt;Summary:&lt;/p&gt;&lt;p class="mobile-post"&gt;       Total Memory            128MB&lt;br /&gt;       - static kernel          10MB&lt;br /&gt;       - Kernel                 25MB&lt;br /&gt;       - swapfs_minfree         15MB&lt;br /&gt;       ---------------------   -----&lt;br /&gt;       Total Ram Swap           78MB&lt;/p&gt;&lt;p class="mobile-post"&gt;Total Swap space = Ram swap + disk swap&lt;/p&gt;&lt;p class="mobile-post"&gt;How to read df -k /tmp output:&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/p&gt;&lt;p class="mobile-post"&gt;Filesystem            kbytes    used   avail capacity  Mounted on&lt;br /&gt;swap                   52280     664   51616     2%    /tmp&lt;/p&gt;&lt;p class="mobile-post"&gt;tmpfs (when mounted on /tmp) dynamically changes its size depending upon how&lt;br /&gt;much memory (or swap) is available.&lt;/p&gt;&lt;p class="mobile-post"&gt;The "kbytes" column in "df -k /tmp" output is the amount of swap space&lt;br /&gt;available, rather than the total.&lt;/p&gt;&lt;p class="mobile-post"&gt;The tmpfs file system also has a minfree, so the total is slightly less than the&lt;br /&gt;amount of swap available. "kbytes" column of "df -k /tmp" output actually&lt;br /&gt;correspond to "swap -s" output of swap available. Normally, these two numbers&lt;br /&gt;are pretty close.&lt;/p&gt;&lt;p class="mobile-post"&gt;The difference is due to the tmpfs_minfree value, which is 2MB by default.&lt;/p&gt;&lt;p class="mobile-post"&gt;% swap -s&lt;br /&gt;total: 120272k bytes allocated + 26696k reserved = 146968k used, 53696k&lt;br /&gt;available&lt;/p&gt;&lt;p class="mobile-post"&gt;If some process would de-allocate some swap, and swap -s would show more swap&lt;br /&gt;available, then the df -k /tmp would also show that its total file system size&lt;br /&gt;has increased.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868971399303093?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868971399303093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868971399303093' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868971399303093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868971399303093'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/how-solaristm-operating-system.html' title='How Solaris[TM] Operating System calculates available swap.'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868967015488723</id><published>2005-10-07T07:54:00.001-05:00</published><updated>2005-10-07T07:54:30.153-05:00</updated><title type='text'>Fibre Channel</title><content type='html'>&lt;p class="mobile-post"&gt;Fibre Channel&lt;/p&gt;&lt;p class="mobile-post"&gt;Like Ethernet or ATM, Fibre Channel is a networking standard that is&lt;br /&gt;designed to move data through specific devices at specific speeds.&lt;br /&gt;Fibre Channel is used primarily for server backbones and as a way of&lt;br /&gt;attaching a server to a storage device, such as a RAID array or a tape&lt;br /&gt;backup device. In fact, Fibre Channel is the architecture of choice&lt;br /&gt;for many storage area networks.&lt;/p&gt;&lt;p class="mobile-post"&gt;Many IT pros find that Fibre Channel is an answer to their storage&lt;br /&gt;prayers. Since a company's data grows daily, each night the system is&lt;br /&gt;backing up a little bit more data than the night before. Thus, the&lt;br /&gt;window for completing the backup tends to shrink a little bit each&lt;br /&gt;year. The only way to back up more data in less time is to get a&lt;br /&gt;faster storage device and a faster medium for transmitting the data&lt;br /&gt;from the server to the storage device. In production networks, Fibre&lt;br /&gt;Channel products have been able to accomplish a sustained transfer&lt;br /&gt;rate of 97 MB per second when backing up large files. Companies that&lt;br /&gt;use Fibre Channel on database servers have reported these servers can&lt;br /&gt;handle tens of thousands of I/Os per second due to Fibre Channel&lt;br /&gt;technology.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868967015488723?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868967015488723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868967015488723' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868967015488723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868967015488723'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/fibre-channel.html' title='Fibre Channel'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868965903748836</id><published>2005-10-07T07:54:00.000-05:00</published><updated>2005-10-07T07:54:19.040-05:00</updated><title type='text'>Resetting NVRAM on a Sun system</title><content type='html'>&lt;p class="mobile-post"&gt;Document Audience: SPECTRUM&lt;br /&gt;Document ID: 7047&lt;br /&gt;Title: Resetting NVRAM on a Sun system&lt;br /&gt;Update Date: Tue Sep 13 00:00:00 MDT 2005&lt;br /&gt;Products:  Solaris,  Sun Blade 2000 Workstation,  Sun&lt;br /&gt;Blade 1000 Workstation,  Sun Fire 280R Server,  Sun&lt;br /&gt;Fire V880 Server,  Sun Fire V480 Server,  Sun Fire&lt;br /&gt;V890 Server,  Sun Fire V490 Server&lt;br /&gt;Technical Areas:  NVRAM (Non-Volatile Read-Only&lt;br /&gt;Memory)&lt;/p&gt;&lt;p class="mobile-post"&gt;--------------------------------------------------------------------------------&lt;/p&gt;&lt;p class="mobile-post"&gt;--------------------------------------------------------------------------------&lt;/p&gt;&lt;p class="mobile-post"&gt;Keyword(s):resetting, nvram, netra 20, sun fire, sun&lt;br /&gt;blade, sun, systems&lt;/p&gt;&lt;p class="mobile-post"&gt;Description:&lt;/p&gt;&lt;p class="mobile-post"&gt;This document explains how to reset the NVRAM back to&lt;br /&gt;its default settings on a&lt;br /&gt;Sun system.&lt;/p&gt;&lt;p class="mobile-post"&gt;Document Body:&lt;/p&gt;&lt;p class="mobile-post"&gt;NOTE: Before executing the following, it is important&lt;br /&gt;and highly recommended to&lt;br /&gt;note (print out) the current NVRAM settings before&lt;br /&gt;changing these options back&lt;br /&gt;to their default settings.&lt;/p&gt;&lt;p class="mobile-post"&gt;There are two ways of resetting the NVRAM:&lt;/p&gt;&lt;p class="mobile-post"&gt;1)  At the OK prompt:&lt;/p&gt;&lt;p class="mobile-post"&gt;       ok  set-defaults                        resets&lt;br /&gt;most parameters&lt;br /&gt;       ok  set-default 'parameter'             resets&lt;br /&gt;that one parameter&lt;br /&gt;       for example: ok  set-default auto-boot?&lt;/p&gt;&lt;p class="mobile-post"&gt;2)  At boot&lt;br /&gt;   This is helpful when an improperly created device&lt;br /&gt;alias for a monitor has&lt;br /&gt;been created and no display is going to the screen.&lt;/p&gt;&lt;p class="mobile-post"&gt;The most common method is to issue L1+n from the&lt;br /&gt;keyboard (WYSE) while powering&lt;br /&gt;on the system.  Hold down this key combination until&lt;br /&gt;you see video with a&lt;br /&gt;message stating that the NVRAM parameters have been&lt;br /&gt;set to their default values.&lt;/p&gt;&lt;p class="mobile-post"&gt;On some Sun keyboards, the "L1" key is replaced with a&lt;br /&gt;"STOP" key. Therefore,&lt;br /&gt;issue the key sequence STOP+n simultaneously from the&lt;br /&gt;keyboard while powering on&lt;br /&gt;the system.  Hold down this key combination until you&lt;br /&gt;see video with a message&lt;br /&gt;stating that the NVRAM parameters have been set to&lt;br /&gt;their default values.&lt;/p&gt;&lt;p class="mobile-post"&gt;Newer systems (Sun Blade[TM] workstations and Sun&lt;br /&gt;Fire[TM] hardware) are using&lt;br /&gt;USB Keyboards and Mice. Unlike the older 8 pin&lt;br /&gt;mini-din keyboards, these systems&lt;br /&gt;do not have a "STOP+N" key sequence to reset the&lt;br /&gt;OBP/NVRAM parameters. Instead,&lt;br /&gt;a "safe NVRAM" boot mode is available. Remember that&lt;br /&gt;unlike a STOP+N which&lt;br /&gt;restores ALL factory NVRAM parameters, the "safe&lt;br /&gt;NVRAM" boot only alters a few&lt;br /&gt;parameters and only for that one boot cycle. The&lt;br /&gt;described work around allows&lt;br /&gt;booting any USB keyboard type system, including RSC&lt;br /&gt;equipped servers, to the OK&lt;br /&gt;prompt and communicating with these systems via the&lt;br /&gt;serial ttya console.&lt;/p&gt;&lt;p class="mobile-post"&gt;Note: For security reasons this procedure does not&lt;br /&gt;reset the settings for&lt;br /&gt;security-mode and security-password. The information&lt;br /&gt;from this Infodoc cannot be&lt;br /&gt;used to recover from a lost OBP password. Please&lt;br /&gt;contact Sun Service to get a&lt;br /&gt;replacement NVRAM in such circumstances.&lt;/p&gt;&lt;p class="mobile-post"&gt; ==================== Procedure ====================&lt;/p&gt;&lt;p class="mobile-post"&gt;1. Press the power button to power up the system.&lt;/p&gt;&lt;p class="mobile-post"&gt;2. Once the maintenance LED starts to flash rapidly,&lt;br /&gt;immediately press the Power&lt;br /&gt;button twice (similar to double-clicking a mouse, but&lt;br /&gt;leave a short gap of&lt;br /&gt;around 1 second between presses, to have the action&lt;br /&gt;reliably registered.) The&lt;br /&gt;actual time when you do the double press of the power&lt;br /&gt;button is the point in&lt;br /&gt;POST when the maintenance LED (wrench light) rapidly&lt;br /&gt;flashes.&lt;/p&gt;&lt;p class="mobile-post"&gt;NOTE:&lt;/p&gt;&lt;p class="mobile-post"&gt;If you double press too late or too soon, the system&lt;br /&gt;will power off. Do not get&lt;br /&gt;confused with the earlier occurrences of the&lt;br /&gt;maintenance and OK to remove LEDs&lt;br /&gt;flashing together. This is a part of the system test&lt;br /&gt;to make sure the LEDs are&lt;br /&gt;functional.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you're running POST even in MIN level, it will be&lt;br /&gt;several minutes depending&lt;br /&gt;upon your configuration, before the maintenance LED&lt;br /&gt;flashes rapidly.&lt;/p&gt;&lt;p class="mobile-post"&gt;A screen similar to the following is displayed to&lt;br /&gt;indicate that you have&lt;br /&gt;successfully reset the OpenBoot NVRAM configuration&lt;br /&gt;variables to their default&lt;br /&gt;values:&lt;/p&gt;&lt;p class="mobile-post"&gt; Sun Fire xxx (8 X UltraSPARC-III), Keyboard Present&lt;/p&gt;&lt;p class="mobile-post"&gt; OpenBoot x.x, 256 MB memory installed, Serial&lt;br /&gt;#xxxxxxxx.&lt;/p&gt;&lt;p class="mobile-post"&gt; Ethernet address xx:xx:xx:xx:xx:xx, Host ID:&lt;br /&gt;xxxxxxxx.&lt;/p&gt;&lt;p class="mobile-post"&gt; Safe NVRAM mode, the following nvram configuration&lt;br /&gt;variables have been&lt;br /&gt;overridden:&lt;/p&gt;&lt;p class="mobile-post"&gt; diag-switch? is true&lt;br /&gt; use-nvramrc? is false&lt;br /&gt; input-device , output-device are defaulted&lt;br /&gt; ttya-mode , ttyb-mode are defaulted&lt;/p&gt;&lt;p class="mobile-post"&gt;These changes are temporary and the original values&lt;br /&gt;will be restored after the&lt;br /&gt;next hardware or software reset. Once you are at the&lt;br /&gt;OK prompt, it is at this&lt;br /&gt;point you make your changes to the OBP parameters, or&lt;br /&gt;use set-defaults to reset&lt;br /&gt;all parameters to factory default settings.&lt;/p&gt;&lt;p class="mobile-post"&gt;On the Netra[TM] 20 server, the defaults cannot be set&lt;br /&gt;by hitting the power&lt;br /&gt;button twice. The power button does not function in&lt;br /&gt;the same way as it does on&lt;br /&gt;the Sun Fire or Sun Blade. The LOM command bootmode&lt;br /&gt;will need to be used as&lt;br /&gt;shown below:&lt;/p&gt;&lt;p class="mobile-post"&gt; lom&amp;gt; poweroff&lt;/p&gt;&lt;p class="mobile-post"&gt; lom&amp;gt; bootmode reset_nvram&lt;/p&gt;&lt;p class="mobile-post"&gt; lom&amp;gt; poweron&lt;/p&gt;&lt;p class="mobile-post"&gt;This will reset the nvram to default values.&lt;/p&gt;&lt;p class="mobile-post"&gt;Note:&lt;br /&gt;If the RSC card is your console device, resetting the&lt;br /&gt;NVRAM will take the&lt;br /&gt;console away from the RSC and put it back to the&lt;br /&gt;default (example, input-device&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868965903748836?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868965903748836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868965903748836' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868965903748836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868965903748836'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/resetting-nvram-on-sun-system.html' title='Resetting NVRAM on a Sun system'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868955490395337</id><published>2005-10-07T07:52:00.001-05:00</published><updated>2005-10-07T07:52:34.913-05:00</updated><title type='text'>useradd/passwd script</title><content type='html'>&lt;p class="mobile-post"&gt;RE: useradd/passwd script&lt;/p&gt;&lt;p class="mobile-post"&gt;I found this script that might work for you. I haven't tried it&lt;br /&gt;myself. I hope it helps.&lt;/p&gt;&lt;p class="mobile-post"&gt;Here is the link for this script:&lt;/p&gt;&lt;p class="mobile-post"&gt;http://groups.google.com/group/comp.os.linux.misc/msg/b2867efd801e77ab?dmode=source&amp;amp;hl=en&lt;/p&gt;&lt;p class="mobile-post"&gt;#!/bin/sh&lt;/p&gt;&lt;p class="mobile-post"&gt;## SCRIPT TO ADD MULTIPLE USERS TO A LINUX SYSTEM&lt;br /&gt;##&lt;br /&gt;## The script will add users, generate secure password and mail&lt;br /&gt;## info to the users. Also a log file is made!&lt;br /&gt;##&lt;br /&gt;## You need to make it work:&lt;br /&gt;##&lt;br /&gt;## mailx - traditional command-line-mode mail user agent&lt;br /&gt;## pwgen - password generator&lt;br /&gt;##         http://sourceforge.net/projects/pwgen/##&lt;br /&gt;## user_list format:  USERNAME NAMES LASTNAME CLASS EMAIL&lt;br /&gt;##&lt;br /&gt;## (c) 2005 Manuel de la Torre&lt;br /&gt;##&lt;/p&gt;&lt;p class="mobile-post"&gt;# Modify this variables if you need&lt;/p&gt;&lt;p class="mobile-post"&gt;MINDAYS=0     # Change password at anytime&lt;br /&gt;MAXDAYS=45    # Max days password is valid&lt;br /&gt;WARNDAYS=10   # Warning message before expire passwd&lt;br /&gt;EXPDAYS=180   # Days to expire account from now&lt;br /&gt;INACTIVE=45   # Days to lock after passwd expires&lt;/p&gt;&lt;p class="mobile-post"&gt;# Calculte days from Epoch&lt;br /&gt;YEARS_FROM_EPOCH="$((($(date +%G) - 1970 ) * 365 ))"&lt;br /&gt;DAYS_THIS_YEAR="$((($(date +%j))))"&lt;br /&gt;DAYS_FROM_EPOCH=$(( $YEARS_FROM_EPOCH + $DAYS_THIS_YEAR + 8 ))&lt;/p&gt;&lt;p class="mobile-post"&gt;# Define some colors first:&lt;br /&gt;red='\e[0;31m'&lt;br /&gt;RED='\e[1;31m'&lt;br /&gt;blue='\e[0;34m'&lt;br /&gt;BLUE='\e[1;34m'&lt;br /&gt;cyan='\e[0;36m'&lt;br /&gt;CYAN='\e[1;36m'&lt;br /&gt;NC='\e[0m' # No Color&lt;/p&gt;&lt;p class="mobile-post"&gt;# Ensure that root is running the script&lt;br /&gt;WHOAMI=`/usr/bin/whoami`&lt;br /&gt;if [ $WHOAMI != "root" ]; then&lt;br /&gt; echo "Sorry. You must be root to add new users"&lt;br /&gt; exit 1&lt;br /&gt;fi&lt;/p&gt;&lt;p class="mobile-post"&gt;# Ensure proper format of the command&lt;/p&gt;&lt;p class="mobile-post"&gt;thiscmd=`basename $0`&lt;/p&gt;&lt;p class="mobile-post"&gt;if [ "$#" -ne 1 ]; then&lt;br /&gt; echo "USAGE: $thiscmd user_file" &amp;amp;&amp;amp; exit 1&lt;br /&gt;fi&lt;/p&gt;&lt;p class="mobile-post"&gt;USR_FILE=$1&lt;/p&gt;&lt;p class="mobile-post"&gt;# Remove blank lines from input file&lt;br /&gt;# Used this solution because of problems&lt;br /&gt;# with the IFS in a if [ -n ] statement&lt;br /&gt;#&lt;/p&gt;&lt;p class="mobile-post"&gt;# Check if buffer file exist, then remove&lt;/p&gt;&lt;p class="mobile-post"&gt;if [ -a /tmp/buffer ]&lt;br /&gt; then&lt;br /&gt; rm /tmp/buffer&lt;/p&gt;&lt;p class="mobile-post"&gt;fi&lt;/p&gt;&lt;p class="mobile-post"&gt;# Read input file, and delete blank lines&lt;/p&gt;&lt;p class="mobile-post"&gt;cat $USR_FILE | while read TEMP&lt;/p&gt;&lt;p class="mobile-post"&gt; do&lt;br /&gt;   if [ -n  "$TEMP" ]; then&lt;br /&gt;     echo "$TEMP" &amp;gt;&amp;gt; /tmp/buffer&lt;br /&gt;   fi&lt;br /&gt; done&lt;/p&gt;&lt;p class="mobile-post"&gt;# Copy temporal file to input file&lt;/p&gt;&lt;p class="mobile-post"&gt;cp /tmp/buffer $USR_FILE&lt;br /&gt;rm /tmp/buffer&lt;/p&gt;&lt;p class="mobile-post"&gt;#&lt;br /&gt;# Save the current value of the IFS&lt;br /&gt;ifs="$IFS"&lt;/p&gt;&lt;p class="mobile-post"&gt;# Define the separator (TAB) between fields&lt;br /&gt;# if your input has tabs between fields&lt;br /&gt;#IFS=`echo t | tr t '\t'`&lt;/p&gt;&lt;p class="mobile-post"&gt;# Define the separator (COMMA) between fields&lt;br /&gt;# if your input has spaces between fields&lt;br /&gt;IFS=","&lt;/p&gt;&lt;p class="mobile-post"&gt;# assumning the file has one line per user, in a layout like:&lt;br /&gt;#&lt;br /&gt;#    USERNAME NAMES LASTNAME CLASS EMAIL&lt;br /&gt;#&lt;/p&gt;&lt;p class="mobile-post"&gt;# Configure the useradd program globaly:&lt;br /&gt;# useradd -D -b $DEF_HOME -e $EXPIRE -g $GROUP&lt;/p&gt;&lt;p class="mobile-post"&gt;cat $USR_FILE | while read USERNAME NAMES LASTNAME CLASS EMAIL&lt;/p&gt;&lt;p class="mobile-post"&gt;do&lt;/p&gt;&lt;p class="mobile-post"&gt; USERNAME=`echo $USERNAME | tr A-Z a-z` #lower case&lt;br /&gt; FULLNAME="$NAMES $LASTNAME"&lt;br /&gt; COMMENT="$FULLNAME,$CLASS"&lt;/p&gt;&lt;p class="mobile-post"&gt; # Check if users exists in system&lt;/p&gt;&lt;p class="mobile-post"&gt; NOEXISTE=`cut -d: -f1 /etc/passwd | grep -i $USERNAME`&lt;/p&gt;&lt;p class="mobile-post"&gt;if [ -n "$NOEXISTE" ]; then&lt;br /&gt;   echo -e "Creating user $USERNAME: \t ${RED}FAILED${NC}"&lt;br /&gt;else&lt;br /&gt;   # Some output to keep you happy&lt;br /&gt;   echo -e "Creating user $USERNAME: \t ${CYAN}SUCCESS${NC}"&lt;/p&gt;&lt;p class="mobile-post"&gt; # Add the user&lt;/p&gt;&lt;p class="mobile-post"&gt; useradd $USERNAME       -c "$COMMENT"       -m&lt;/p&gt;&lt;p class="mobile-post"&gt; # Set the initial password&lt;/p&gt;&lt;p class="mobile-post"&gt; PASSWORD=`pwgen -s`&lt;br /&gt; echo $USERNAME:$PASSWORD | chpasswd&lt;/p&gt;&lt;p class="mobile-post"&gt; # Change expitation of passwords&lt;/p&gt;&lt;p class="mobile-post"&gt; chage -m $MINDAYS        -M $MAXDAYS        -E $(( $EXPDAYS + $DAYS_FROM_EPOCH ))        -I $INACTIVE        -d 0 $USERNAME&lt;/p&gt;&lt;p class="mobile-post"&gt; # Mail password&lt;/p&gt;&lt;p class="mobile-post"&gt; echo -e "login: $USERNAME \npassw: $PASSWORD" |     mail -s "Account Info"          -b &amp;lt;email@removed&amp;gt; $EMAIL&lt;/p&gt;&lt;p class="mobile-post"&gt; # Log the results&lt;br /&gt; echo "$USERNAME:$FULLNAME:$PASSWORD:$CLASS:`date`" &amp;gt;&amp;gt;&lt;br /&gt;users_created_log&lt;/p&gt;&lt;p class="mobile-post"&gt;fi&lt;br /&gt;done&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868955490395337?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868955490395337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868955490395337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868955490395337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868955490395337'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/useraddpasswd-script.html' title='useradd/passwd script'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112868952165554380</id><published>2005-10-07T07:52:00.000-05:00</published><updated>2005-10-07T07:52:01.786-05:00</updated><title type='text'>Password Aging</title><content type='html'>&lt;p class="mobile-post"&gt;Password Aging, Part 1&lt;br /&gt;ITworld.com, Unix in the Enterprise 10/4/05&lt;/p&gt;&lt;p class="mobile-post"&gt;Sandra Henry-Stocker, ITworld.com&lt;/p&gt;&lt;p class="mobile-post"&gt;While it's clearly possible to use the /etc/passwd and /etc/shadow&lt;br /&gt;files in Solaris and other Unix systems without making use of the&lt;br /&gt;password aging features, you could be taking advantage of these&lt;br /&gt;features to encourage your users to practice better security -- and,&lt;br /&gt;with the right password aging values, you can configure a good&lt;br /&gt;password-changing policy into your system files while limiting the&lt;br /&gt;risk that your users will be locked out of their accounts.&lt;/p&gt;&lt;p class="mobile-post"&gt;In this week's column, we look at the various fields in the shadow&lt;br /&gt;file that govern password aging and suggest settings that might give&lt;br /&gt;you the right balance between user convenience and good password&lt;br /&gt;security.&lt;/p&gt;&lt;p class="mobile-post"&gt;The /etc/shadow File&lt;/p&gt;&lt;p class="mobile-post"&gt;To begin our review of how password aging works on a Solaris system,&lt;br /&gt;let's examine the format of the /etc/shadow file. Each colon-separated&lt;br /&gt;record looks like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;  johndoe:PaSsWoRdxye7d:13062:30:120:10:inactive:expire:&lt;br /&gt;   ^        ^           ^     ^   ^   ^     ^      ^    ^&lt;br /&gt;   |        |           |     |   |   |     |      |    |&lt;br /&gt;  username:password:lastchg:min:max:warn:inactive:expire:flag&lt;/p&gt;&lt;p class="mobile-post"&gt;The first field is clearly the username. The next is the password&lt;br /&gt;encryption. The third is the date when the password was last changed&lt;br /&gt;expressed as the number of days since January 1, 1970. The min field&lt;br /&gt;is the number of days that a password MUST be kept after it is&lt;br /&gt;changed; this is used to keep users from changing their passwords and&lt;br /&gt;then immediately changing them back to their previous values (thereby&lt;br /&gt;invalidating the intended security). The max field represents the&lt;br /&gt;maximum number of days that any password can be used before it is&lt;br /&gt;expired. If you want your users to strictly change their passwords&lt;br /&gt;every 30 days, for example, you could set both of these fields to 30.&lt;br /&gt;Generally, however, the max field is set to a considerably larger&lt;br /&gt;value than min. The warn field specifies the number of days prior to a&lt;br /&gt;password expiration that a user is warned on login that his/her&lt;br /&gt;password is about to expire. This should not be too short a period of&lt;br /&gt;time since many users don't log in every day and the display of this&lt;br /&gt;message in the login messages is easy to overlook.&lt;/p&gt;&lt;p class="mobile-post"&gt;The inactive field sets the number of days that an account is allowed&lt;br /&gt;to be inactive. This value can help prevent idle accounts from being&lt;br /&gt;broken into. The expire field represents the absolute day (expressed&lt;br /&gt;as the number of days since January 1, 1970) that the password will&lt;br /&gt;expire. You might use this field if you want all of your users'&lt;br /&gt;passwords to expire at the end of the fiscal year or at the end of the&lt;br /&gt;semester. The last field, flag, is unused until Solaris 10 at which&lt;br /&gt;point it records the number of failed login attempts.&lt;/p&gt;&lt;p class="mobile-post"&gt;If the lines in your shadow file look like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;sbob:dZlJpUNyyusab:12345::::::&lt;/p&gt;&lt;p class="mobile-post"&gt;The username and password are set and the date on which the password&lt;br /&gt;was last changed has been recorded, but no password aging is taking&lt;br /&gt;effect.&lt;/p&gt;&lt;p class="mobile-post"&gt;If it looks like this, the account is locked.&lt;/p&gt;&lt;p class="mobile-post"&gt;dumbo:*LK*:::::::&lt;/p&gt;&lt;p class="mobile-post"&gt;Various other combinations of the shadow file are possible, but the&lt;br /&gt;min, max and warn fields will only make sense if the lastchg field is&lt;br /&gt;set. For example:&lt;/p&gt;&lt;p class="mobile-post"&gt;jdoe:w0qjde84kr%p0:13062:60:::::&lt;/p&gt;&lt;p class="mobile-post"&gt;User must keep a password for 60 days once he changes it, but no&lt;br /&gt;password changes are required.&lt;/p&gt;&lt;p class="mobile-post"&gt;jdoe:w0qjde84kr%p0:13062::60::::&lt;/p&gt;&lt;p class="mobile-post"&gt;User must change his password every 60 days, but can change it at any&lt;br /&gt;time (including immediately changing it back to its previous value).&lt;/p&gt;&lt;p class="mobile-post"&gt;Choosing Min and Max Settings&lt;/p&gt;&lt;p class="mobile-post"&gt;If you want to turn on password aging, the combination of minimum&lt;br /&gt;(must keep) and maximum (invalid after) values enforces a practical&lt;br /&gt;password update scheme. Suggested settings depend in part on the&lt;br /&gt;security stance of your particular network. However, general consensus&lt;br /&gt;seems to be that passwords, once changed, should be kept for a month&lt;br /&gt;(min=30) and that passwords should be changed every three to six&lt;br /&gt;months (from max=90 to max=180).&lt;/p&gt;&lt;p class="mobile-post"&gt;Once a user has used a password for 30 days, he's probably not going&lt;br /&gt;to reset it back to its previous value. By then he should know it well&lt;br /&gt;enough to continue using it.&lt;/p&gt;&lt;p class="mobile-post"&gt;Changing a password more often than every month or so would probably&lt;br /&gt;make it hard for users to remember their passwords without writing&lt;br /&gt;them down.&lt;/p&gt;&lt;p class="mobile-post"&gt;The down side of min values is that this setting doesn't allow someone&lt;br /&gt;to change his password if he believes it has been compromised when the&lt;br /&gt;compromise happens within the "min" period. Whatever system you adopt&lt;br /&gt;should, therefore, make it painless for a user to request that his&lt;br /&gt;password be reset whenever he believes it may no longer be secure.&lt;/p&gt;&lt;p class="mobile-post"&gt;Wrap Up&lt;/p&gt;&lt;p class="mobile-post"&gt;We hear a lot about the tradeoff between security and convenience as&lt;br /&gt;it permeates so many of our decisions about how we manage our networks&lt;br /&gt;but, when it comes to passwords, we must be careful not to cross the&lt;br /&gt;line between securing logins and preventing them altogether. Locking&lt;br /&gt;our users too easily out of their accounts can reduce security as&lt;br /&gt;easily as enhance it. Using password aging with the proper settings&lt;br /&gt;can limit the risk that security constraints turn into unintended&lt;br /&gt;denials of service.&lt;/p&gt;&lt;p class="mobile-post"&gt;Next week, we'll look at how to introduce password aging on a system&lt;br /&gt;where users have never had their passwords expire.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112868952165554380?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112868952165554380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112868952165554380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868952165554380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112868952165554380'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/password-aging.html' title='Password Aging'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112853606522223475</id><published>2005-10-05T13:14:00.000-05:00</published><updated>2005-10-05T13:14:25.273-05:00</updated><title type='text'>DNS client Troubleshooting</title><content type='html'>&lt;p class="mobile-post"&gt;DNS trouble..&lt;/p&gt;&lt;p class="mobile-post"&gt;nslookup always uses dns.&lt;br /&gt;ping uses /etc/nsswitch.conf to determine which method of address lookup.&lt;/p&gt;&lt;p class="mobile-post"&gt;Recommend that you&lt;br /&gt;# cp /etc/nsswitch.dns /etc/nsswitch.conf&lt;/p&gt;&lt;p class="mobile-post"&gt;does ping with an IP number work?  If it does then there is something wrong&lt;br /&gt;with nsswitch.conf or possibly nscd or even /etc/hosts.&lt;/p&gt;&lt;p class="mobile-post"&gt;Try viewing a webpage by IP address for example:&lt;br /&gt;http://209.249.116.195        (Sun Site)&lt;br /&gt;If this don't work then it's a routing problem; if it does, then you&lt;br /&gt;need to check your dns files: resolv.conf et all.&lt;/p&gt;&lt;p class="mobile-post"&gt;Also worth (as suggested by someone else) posting the output of:&lt;/p&gt;&lt;p class="mobile-post"&gt;dig www.sun.com @204.186.23.65&lt;br /&gt;and maybe,&lt;br /&gt;dig www.sun.com @192.18.128.11&lt;/p&gt;&lt;p class="mobile-post"&gt;dns2 is outside my main network 204.184.23.65&lt;br /&gt;dig @dns2 google.com    works&lt;br /&gt;dig google.com               works&lt;br /&gt;dig @gate google.com    does not work, as expected, since it is not a&lt;br /&gt;dns server&lt;/p&gt;&lt;p class="mobile-post"&gt;I think that since I can go to websites by ip fine, my defaultroute&lt;br /&gt;must be correct, same with netmasks&lt;br /&gt;( it has to be 255.255.0.0 since we use both 192.168.10 and 192.168.20&lt;br /&gt;on this section of the network.&lt;/p&gt;&lt;p class="mobile-post"&gt;double check /etc/nsswitch.conf is called exactly that and has appropriate&lt;br /&gt;perms, I don't know what they _should_ be but 644 shouldn't hurt. And it&lt;br /&gt;contains at least&lt;/p&gt;&lt;p class="mobile-post"&gt;hosts: files dns&lt;/p&gt;&lt;p class="mobile-post"&gt;double check /etc/resolv.conf is called exactly that and contains&lt;br /&gt;appropriate entries.&lt;/p&gt;&lt;p class="mobile-post"&gt;then pick an external address that you *know* won't be in /etc/hosts&lt;br /&gt;OR have been cached by nscd.  But one that you know has at least one&lt;br /&gt;IP address&lt;/p&gt;&lt;p class="mobile-post"&gt;then try&lt;/p&gt;&lt;p class="mobile-post"&gt;getent hosts your.chosen.host&lt;/p&gt;&lt;p class="mobile-post"&gt;getent is an interface to your system resolvers and is dictated by&lt;br /&gt;/etc/nsswitch.conf and if appropriate, /etc/resolv.conf&lt;/p&gt;&lt;p class="mobile-post"&gt;If this displays nothing "echo $?" will show the return of the getent&lt;br /&gt;- a failed lookup is "2". A successful one is "0".&lt;/p&gt;&lt;p class="mobile-post"&gt;A successful one though, should show you an address and stuff,&lt;/p&gt;&lt;p class="mobile-post"&gt;If this fails try rebuilding /etc/nsswitch.conf and /etc/resolv.conf&lt;br /&gt;to ensure there is no parsing errors or the like...&lt;/p&gt;&lt;p class="mobile-post"&gt;'nslookup' uses the DNS resolver libraries directly.  It thus bypasses&lt;br /&gt;the name service switch (configured via /etc/nsswitch.conf).  If&lt;br /&gt;you're seeing applications fail to resolve addresses, but nslookup&lt;br /&gt;works fine, then the next thing to try is this:&lt;/p&gt;&lt;p class="mobile-post"&gt;        % getent hosts "host name here"&lt;/p&gt;&lt;p class="mobile-post"&gt;If that works, then it's an application problem of some sort.  The&lt;br /&gt;application is just misconfigured (perhaps it has a SOCKS proxy&lt;br /&gt;configured that it doesn't need, or needs one and doesn't have it).&lt;/p&gt;&lt;p class="mobile-post"&gt;If that doesn't work, then the problem is almost certainly in&lt;br /&gt;/etc/nsswitch.conf.&lt;/p&gt;&lt;p class="mobile-post"&gt;Check the firewall, whether port 53 tcp and udp are passed. My guess is&lt;br /&gt;that only one of them may pass.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112853606522223475?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112853606522223475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112853606522223475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112853606522223475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112853606522223475'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/dns-client-troubleshooting.html' title='DNS client Troubleshooting'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112852256758743819</id><published>2005-10-05T09:29:00.000-05:00</published><updated>2005-10-05T09:29:27.590-05:00</updated><title type='text'>Sun Solaris 10 on 280R &amp; Brocade 3250 Attachment and Sun Solaris 10 on 280R &amp; Brocade 3250 Attachment and Configuration</title><content type='html'>&lt;p class="mobile-post"&gt;Subject: Sun Solaris 10 on 280R &amp;amp; Brocade 3250 Attachment and&lt;br /&gt;        Configuration&lt;/p&gt;&lt;p class="mobile-post"&gt;Server: Sun 280R&lt;br /&gt;Card: *SUN* 2342 Dual Port HBA (uses QLC driver)&lt;br /&gt;Switch: Brocade Silkworm 3250.&lt;/p&gt;&lt;p class="mobile-post"&gt;I need some assistance getting a Sun 280R to see tape drives attached to&lt;br /&gt;a Brocade 3250 switch.&lt;/p&gt;&lt;p class="mobile-post"&gt;[switch] -&amp;gt; box   (port 0)&lt;br /&gt;         -&amp;gt; tape1 (port 1)&lt;br /&gt;         -&amp;gt; tape2 (port 2)&lt;br /&gt;         -&amp;gt; tape3 (port 3)&lt;br /&gt;         -&amp;gt; tape4 (port 4)&lt;/p&gt;&lt;p class="mobile-post"&gt;Here are my devices according to a Brocade Silkworm 3820.&lt;br /&gt;I am not sure I am adding the zones correctly.&lt;/p&gt;&lt;p class="mobile-post"&gt;Basically, I want one zone per drive:&lt;/p&gt;&lt;p class="mobile-post"&gt;DRIVE1&amp;lt;-&amp;gt;ZONE1&lt;br /&gt;DRIVE2&amp;lt;-&amp;gt;ZONE2&lt;br /&gt;DRIVE3&amp;lt;-&amp;gt;ZONE3&lt;br /&gt;DRIVE4&amp;lt;-&amp;gt;ZONE4&lt;/p&gt;&lt;p class="mobile-post"&gt;However, my first step is just to get the Solaris 10 box to see all four&lt;br /&gt;tape drives.&lt;/p&gt;&lt;p class="mobile-post"&gt;Here are the devices:&lt;/p&gt;&lt;p class="mobile-post"&gt;s3250:admin&amp;gt; nsshow&lt;br /&gt;{&lt;br /&gt; Type Pid    COS     PortName                NodeName&lt;br /&gt;TTL(sec)&lt;br /&gt; N    010000;      3;21:00:00:e0:8b:14:12:05;20:00:00:e0:8b:14:12:05; na&lt;br /&gt;    FC4s: FCIP FCP&lt;br /&gt;    Fabric Port Name: 20:00:00:05:1e:35:78:77&lt;br /&gt; NL   010155;      3;50:01:04:f0:00:52:cf:1f;50:01:04:f0:00:52:cf:1e; na&lt;br /&gt;    FC4s: FCP [HP      Ultrium 2-SCSI  K4B0]&lt;br /&gt;    Fabric Port Name: 20:01:00:05:1e:35:78:77&lt;br /&gt; NL   010255;      3;50:01:04:f0:00:52:cf:22;50:01:04:f0:00:52:cf:21; na&lt;br /&gt;    FC4s: FCP [HP      Ultrium 2-SCSI  K4B0]&lt;br /&gt;    Fabric Port Name: 20:02:00:05:1e:35:78:77&lt;br /&gt; NL   010355;      3;50:01:04:f0:00:52:cf:1c;50:01:04:f0:00:52:cf:1b; na&lt;br /&gt;    FC4s: FCP [HP      Ultrium 2-SCSI  K4B0]&lt;br /&gt;    Fabric Port Name: 20:03:00:05:1e:35:78:77&lt;br /&gt; NL   010455;      3;50:01:04:f0:00:52:cf:25;50:01:04:f0:00:52:cf:24; na&lt;br /&gt;    FC4s: FCP [HP      Ultrium 2-SCSI  K4B0]&lt;br /&gt;    Fabric Port Name: 20:04:00:05:1e:35:78:77&lt;br /&gt;The Local Name Server has 5 entries }&lt;br /&gt;s3250:admin&amp;gt; zonecreate "greenzone", "3,21; 3,50"&lt;br /&gt;s3250:admin&amp;gt; zonecreate "redzone", "21:00:00:e0:8b:14:12:05; 4,3"&lt;br /&gt;s3250:admin&amp;gt; cfgsave&lt;/p&gt;&lt;p class="mobile-post"&gt;--&lt;/p&gt;&lt;p class="mobile-post"&gt;On the Solaris side of the fence:&lt;/p&gt;&lt;p class="mobile-post"&gt;I believe c3 and c4 is the Sun QLogic (QLC) 2342 adapter.&lt;/p&gt;&lt;p class="mobile-post"&gt;bash-3.00# cfgadm -c configure c4&lt;br /&gt;bash-3.00#&lt;/p&gt;&lt;p class="mobile-post"&gt;bash-3.00# cfgadm -alv&lt;br /&gt;Ap_Id                          Receptacle   Occupant     Condition&lt;br /&gt;Information&lt;br /&gt;When         Type         Busy     Phys_Id&lt;br /&gt;c0                             connected    configured   unknown&lt;br /&gt;bash-3.00# cfgadm -c configure c4 ; cfgadm -alv&lt;br /&gt;Ap_Id                          Receptacle   Occupant     Condition&lt;br /&gt;Information&lt;br /&gt;When         Type         Busy     Phys_Id&lt;br /&gt;c0                             connected    configured   unknown&lt;br /&gt;unavailable  scsi-bus     n        /devices/pci@8,700000/scsi@6:scsi&lt;br /&gt;c0::dsk/c0t6d0                 connected    configured   unknown&lt;br /&gt;TOSHIBA DVD-ROM SD-M1401&lt;br /&gt;unavailable  CD-ROM       n&lt;br /&gt;/devices/pci@8,700000/scsi@6:scsi::dsk/c0t6d0&lt;br /&gt;c1                             connected    configured   unknown&lt;br /&gt;unavailable  fc-private   n&lt;br /&gt;/devices/pci@8,600000/SUNW,qlc@4/fp@0,0:fc&lt;br /&gt;c1::2100000c500187f5           connected    configured   unknown&lt;br /&gt;SEAGATE ST373307FSUN72G&lt;br /&gt;unavailable  disk         y&lt;br /&gt;/devices/pci@8,600000/SUNW,qlc@4/fp@0,0:fc::2100000c500187f5&lt;br /&gt;c1::2100000c50018daa           connected    configured   unknown&lt;br /&gt;SEAGATE ST373307FSUN72G&lt;br /&gt;unavailable  disk         n&lt;br /&gt;/devices/pci@8,600000/SUNW,qlc@4/fp@0,0:fc::2100000c50018daa&lt;br /&gt;c2                             connected    unconfigured unknown&lt;br /&gt;unavailable  scsi-bus     n        /devices/pci@8,700000/scsi@6,1:scsi&lt;br /&gt;c3                             connected    unconfigured unknown&lt;br /&gt;unavailable  fc-fabric    n&lt;br /&gt;/devices/pci@8,600000/SUNW,qlc@1/fp@0,0:fc&lt;br /&gt;c4                             connected    unconfigured unknown&lt;br /&gt;unavailable  fc           n&lt;br /&gt;/devices/pci@8,600000/SUNW,qlc@1,1/fp@0,0:fc&lt;br /&gt;usb0/1                         empty        unconfigured ok&lt;br /&gt;unavailable  unknown      n        /devices/pci@8,700000/usb@5,3:1&lt;br /&gt;usb0/2                         empty        unconfigured ok&lt;br /&gt;unavailable  unknown      n        /devices/pci@8,700000/usb@5,3:2&lt;br /&gt;usb0/3                         empty        unconfigured ok&lt;br /&gt;unavailable  unknown      n        /devices/pci@8,700000/usb@5,3:3&lt;br /&gt;usb0/4                         empty        unconfigured ok&lt;br /&gt;unavailable  unknown      n        /devices/pci@8,700000/usb@5,3:4&lt;br /&gt;bash-3.00#&lt;/p&gt;&lt;p class="mobile-post"&gt;Does anyone have a good doc for attaching Fiber Channel Tape Drives to a&lt;br /&gt;brocade switch and then getting Solaris to see the devices? :)&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks!&lt;/p&gt;&lt;p class="mobile-post"&gt;Justin.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112852256758743819?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112852256758743819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112852256758743819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112852256758743819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112852256758743819'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/sun-solaris-10-on-280r-brocade-3250.html' title='Sun Solaris 10 on 280R &amp; Brocade 3250 Attachment and Sun Solaris 10 on 280R &amp; Brocade 3250 Attachment and Configuration'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112852231405610778</id><published>2005-10-05T09:25:00.000-05:00</published><updated>2005-10-05T09:25:14.083-05:00</updated><title type='text'>Disk usage monitoring</title><content type='html'>&lt;p class="mobile-post"&gt;Disk usage monitoring&lt;/p&gt;&lt;p class="mobile-post"&gt;Takeaway:&lt;br /&gt;Learn to use scripting and cron to run regular scripts that will&lt;br /&gt;monitor your disk space.&lt;/p&gt;&lt;p class="mobile-post"&gt;advertisement&lt;/p&gt;&lt;p class="mobile-post"&gt;Monitoring disk usage is a critical part of running any server. There&lt;br /&gt;is nothing worse than having a runaway process or malicious user fill&lt;br /&gt;up a filesystem only to find out about it when the boss calls to&lt;br /&gt;indicate she can't connect to or write to the server. With a little&lt;br /&gt;bit of shell scripting and cron usage, you can have a script run every&lt;br /&gt;hour or at any other interval that will indicate if you need to be&lt;br /&gt;concerned about disk space filling up.&lt;/p&gt;&lt;p class="mobile-post"&gt;The script itself is very small:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;code&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;#!/bin/sh&lt;/p&gt;&lt;p class="mobile-post"&gt;fs=`mount|egrep '^/dev'|grep -iv cdrom| awk '{print $3}'`&lt;/p&gt;&lt;p class="mobile-post"&gt;typeset -i thresh="90"&lt;/p&gt;&lt;p class="mobile-post"&gt;typeset -i warn="95"&lt;/p&gt;&lt;p class="mobile-post"&gt;for i in $fs&lt;/p&gt;&lt;p class="mobile-post"&gt;do&lt;/p&gt;&lt;p class="mobile-post"&gt;    skip=0&lt;/p&gt;&lt;p class="mobile-post"&gt;    typeset -i used=`df -k $i|tail -1|awk '{print $5}'|cut -d "%" -f 1`&lt;/p&gt;&lt;p class="mobile-post"&gt;    if [ "$used" -ge "$warn" ]; then&lt;/p&gt;&lt;p class="mobile-post"&gt;        echo "CRITICAL: filesystem $i is $used% full"&lt;/p&gt;&lt;p class="mobile-post"&gt;    fi&lt;/p&gt;&lt;p class="mobile-post"&gt;    if [ "$used" -ge "$thresh" -a "$used" -le "$warn" ]; then&lt;/p&gt;&lt;p class="mobile-post"&gt;        echo "WARNING: filesystem $i is $used %full"&lt;/p&gt;&lt;p class="mobile-post"&gt;    fi&lt;/p&gt;&lt;p class="mobile-post"&gt;done&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;/code&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;The first thing the script does is get the list of mount points from&lt;br /&gt;the mount program and filters out any mounted CD-rom drives. It also&lt;br /&gt;doesn't take into account any special file systems like /proc or /sys&lt;br /&gt;by making sure the mount point device is an actual device (by making&lt;br /&gt;sure the device name starts with /dev).&lt;/p&gt;&lt;p class="mobile-post"&gt;Next, set your threshold to something sensible, like 90% full. Adjust&lt;br /&gt;this to taste; this just generates a warning. Likewise, you set your&lt;br /&gt;critical warning value to 95%. Notice that the command typeset -i is&lt;br /&gt;used to ensure that bash treats these numbers as integers, which you&lt;br /&gt;need for comparing the values obtained from df.&lt;/p&gt;&lt;p class="mobile-post"&gt;The $used variable gets set on each filesystem with the Use% column&lt;br /&gt;output from the df tool. This is compared to your thresholds.&lt;/p&gt;&lt;p class="mobile-post"&gt;The script simply outputs the warnings to standard output. The script&lt;br /&gt;can easily be adjusted to have it send an e-mail to someone should one&lt;br /&gt;of the thresholds be breached. To have this executed every 30 minutes&lt;br /&gt;via cron, edit the system crontab to include:&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;code&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;0,30 * * * * * /usr/local/bin/diskmon.sh&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;lt;/code&amp;gt;&lt;/p&gt;&lt;p class="mobile-post"&gt;In this case, all the warnings will be sent via cron to whoever&lt;br /&gt;receives cron's output mails.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112852231405610778?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112852231405610778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112852231405610778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112852231405610778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112852231405610778'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/disk-usage-monitoring.html' title='Disk usage monitoring'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112852222412833457</id><published>2005-10-05T09:23:00.000-05:00</published><updated>2005-10-05T09:23:44.203-05:00</updated><title type='text'>FTP tutorial</title><content type='html'>&lt;p class="mobile-post"&gt;There are also some higher ports above 1024 that FTP uses to display&lt;br /&gt;files and folders. FTP just grabs those ports whenever it needs them.&lt;/p&gt;&lt;p class="mobile-post"&gt;Following is a short FTP tutorial:&lt;/p&gt;&lt;p class="mobile-post"&gt;Active FTP vs. Passive FTP, a Definitive Explanation&lt;br /&gt;Introduction&lt;br /&gt;One of the most commonly seen questions when dealing with firewalls&lt;br /&gt;and other Internet connectivity issues is the difference between&lt;br /&gt;active and passive FTP and how best to support either or both of them.&lt;br /&gt;Hopefully the following text will help to clear up some of the&lt;br /&gt;confusion over how to support FTP in a firewalled environment.&lt;/p&gt;&lt;p class="mobile-post"&gt;The Basics&lt;/p&gt;&lt;p class="mobile-post"&gt;FTP is a TCP based service exclusively. There is no UDP component to&lt;br /&gt;FTP. FTP is an unusual service in that it utilizes two ports, a 'data'&lt;br /&gt;port and a 'command' port (also known as the control port).&lt;br /&gt;Traditionally these are port 21 for the command port and port 20 for&lt;br /&gt;the data port. The confusion begins however, when we find that&lt;br /&gt;depending on the mode, the data port is not always on port 20.&lt;/p&gt;&lt;p class="mobile-post"&gt;Active FTP&lt;/p&gt;&lt;p class="mobile-post"&gt;In active mode FTP the client connects from a random unprivileged port&lt;br /&gt;(N &amp;gt; 1024) to the FTP server's command port, port 21. Then, the client&lt;br /&gt;starts listening to port N+1 and sends the FTP command PORT N+1 to the&lt;br /&gt;FTP server. The server will then connect back to the client's&lt;br /&gt;specified data port from its local data port, which is port 20.&lt;/p&gt;&lt;p class="mobile-post"&gt;From the server-side firewall's standpoint, to support active mode FTP&lt;br /&gt;the following communication channels need to be opened:&lt;/p&gt;&lt;p class="mobile-post"&gt;FTP server's port 21 from anywhere (Client initiates connection)&lt;br /&gt;FTP server's port 21 to ports &amp;gt; 1024 (Server responds to client's&lt;br /&gt;control port)&lt;br /&gt;FTP server's port 20 to ports &amp;gt; 1024 (Server initiates data connection&lt;br /&gt;to client's data port)&lt;br /&gt;FTP server's port 20 from ports &amp;gt; 1024 (Client sends ACKs to server's&lt;br /&gt;data port)&lt;/p&gt;&lt;p class="mobile-post"&gt;When drawn out, the connection appears as follows:&lt;/p&gt;&lt;p class="mobile-post"&gt;In step 1, the client's command port contacts the server's command&lt;br /&gt;port and sends the command PORT 1027. The server then sends an ACK&lt;br /&gt;back to the client's command port in step 2. In step 3 the server&lt;br /&gt;initiates a connection on its local data port to the data port the&lt;br /&gt;client specified earlier. Finally, the client sends an ACK back as&lt;br /&gt;shown in step 4.&lt;/p&gt;&lt;p class="mobile-post"&gt;The main problem with active mode FTP actually falls on the client&lt;br /&gt;side. The FTP client doesn't make the actual connection to the data&lt;br /&gt;port of the server--it simply tells the server what port it is&lt;br /&gt;listening on and the server connects back to the specified port on the&lt;br /&gt;client. From the client side firewall this appears to be an outside&lt;br /&gt;system initiating a connection to an internal client--something that&lt;br /&gt;is usually blocked.&lt;/p&gt;&lt;p class="mobile-post"&gt;Passive FTP&lt;/p&gt;&lt;p class="mobile-post"&gt;In order to resolve the issue of the server initiating the connection&lt;br /&gt;to the client a different method for FTP connections was developed.&lt;br /&gt;This was known as passive mode, or PASV, after the command used by the&lt;br /&gt;client to tell the server it is in passive mode.&lt;/p&gt;&lt;p class="mobile-post"&gt;In passive mode FTP the client initiates both connections to the&lt;br /&gt;server, solving the problem of firewalls filtering the incoming data&lt;br /&gt;port connection to the client from the server. When opening an FTP&lt;br /&gt;connection, the client opens two random unprivileged ports locally (N&lt;br /&gt;&amp;gt; 1024 and N+1). The first port contacts the server on port 21, but&lt;br /&gt;instead of then issuing a PORT command and allowing the server to&lt;br /&gt;connect back to its data port, the client will issue the PASV command.&lt;br /&gt;The result of this is that the server then opens a random unprivileged&lt;br /&gt;port (P &amp;gt; 1024) and sends the PORT P command back to the client. The&lt;br /&gt;client then initiates the connection from port N+1 to port P on the&lt;br /&gt;server to transfer data.&lt;/p&gt;&lt;p class="mobile-post"&gt;From the server-side firewall's standpoint, to support passive mode&lt;br /&gt;FTP the following communication channels need to be opened:&lt;br /&gt;FTP server's port 21 from anywhere (Client initiates connection)&lt;br /&gt;FTP server's port 21 to ports &amp;gt; 1024 (Server responds to client's&lt;br /&gt;control port)&lt;br /&gt;FTP server's ports &amp;gt; 1024 from anywhere (Client initiates data&lt;br /&gt;connection to random port specified by server)&lt;br /&gt;FTP server's ports &amp;gt; 1024 to remote ports &amp;gt; 1024 (Server sends ACKs&lt;br /&gt;(and data) to client's data port)&lt;br /&gt;When drawn, a passive mode FTP connection looks like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;In step 1, the client contacts the server on the command port and&lt;br /&gt;issues the PASV command. The server then replies in step 2 with PORT&lt;br /&gt;2024, telling the client which port it is listening to for the data&lt;br /&gt;connection. In step 3 the client then initiates the data connection&lt;br /&gt;from its data port to the specified server data port. Finally, the&lt;br /&gt;server sends back an ACK in step 4 to the client's data port.&lt;br /&gt;While passive mode FTP solves many of the problems from the client&lt;br /&gt;side, it opens up a whole range of problems on the server side. The&lt;br /&gt;biggest issue is the need to allow any remote connection to high&lt;br /&gt;numbered ports on the server. Fortunately, many FTP daemons, including&lt;br /&gt;the popular WU-FTPD allow the administrator to specify a range of&lt;br /&gt;ports which the FTP server will use.&lt;/p&gt;&lt;p class="mobile-post"&gt;The second issue involves supporting and troubleshooting clients which&lt;br /&gt;do (or do not) support passive mode. As an example, the command line&lt;br /&gt;FTP utility provided with Solaris does not support passive mode,&lt;br /&gt;necessitating a third-party FTP client, such as ncftp.&lt;br /&gt;With the massive popularity of the World Wide Web, many people prefer&lt;br /&gt;to use their web browser as an FTP client. Most browsers only support&lt;br /&gt;passive mode when accessing ftp:// URLs. This can either be good or&lt;br /&gt;bad depending on what the servers and firewalls are configured to&lt;br /&gt;support.&lt;/p&gt;&lt;p class="mobile-post"&gt;Summary&lt;br /&gt;The following chart should help admins remember how each FTP mode&lt;br /&gt;works:&lt;br /&gt; Active FTP :&lt;br /&gt;     command : client &amp;gt;1024 -&amp;gt; server 21&lt;br /&gt;     data    : client &amp;gt;1024 &amp;lt;- server 20&lt;/p&gt;&lt;p class="mobile-post"&gt; Passive FTP :&lt;br /&gt;     command : client &amp;gt;1024 -&amp;gt; server 21&lt;br /&gt;     data    : client &amp;gt;1024 -&amp;gt; server &amp;gt;1024&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112852222412833457?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112852222412833457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112852222412833457' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112852222412833457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112852222412833457'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/10/ftp-tutorial.html' title='FTP tutorial'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690382804294535</id><published>2005-09-16T15:50:00.000-05:00</published><updated>2005-09-16T15:50:28.043-05:00</updated><title type='text'>gnu date increment by 1</title><content type='html'>&lt;p class="mobile-post"&gt;&amp;gt; Hi&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; With gnu date, how can I get the list of dates continuosly between a&lt;br /&gt;&amp;gt; specific period say for example apr 2,2005 to july 31,2005 in the&lt;br /&gt;&amp;gt; format %Y/%m/%d&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; command should be in the form of&lt;br /&gt;&amp;gt; ./script -d1 04/02/2005 -d2 06/31/2005&lt;/p&gt;&lt;p class="mobile-post"&gt;ITYM 07/31/2005&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; 2005/04/02&lt;br /&gt;&amp;gt; 2005/04/03&lt;br /&gt;&amp;gt; 2005/04/04&lt;br /&gt;&amp;gt; ..&lt;br /&gt;&amp;gt; ..&lt;br /&gt;&amp;gt; ..&lt;br /&gt;&amp;gt; 2005/07/29&lt;br /&gt;&amp;gt; 2005/07/30/&lt;br /&gt;&amp;gt; 2005/07/30&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Help is very much appreciated.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; Thanks,&lt;/p&gt;&lt;p class="mobile-post"&gt;Something like this should work:&lt;/p&gt;&lt;p class="mobile-post"&gt;now=`date +"%Y/%m/%d" -d "04/02/2005"`&lt;br /&gt;end=`date +"%Y/%m/%d" -d "07/31/2005"`&lt;/p&gt;&lt;p class="mobile-post"&gt;while [ "$now" != "$end" ]&lt;br /&gt;do&lt;br /&gt;        now=`date +"%Y/%m/%d" -d "$now + 1 day"`&lt;br /&gt;        echo "$now"&lt;br /&gt;done&lt;/p&gt;&lt;p class="mobile-post"&gt;Note that date handles some invalid dates like "06/31/2005" by trying to&lt;br /&gt;map them to a close real date.&lt;/p&gt;&lt;p class="mobile-post"&gt;Regards,&lt;/p&gt;&lt;p class="mobile-post"&gt;        Ed.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690382804294535?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690382804294535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690382804294535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690382804294535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690382804294535'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/gnu-date-increment-by-1.html' title='gnu date increment by 1'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690377647014495</id><published>2005-09-16T15:49:00.000-05:00</published><updated>2005-09-16T15:49:36.470-05:00</updated><title type='text'>sets network nic parameters value</title><content type='html'>&lt;p class="mobile-post"&gt;Bhushan &amp;lt;bhushan.li...@gmail.com&amp;gt; wrote:&lt;br /&gt;&amp;gt; Add following line in /etc/system file&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; set bge:bge_adv_autoneg_cap=0&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; This sets value to permannetly even after reboot&lt;/p&gt;&lt;p class="mobile-post"&gt;That's the most inflexible way of doing it:&lt;/p&gt;&lt;p class="mobile-post"&gt;1. It requires a reboot to activate&lt;br /&gt;2. It sets the value on all instances of the driver&lt;/p&gt;&lt;p class="mobile-post"&gt;You have more flexibility with ndd:&lt;/p&gt;&lt;p class="mobile-post"&gt;ndd -set /dev/bge0 adv_autoneg_cap 0&lt;/p&gt;&lt;p class="mobile-post"&gt;I hope Sun will make a consistent interface for all network drivers one&lt;br /&gt;day. The situation today is frustating.&lt;/p&gt;&lt;p class="mobile-post"&gt;- some drivers have a single /dev entry, you have to set instance first&lt;br /&gt;  then the parameter:&lt;br /&gt;        ndd -set /dev/qfe instance 3&lt;br /&gt;        ndd -set /dev/qfe adv_autoneg_cap 0&lt;br /&gt;- others (like bge) create a separate /dev entry for each instance:&lt;br /&gt;        ndd -set /dev/bge3 adv_autoneg_cap 0&lt;br /&gt;- some drivers use completely different names&lt;br /&gt;- some drivers (mostly x86) don't have a ndd interface at all.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690377647014495?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690377647014495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690377647014495' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690377647014495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690377647014495'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/sets-network-nic-parameters-value.html' title='sets network nic parameters value'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690370765423179</id><published>2005-09-16T15:48:00.000-05:00</published><updated>2005-09-16T15:48:27.656-05:00</updated><title type='text'>ether address on multi-port cards</title><content type='html'>&lt;p class="mobile-post"&gt;ether address on multi-port cards&lt;/p&gt;&lt;p class="mobile-post"&gt;Why is the ethernet address the same for every port on a multiport&lt;br /&gt;ethernet card, and what are the implied consequences of this?&lt;br /&gt;Specifically the 4 bge interfaces in a V210, or the 4 ce interfaces on a&lt;br /&gt;quad gigaswift.&lt;/p&gt;&lt;p class="mobile-post"&gt;The system gets this hardware address from the EEPROM not from the&lt;br /&gt;ethernet hardware.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; The system gets this hardware address from the EEPROM not from the&lt;br /&gt;&amp;gt; ethernet hardware.&lt;/p&gt;&lt;p class="mobile-post"&gt;not default on the v210, as it has:&lt;br /&gt;local-mac-address?=true&lt;br /&gt;try # eeprom local-mac-address?=true&lt;br /&gt;if you want quads to have different addresses.&lt;/p&gt;&lt;p class="mobile-post"&gt;v210: # ifconfig -a&lt;br /&gt;lo0: flags=1000849&amp;lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4&amp;gt; mtu 8232 index 1&lt;br /&gt;         inet 127.0.0.1 netmask ff000000&lt;br /&gt;bge0: flags=1000843&amp;lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&amp;gt; mtu 1500 index 2&lt;br /&gt;         inet 137.58.166.251 netmask ffffff00 broadcast 137.58.166.255&lt;br /&gt;         ether 0:3:ba:da:a8:8f&lt;br /&gt;bge1: flags=1000843&amp;lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&amp;gt; mtu 1500 index 3&lt;br /&gt;         inet 137.58.167.251 netmask ffffff00 broadcast 137.58.167.255&lt;br /&gt;         ether 0:3:ba:da:a8:90&lt;br /&gt;bge2: flags=1000843&amp;lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&amp;gt; mtu 1500 index 4&lt;br /&gt;         inet 137.58.168.251 netmask ffffff00 broadcast 137.58.168.255&lt;br /&gt;         ether 0:3:ba:da:a8:91&lt;br /&gt;bge3: flags=1000843&amp;lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&amp;gt; mtu 1500 index 5&lt;br /&gt;         inet 137.58.169.251 netmask ffffff00 broadcast 137.58.169.255&lt;br /&gt;         ether 0:3:ba:da:a8:92&lt;/p&gt;&lt;p class="mobile-post"&gt;/jörgen&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;Why is the ethernet address the same for every port on a multiport&lt;br /&gt;&amp;gt;ethernet card, and what are the implied consequences of this?&lt;br /&gt;&amp;gt;Specifically the 4 bge interfaces in a V210, or the 4 ce interfaces on a&lt;br /&gt;&amp;gt;quad gigaswift.&lt;/p&gt;&lt;p class="mobile-post"&gt;That's because the PROM programs them that way; there are no supposed&lt;br /&gt;consequences as generally you don't have all cards in the same&lt;br /&gt;domain.&lt;/p&gt;&lt;p class="mobile-post"&gt;But all of our current interfaces have on-board private mac addresses&lt;br /&gt;you can use by setting:&lt;/p&gt;&lt;p class="mobile-post"&gt;eeprom local-mac-address?=true&lt;/p&gt;&lt;p class="mobile-post"&gt;and then rebooting.&lt;/p&gt;&lt;p class="mobile-post"&gt;The qfe cards have a "local-mac-address" property (and from the&lt;br /&gt;looks of it, so do many other cards) which reveals their&lt;br /&gt;programmed mac-address even if booted with local-mac-address?=false&lt;/p&gt;&lt;p class="mobile-post"&gt; prtconf -vp | grep local&lt;br /&gt;        local-mac-address?:  'true'&lt;br /&gt;                    local-mac-address:  0003ba30.c0f4&lt;br /&gt;                    local-mac-address:  0003ba30.c0f5&lt;br /&gt;                    local-mac-address:  0003ba30.c0f6&lt;br /&gt;                    local-mac-address:  0003ba30.c0f7&lt;br /&gt;                    local-mac-address:  080020a9.f67e&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690370765423179?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690370765423179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690370765423179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690370765423179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690370765423179'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/ether-address-on-multi-port-cards.html' title='ether address on multi-port cards'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690364379232445</id><published>2005-09-16T15:47:00.000-05:00</published><updated>2005-09-16T15:47:23.793-05:00</updated><title type='text'>Solaris 8 hung on boot.</title><content type='html'>&lt;p class="mobile-post"&gt;RE: Solaris 8 hung on boot.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you want to determine what is is hanging on, you can:&lt;br /&gt;- boot from CD&lt;br /&gt;- mount the root FS&lt;br /&gt;- edit /etc/rc2&lt;/p&gt;&lt;p class="mobile-post"&gt;find the section that looks like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;for f in /etc/rc2.d/S*; do&lt;br /&gt;if [ -s $f ]; then&lt;br /&gt;case $f in&lt;br /&gt;*.sh) . $f ;;&lt;br /&gt;*) /sbin/sh $f start ;;&lt;br /&gt;esac&lt;br /&gt;fi&lt;br /&gt;done&lt;/p&gt;&lt;p class="mobile-post"&gt;and change the line with 'start' on it to look like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;*) /sbin/sh -x $f start ;;&lt;/p&gt;&lt;p class="mobile-post"&gt;- unmount the FS, and reboot.&lt;/p&gt;&lt;p class="mobile-post"&gt;On the next start up, you will see a verbose output of what is actually&lt;br /&gt;running. You should then be able to determine what line the startup is&lt;br /&gt;hanging on. That will give us/you a better idea of what's wrong. Often, it's&lt;br /&gt;network related, like it can't resolve a name or address encountered in a&lt;br /&gt;config file somewhere.&lt;/p&gt;&lt;p class="mobile-post"&gt;Brian&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690364379232445?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690364379232445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690364379232445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690364379232445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690364379232445'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/solaris-8-hung-on-boot.html' title='Solaris 8 hung on boot.'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690361191931287</id><published>2005-09-16T15:46:00.001-05:00</published><updated>2005-09-16T15:46:51.920-05:00</updated><title type='text'>delete a file on logging UFS</title><content type='html'>&lt;p class="mobile-post"&gt;When you delete a file on logging UFS, the file and its allocated&lt;br /&gt;resources are not freed immediately, what happens is that the&lt;br /&gt;directory entry gets zapped and the inode is put onto a so called&lt;br /&gt;delete queue and the delete thread will run from time to time&lt;br /&gt;to drain the queue (also on umount and lockfs -f requests).&lt;/p&gt;&lt;p class="mobile-post"&gt;when the delete queue gets drained, the inode and its allocated&lt;br /&gt;resources are freed, this is done within a transaction in case&lt;br /&gt;of logging and as part of this delete transaction the allocated&lt;br /&gt;blocks are freed as well, but are not immediately available&lt;br /&gt;for re-use as long as the whole transaction is not committed&lt;br /&gt;to the log.&lt;/p&gt;&lt;p class="mobile-post"&gt;this does not mean that a log roll must happen to be able&lt;br /&gt;to re-use those blocks, committing the entire transaction&lt;br /&gt;to the log makes them available for new allocations.&lt;/p&gt;&lt;p class="mobile-post"&gt;if you run out of space UFS will detect a possible ENOSPC failure&lt;br /&gt;and will forcibly drain the delete queue in this case to&lt;br /&gt;free up any resources still lurking around in the delete queue&lt;br /&gt;and re-do the allocation attempt before eventually&lt;br /&gt;failing with ENOSPC.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690361191931287?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690361191931287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690361191931287' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690361191931287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690361191931287'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/delete-file-on-logging-ufs.html' title='delete a file on logging UFS'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690358623916808</id><published>2005-09-16T15:46:00.000-05:00</published><updated>2005-09-16T15:46:26.240-05:00</updated><title type='text'>cloning hard disk to new, bigger ones...</title><content type='html'>&lt;p class="mobile-post"&gt;Fixed font - Proportional font&lt;/p&gt;&lt;p class="mobile-post"&gt;cloning hard disk to new, bigger ones...&lt;/p&gt;&lt;p class="mobile-post"&gt;Subject: cloning hard disk to new, bigger ones...&lt;/p&gt;&lt;p class="mobile-post"&gt;I'm using g4u (basically a clever script which the heart is dd) to clone old&lt;br /&gt;hard disks containing Interactive Unix (sigh) to  new, bigger one.&lt;/p&gt;&lt;p class="mobile-post"&gt;My question is : because the geometry of the disk differs, at least for the&lt;br /&gt;cylinder count, I feel that I should adjust some parameters to reflect the&lt;br /&gt;disk change. The free size is not an issue, but I would like to do things as&lt;br /&gt;best as possible...&lt;/p&gt;&lt;p class="mobile-post"&gt;I suspect I should modify the Partitions file, but how ? Is it possible to&lt;br /&gt;use sysadmin to do that ?&lt;/p&gt;&lt;p class="mobile-post"&gt;Thanks&lt;/p&gt;&lt;p class="mobile-post"&gt;Matthieu&lt;/p&gt;&lt;p class="mobile-post"&gt;Reply&lt;br /&gt;	 &lt;/p&gt;&lt;p class="mobile-post"&gt;	&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; I'm using g4u (basically a clever script which the heart is dd) to clone old&lt;br /&gt;&amp;gt; hard disks containing Interactive Unix (sigh) to  new, bigger one.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; My question is : because the geometry of the disk differs, at least for the&lt;br /&gt;&amp;gt; cylinder count, I feel that I should adjust some parameters to reflect the&lt;br /&gt;&amp;gt; disk change. The free size is not an issue, but I would like to do things as&lt;br /&gt;&amp;gt; best as possible...&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; I suspect I should modify the Partitions file, but how ? Is it possible to&lt;br /&gt;&amp;gt; use sysadmin to do that ?&lt;/p&gt;&lt;p class="mobile-post"&gt;   classic method is with tar.  boot up into single-user-mode, then&lt;br /&gt;initialize the new disk with your partitions.  Then for each partition&lt;br /&gt;you want to move over, mount it (say in /mnt), and do something like this:&lt;/p&gt;&lt;p class="mobile-post"&gt;   # cd /mnt&lt;br /&gt;   # tar cf - /var | tar xfpB -&lt;/p&gt;&lt;p class="mobile-post"&gt;   That would have moved your var onto the new partition.&lt;/p&gt;&lt;p class="mobile-post"&gt;   After you've moved everything over, don't forget to make the new disk&lt;br /&gt;bootable.  On Solaris, there is a command would be 'installboot',&lt;br /&gt;hopefuly IU had something similar.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690358623916808?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690358623916808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690358623916808' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690358623916808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690358623916808'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/cloning-hard-disk-to-new-bigger-ones.html' title='cloning hard disk to new, bigger ones...'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690354407586587</id><published>2005-09-16T15:45:00.000-05:00</published><updated>2005-09-16T15:45:44.076-05:00</updated><title type='text'>Terminal Characters</title><content type='html'>&lt;p class="mobile-post"&gt;stty erase ^H&lt;/p&gt;&lt;p class="mobile-post"&gt;tells the terminal driver upon which character it should perform&lt;br /&gt;the "bacward erase character" operation in its built-in line&lt;br /&gt;editor.&lt;/p&gt;&lt;p class="mobile-post"&gt;That built-in line editor is only used when the terminal is in&lt;br /&gt;canonical mode, ie when the terminal sends the data to the&lt;br /&gt;reading application only when you press enter.&lt;/p&gt;&lt;p class="mobile-post"&gt;Typically, neither bash nor vim use that canonical mode as they&lt;br /&gt;need to be able to get each typed character as soon as they are&lt;br /&gt;typed. But vim may want to query the terminal driver to find out&lt;br /&gt;what character is supposed to be the backspace character (if&lt;br /&gt;it's good for the terminal builtin editor, then it will be good&lt;br /&gt;for vim).&lt;/p&gt;&lt;p class="mobile-post"&gt;bash doesn't care. It treats both ^? and ^H as a backspace&lt;br /&gt;character.&lt;/p&gt;&lt;p class="mobile-post"&gt;What I think is that when you press &amp;lt;Backspace&amp;gt;, you get a ^?&lt;br /&gt;character. So, you should instruct your terminal driver (and&lt;br /&gt;indirectly vim) that "erase" is ^? with stty erase '^?'.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;    Now I am using an application, it has its shell, in pressing UP&lt;br /&gt;&amp;gt; arrow key, I see ^]]A, I look through manpage of stty, I do not see how&lt;br /&gt;&amp;gt; to redefine UP arrow key.&lt;/p&gt;&lt;p class="mobile-post"&gt;stty is not to redefine keys, it's to tell the terminal driver&lt;br /&gt;on which received character it should perform its special&lt;br /&gt;operations. It works only for single characters. ^[[A is a&lt;br /&gt;sequence of 3 characters.&lt;/p&gt;&lt;p class="mobile-post"&gt;And the builtin terminal line editor has few operations you can&lt;br /&gt;map a key to, mainly "backward erase character", (^H, ^?)&lt;br /&gt;"backward erase word" (^W), "kill line" (^U), "interrupt" (^C),&lt;br /&gt;"quit" (^\)...&lt;/p&gt;&lt;p class="mobile-post"&gt;If you need a more complex line editor, then you need to&lt;br /&gt;implement one just as bash (readline) or vim do.&lt;br /&gt;That means, leave the canon mode stty -icanon. Tell the terminal&lt;br /&gt;you want to receive characters as soon as they are typed: stty&lt;br /&gt;min 1 time 0, (you may want to disable the signal keys as well&lt;br /&gt;stty -isig, or the automatic conversion of CR into NL stty&lt;br /&gt;-icrnl... stty raw may even be what you want) read characters&lt;br /&gt;one at a time (c=$(dd bs=1 count=1 2&amp;gt; /dev/null)) then do the&lt;br /&gt;processing for each character: if it's a ^[, then read the next&lt;br /&gt;one, then if it's a "[", read the next one, then if it's a "A"&lt;br /&gt;then perform whatever you want to be done on the pressing of the&lt;br /&gt;Up key.&lt;/p&gt;&lt;p class="mobile-post"&gt;-- &lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;&amp;gt; Hi,&lt;br /&gt;&amp;gt;&amp;gt;   I am using BASH 2.05 on Red  Hat Linux, I have the following command&lt;br /&gt;&amp;gt;&amp;gt; in .bashrc,&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt;&amp;gt;   stty erase "^H"&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; The linux console and xterm both produce a DEL character (^?) when&lt;br /&gt;&amp;gt; you hit the big backspace key.&lt;/p&gt;&lt;p class="mobile-post"&gt;[...]&lt;/p&gt;&lt;p class="mobile-post"&gt;For xterm, it depends on the implementation on the default value&lt;br /&gt;of the terminal driver and on the configuration.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690354407586587?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690354407586587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690354407586587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690354407586587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690354407586587'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/terminal-characters.html' title='Terminal Characters'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690349356293896</id><published>2005-09-16T15:44:00.000-05:00</published><updated>2005-09-16T15:44:53.566-05:00</updated><title type='text'>find comand</title><content type='html'>&lt;p class="mobile-post"&gt;When you use a pipeline to run vi like this, it's stdin isn't the&lt;br /&gt;terminal any more. That's what "Input not from terminal" means. The&lt;br /&gt;input is coming from the pipe instead.&lt;/p&gt;&lt;p class="mobile-post"&gt;Try&lt;/p&gt;&lt;p class="mobile-post"&gt;vi `find . -name config.xml`&lt;/p&gt;&lt;p class="mobile-post"&gt;or&lt;/p&gt;&lt;p class="mobile-post"&gt;find . -name config.xml -exec vi {} \;&lt;/p&gt;&lt;p class="mobile-post"&gt;or&lt;/p&gt;&lt;p class="mobile-post"&gt;find . -name config.xml | while read f;do vi $f;done&lt;/p&gt;&lt;p class="mobile-post"&gt;Joe &lt;/p&gt;&lt;p class="mobile-post"&gt;uppose we want to compress all .txt&lt;br /&gt;files in an entire subtree. Simple enough, using what we've learned&lt;br /&gt;before:&lt;/p&gt;&lt;p class="mobile-post"&gt;find /path/to/tree -name '*.txt' | xargs gzip&lt;/p&gt;&lt;p class="mobile-post"&gt;Another extremely useful way find can sift through files is to find&lt;br /&gt;files created or modified recently. Often you want to know what has&lt;br /&gt;changed recently. For instance, to list all of the files in your home&lt;br /&gt;directory that changed within the past two days hours:&lt;/p&gt;&lt;p class="mobile-post"&gt;find ~/ -mtime -2&lt;/p&gt;&lt;p class="mobile-post"&gt;To find the files that haven't been modified in the past two days, you&lt;br /&gt;can change the -mtime parameter:&lt;/p&gt;&lt;p class="mobile-post"&gt;find ~/ -mtime +2&lt;/p&gt;&lt;p class="mobile-post"&gt;You can also select files by the last time they were accessed (atime)&lt;br /&gt;or created (ctime). Like bash's test command, find has a wide variety&lt;br /&gt;of options; reading the manpage is advised (not just for reference,&lt;br /&gt;either; it will give you an idea of the flexibility of this peculiar&lt;br /&gt;command).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690349356293896?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690349356293896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690349356293896' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690349356293896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690349356293896'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/find-comand.html' title='find comand'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690343018936712</id><published>2005-09-16T15:43:00.000-05:00</published><updated>2005-09-16T15:43:50.190-05:00</updated><title type='text'>ownership for all the files pkgchk</title><content type='html'>&lt;p class="mobile-post"&gt;&amp;gt; All,&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; By mistake someone changed the ownership for all the files under /&lt;br /&gt;&amp;gt; etc, now no&lt;br /&gt;&amp;gt; one can access that system anymore.&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Is there anyway to recover /etc?&lt;/p&gt;&lt;p class="mobile-post"&gt;Yes.&lt;/p&gt;&lt;p class="mobile-post"&gt;What you're looking for is the pkgchk command.&lt;/p&gt;&lt;p class="mobile-post"&gt;First, find out what packages reference /etc:&lt;/p&gt;&lt;p class="mobile-post"&gt;pkgchk -l -p /etc&lt;/p&gt;&lt;p class="mobile-post"&gt;Then take each package listed in that output and run:&lt;/p&gt;&lt;p class="mobile-post"&gt;pkgchk -af &amp;lt;pacckage1&amp;gt; &amp;lt;package2&amp;gt; ... and so on.&lt;/p&gt;&lt;p class="mobile-post"&gt;/dale&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690343018936712?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690343018936712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690343018936712' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690343018936712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690343018936712'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/ownership-for-all-files-pkgchk.html' title='ownership for all the files pkgchk'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690334671245847</id><published>2005-09-16T15:42:00.000-05:00</published><updated>2005-09-16T15:42:26.713-05:00</updated><title type='text'>Setting Up the Solaris OS to Work with Cable Modems</title><content type='html'>&lt;p class="mobile-post"&gt;Setting Up the Solaris OS to Work with Cable Modems&lt;/p&gt;&lt;p class="mobile-post"&gt;Introduction&lt;/p&gt;&lt;p class="mobile-post"&gt;This tip is written to help you configure a machine running the&lt;br /&gt;Solaris OS as DHCP client to work with DSL cable modem Dynamic Host&lt;br /&gt;Configuration Protocol (DHCP). DHCP provides the IP address, default&lt;br /&gt;route, and name servers. You need Solaris 2.6 or higher for DHCP.&lt;br /&gt;Setup Procedure&lt;/p&gt;&lt;p class="mobile-post"&gt;The following steps are required as root:&lt;/p&gt;&lt;p class="mobile-post"&gt;   1.&lt;/p&gt;&lt;p class="mobile-post"&gt;touch /etc/dhcp.hme0&lt;/p&gt;&lt;p class="mobile-post"&gt;      Replace the .hme0 with whatever the Ethernet interface for your&lt;br /&gt;system might be, as shown by ifconfig -a.&lt;br /&gt;   2.&lt;/p&gt;&lt;p class="mobile-post"&gt;cp /dev/null /etc/hostname.hme0&lt;/p&gt;&lt;p class="mobile-post"&gt;      or&lt;/p&gt;&lt;p class="mobile-post"&gt; &amp;gt; /etc/hostname.hme0&lt;/p&gt;&lt;p class="mobile-post"&gt;      Important note: You need to make sure that this file is empty --&lt;br /&gt;otherwise, the DHCP configuration won't work.&lt;br /&gt;   3. Make sure that /etc/inet/hosts only has one line in it, the one&lt;br /&gt;containing 127.0.0.1 localhost. Any other lines will be ignored, and&lt;br /&gt;any additional necessary lines will be added by the DHCP client at&lt;br /&gt;boot time.&lt;br /&gt;   4.&lt;/p&gt;&lt;p class="mobile-post"&gt;touch /etc/notrouter&lt;/p&gt;&lt;p class="mobile-post"&gt;      This creates a file to tell the Solaris OS that your system will&lt;br /&gt;not be performing routing or packet-forwarding duties. If this file is&lt;br /&gt;already there, leave it the way it is.&lt;br /&gt;   5.&lt;/p&gt;&lt;p class="mobile-post"&gt;cp /dev/null /etc/defaultrouter&lt;/p&gt;&lt;p class="mobile-post"&gt;      Since the DHCP client software will automatically put the needed&lt;br /&gt;entries in this file, we just need to make sure that it exists as an&lt;br /&gt;empty file. If it already exists, rename it and create the empty file&lt;br /&gt;in its place.&lt;br /&gt;   6.&lt;/p&gt;&lt;p class="mobile-post"&gt;cp /dev/null /etc/resolv.conf&lt;/p&gt;&lt;p class="mobile-post"&gt;      The DHCP client will add the necessary entries. If you already&lt;br /&gt;have this file, rename it and create an empty file in its place.&lt;br /&gt;   7. Check the file /etc/nsswitch.conf and look at the hosts: line.&lt;br /&gt;      Make sure that it reads hosts: files dns.&lt;/p&gt;&lt;p class="mobile-post"&gt;This will enable your machine to resolve addresses using DNS, the&lt;br /&gt;Domain Name System. Reboot your machine. While booting, you will see&lt;br /&gt;status messages about the DHCP client; this is normal. Once the&lt;br /&gt;machine is booted, type the ifconfig -a command. You will see output&lt;br /&gt;similar to this:&lt;/p&gt;&lt;p class="mobile-post"&gt;lo0: flags=1000849&amp;lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4&amp;gt; &lt;br /&gt;     mtu 8232 index 1 inet 127.0.0.1 netmask ff000000&lt;br /&gt;hme0: flags=1000843&amp;lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&amp;gt;&lt;br /&gt;      mtu 1500 index  inet 192.168.1.35 netmask ffffff80&lt;br /&gt;      broadcast 192.168.1.255 ether 8:0:20:d2:15:2f&lt;/p&gt;&lt;p class="mobile-post"&gt;Conclusion&lt;/p&gt;&lt;p class="mobile-post"&gt;If you have followed all my instructions, the Solaris machine is ready&lt;br /&gt;to get its networking information by means of DHCP.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690334671245847?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690334671245847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690334671245847' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690334671245847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690334671245847'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/setting-up-solaris-os-to-work-with.html' title='Setting Up the Solaris OS to Work with Cable Modems'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690327340915633</id><published>2005-09-16T15:41:00.000-05:00</published><updated>2005-09-16T15:41:13.410-05:00</updated><title type='text'>debug a process</title><content type='html'>&lt;p class="mobile-post"&gt;Thanks everyone. Again I had lots of replies, and I will copy the the&lt;br /&gt;most complete answers below:&lt;/p&gt;&lt;p class="mobile-post"&gt;[Ric Anderson]&lt;/p&gt;&lt;p class="mobile-post"&gt;There are many&lt;br /&gt;        truss -p pid&lt;br /&gt;shows what system calls a process is making.&lt;/p&gt;&lt;p class="mobile-post"&gt;        ps -fp pid&lt;br /&gt;shows general status&lt;/p&gt;&lt;p class="mobile-post"&gt;        pldd pid&lt;br /&gt;shows what dynamic libraries (.so) files a process is using.&lt;/p&gt;&lt;p class="mobile-post"&gt;In addition, there are a number of tools in /usr/proc/bin&lt;br /&gt;that let you look at the actions of a process.&lt;/p&gt;&lt;p class="mobile-post"&gt;If you have lsof installed, then&lt;br /&gt;        lsof -p pid&lt;br /&gt;will show open files for a process.&lt;/p&gt;&lt;p class="mobile-post"&gt;Some debuggers (e.g., gdb) can also be used with a pid&lt;br /&gt;to interactively debug a running process.&lt;/p&gt;&lt;p class="mobile-post"&gt;[Jonathan Birchall]&lt;/p&gt;&lt;p class="mobile-post"&gt;It all depends on how deep you wish to go and what version of Solaris&lt;br /&gt;you are using.&lt;/p&gt;&lt;p class="mobile-post"&gt;Truss -wall -vall -fall -o&amp;lt;outputfilename&amp;gt; -p &amp;lt;PID&amp;gt; will give you&lt;br /&gt;details of system calls etc. see Man truss&lt;/p&gt;&lt;p class="mobile-post"&gt;You can also use the p commands see man pfiles , ptree , pmap etc.&lt;/p&gt;&lt;p class="mobile-post"&gt;In Solaris 10 you can also now use dtrace for a detailed view of what&lt;br /&gt;the process is doing.&lt;/p&gt;&lt;p class="mobile-post"&gt;Using a mixture of the about should give you a fairly detailed view of&lt;br /&gt;what is happening.&lt;/p&gt;&lt;p class="mobile-post"&gt;You can also use adb (debugger).... which also pointed me to mdb&lt;br /&gt;(solaris 9)&lt;/p&gt;&lt;p class="mobile-post"&gt;With Ric's help, using lsof, we managed to track down the problem.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690327340915633?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690327340915633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690327340915633' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690327340915633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690327340915633'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/debug-process.html' title='debug a process'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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-12965617.post-112690323318004301</id><published>2005-09-16T15:40:00.000-05:00</published><updated>2005-09-16T15:40:33.186-05:00</updated><title type='text'>swap</title><content type='html'>&lt;p class="mobile-post"&gt;Jason Stout wrote...&lt;br /&gt;&amp;gt; The space problem is a good guess but I don't think thats it. The&lt;br /&gt;&amp;gt; OpenBSD box has PLENTY of storage space free. The Solaris box is&lt;br /&gt;&amp;gt; only running about 50% on the disk I'm ftp'ing to and /tmp is&lt;br /&gt;&amp;gt; fine. df -k doesn't show me swap space so maybe that's it. I&lt;br /&gt;&amp;gt; don't even know how to check swap space usage. Any help?&lt;/p&gt;&lt;p class="mobile-post"&gt;solaris$ swap -l&lt;br /&gt;swapfile dev swaplo blocks free&lt;br /&gt;/dev/dsk/c0t3d0s1 32,25 8 196552 182328&lt;/p&gt;&lt;p class="mobile-post"&gt;OR&lt;/p&gt;&lt;p class="mobile-post"&gt;solaris$ swap -s&lt;br /&gt;total: 10208k bytes allocated + 3720k reserved = 13928k used, 169840k available&lt;/p&gt;&lt;p class="mobile-post"&gt;Check to make sure that /tmp is being mounted as a swap filesystem.&lt;/p&gt;&lt;p class="mobile-post"&gt;solaris$ grep tmp /etc/vfstab&lt;br /&gt;swap - /tmp tmpfs - yes -&lt;/p&gt;&lt;p class="mobile-post"&gt;If not, make sure that you're ftp'ing the file to a filesystem&lt;br /&gt;that has enough free space...unless you have more than 900mb of swap&lt;br /&gt;space, and you're ftp'ing a 900mb file to /tmp....that would explain&lt;br /&gt;the problem.&lt;/p&gt;&lt;p class="mobile-post"&gt;&amp;gt; The space problem is a good guess but I don't think thats it. The&lt;br /&gt;&amp;gt; OpenBSD box has PLENTY of storage space free. The Solaris box is&lt;br /&gt;&amp;gt; only running about 50% on the disk I'm ftp'ing to and /tmp is&lt;br /&gt;&amp;gt; fine. df -k doesn't show me swap space so maybe that's it. I&lt;br /&gt;&amp;gt; don't even know how to check swap space usage. Any help?&lt;/p&gt;&lt;p class="mobile-post"&gt;swapctl -l ; see swapctl(8)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12965617-112690323318004301?l=brahmarockz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://brahmarockz.blogspot.com/feeds/112690323318004301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12965617&amp;postID=112690323318004301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690323318004301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12965617/posts/default/112690323318004301'/><link rel='alternate' type='text/html' href='http://brahmarockz.blogspot.com/2005/09/swap.html' title='swap'/><author><name>Brahma</name><uri>http://www.blogger.com/profile/02993992522971190490</uri><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>
