Re: mounting /var/run as mfs

From: Brian A. Seklecki (lavalamp_at_spiritual-machines.org)
Date: 11/09/03

  • Next message: Igor Sobrado: "Re: mounting /var/run as mfs"
    Date: Sun, 09 Nov 2003 09:33:00 -0500
    
    

    On Fri, 31 Oct 2003 17:54:32 +0100, Igor Sobrado wrote:

    > Hello.
    >
    > I have read some useful articles about the layout of the NetBSD

    At first I was very skeptical of your report, but I went ahead and tried
    it just now and indeed I see that I can simulate it.

    Would you like to send-pr(1) on this or shall I? Contact me off-group if
    you wish. The best way to approach a possible debug on this is to setup
    the RC shutdown scripts to run "sh -x" so we can see what is going wrong
    right there at the end of /etc/rc.shutdown

    -lava

    > filesystems. I specially like the next one, written by Grey Wolf:
    > http://ezine.daemonnews.org/200209/diskpartnbsd.html
    >
    > Now, I have a question about mounting /var/run as a mfs filesystem
    > (in the same way it is a tmpfs in Solaris). Let us suppose that
    > a NetBSD machine has this fstab(5):
    >
    > /dev/wd0a / ffs rw,softdep 1 1
    > /dev/wd0b none swap sw 0 0
    > /dev/wd0e /stand ffs rw,softdep 1 2
    > /dev/wd0f /var ffs rw,softdep 1 2
    > /dev/wd0g /usr ffs rw,softdep 1 2
    > /dev/wd0h /usr/contrib ffs rw,softdep 1 2
    > /dev/wd0i /usr/obj ffs rw,softdep 1 2
    > /dev/wd0j /usr/pkg ffs rw,softdep 1 2
    > /dev/wd0k /usr/pkgsrc ffs rw,softdep 1 2
    > /dev/wd0l /usr/src ffs rw,softdep 1 2
    > /dev/wd0m /dump ffs rw,softdep 1 2
    > /dev/wd0n /home ffs rw,softdep 1 2
    > swap /var/run mfs rw,-s=1m 0 0 <- /var/run entry
    > swap /tmp mfs rw,-s=16m 0 0
    > kernfs /kern kernfs rw 0 0
    > procfs /proc procfs rw 0 0
    >
    > With this configuration, we will have problems when shutting down
    > the computer, that will not shut down cleanly.
    >
    > How can we set up a mfs filesystem for /var/run? From Grey Wolf's
    > article, it looks possible. I like running /var/run as a memory
    > filesystem, as in recent Solaris releases (well, it is a tmpfs
    > in Solaris since Rel. 8).
    >
    > Thanks in advance for any help on this issue!
    >
    > Igor.


  • Next message: Igor Sobrado: "Re: mounting /var/run as mfs"

    Relevant Pages

    • Re: "Best" BSD for Linux users?
      ... openbsd and netbsd had poor/crappy tools for basic system setup ... NetBSD would be ok, ... Solaris isn't high on my list of things to worry about. ...
      (comp.unix.bsd.misc)
    • A TMPFS Implementation for FreeBSD
      ... I have ported TMPFS from NetBSD. ... NOTES file for issues, bugs and todo-s. ... POOL has been ported but presently it is private. ...
      (freebsd-hackers)
    • Re: swap and /tmp
      ... I was born at Solaris which mounts /tmp on tmpfs since ... more efficent that a statically allocated partition where any space not ... mounting details etc? ...
      (Debian-User)
    • Re: Which OS for Sparc Station 5?
      ... I tend towards using Debian or NetBSD, as Solaris 10 should be horribly slow. ... I think with only 64Mb of ram you can probably forget Gnome or KDE, although you may have better results with something like twm or afterstep. ...
      (comp.sys.sun.hardware)
    • Re: Curious about AIX/RS/6000
      ... NetBSD is lean and mean. ... Solaris is bloated and uses Java in places Java ... So for a single-processor machine where ram wont go beyond 1GB, ... I was just wondering wher AIX lies. ...
      (comp.unix.aix)