Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: adding swap



Great, thanks, but: I hate seeing error messages at the boot time...

___________________________________
Viktor Pavlenko \\\ IMRglobal Tokyo


>>>>> "DK" == Dmytro Koval'ov <kov@example.com> writes:

    >> Hi,
    >> 
    >> I wanted to enable some additional swap at the boot time, so
    >> added the folloing line into /etc/fstab to mount my swap file:
    >> 
    >> /home/swapfile none swap defaults 0 0
    >> 
    >> Since swap -a is envoked before the file systems are mounted,
    >> I'm getting an error at startup:

    DK> Hi,


    DK> Here is what I have (Mandrake 6.0): $ pwd /etc/rc.d $ grep -n
    DK> swap * rc.sysinit:54:# Start up swapping.
    DK> rc.sysinit:55:action "Activating swap partitions" swapon -a
    DK> rc.sysinit:352:# Right, now turn on swap in case we swap to
    DK> files.

    DK> rc.sysinit:353:swapon -a >/dev/null 2>&1 ^^^^
    DK> rc.sysinit:354:action "Enabling swap space" /bin/true

    DK> $ grep -n mount * [...]  rc.sysinit:276:# filesystems are NOT
    DK> unmounted in single user mode.  rc.sysinit:277:action
    DK> "Mounting local filesystems" mount -a -t [...]  ^^^^^

    DK> swap -a invoked twice once before mounting filesystems and 2nd
    DK> time after. Just to ensure swaping to files. I think RedHat
    DK> should be the same.

    DK> Regards -- Dmytro

    DK>        _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/

    DK>      _/ Dmytro Koval'ov, mailto:kov@example.com/

    DK>    _/ UNIX Systems Administration _/

    DK>  _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/



    DK> You never know how many friends you have until you rent a
    DK> house on the beach.


    >>  swapon: cannot stat /home/swapfile: No such file or directory
    >> 
    >> And -- despite of that -- I have my swap file enabled (swapon
    >> -s)! (???)
    >> 
    >> Is it better to enable the additional swap in
    >> /etc/rc.d/rc.local?
    >> 
    >> Thanks.
    >> 
    >> P.S. I'm running RH 6.0 ___________________________________
    >> Viktor Pavlenko \\\ IMRglobal Tokyo
    >> 
    >> -------------------------------------------------------------------
    >> Next Technical Meeting: November 13 (Sat), 13:30 place: Temple
    >> Univ.  * Network Security speaker: Steve Baur Next Nomikai:
    >> December 17 (Fri), 19:00 Tengu TokyoEkiMae 03-3275-3691
    >> -------------------------------------------------------------------
    >> more info: http://www.tlug.gr.jp Sponsor: Global Online Japan
    >> 
    >> 
    >> 


    DK> -------------------------------------------------------------------
    DK> Next Technical Meeting: November 13 (Sat), 13:30 place: Temple
    DK> Univ.  * Network Security speaker: Steve Baur Next Nomikai:
    DK> December 17 (Fri), 19:00 Tengu TokyoEkiMae 03-3275-3691
    DK> -------------------------------------------------------------------
    DK> more info: http://www.tlug.gr.jp Sponsor: Global Online Japan

-------------------------------------------------------------------
Next Technical Meeting: November 13 (Sat), 13:30 place: Temple Univ.
* Network Security                               speaker: Steve Baur
Next Nomikai: December 17 (Fri), 19:00 Tengu TokyoEkiMae 03-3275-3691
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links