tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Ellen Davis <daviser () email ! uc ! edu>
To: tru64-unix-managers
Subject: disklabel/swap
Date: Thu, 11 Mar 1999 15:54:58 +0000	[thread overview]
Message-ID: <96079038515621.tru64-unix-managers.marc@archive.invalid> (raw)


I need to add more swap to my system.  I have some space available on one
of my disks, but it is on partition h.  Can I take some space from h and
put it on b?  Or do the partitions have to be in order?

Right now I have a muddled head from the flu/cold.  Are these the correct
commands to relabel the disk and add the new swap?

/sbin/vdump -f /dev/rmt1h -0 -N -u /work
rmfdmn work_domain
(edit disklabel putting some space from 3h to 3b)  new label:
  a:   131072        0    unused       
  b:   800000  8886762    unused       
  c: 17773524        0    unused       
  d:        0        0    unused      
  e:        0        0    unused     
  f:        0        0    unused       
  g:  8886762        0     AdvFS      
  h:  8086762  9686762     AdvFS      

mkfdmn /dev/rz3h work_domain
newfs /dev/rz3b 
vrestore -f /dev/nrmt1h -D /work
swapon /dev/rz3b
(add /dev/rz3b        swap4  ufs sw 0 2	to fstab)


Why does the disklabel -e and disklabel -p display different labels?  How
can I make them the same?  Or do I not want them the same?  Is this a problem?


disklabel -e /dev/rrz3c
8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:   131072        0    unused        0     0         # (Cyl.    0 - 43*)
  b:   262144   131072    unused        0     0         # (Cyl.   43*- 129*)
  c: 17773524        0    unused        0     0         # (Cyl.    0 - 5846*)
  d:        0        0    unused        0     0         # (Cyl.    0 - -1)
  e:        0        0    unused        0     0         # (Cyl.    0 - -1)
  f:        0        0    unused        0     0         # (Cyl.    0 - -1)
  g:  8886762        0     AdvFS                        # (Cyl.    0 - 2923*)
  h:  8886762  8886762     AdvFS                        # (Cyl. 2923*- 5846*)

  
disklabel -p /dev/rrz3c
8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:   131072        0    unused        0     0         # (Cyl.    0 - 43*)
  b:   262144   131072    unused        0     0         # (Cyl.   43*- 129*)
  c: 17773524        0    unused        0     0         # (Cyl.    0 - 5846*)
  d:        0        0    unused        0     0         # (Cyl.    0 - -1)
  e:        0        0    unused        0     0         # (Cyl.    0 - -1)
  f:        0        0    unused        0     0         # (Cyl.    0 - -1)
  g:  8690154   393216    unused        0     0         # (Cyl.  129*- 2987*)
  h:  8690154  9083370    unused        0     0         # (Cyl. 2987*- 5846*)


 Ellen Davis
 Ellen.Davis@uc.edu

                 reply	other threads:[~1999-03-11 15:54 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