1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to mount 4000+ ZFS fs/mountpoints via NFS as root

Discussion in 'Web and Network Services' started by User23, Apr 21, 2010.

  1. User23

    User23 Member

    Messages:
    348
    Likes Received:
    1
    ZFS + NFS Server: FreeBSD 8.0-RELEASE-p2 AMD64
    NFS Client: FreeBSD 7.1-RELEASE-p11 AMD64

    after mounting 420 of them with "mount -a" correctly the command stops with the following messages on the NFS client

    Code:
    [udp] 10.0.0.22:/home/www/18/29: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/35: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/36: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/44: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/46: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/49: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/50: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/51: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/55: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/59: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/67: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/87: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/88: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/89: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/18/99: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    [udp] 10.0.0.22:/home/www/19: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak
    The log of the NFS server said:

    Code:
    Apr 21 16:04:44 hg20 mountd[36207]: mount request from 10.0.0.24 from unprivileged port
    Apr 21 16:04:44 hg20 last message repeated 15 times
    It looks like FreeBSD is running out of privileged ports while mounting them?!

    --

    I'll test this with a FreeBSD 8.0 NFS client tomorrow.

    greetz
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,392
    Likes Received:
    7
    There are only 1023 privileged ports (1 to 1024) on any *nix system.
     
  3. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,664
    Likes Received:
    24
    Can't you just mount /home/www once and do something locally with the directories under it (e.g. using nullfs, if that's possible from an NFS mount)?
     
  4. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    why not to mount them over ssh? (or am I missing something?)
     
  5. User23

    User23 Member

    Messages:
    348
    Likes Received:
    1
    I know, but this wont help to find a solution.
     
  6. User23

    User23 Member

    Messages:
    348
    Likes Received:
    1
    The problem is, i want to use ZFS disk quota (as long as user/group quota isnt ready).
    In order to do so, i need to set up a fs/mountpoint for each user on the zfs.
    Every /home/www/xx/xx directory is for one user.
    And to make them accessible via NFS i need to mount every single user directory.

    Edit...

    We mounted them over non privilege ports. Looks like it works.