disklabel/swap

From: Ellen Davis <daviser_at_email.uc.edu>
Date: Thu, 11 Mar 1999 10:54:58 -0500

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_at_uc.edu
Received on Thu Mar 11 1999 - 15:55:58 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT