PNFSDSCOPYMR(8)
β¨ hiiii bestie, youβve landed on pnfsdscopymr(8) from the System Managerβs Manual β the niche little Unix icon that copies or moves a data storage file for an MDS file to a different DS π
π NAME
pnfsdscopymr β copy or move a data storage file for an MDS file to a different DS π¦
π SYNOPSIS
pnfsdscopymr [-r mounted-on-DS-dir]
[-m source-mounted-on-DS-dir destination-mounted-on-DS-dir]
mdsfile
π DESCRIPTION
okay so pnfsdscopymr copies a data storage file for an MDS file from one DS to another DS. Itβs normally used to recover data files onto a repaired DS, but it can also be used to manually migrate a data storage file from one DS to a different one. By default, the command copies the data storage file for mdsfile to one of the other DSs to create a mirror of it. This might be done if the file was created before mirroring was enabled on the pNFS service and now needs to be mirrored.
β¨ OPTIONS β¨
the following options are available, bestie:
-rmounted-on-DS-dir β this option says the data storage file should be created on the DS that is mounted on the directorymounted-on-DS-dir. It will only do the copy if there is an entry in thepnfsd.dsfileextended attribute that has an IP address of0.0.0.0. Seepnfsdsfile(1)for how to do this. This is normally done for all regular files viafind(1)in order to recover the data storage files onto a repaired DS. π«Ά-msource-mounted-on-DS-dir destination-mounted-on-DS-dir β this option says the data storage file is to be migrated from the source DS mounted on the directorysource-mounted-on-DS-dirto the DS mounted on the directorydestination-mounted-on-DS-dir. In this case, the data storage file will be removed from the source DS when the copy is completed. π
if the copy/migration is already done, the command will simply exit(0), so it can safely be used on all regular files in the exported directory tree on the MDS. π
this command must be run on the MDS, and a typical usage would be as an argument for find(1) for all regular files.
for example, if the repaired DS is mounted on /data3 and files previously stored on the repaired DS have had the DSβs IP address set to 0.0.0.0, youβd do this:
# cd <top-level-exported-directory-on-the-MDS>
# find . -type f -exec pnfsdscopymr -r /data3 {} \;
π SEE ALSO
find(1), nfsv4(4), pnfs(4), nfsd(8), pnfsdsfile(8), pnfsdskill(8)
πΈ HISTORY
the pnfsdscopymr command first appeared in FreeBSD 12.0. π
okay thatβs the whole page β cute sign-off time: brought to you by Debian, dated June 2, 2018, with the PNFSDSCOPYMR(8) footer energy π
πβ¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 2018 Rick Macklem
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms