tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* format of a drive: swapon vs. disklabel
@ 2002-06-12 21:15 Cohen, Andy
  0 siblings, 0 replies; only message in thread
From: Cohen, Andy @ 2002-06-12 21:15 UTC (permalink / raw)


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
===================================================



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-12 21:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-12 21:15 format of a drive: swapon vs. disklabel Cohen, Andy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox