Re: swapping over nfs might be broken

From: Bjoern Fischer (bfischer_at_Techfak.Uni-Bielefeld.DE)
Date: 05/31/03

  • Next message: Terry Lambert: "Re: gcc bug? Openoffice port impossibel to compile on 4.8"
    Date: Sat, 31 May 2003 16:58:38 +0200
    To: hackers@freebsd.org
    
    

    Hello,

    > > Everything looks normal except for swapinfo. It looks like nfs swapping
    > > is broken?
    >
    > `man swapinfo` says:
    >
    > BUGS
    > Does not understand NFS swap servers.

    hmm, the man page seems to be out of date. On my diskless client
    swapinfo works flawlessly:

      broccoli:~$ swapinfo
      Device 1K-blocks Used Avail Capacity Type
      [NFS swap] 130944 0 130944 0% Interleaved
      broccoli:~$ uname -r
      4.8-STABLE-20030510-JPSNAP

    Also, I don't get that error or warning message at boot time:

      subnet mask 255.255.255.0 router 192.168.43.1 rootfs \
        192.168.43.1:/exports/root/broccoli rootopts nfsv3,udp,hard \
        swapfs 192.168.43.1:/exports/swap swapopts nfsv3,udp,hard \
        hostname broccoli
      Adjusted interface xl0
      md_lookup_swap: Swap size is 131072 KB
      Mounting root from nfs:
      NFS ROOT: 192.168.43.1:/exports/root/broccoli
      NFS SWAP: 192.168.43.1:/exports/swap

    For DHCP I use these vendor options:

      option freebsd-swap-path code 128 = text;
      option freebsd-swap-opts code 130 = text;
      option freebsd-root-opts code 131 = text;

    All diskless clients share these DHCP config:

      use-host-decl-names on;
      filename "pxeboot";
      option freebsd-swap-path "192.168.43.1:/exports/swap";
      option freebsd-swap-opts "nfsv3,udp,hard";
      option freebsd-root-opts "nfsv3,udp,hard";

    The root path is set per individual client of course.

    Maybe this helps.

    Björn

    -- 
    -----BEGIN GEEK CODE BLOCK-----
    GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+
    K- !w !O !M !V  PS++  PE-  PGP++  t+++  !5 X++ tv- b+++ D++ G e+ h-- y+ 
    ------END GEEK CODE BLOCK------
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Terry Lambert: "Re: gcc bug? Openoffice port impossibel to compile on 4.8"