From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Zoran Trifunovic \(DSL AK\)" Newsgroups: gmane.os.tru64.managers Subject: Increasing swap space Date: Thu, 20 Nov 2003 11:47:43 +1300 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <04F92BA33955D51195B700508B4AB6E9104AA431@dslak12.dnznet.co.nz> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1069282100 15708 80.91.224.253 (19 Nov 2003 22:48:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2003 22:48:20 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Nov 19 23:48:17 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AMb7R-0003An-00 for ; Wed, 19 Nov 2003 23:48:17 +0100 Original-Received: (qmail 28892 invoked by uid 5); 19 Nov 2003 22:48:02 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 28870 invoked by uid 49493); 19 Nov 2003 22:48:02 -0000 Original-Received: from ZORANT@datacom.co.nz by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-4.7/5.0):. Processed in 1.639714 secs); 19 Nov 2003 22:48:02 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 19 Nov 2003 22:47:59 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HOM00G2LFBYOD@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 19 Nov 2003 17:47:59 -0500 (EST) Original-Received: from mx3.datacom.co.nz ([210.55.5.89]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HOM00JHNFBU7D@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 19 Nov 2003 17:47:56 -0500 (EST) Original-Received: from dslak12.dslak.co.nz (Not Verified[202.27.76.100]) by mx3.datacom.co.nz with NetIQ MailMarshal (v5.5.4.16) id ; Thu, 20 Nov 2003 11:47:53 +1300 Original-Received: by dslak12.dnznet.co.nz with Internet Mail Service (5.5.2655.55) id ; Thu, 20 Nov 2003 11:47:53 +1300 Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2655.55) Xref: main.gmane.org gmane.os.tru64.managers:5856 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5856 Hi managers, The DS20E server (1GB RAM, 2CPUs, Tru64v5.1B) that we look after is short on memory and the customer wants to add 3GB RAM (to have 4GB total). At the moment the server has 3GB swap space, so we should probably increase that as well. As far as we know, the recommended swap size for Tru64 is 2.5-3 * RAM if the swap allocation mode is 'eager' and at least 1*RAM if the swap mode is 'lazy'. Is it a problem if the system has more RAM than swap space (if we leave the swap space size at 3GB and have 4GB RAM)? If that is not going to cause any problems, we would probably wait for some time and monitor swap usage to see if they really need more swap space on that server. Increasing swap space size could be quite complicated here. What worries us is that the server has 4*72GB disks all in one RAID 1+0 (the system was originally configured by HP). Here is the output of the disklabel command: 8 partitions: # size offset fstype fsize bsize cpg # ~Cyl values a: 2097152 0 AdvFS # 0 - 511 b: 6588334 2097152 swap # 512 - 2120* c: 284524544 0 unused 0 0 # 0 - 69463 d: 94317226 1572864 unused 0 0 # 384 - 23410* e: 94317226 95890090 unused 0 0 # 23410*- 46437* f: 2695515 281829029 AdvFS # 68805*- 69463 g: 11979980 269849049 AdvFS # 65881*- 68805* h: 261163563 8685486 AdvFS # 2120*- 65881* where partition a is 'root_domain', b is swap, f is 'tmp_domain', g is 'usr_domain' and h is 'app01_domain'. Our idea was to take some space from the h partition and either add it to partition b (if possible), or to make one of the unused partitions (d or e) as another swap partition using that extra space from partition h. That would include the following steps: - make full filesystem backup - save current disklabel (disklabel -r dsk0 > /tmp/dsk0label) - unmount filesystems in app01_domain and remove that file domain - edit /tmp/dsk0label - shrink partition h and extend partition b (if possible) or create new swap partition using d or e. - create a new disk label for dsk0 (disklabel -R dsk0 /tmp/dsk0label) - create app01_domain and filesets, mount filesystems in app01_domain - restore data to the filesystems in app01_domain QUESTIONS: - is this procedure OK? - can we be sure that if we are changing only partitions b and h nothing else would be affected by the 'disklabel -R' command (especially not the root_domain!!!)? - can the partition b be increased while it is in use (or should it be done in single user mode)? - is it better to create new swap partition, rather than to resize partition b (it shouldn't cause performance problems as it's all striped anyway)? - do we need to specify -r and -t options with 'disklabel -R' command to make sure that the disk will be bootable (although it already is)? - what do we need to change in the /etc/fstab and /etc/sysconfigtab if we create a new swap partition? - is it a problem to have more RAM than swap space (e.g. in case the application reserves the same amount of swap space as the real memory, or for memory dump)? - any other suggestions? Thanks in advance, Zoran