Loading ...
Sorry, an error occurred while loading the content.

Re: NFS woes

Expand Messages
  • slackline
    ... Ok, I may have confused my ipkg/opkg in the above (quite possible as I did this all a few days ago). Have checked things as follows, ensuring nfs-utils is
    Message 1 of 4 , Jul 21 5:06 PM
    • 0 Attachment
      --- In nslu2-linux@yahoogroups.com, "Mike Westerhof (mwester)" <mwester@...> wrote:
      >
      > Neil Shephard wrote:
      >
      > > Unfortunately I've been unable to resolve these to date via searching
      > > and tweaking config files and was wondering if anyone can see where
      > > I've gone wrong.
      > ...
      > > I have installed nfs-utils as recommended (unusual that nfs-utils
      > > isn't in the default ipkg so I installed it from the Optware feed)..
      > >
      > > # ipkg list | grep nfs
      > > dstat - 0.6.9-1 - dstat is a versatile replacement for vmstat, iostat,
      > > netstat, nfsstat, and ifstat
      > > nfs-server - 2.2beta47-4 - Minimal NFS server without TCP Wrappers
      > > (not recommended, use nfs-utils instead)
      > > unfs3 - 0.9.18-1 - Version 3 NFS server (not recommended, use nfs-utils instead)
      > > # opkg list_installed | grep nfs
      > > kernel-module-nfs - 2.6.27.8+svnr1085-r3 -
      > > kernel-module-nfsd - 2.6.27.8+svnr1085-r3 -
      > > nfs-utils - 1.1.2-3 -
      > > # opkg install nfs-utils
      > > Package nfs-utils (1.1.2-3) installed in root is up to date.
      >
      > I suspect you have installed the wrong packages. In particular,
      > installing system utilities via ipkg is not usually correct; if a system
      > utility, service, or kernel module is available via the SlugOS (opkg)
      > feeds you should first use those instead of using Optware (ipkg).
      >
      > Specifically, nfs-server is obsolete. You need to remove that, along
      > with "unfs3". Then remove nfs-utils with opkg. Then re-install
      > nfs-utils with opkg. This should restore the correct nfs server package.
      >

      Ok, I may have confused my ipkg/opkg in the above (quite possible as I did this all a few days ago). Have checked things as follows, ensuring nfs-utils is installed with opkg...

      # ipkg remove nfs-server
      No packages removed.
      Nothing to be done
      Successfully terminated.
      # ipkg remove unfs3
      No packages removed.
      Nothing to be done
      Successfully terminated.
      # ipkg remove nfs-utils
      No packages removed.
      Nothing to be done
      Successfully terminated.
      # opkg remove nfs-utils
      Removing package nfs-utils from root...
      stopping statd: done
      stopping mountd: done
      stopping nfsd: done
      removing nfsd kernel module: FATAL: Module nfsd not found. <--- Signal!!!
      failed
      Removing any system startup links for nfsserver ...
      /etc/rc0.d/K20nfsserver
      /etc/rc1.d/K20nfsserver
      /etc/rc2.d/S20nfsserver
      /etc/rc3.d/S20nfsserver
      /etc/rc4.d/S20nfsserver
      /etc/rc5.d/S20nfsserver
      /etc/rc6.d/K20nfsserver
      # opkg install nfs-utils
      Installing nfs-utils (1.1.2-3) to root...
      Downloading http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/5.3-beta/nfs-utils_1.1.2-3_armv5teb.ipk
      Configuring nfs-utils
      Adding system startup for /etc/init.d/nfsserver.
      creating NFS state directory: done
      starting 8 nfsd kernel threads: done
      starting mountd: done
      starting statd: done
      # ps | grep nfs
      2680 root 2012 S grep nfs
      # nfsd
      # ps | grep nfs
      2685 root 2012 S grep nfs

      So I checked the kernel nfsd...

      # opkg list | grep nfs
      kernel-module-nfs - 2.6.27.8+svnr1085-r3 - nfs kernel module
      kernel-module-nfsd - 2.6.27.8+svnr1085-r3 - nfsd kernel module
      nfs-utils - 1.1.2-3 - userspace utilities for kernel nfs
      nfs-utils-client - 1.1.2-3 - userspace utilities for kernel nfs
      nfs-utils-dbg - 1.1.2-3 - userspace utilities for kernel nfs
      nfs-utils-dev - 1.1.2-3 - userspace utilities for kernel nfs
      nfs-utils-doc - 1.1.2-3 - userspace utilities for kernel nfs
      # opkg list_installed | grep nfs
      kernel-module-nfs - 2.6.27.8+svnr1085-r3 -
      kernel-module-nfsd - 2.6.27.8+svnr1085-r3 -
      nfs-utils - 1.1.2-3 -

      And to check for sanity that there was nothing left from ipkg and kernel version matched...

      # ipkg list_installed | grep nfs
      # uname -a
      Linux slug 2.6.27.8 #1 Sat Mar 7 02:47:23 UTC 2009 armv5teb unknown

      Should be ok, but to check I removed kernel-module-nfs and kernel-module-nfsd with nfs-utils which was a dependency along with another package and reinstalled...

      # opkg remove -recursive kernel-module-nfs
      Removing package task-slugos from root...
      Removing package kernel-module-nfs from root...
      # opkg remove -recursive kernel-module-nfsd
      Removing package nfs-utils from root...
      stopping statd: done
      stopping mountd: done
      stopping nfsd: done
      removing nfsd kernel module: done
      Removing any system startup links for nfsserver ...
      /etc/rc0.d/K20nfsserver
      /etc/rc1.d/K20nfsserver
      /etc/rc2.d/S20nfsserver
      /etc/rc3.d/S20nfsserver
      /etc/rc4.d/S20nfsserver
      /etc/rc5.d/S20nfsserver
      /etc/rc6.d/K20nfsserver
      Removing package kernel-module-nfsd from root...
      root@slug:/home/neil# opkg install kernel-module-nfs kernel-module-nfsd
      Installing kernel-module-nfs (2.6.27.8+svnr1085-r3) to root...
      Downloading http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/5.3-beta/kernel-module-nfs_2.6.27.8+svnr1085-r3_nslu2be.ipk
      Configuring kernel-module-nfs
      Installing kernel-module-nfsd (2.6.27.8+svnr1085-r3) to root...
      Downloading http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/5.3-beta/kernel-module-nfsd_2.6.27.8+svnr1085-r3_nslu2be.ipk
      Configuring kernel-module-nfsd

      I then reinstalled nfs-utils which had been removed (should have realised and reinstalled that straight off!)...

      # opkg install nfs-utils
      Installing nfs-utils (1.1.2-3) to root...
      Downloading http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/5.3-beta/nfs-utils_1.1.2-3_armv5teb.ipk
      Configuring nfs-utils
      Adding system startup for /etc/init.d/nfsserver.
      creating NFS state directory: done
      starting 8 nfsd kernel threads: done
      starting mountd: done
      starting statd: done

      aaaand....

      # mount -v /usr/portage/
      mount.nfs: timeout set for Wed Jul 22 02:08:01 2009
      mount.nfs: text-based options: 'addr=192.168.1.101'
      slug:/mnt/portage on /usr/portage type nfs (rw,noexec,nosuid,nodev,users)
      fisher 07 # df -h
      Filesystem Size Used Avail Use% Mounted on
      slug:/mnt/portage 9.4G 3.7G 5.3G 41% /usr/portage
      # /etc/init.d/netmount restart
      * Unmounting network filesystems... [ ok ]
      * Mounting network filesystems... [ ok ]
      # df -h

      slug:/mnt/portage 9.4G 3.7G 5.3G 41% /usr/portage
      slug:/mnt/albums 105G 29G 72G 29% /mnt/slug/albums
      slug:/mnt/music 188G 148G 31G 83% /mnt/slug/music
      slug:/mnt/video 94G 82G 7.7G 92% /mnt/slug/video
      slug:/mnt/pics 94G 90G 1.9M 100% /mnt/slug/pics2
      slug:/mnt/doc 19G 15G 3.8G 79% /mnt/slug/doc
      slug:/mnt/work1 19G 3.7G 15G 21% /mnt/slug/misc
      slug:/mnt/work2 29G 5.9G 21G 22% /mnt/slug/work
      slug:/mnt/ref 18G 4.2G 13G 26% /mnt/slug/ref


      Success!!!

      Thank you veyr much for the help there, and apologies for being a muppet and...

      > Never mix your feeds -- it's like crossing the streams (Ghostbusters).

      Will endeavour not to make such a stupid mistake again!

      Cheers

      Neil
    Your message has been successfully submitted and would be delivered to recipients shortly.