From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Cohen, Andy" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: format of a drive: swapon vs. disklabel Date: Wed, 12 Jun 2002 17:39:44 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <6AF24836F3EB074BA5C922466F9E92E104DD85E6@prince.pc.cognex.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1023920919 870 127.0.0.1 (12 Jun 2002 22:28:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Jun 2002 22:28:39 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17IGbW-0000Do-00 for ; Thu, 13 Jun 2002 00:28:38 +0200 Original-Received: (qmail 28991 invoked by uid 5); 12 Jun 2002 21:39:53 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 28983 invoked from network); 12 Jun 2002 21:39:53 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 12 Jun 2002 21:39:53 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GXM00GMH46HVI@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 12 Jun 2002 17:39:53 -0400 (EDT) Original-Received: from cambridge1-smrly1.gtei.net (cambridge1-smrly1.gtei.net [199.94.215.245]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GXM00GDD46APO@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 12 Jun 2002 17:39:47 -0400 (EDT) Original-Received: from cognex-cp.cognex.com (cognex-cp.cognex.com [198.232.30.75]) by cambridge1-smrly1.gtei.net (Postfix) with SMTP id 41CCC13481 for ; Wed, 12 Jun 2002 21:39:46 +0000 (GMT) Original-To: "tru64-unix-managers \(E-mail\)" X-Mailer: Internet Mail Service (5.5.2650.21) Xref: main.gmane.org gmane.os.tru64.managers:552 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:552 Answer: yes - swapon is what is actually being used. disklabel only show what was written as a disklabel at one point in time but may not reflect current usage. To be sure it was suggested to check /etc/sysconfigtab, /etc/fstab, /etc/rc.confg, and /sbin/swapdefault. Thanks to everyone who responded (and oh so quickly) -- too numerous to name but you know who you are. Andy ORIGINAL QUESTION =============== Hi, If I issue: disklabel -r dsk4 I get: 8 partitions: # size offset fstype fsize bsize cpg # ~Cyl values a: 281250 0 AdvFS # 0 - 124* b: 2804687 281250 swap # 124*- 1365* c: 8380080 0 unused 0 0 # 0 - 3707 d: 2623488 532480 unused 0 0 # 235*- 1396* e: 2623488 3155968 unused 0 0 # 1396*- 2557* f: 2600624 5779456 unused 0 0 # 2557*- 3707 g: 2580823 3097655 AdvFS # 1370*- 2512* h: 2700678 5679402 unused 0 0 # 2513*- 3707 partition b has an fstype of 'swap'. However, if I issue: swapon -s I get: Swap partition /dev/disk/dsk0b (default swap): Allocated space: 175292 pages (1.34GB) In-use space: 1 pages ( 0%) Free space: 175291 pages ( 99%) Swap partition /dev/disk/dsk2b: Allocated space: 125000 pages (976MB) In-use space: 1 pages ( 0%) Free space: 124999 pages ( 99%) Total swap allocation: Allocated space: 300292 pages (2.29GB) Reserved space: 59680 pages ( 19%) In-use space: 2 pages ( 0%) Available space: 240612 pages ( 80%) which only shows dsk0b and dsk2b as being used for swap. I presume it's ok then go reuse dsk4b for something else. i.e., - does the output of 'swapon' display more accurately what is being used than a 'disklabel -r'? Thanks alot! Andy =================================================== Andy Cohen Database Systems Administrator COGNEX Corporation (508) 650-3079 Fax: (508) 650-3337 andy.cohen@cognex.com www.cognex.com cell: (617) 470-0034 ===================================================