🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.software
3 messages
3 total messages Started by cyk Wed, 29 Jul 1992 00:29
SwapFile.
#217
Author: cyk
Date: Wed, 29 Jul 1992 00:29
47 lines
2222 bytes
Hi guys,

   I have been trying to designate the 240 MB internal drive, which
is not my boot device, as to be the swap device without success.  Can
anybody give me some help?   Thanks in advance.

   A little bit more detail about my hardware configuration and the
unsuccessful attemp I tried are given in the following:

     1) My NeXT is equipped with one 220 MB internal drive and
        one 520 MB external drive.  The external drive has a SCSI
        ID of 0; and it's the boot device.  The internal drive 
        has a SCSI ID of 1; and it's mounted at "/local".

     2) The internal drive currently does not contain any data
        other than a copy of the system software.  It acts as a
        backup boot device in case the external drive fails. 

        In order to  better utilize the internal drive, I would
        like to put the swap file on it.  

     3) I made the following unsuccessful attempt:

         Step 1: My internal drive is mounted at /local.
 
         Step 2: I deleted /local/private/vm/swapfile.
 
         Step 3: I modified the /etc/swaptab file to
                 contain a single entry looking like:
 
                 /local/private/vm/swapfile .....
 
         Step 4: I rebooted the machine in verbose
                 mode; and, observed a message like:
 
                 mach_swapon: /local/private/vm/swapfile failed.
 
         Step 6: After the machine was up, I logged on
                 and observed that /local/private/vm/swapfile
                 was not created.  
 
         Step 7: I backed out the change to /etc/swaptab,
                 rebooted the machine in verbose mode and
                 mach_swapon was successful.

          
                             ------  Chi Ku
Re: SwapFile.
#222
Author: Sebastian Florian Mix
Date: Wed, 29 Jul 1992 12:08
56 lines
3014 bytes
cyk@tos28.teradata.com writes:
>   I have been trying to designate the 240 MB internal drive, which
>is not my boot device, as to be the swap device without success.  Can
>anybody give me some help?   Thanks in advance.
To be more precise: You're trying to put your swapfile on the internal drive.
>
>   A little bit more detail about my hardware configuration and the
>unsuccessful attemp I tried are given in the following:
>
>     1) My NeXT is equipped with one 220 MB internal drive and
>        one 520 MB external drive.  The external drive has a SCSI
>        ID of 0; and it's the boot device.  The internal drive 
>        has a SCSI ID of 1; and it's mounted at "/local".
I got a similar setup and the same problem.
>
>     2) The internal drive currently does not contain any data
>        other than a copy of the system software.  It acts as a
>        backup boot device in case the external drive fails. 
>
>        In order to  better utilize the internal drive, I would
>        like to put the swap file on it.  
>
>     3) I made the following unsuccessful attempt:
>
>         Step 1: My internal drive is mounted at /local.
> 
>         Step 2: I deleted /local/private/vm/swapfile.
> 
>         Step 3: I modified the /etc/swaptab file to
>                 contain a single entry looking like:
> 
>                 /local/private/vm/swapfile .....
> 
>         Step 4: I rebooted the machine in verbose
>                 mode; and, observed a message like:
> 
>                 mach_swapon: /local/private/vm/swapfile failed.
And here's the problem: is /local already mounted when mach_swapon tries to put
the swapfile on it ? I strongly suspect it isn't. At least mine wasn't in a 
similar setup.
> 
[..]
>
To summarize: your internal drive is very likely not mounted when you're
trying to install your swapfile on it. It is mounted later by the automounter.
Solution: create an appropriate fstab entry for your external disk so it will
be mounted at boot time (in /etc/rc.boot if i remember correctly) before
mach_swapon gets called. This worked for me.

hope that helps

--
--------------------------------------------------------------------------------
Sebastian Mix, Eichhornstr.5-6 Apt.222, D-1000 Berlin 30, T: (030) 262 1811 /(a\
charon@cs.tu-berlin.de <-no NeXTmail yo-> charabib@w271zrz.zrz.tu-berlin.de \p)/
--------------------------------------------------------------------------------
Re: SwapFile.
#313
Author: Chi Ku
Date: Thu, 06 Aug 1992 00:41
53 lines
2203 bytes
Hi Guys,

   I received very helpful replies for the question that
I posted in article 832.  I finally got things to work in
the following way:

   1] The internal drive was labelled as swapdisk and
      the swapfile is located on it.

   2] The internal drive can also be the boot device when
      the external drive is down.

   3] Then external drive can be both the boot and swap
      device when internal drive is down.

   To achieve the above, I performed the following:

   1] Labeled the internal drive as, swapdisk, using the
      "disk -L" command.

   2] Edited the fstab file on the external drive so that
      the internal drive is not referenced.

   3] Edited the swaptab file on the external drive to 
      remove any entry in there.

   4] Edited the rc.swap file on the external drive to
      remove /private/swapdisk/tmp if it's a symbolic
      link, before making sure it's a directory, etc.

   5] Edited the fstab file on internal drive so that
      the external dirve is not referenced.

   6] Edited the rc.swap file on the internal drive 
      so that the /tmp to /private/tmp symbolic
      link is always setup even a swapdisk if found
      and that the logic for setting up swapdisk 
      is commented out.

   7] I tested the above setup when booting from
      external drive with swapping to internal drive,
      when booting from internal drive with external
      drive powered off, and switchings between the
      previous cases. 

      For each case, I verified that swapfile was 
      created correctly, /tmp directory was pointing to 
      the correct place, and the swapping was not causing 
      problems.

   
                               -----  Chi Ku
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads