forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-3.20' of git://linux-nfs.org/~bfields/linux
Pull nfsd updates from Bruce Fields: "The main change is the pNFS block server support from Christoph, which allows an NFS client connected to shared disk to do block IO to the shared disk in place of NFS reads and writes. This also requires xfs patches, which should arrive soon through the xfs tree, barring unexpected problems. Support for other filesystems is also possible if there's interest. Thanks also to Chuck Lever for continuing work to get NFS/RDMA into shape" * 'for-3.20' of git://linux-nfs.org/~bfields/linux: (32 commits) nfsd: default NFSv4.2 to on nfsd: pNFS block layout driver exportfs: add methods for block layout exports nfsd: add trace events nfsd: update documentation for pNFS support nfsd: implement pNFS layout recalls nfsd: implement pNFS operations nfsd: make find_any_file available outside nfs4state.c nfsd: make find/get/put file available outside nfs4state.c nfsd: make lookup/alloc/unhash_stid available outside nfs4state.c nfsd: add fh_fsid_match helper nfsd: move nfsd_fh_match to nfsfh.h fs: add FL_LAYOUT lease type fs: track fl_owner for leases nfs: add LAYOUT_TYPE_MAX enum value nfsd: factor out a helper to decode nfstime4 values sunrpc/lockd: fix references to the BKL nfsd: fix year-2038 nfs4 state problem svcrdma: Handle additional inline content svcrdma: Move read list XDR round-up logic ...
- Loading branch information
Showing
40 changed files
with
2,562 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pNFS block layout server user guide | ||
|
||
The Linux NFS server now supports the pNFS block layout extension. In this | ||
case the NFS server acts as Metadata Server (MDS) for pNFS, which in addition | ||
to handling all the metadata access to the NFS export also hands out layouts | ||
to the clients to directly access the underlying block devices that are | ||
shared with the client. | ||
|
||
To use pNFS block layouts with with the Linux NFS server the exported file | ||
system needs to support the pNFS block layouts (currently just XFS), and the | ||
file system must sit on shared storage (typically iSCSI) that is accessible | ||
to the clients in addition to the MDS. As of now the file system needs to | ||
sit directly on the exported volume, striping or concatenation of | ||
volumes on the MDS and clients is not supported yet. | ||
|
||
On the server, pNFS block volume support is automatically if the file system | ||
support it. On the client make sure the kernel has the CONFIG_PNFS_BLOCK | ||
option enabled, the blkmapd daemon from nfs-utils is running, and the | ||
file system is mounted using the NFSv4.1 protocol version (mount -o vers=4.1). | ||
|
||
If the nfsd server needs to fence a non-responding client it calls | ||
/sbin/nfsd-recall-failed with the first argument set to the IP address of | ||
the client, and the second argument set to the device node without the /dev | ||
prefix for the file system to be fenced. Below is an example file that shows | ||
how to translate the device into a serial number from SCSI EVPD 0x80: | ||
|
||
cat > /sbin/nfsd-recall-failed << EOF | ||
#!/bin/sh | ||
|
||
CLIENT="$1" | ||
DEV="/dev/$2" | ||
EVPD=`sg_inq --page=0x80 ${DEV} | \ | ||
grep "Unit serial number:" | \ | ||
awk -F ': ' '{print $2}'` | ||
|
||
echo "fencing client ${CLIENT} serial ${EVPD}" >> /var/log/pnfsd-fence.log | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.