stablerestart man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

STABLERESTART(5)	    BSD File Formats Manual	      STABLERESTART(5)

NAME
     nfs-stablerestart — handles restart edge conditions for the NFS V4 server

SYNOPSIS
     nfs-stablerestart

DESCRIPTION
     The nfs-stablerestart file holds information that allows the NFS V4
     server to restart without always returning the NFSERR_NOGRACE error, as
     described in the NFS V4 server specification; see Network File System
     (NFS) Version 4 Protocol RFC 3530, Section 8.6.3.

     The first record in the file, as defined by struct nfsf_rec in
     /usr/include/fs/nfs/nfsrvstate.h, holds the lease duration of the last
     incarnation of the server and the number of boot times that follows.
     Following this are the number of previous boot times listed in the first
     record.  The lease duration is used to set the Grace Period.  The boot
     times are used to avoid the unlikely occurrence of a boot time being
     reused, due to a TOD clock going backwards. This record and the previous
     boot times with this boot time added is re-written at the end of the
     Grace Period.

     The rest of the file are appended records, as defined by struct nfst_rec
     in /usr/include/fs/nfs/nfsrvstate.h and are used represent one of two
     things. There are records which indicate that a client successfully
     aquired state and records that indicate a client's state was revoked.
     State revoke records indicate that state information for a client was
     discarded, due to lease expiry and an otherwise conflicting open or lock
     request being made by a different client.	These records can be used to
     determine if clients might have done either of the edge conditions.

     If a client might have done either edge condition or this file is empty
     or corrupted, the server returns NFSERR_NOGRACE for any reclaim request
     from the client.

     For correct operation of the server, it must be ensured that the file is
     written to stable storage by the time a write op with IO_SYNC specified
     has returned. This might require hardware level caching to be disabled
     for a local disk drive that holds the file, or similar.

FILES
     /var/db/nfs-stablerestart	NFS V4 stable restart file

SEE ALSO
     nfsv4(4) nfsd(8)

BUGS
     If the file is empty, the NFS V4 server has no choice but to return
     NFSERR_NOGRACE for all Reclaim requests. Although correct, this is a
     highly undesirable occurrence, so the file should not be lost if at all
     possible. Nfsd will not create the file if it does not exist and will
     simply log a failure to start, in the hopes that the file can be recov‐
     ered from a backup. To move the file, you must edit the nfsd sources and
     recompile it. This was done to discourage accidental relocation of the
     file.

BSD				 Sept 7, 2007				   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net