From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Wessely Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Boot problem True64 5.0a Date: Tue, 24 Jan 2006 09:01:03 +0100 Organization: University Graz Message-ID: <43D5DEBF.8050509@uni-graz.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138089699 1273 80.91.229.2 (24 Jan 2006 08:01:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2006 08:01:39 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jan 24 09:01:35 2006 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1F1J77-0001eb-3p for gotm-tru64-unix-managers@gmane.org; Tue, 24 Jan 2006 09:01:17 +0100 Original-Received: (qmail 30369 invoked by uid 49509); 24 Jan 2006 08:01:01 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 30359 invoked by uid 49501); 24 Jan 2006 08:01:01 -0000 Original-Received: from 160.91.4.110 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.110):SA:0(-2.6/5.0):. Processed in 1.064871 secs); 24 Jan 2006 08:01:01 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute3.ornl.gov (160.91.4.110) by sws1.ornl.gov with SMTP; 24 Jan 2006 08:01:00 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0ITL00JG57LNR0@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 24 Jan 2006 03:00:59 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) id <0ITL000027LCS6@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 24 Jan 2006 03:00:59 -0500 (EST) Original-Received: from herakles.kfunigraz.ac.at (HERAKLES.kfunigraz.ac.at [143.50.13.36]) by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0ITL0002E7LBIX@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 24 Jan 2006 03:00:48 -0500 (EST) Original-Received: from [143.50.105.12] ([143.50.105.12]) by herakles.kfunigraz.ac.at with Microsoft SMTPSVC(5.0.2195.5329); Tue, 24 Jan 2006 09:00:46 +0100 Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: christian.wessely@uni-graz.at X-Accept-Language: de-DE, de, en-us, en User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,INFO_TLD autolearn=no version=3.1.0 X-OriginalArrivalTime: 24 Jan 2006 08:00:46.0376 (UTC) FILETIME=[48312A80:01C620BC] Xref: news.gmane.org gmane.os.tru64.managers:8744 Archived-At: Hello Admin wizards, as always the list prooved to be very handy in every case :o) First, the list of contributors to the solution (in order of appearance): BL Venkatesh, Johan Brusche, Derek Gatherer, Reiner Dassing, Peter Stern, Tom Blinn (still with us - whooopeee!), Howard Arnold, Brad Bell, Denise McCracken, Roberto Mackun and John Lanier. Thank you all - I realize that there are the same names most of the times that help me out, making me think about a world tru64-unix-managers-mailinglist meeting sometime ... where I would have to pay a lot of drinks for you all ;o) Consider yourself warned, this is a LONG summary ! Solution: Several ways were suggested, mainly proposing to use the unused dsk3c as additional swap space: --------------------------------------------------- Johan Brusche: rmfsets and rmfdmn filesets and domain from dsk3c add them to rootdg use, "volassist make layout=mirror" to create swapvol2 and add swapvol2 to the swap as indicated earlier: swapon /dev/disk/dsk3c If the useage that partition is not markes Swap, then disklabel -sF Swap dsk3c. Finally for the next reboot add this swapdevice into /etc/sysconfigtab. vm: swapdevice = /dev/disk/dsk0b,/dev/disk/dsk3c ------------------------------------------------------ I refrained from this, however, since I found the unused partition h on dsk0, so I rather wanted to make this unused space useful and add it to swap. Tom Blinn: Using normal LSM commands (I never use LSM myself, so you are on your own here) create a basic "disk" from unused space. Then just use the "swapon" command to add it as swap. If you want it to be added "permanently" you need to edit /etc/sysconfigtab (no longer /etc/fstab, that was V4.0x) to add the swap device to the list of swap devices. Then monitor the system. Being out of swap isn't a good thing and it can cause critical system processes to fail, in the normal state of affairs the kernel will survive, so this might not explain why the system was shut down, but also it might, you can never know for sure what things failing privileged processes might do unless you read all their code very carefully. ------------------------------------------------------- Peter Stern and Denise McCracken pointed out that it might be appropriate to change the swap policy of the system. Here the longer answer by Peter Stern: As far as I remember, a paging file has to be a block special device (e.g. /dev/rz3b) and not an AdvFS fileset. You might check the man pages for swapon, the command for adding a swap file. Also, note that: There are two strategies for swap space allocation: immediate mode and deferred or over-commitment mode. The two strategies differ in the point in time at which swap space is allocated. If immediate mode is used, swap space is allocated when modifiable virtual address space is created. If deferred mode is used, swap space is not allocated until the system needs to write a modified virtual page to swap space. Immediate mode is the default swap space allocation strategy. Immediate mode is more conservative than deferred mode because each modifiable virtual page is assigned a page of swap space when it is created. If you use the immediate mode of swap space allocation, you must allocate a swap space that is at least as large as the total amount of modifiable virtual address space that will be created on your system. Immediate mode requires significantly more swap space than deferred mode because it guarantees that there will be enough swap space if every modifiable virtual page is modified. et cetera (see the man pages for more including how to determine which swap space allocation mode is being used. This might solve your problem in a painless way. If however, you really need more physical swap space than you have, bad things can happen (i.e. the system decides which things get swapped out). ------------------------------------------------------------ What I actually did was creating extra space useful for LSM on dsk0h; afterwards, I used the lsmsa utility to resize the swap partition - this worked painless following roughly the procedure John Lanier suggested: 1. Initialize the disk into LSM: #voldisk -f init dsk3c type=nopriv 2. Add the disk into LSM: #voldg adddisk swapvol2=dsk3c (where "swapvol2"=disk media name and "dsk3c"=disk access name) 3. Create the additional/secondary swap volume: #volassist -U gen make swapvol02 size_of_dsk3c layout=nolog swapvol2 NOTE: Swap volumes, if mirrored, should not use dirty region logging (DRL). After you create a swap volume, you should also modify the volume's recovery policy, so that LSM will not resynchronize the plexes after a system failure. NOTE: On a standalone system, use the "gen" usage type for secondary swap volumes. 4. Setup the additional/secondary swap volume for use by the system: #sysconfig -q vm >stanza-file (the "swapdevice" is defined in the "vm" kernel subsystem) #vi stanza-file ......... Add the following line: swapdevice = /dev/vol/rootdg/swapvol,/dev/vol/rootdg/swapvol02 Save your work: :wq ......... 5. Merge the changes in the stanza-file into the "vm" kernel subsystem: #sysconfigdb -m -f stanza-file vm NOTE: The parameter "vm: swapdevice" requires a reboot to become active; if the command "sysconfig -q vm swapdevice" is issued after #6, it will still report the original swapdevice value until after the next system reboot. 6. To turn on the additional/secondary swap device prior to reboot: #swapon -a (Installs all paging partitions specified in the /etc/sysconfigtab file) #swapon -s (to check current swap device status) ------------------------------------------------------------------------------ Brad Bell suggested a procedure for finding out swap consuming processes: If you can get logged in before the swap errors, try this: ps -eo pid,vsize,pmem,command This will list all processes, like this: PID VSZ %MEM COMMAND 0 20.2G 3.4 [kernel idle] 1 608K 0.0 /sbin/init -sa 3 1.32M 0.0 /sbin/kloadsrv 5 3.14M 0.0 /sbin/hotswapd 58 2.93M 0.0 /usr/sbin/esmd 69 2.16M 0.0 /sbin/update 194 4.01M 0.0 /usr/sbin/evmd 235 3.38M 0.0 /usr/sbin/evmlogger -o /var/run/evmlogger.info -l /var/evm/adm/logfiles/evmlogger.log 236 2.86M 0.0 /usr/sbin/evmchmgr -l /var/evm/adm/logfiles/evmchmgr.log 432 2.94M 0.0 /usr/sbin/syslogd -e 436 3.89M 0.0 /usr/sbin/binlogd 38630 2.20M 0.0 /usr/sbin/filterlog -l 198831 265M 1.3 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --user=mysql --p 199780 2.68M 0.0 /usr/local/mysql/bin/mysqld_safe --socket=/tmp/mysql.sock 332208 147M 0.0 /usr/local/apache2/bin/httpd -k start -f /usr/local/apache2/conf/httpd-proxy-main.conf 337584 2.66M 0.0 -voodoo.gre (ftpd) 434815 2.70M 0.0 -voodoo.gre (ftpd) The ZSZ and %MEM being the most important. Look for processes with high %MEM and/or large VSZ. You may have a lot of little processes (a runaway forker) or one or a few processes eating up alot of the memory. ------------------------------------------------------------------------------- Thanks again to all of you! CW