NFS on RedHat 7.1 with 2.4.2 kernel - Illegal argument with vfat

NFS on RedHat 7.1 with 2.4.2 kernel - Illegal argument with vfat

Post by Hans Derago » Sun, 06 May 2001 01:04:50



Greetings.

  System:  RedHat 7.1 with Linux 2.4.2 on a 433 Mhz celeron.

  I get the following error when trying to export one of my filesystems:

# exportfs -rva
exporting 192.168.0.0/255.255.255.0:/mnt/genericdata1
exporting 192.168.0.0/255.255.255.0:/
exporting snah:/mnt/genericdata1 to kernel
snah:/mnt/genericdata1: Invalid argument

  /mnt/genericdata1 is a vfat fs, as shown by mount:

# mount
/dev/hda1 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdd1 on /mnt/genericdata1 type vfat (rw)
automount(pid541) on /misc type autofs (rw,fd=5,pgrp=541,minproto=2,maxproto=3)

  Contente of fstab:

# cat /etc/fstab
LABEL=/                 /                       ext2    defaults        1 1
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/hda5               swap                    swap    defaults        0 0
/dev/hdd1               /mnt/genericdata1       vfat    defaults        0 0
/SWAP                   swap                    swap    defaults        0 0

  And finally, the contents of /etc/exports:

# cat /etc/exports
/                 192.168.0.0/255.255.255.0(rw,no_root_squash)
/mnt/genericdata1 192.168.0.0/255.255.255.0(rw,no_root_squash)

  Now I assume that I am running the kernel-space server.  I say assume because
  I do not know if such is the case nor do I know how to figure this out.
  I have read some other posts which suggest that running the user-space
  server would resolve such a problem.  Can someone suggest an URL with
  the instructions on how to change the configuration from kernel-space
  to user-space server?

  I assume that the problem might be a limitation of the kernel-space server.
  I read the follwing on:

    file:///machines/world/usr/share/doc/nfs-utils-0.3.1/node4.html

  "Unlink the user-space NFS sever, each entry in /etc/exports can export
  only a directory in one file system. Any file systems mounted under the
  exported directory are not exported. A separate entry is needed for each
  mounted file system."

  Now is it possible that there might be a bug and the kernel-space server
  mistakenly believes that /mnt/genericdata1 is a subdirectory of /
  on the same filesystem?

  Any help would be appreciated.

Sincerely,
Hans Deragon