From: "Cohen, Andy" <Andy.Cohen@cognex.com>
Subject: SUMMARY: format of a drive: swapon vs. disklabel
Date: Wed, 12 Jun 2002 17:39:44 -0400 [thread overview]
Message-ID: <6AF24836F3EB074BA5C922466F9E92E104DD85E6@prince.pc.cognex.com> (raw)
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
===================================================
reply other threads:[~2002-06-12 21:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox