{"id":3633,"date":"2022-12-20T17:09:13","date_gmt":"2022-12-20T20:09:13","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/nfsdcld-man8\/"},"modified":"2022-12-20T17:09:13","modified_gmt":"2022-12-20T20:09:13","slug":"nfsdcld-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/nfsdcld-man8\/","title":{"rendered":"NFSDCLD (man8)"},"content":{"rendered":"<h1 align=\"center\">NFSDCLD<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#CONFIGURATION FILE\">CONFIGURATION FILE<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">nfsdcld \u2212 NFSv4 Client Tracking Daemon<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">nfsdcld [\u2212d] [\u2212F] [\u2212p path] [\u2212s stable storage dir]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">nfsdcld is the NFSv4 client tracking daemon. It is not necessary to run this daemon on machines that are not acting as NFSv4 servers.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When a network partition is combined with a server reboot, there are edge conditions that can cause the server to grant lock reclaims when other clients have taken conflicting locks in the interim. A more detailed explanation of this issue is described in <small>RFC<\/small> 3530, section 8.6.3.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In order to prevent these problems, the server must track a small amount of per-client information on stable storage. This daemon provides the userspace piece of that functionality.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212d<\/b>, <b>\u2212\u2212debug<\/b><\/p>\n<p style=\"margin-left:17%;\">Enable debug level logging.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212F<\/b>, <b>\u2212\u2212foreground<\/b><\/p>\n<p style=\"margin-left:17%;\">Runs the daemon in the foreground and prints all output to stderr<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212p<\/b> <i>path<\/i>, <b>\u2212\u2212pipefsdir<\/b>=<i>path<\/i><\/p>\n<p style=\"margin-left:17%;\">Location of the rpc_pipefs filesystem. The default value is <i>\/var\/lib\/nfs\/rpc_pipefs<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212s<\/b> <i>storage_dir<\/i>, <b>\u2212\u2212storagedir<\/b>=<i>storage_dir<\/i><\/p>\n<p style=\"margin-left:17%;\">Directory where stable storage information should be kept. The default value is <i>\/var\/lib\/nfs\/nfsdcld<\/i>.<\/p>\n<h2>CONFIGURATION FILE <a name=\"CONFIGURATION FILE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following values are recognized in the <b>[nfsdcld]<\/b> section of the <i>\/etc\/nfs.conf<\/i> configuration file: <b><br \/> storagedir<\/b><\/p>\n<p style=\"margin-left:17%;\">Equivalent to <b>\u2212s<\/b>\/<b>\u2212\u2212storagedir<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><b>debug<\/b><\/p>\n<p style=\"margin-left:17%;\">Setting &#8220;debug = 1&#8221; is equivalent to <b>\u2212d<\/b>\/<b>\u2212\u2212debug<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In addition, the following value is recognized from the <b>[general]<\/b> section: <b><br \/> pipefs\u2212directory<\/b><\/p>\n<p style=\"margin-left:17%;\">Equivalent to <b>\u2212p<\/b>\/<b>\u2212\u2212pipefsdir<\/b>.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The Linux kernel NFSv4 server has historically tracked this information on stable storage by manipulating information on the filesystem directly, in the directory to which <i>\/proc\/fs\/nfsd\/nfsv4recoverydir<\/i> points.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This changed with the original introduction of <b>nfsdcld<\/b> upcall in kernel version 3.4, which was later deprecated in favor of the <b>nfsdcltrack<\/b>(8) usermodehelper program, support for which was added in kernel version 3.8. However, since the usermodehelper upcall does not work in containers, support for a new version of the <b>nfsdcld<\/b> upcall was added in kernel version 5.2.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This daemon requires a kernel that supports the <b>nfsdcld<\/b> upcall. On older kernels, if the legacy client name tracking code was in use, then the kernel would not create the pipe that <b>nfsdcld<\/b> uses to talk to the kernel. On newer kernels, nfsd attempts to initialize client tracking in the following order: First, the <b>nfsdcld<\/b> upcall. Second, the <b>nfsdcltrack<\/b> usermodehelper upcall. Finally, the legacy client tracking.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This daemon should be run as root, as the pipe that it uses to communicate with the kernel is only accessable by root. The daemon however does drop all superuser capabilities after starting. Because of this, the <i>storagedir<\/i> should be owned by root, and be readable and writable by owner.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The daemon now supports different upcall versions to allow the kernel to pass additional data to be stored in the on-disk database. The kernel will query the supported upcall version from <b>nfsdcld<\/b> during client tracking initialization. A restart of <b>nfsd<\/b> is not necessary after upgrading <b>nfsdcld<\/b>, however <b>nfsd<\/b> will not use a later upcall version until restart. A restart of <b>nfsd is necessary<\/b> after downgrading <b>nfsdcld<\/b>, to ensure that <b>nfsd<\/b> does not use an upcall version that <b>nfsdcld<\/b> does not support. Additionally, a downgrade of <b>nfsdcld<\/b> requires the schema of the on-disk database to be downgraded as well. That can be accomplished using the <b>nfsdclddb<\/b>(8) utility.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\/var\/lib\/nfs\/nfsdcld\/main.sqlite<\/b><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nfsdcltrack<\/b>(8), <b>nfsdclddb<\/b>(8)<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The nfsdcld daemon was developed by Jeff Layton <jlayton@redhat.com> with modifications from Scott Mayhew <smayhew@redhat.com>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  nfsdcld \u2212 NFSv4 Client Tracking Daemon <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,749],"class_list":["post-3633","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-nfsdcld"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3633"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3633\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}