From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Magali.Bernard@univ-st-etienne.fr (Magali BERNARD) Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Changing swap mode makes loss of swapdevice ? Date: Thu, 28 Nov 2002 15:00:35 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200211281400.gASE0Za28192@ondaine.univ-st-etienne.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: main.gmane.org 1038491952 7396 80.91.224.249 (28 Nov 2002 13:59:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Nov 2002 13:59:12 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18HPCA-0001v3-00 for ; Thu, 28 Nov 2002 14:59:10 +0100 Original-Received: (qmail 23877 invoked by uid 5); 28 Nov 2002 14:01:08 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 23828 invoked by uid 49493); 28 Nov 2002 14:01:08 -0000 Original-Received: from Magali.Bernard@univ-st-etienne.fr by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-7.1/5.0):. Processed in 0.457731 secs); 28 Nov 2002 14:01:08 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 28 Nov 2002 14:01:08 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6A008KIHLUDO@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 28 Nov 2002 09:01:07 -0500 (EST) Original-Received: from coise.univ-st-etienne.fr (coise.univ-st-etienne.fr [161.3.1.3]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6A00FA8HL05K@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 28 Nov 2002 09:00:37 -0500 (EST) Original-Received: from localhost (localhost [127.0.0.1]) by coise.univ-st-etienne.fr (Postfix) with ESMTP id 6D2502C401B for ; Thu, 28 Nov 2002 15:00:36 +0100 (CET) Original-Received: from onzon.univ-st-etienne.fr (onzon.univ-st-etienne.fr [161.3.1.35]) by coise.univ-st-etienne.fr (Postfix) with ESMTP id E7D262C4033 for ; Thu, 28 Nov 2002 15:00:35 +0100 (CET) Original-Received: from ondaine.univ-st-etienne.fr (ondaine.univ-st-etienne.fr [161.3.1.40]) by onzon.univ-st-etienne.fr (8.9.3/jtpda-5.3.2) with ESMTP id PAA28775 for ; Thu, 28 Nov 2002 15:00:35 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by ondaine.univ-st-etienne.fr (8.10.2/jtpda-5.3.3) with SMTP id gASE0Za28192 for tru64-unix-managers@ornl.gov; Thu, 28 Nov 2002 15:00:35 +0100 (MET) Original-To: tru64-unix-managers@ornl.gov X-Mailer: exmh version 2.0.2 2/24/98 X-Virus-Scanned: by AMaViS snapshot-20020222 X-Authentication-warning: ondaine.univ-st-etienne.fr: localhost [127.0.0.1] didn't use HELO protocol X-MTS: smtp Xref: main.gmane.org gmane.os.tru64.managers:2592 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2592 Thanks to: Michael Polnick "Gergen, Peter" Michael explains what I misunderstood in man pages polnick@pdv-sachsen.net said: > if you use sysconfigdb -u you REPLACE the whole vm sysconfigtab > entry with your new vm entry. If it doesn't contain the swap device, > you lost the swap. > I think you mean -m (merge) to merely change the modified parameter. and also: > The vm-swap-eager is old-style and the vm_swap_eager is new-style both > are recognized (currently). petergergen@kpmg.com.au said: > It is easiest to just edit the /etc/sysconfigtab file and change the > line vm_swap_eager = 1 to vm_swap_eager = 0 and the reboot but you can read at the top of /etc/sysconfigtab: # # The supported method of changing the information in this # file (sysconfigtab) is by using the sysconfigdb command. # Original message: > I have an XP1000 with Tru64Unix 5.1, with default swap mode set to > eager (or immediate). I want to set it to lazy (or deferred) mode. > From the man pages I have understood the following: > - Make a swap.stanza file: vm: > vm_swap_eager = 1 > - sysconfigdb -u -f swap.stanza vm - Reboot > I was surprised to get the message "vm_swap_init: warning UNSPECIFIED > swap device not found" "swapon -s" shows no more allocated space. > "sysconfig -q vm" gives effectively "swapdevice = UNSPECIFIED" (and > "vm_swap_eager = 0") > Finally I had to add in my swap.stanza file: > swapdevice = /dev/disk/dsk1b > an reboot was ok. > Also, before changing swap mode, /etc/sysconfigtab contained > "vm-swap-eager=1" instead of "vm_swap_eager=1"... > Did I miss something ? -- _________________________________________________________________ Magali BERNARD - CRITeR - Université Jean Monnet de Saint-Etienne 23 rue du Dr Paul Michelon - 42023 St-Etienne Cedex 2 - FRANCE Tel: 04.77.48.50.62