tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Carmelo Granja <c.granja () med ! mcgill ! ca>
To: tru64-unix-managers
Subject: SUMMARY - Re Swap partition does not install at boot time
Date: Thu, 07 May 1998 14:11:51 +0000	[thread overview]
Message-ID: <96078708811441.tru64-unix-managers.marc@archive.invalid> (raw)

For more thorough completeness.

Dr. Blinn sent the following response to my problem. It is very relevant.

I did remove the link  /sbin/swapdefault to implement "lazy" swap allocation
policy.

The /sbin/init.d/paging responsible for turning on initial swapping will
execute /sbin/swapon -a only if PAGERAW=1 is define in rc.config.

In my system, delivered pre-installed, PAGERAW did not exist in rc.config
This means that /sbin/swapon -a would never execute at boot time which I
believe would be inadequate.

Older systems did have PAGERAW and other apparently related definitions in
rc.config, thus my request for guidance.

It would seem that the approach taken seems appropriate, though additional
related definitions may be required for other purposes ???


I resolved the problem by defining PAGERAW in rc.config

# rcmgr set PAGERAW 1


Thanks to all again

Carmelo Granja
C.Granja@med.McGill.CA

> Hi,
>
> My system an Alpha Server 1000A with DU V4.0D is not installing the
existing
> swap partion at boot time, the command
>
> # swapon -a
>
> does intall it.
>
> After some investigation, I found that /etc/rc.config does not contain any
> references to PAGEFILE PAGERAW PAGEMINSZ PAGEMAXSZ
> which are defined in another system with DU V3.2 so I imagine they may
also
> be needed  here.
>
> If the above is indeed the problem could someone recommend how best to
> proceed so that the default swapping gets installed at boot time
> automatically.
>
> Thanks so much
>
> Carmelo Granja
>
> C.Granja@med.McGill.CA

Someone (perhaps you) removed the symbolic link /sbin/swapdefault, or gave
it a different name.  This makes the difference between "eager" and "lazy"
swap allocation policy, and not having it may be appropriate.  If it's not
present, then you must have an entry in /etc/fstab to enable swapping to the
default partition.  A "swapon -a" is normally executed during system startup
by one of the scripts in /sbin/rc2.d, but of course, someone might have made
that not work, too.

In my /etc/fstab, I have:

/dev/rz0b       swap1                   ufs sw 0 1
/dev/rz1b       swap2                   ufs sw 0 2
/dev/rz2b       swap2                   ufs sw 0 2
/dev/rz3b       swap2                   ufs sw 0 2


because I swap to all three of these disks.

The entries in /etc/rc.config are NOT USED by DIGITAL UNIX.  You have have
them or leave them out.

The relevant startup script (that would use those entries if it did use
them) is

/sbin/rc2.d/S05paging

which is a symbolic link to

/sbin/init.d/paging

which is a /sbin/sh shell script that you can read to see how swapping is
turned on in DIGITAL UNIX at boot time.

Tom

Dr. Thomas P. Blinn, UNIX Software Group, Digital Equipment Corporation
  110 Spit Brook Road, MS ZKO3-2/U20   Nashua, New Hampshire 03062-2698
   Technology Partnership Engineering           Phone:  (603) 884-0646
    Internet: tpb@zk3.dec.com           Digital's Easynet: alpha::tpb
     ACM Member: tpblinn@acm.org         PC@Home: tom@felines.mv.net

  Worry kills more people than work because more people worry than work.

      Keep your stick on the ice.        -- Steve Smith ("Red Green")

     My favorite palindrome is: Satan, oscillate my metallic sonatas.
                                         -- Phil Agre, pagre@ucsd.edu

     Yesterday it worked / Today it is not working / UNIX is like that
-- apologies to Margaret Segall

  Opinions expressed herein are my own, and do not necessarily represent
  those of my employer or anyone else, living or dead, real or imagined.

                 reply	other threads:[~1998-05-07 14:11 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