PNFSDSFILE(8) | MidnightBSD System Manager's Manual | PNFSDSFILE(8) |
pnfsdsfile
—
display a pNFS data storage file's location(s) and/or
modify the “pnfsd.dsfile” extended attribute for
them
pnfsdsfile |
[-qz ] [-s
dshostname] [-c
old-dshostname,new-dshostname]
[-m mirror_level]
[-r dshostname]
mdsfile |
The pnfsdsfile
command displays the data
storage file's location(s) for a pNFS service and/or modifies the
“pnfsd.dsfile” extended attribute on the
mdsfile. A pNFS service maintains a data storage file
for each regular file on the MetaData Server (MDS) on one or more of the
Data Servers (DS). If mirroring is enabled, the data storage file will be on
more that one of the DSs. Unless command options are specified, this command
displays the location(s) of the data storage file for the MDS file
mdsfile. It must be used on the MDS and the
mdsfile must be a file on the exported local file
system and not an NFSv4.1 mount. This information is stored in the
“pnfsd.dsfile” extended attribute for this
mdsfile. The command line options allow the
information in the “pnfsd.dsfile” extended attribute to be
changed.
The following options are available:
-q
-z
-s
dshostname-z
so that the
zeroing out of the file handle is only done if the DS server is the one
specified by this option.-c
old-dshostname,new-dshostname-m
mirror_level-r
option.-r
dshostnameThis is meant to be used when mirroring is enabled and the dshostname DS is disabled, so that it can be re-enabled once it is repaired. This needs to be done for all files in the exported MDS tree where the data may not be up-to-date on the repaired DS when it is re-enabled. After being re-enabled, the command pnfsdscopymr(1) with the “-r” option will be used to copy the file's data to this repaired DS and then update the extended attribute to use it.
A typical use of this will be within a find(1) for all regular files in the MDS's exported tree.
For example, if the disabled DS is nfsv4-data3:
# cd <top-level-exported-directory-on-MDS>
# find . -type f -exec pnfsdsfile -q -r nfsv4-data3 {} \;
find(1), getaddrinfo(3), nfsv4(4), pnfs(4), nfsd(8), pnfsdscopymr(8), pnfsdskill(8)
The pnfsdsfile
command first appeared in
FreeBSD 12.0.
June 30, 2018 | midnightbsd-3.1 |