Newsgroups: bit.listserv.aix-l
Subject: Re: paging space
From: graeme@ccu1.aukuni.ac.nz ( Graeme Moffat)
Date: Fri, 6 Nov 1992 09:44:02 GMT
Organization: University of Auckland, New Zealand.

lobaugh@VOTH3.CHEM.UPENN.EDU writes:

>Does anyone know how to shrink the primary paging space on an RS6000 under
>AIX 3.2. We tried to deactivate and delete it with the hopes of installing
>a smaller one but no go because the primary paging space can't be deactivated.
>from man on chps:

From aixtips 92221:
======================================================================
>92233. Useful info on re-sizing primary paging space

 ENTER AT YOUR OWN RISC!

 Scenario: You have an RS/6000 on which you want to install a large
           application or the Munich TMSC demos.

           The primary paging space (hd6) is 80Mb. The secondary paging
           space (hd61) is 32Mb. The machine has 32Mb of system memory.

           The available free disk space is 20Mb less than you need.

 Ever been in this situation (Mike Hall - raise your hand).

 The following info will let you re-define the primary paging space to the
 correct size and regain all that valuable disk space.

 This is only applicable on 3.2 systems.

 Follow these instructions carefully - especially the rebuilding of the
 boot logical volume image and make sure that this command completes
 before re-booting or it's re-install time!

 o Comment out the line in /sbin/rc.boot that activates /dev/hd6.Search for
   hd6.
 o Disable use of hd6 at IPL either through SMIT or using -
       chps -a 'n' hd6.
 o Rebuild the boot logical volume image with -
       bosboot -d/dev/hdisk# -a
   (where # is the boot disk number on the machine - usually 0).
 o Reboot the system using -
       shutdown -Fr
 o Remove the old hd6 paging space through SMIT or using -
       rmps hd6
 o Create a new paging space of the correct size through SMIT or using -
       mkps -s'#' -a'' rootvg hdisk##
   (where # is the size of the new primary paging space in 4Mb partitions
         ## is the disk number where the primary paging space should be located
            - usually on hdisk0).
   If you use SMIT select activation on boot but not active now or you will
   not be able to do the next operation.
 o Rename this new paging space to be hd6 using -
       chlv -n hd6 paging##
   (where ## is the number of the paging space created - usually 00 if this
    is the first manually created paging space).
 o Edit out the reference to the old paging00 in /etc/swapspaces
 o Remove the comment from the "swapon" command in /sbin/rc.boot
 o Rebuild the boot logical volume image again as above.
 o Reboot the system using -
       shutdown -Fr

 These instructions are based on an append to the ISTHERE forum on IBMUNIX.
 I've modified them to a) remove typos b) provide AIX commands for all
 operations - you needn't use SMIT at all if you don't want to and c) provide
 a more orderly and definite series of instructions - the append was a bit
 conversational.

 From start to finish it took approx 12mins on a 320H - most of it is due to
 the two shutdowns.

 This method will also work on boxes with only 1 hard disk and therefore
 usually only one paging space, the primary one. Contrary to popular belief
 an RS/6000 will boot up without any paging space - no guarantees about
 running X and InfoExplorer though!

 Regards,
 Chris Thomas
======================================================================

-- 
Graeme Moffat                g.moffat@aukuni.ac.nz \ Time wastes us all, 
Computer Aided Design Centre,  Fax: +64-9-366-0702 /  our bodies & our wits
School of Engineering,    Ph: +64-9-737-999 x8384 /  But we waste time,
University of Auckland, Private Bag, Auckland, NZ \   so time & we are quits
Newsgroups: bit.listserv.aix-l