Project

General

Profile

Bug #25560

Allow nfs onestart to work with NFSv4

Added by andsens - over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Expected
Assignee:
William Grzybowski
Category:
OS
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I've had a few problems with disk encryption and NFS starting on boot, so I set the service to be started manually, which I do after entering the disk encryption key.

Unchecking "Start on boot" causes NFS 4 to not run when starting it manually. Mounting fails with:

mount_nfs -o tcp -o soft -o bg -o vers=4 freenas.local:/mnt/data/test test_nfs
mount_nfs: can't mount /mnt/data/test from freenas.local onto /Users/andsens/Workspace/appliances/FreeNAS/test_nfs: RPC prog. not avail

Once I enable the service to start on boot and then restart the service, everything mounts fine.

Running

sudo sh -c '(source /etc/rc.conf.local; echo $nfsv4_server_enable)'

yields only "YES" when that checkmark is set and

rpcinfo -p localhost

always only lists versions 2 & 3, but I believe that is because v4 doesn't need rpcbind.

I'm not sure which of the details above are relevant so I just put them all in there.

Associated revisions

Revision aeaf96bf (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/service): allow nfs onestart to work with NFSv4

Ticket: #25560

Revision 86f9d020 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/service): allow nfs onestart to work with NFSv4

Ticket: #25560
(cherry picked from commit aeaf96bf37bc7ea7656b69c2173a04079e3db480)

History

#1 Updated by Dru Lavigne over 1 year ago

  • Assignee changed from Release Council to William Grzybowski

#2 Updated by William Grzybowski over 1 year ago

  • Status changed from Unscreened to Screened
  • Priority changed from No priority to Expected
  • Target version set to 11.1

#3 Updated by William Grzybowski about 1 year ago

  • Status changed from Screened to Ready For Release
  • Target version changed from 11.1 to 11.1-BETA1

#4 Updated by Dru Lavigne about 1 year ago

  • Subject changed from NFS v4 not running unless NFS service is set to "Start on boot" to Allow nfs onestart to work with NFSv4

#5 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready For Release to Resolved

#6 Updated by Nick Wolff about 1 year ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

Also available in: Atom PDF