Richard Grenier and Bertrand Hutin pointed out to me to add the following line to the vfstab:
swap - /tmp tmpfs - yes -
Thank you!
Duane Gran
http://www.SolarisCentral.org
Forwarded message:
> From bertrand_hutin@amdahl.com Thu May 4 11:51:09 2000
> Message-Id: <4.3.1.0.20000504175443.00afc770@eur01.amdahl.com>
> X-Sender: bxh20@eur01.amdahl.com
> X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
> Date: Thu, 04 May 2000 17:59:33 +0100
> To: ragnar@SolarisCentral.org
> From: Bertrand Hutin <bertrand_hutin@amdahl.com>
> Subject: Re: Problem with swap setup
> In-Reply-To: <200005041503.e44F3Jx25624@holst.spinweb.net>
> Mime-Version: 1.0
> Content-Type: text/plain; charset="us-ascii"; format=flowed
> Content-Length: 2201
>
> At 11:03 04/05/00 -0400, you wrote:
>
> >From: Duane Gran <ragnar@SolarisCentral.org>@sunmanagers.ececs.uc.edu on
> > 05/04/2000 11:03 AM AST
> >
> >To: sun-managers@sunmanagers.ececs.uc.edu
> >cc: support@soloserver.com, admin@spinweb.net
> >Subject: Problem with swap setup
> >
> >
> >Sun Managers,
> >
> >I have inhereted a server configuration which appears to have a problem
> >with the swap setup. I tried to fix it, but my solution is only partial
> >and I'm hping someone can shed some light on this.
> >
> >The original problem was that no swap space was defined. Issuing "swap -l"
> >returned nothing.
> >
> >My quick solutions was to change the vfstab to reflect /tmp as the swap
> >space. Below is what I currently have in /etc/vfstab:
> >
> >#/dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0s1 /tmp ufs 2 yes -
> >/dev/dsk/c0t0d0s1 - - swap - no -
> >
> >My current output of "swap -l" is:
> >
> >swapfile dev swaplo blocks free
> >/dev/dsk/c0t0d0s1 32,121 16 1027008 916224
> >
> >
> >My filesystem allocation is the following:
> >
> ># df
> >/proc (/proc ): 0 blocks 3832 files
> >/ (/dev/dsk/c0t0d0s0 ): 2862388 blocks 362889 files
> >/usr (/dev/dsk/c0t0d0s3 ): 8906660 blocks 675227 files
> >/dev/fd (fd ): 0 blocks 0 files
> >/var (/dev/dsk/c0t0d0s2 ): 845618 blocks 240684 files
> >/tmp (/dev/dsk/c0t0d0s1 ): 947240 blocks 242664 files
> >
> >The problem is that if I create an file in /tmp I can't see it. Below is
> >the behavior if I am in the /tmp directory:
> >
> ># cd /tmp
> ># ls
> >.: No such file or directory
> >
> >The environment in quistion is Solaris 2.7 on a E250, installed with the
> >developer option. Any input or suggests are greatly appreciated. Summary
> >will follow.
> first you need to reboot your server, and then /tmp will appear as a
> directory in /
> In Solaris standard installations, /tmp is memory file system.
> the following line in /etc/vfstab declares it:
> swap - /tmp tmpfs - yes -
> add this line and reboot your server.
>
>
> >Duane Gran
> >Solaris Central - http://www.SolarisCentral.org
>
> Bertrand Hutin
>
>
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:07 CDT