SUMMARY: How to move to a new SWAP partition

From: Carl Carpenter (carlc@kds1.kivex.com)
Date: Thu Feb 06 1997 - 09:35:47 CST


First of all, the response time of this mailing list is incredable. I got
the first response within 5 minutes and 3 more within an hour. All the
responses were informative and gave other options to my solution.

THANKS TO THE FOLLOWING SUN-MANAGERS:----------------------------------

  Justin Young - justiny@cluster.engr.subr.edu
  Dan Pritts - danno@aa.fv.com
  Tom Mornini - tmornini@infomania.com
  Francis Liu - fxl@pulse.itd.uts.edu.au
  Matthew Stier - matthew.stier@mci.com
  Stephen Richardson - spr@myxa.com
  Rene Occelli - rene@iusti.univ-mrs.fr
  Adnan Dzinic - adzinic@wat.hookup.net

THE ORIGINAL POST:-----------------------------------------------------

our servers swap partition is way too small. i will be adding a used
hard drive for the new swap partition. does this sound like the steps
i will be taking

shutdown the server /usr/sbin/shutdown -y -i0 -g180
turn the power off
install the new hard drive
boot the system
creat the device files /usr/sbin/disks
format and partition (with permissions WU) the disk using the format command
DO NOT use the newfs command (swap partition should be a RAW partition)
edit /etc/vfstab from
  /dev/dsk/c0t3d0s5 - - swap - no -
          TO
  /dev/dsk/c0t1d0s1 - - swap - no -
reboot the machine /usr/sbin/shutdown -y -i6 -g180

any comments, suggestions, or errors in what i am planning to do please
email me at carlc@kivex.com

thanks, will summarize,

THE SOLUTION:-----------------------------------------------------------

  What I did
     1- shutdown the server using /usr/sbin/shutdown -y -i0 -g180
     2- turn the power off
     3- installed the drive
     4- booted the server
     5- created the proper /devices entries with /usr/sbin/drvconfig
     6- created the proper /dev entries with /usr/sbin/disks
     7- format the disk with WU permissions using /usr/sbin/format c0t1d0
     8- edit /etc/vfstab from
         /dev/dsk/c0t3d0s5 - - swap - no -
                 TO
         /dev/dsk/c0t1d0s1 - - swap - no -
     9- added the new swap partition /usr/sbin/swap -a /dev/dsk/c0t1d0s1
    10- removed the old swap partition /usr/sbin/swap -d /dev/dsk/c0t3d0s5
    11- recover the old swap space using /usr/sbin/newfs and creating
        a mount point in /etc/vfstab

  Options that I did not use
    - use multiple swap partitions by leaving the old swap space alone and
      adding the new swap space by adding /dev/dsk/c0t1d0s1 to /etc/vfstab
      and doing a swap -a /dev/dsk/cot1d0s1. (I tried this before I recoved
      the old swap space for file storage and it works great)
    - touch /reconfigure - shutdown the server - install drive - boot
      server - stop A - at ok> prompt issue probe-scsii - issue boot -
      format and and swap partitions
    - instead of booting server, using drvconfig and disks use boot -r
    - use a swap file - mkfile -n 500M swapfile (500Mb swap is what I need) -
      swapon -a - edit /etc/vfstab adding /swapfile - - wsap - no -.

Thanks again,

Carl Carpenter - carlc@kivex.com - (301) 215 8201



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:44 CDT