Changeset b51fe6e for networking/netprogs/nfs-utils.xml
- Timestamp:
- 03/22/2020 03:52:07 PM (4 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 254bc90d
- Parents:
- dcee7a56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
networking/netprogs/nfs-utils.xml
rdcee7a56 rb51fe6e 31 31 <title>Introduction to NFS Utilities</title> 32 32 33 <para>The <application>NFS Utilities</application> package contains the 34 userspace server and client tools necessary to use the kernel's NFS 35 abilities. NFS is a protocol that allows sharing file systems over the 36 network.</para> 33 <para> 34 The <application>NFS Utilities</application> package contains the 35 userspace server and client tools necessary to use the kernel's NFS 36 abilities. NFS is a protocol that allows sharing file systems over the 37 network. 38 </para> 37 39 38 40 &lfs91_checked; … … 41 43 <itemizedlist spacing='compact'> 42 44 <listitem> 43 <para>Download (HTTP): <ulink url="&nfs-utils-download-http;"/></para> 45 <para> 46 Download (HTTP): <ulink url="&nfs-utils-download-http;"/> 47 </para> 44 48 </listitem> 45 49 <listitem> 46 <para>Download (FTP): <ulink url="&nfs-utils-download-ftp;"/></para> 50 <para> 51 Download (FTP): <ulink url="&nfs-utils-download-ftp;"/> 52 </para> 47 53 </listitem> 48 54 <listitem> 49 <para>Download MD5 sum: &nfs-utils-md5sum;</para> 55 <para> 56 Download MD5 sum: &nfs-utils-md5sum; 57 </para> 50 58 </listitem> 51 59 <listitem> 52 <para>Download size: &nfs-utils-size;</para> 60 <para> 61 Download size: &nfs-utils-size; 62 </para> 53 63 </listitem> 54 64 <listitem> 55 <para>Estimated disk space required: &nfs-utils-buildsize;</para> 65 <para> 66 Estimated disk space required: &nfs-utils-buildsize; 67 </para> 56 68 </listitem> 57 69 <listitem> 58 <para>Estimated build time: &nfs-utils-time;</para> 70 <para> 71 Estimated build time: &nfs-utils-time; 72 </para> 59 73 </listitem> 60 74 </itemizedlist> … … 75 89 <xref linkend="sqlite"/>, 76 90 <xref linkend="mitkrb"/> or 77 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libgssapi</ulink>, and 78 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">librpcsecgss</ulink> (for GSS and RPC security support) and 79 91 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/"> 92 libgssapi 93 </ulink>, and 94 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/"> 95 librpcsecgss 96 </ulink> (for GSS and RPC security support), and 80 97 <xref linkend="libcap-pam"/> 81 98 </para> … … 103 120 <title>Kernel Configuration</title> 104 121 105 <para>Enable the following options in the kernel configuration 106 (choose client and/or server support as appropriate) and recompile the 107 kernel if necessary:</para> 122 <para> 123 Enable the following options in the kernel configuration 124 (choose client and/or server support as appropriate) and recompile the 125 kernel if necessary: 126 </para> 108 127 109 128 <screen><literal>File systems ---> … … 112 131 <*/M> NFS server support [CONFIG_NFSD]</literal></screen> 113 132 114 <para>Select the appropriate sub-options that appear when the above options 115 are selected.</para> 133 <para> 134 Select the appropriate sub-options that appear when the above options 135 are selected. 136 </para> 116 137 117 138 <note> … … 142 163 <title>Installation of NFS Utilities</title> 143 164 144 <para>Before you compile the program, ensure that the <systemitem 145 class="username">nobody</systemitem> user and <systemitem 146 class="groupname">nogroup</systemitem> group have been created as done in 147 the current LFS book. You can add them by running the following commands 148 as the <systemitem class="username">root</systemitem> user:</para> 165 <para> 166 Before you compile the program, ensure that the <systemitem 167 class="username">nobody</systemitem> user and <systemitem 168 class="groupname">nogroup</systemitem> group have been created as done in 169 the current LFS book. You can add them by running the following commands 170 as the <systemitem class="username">root</systemitem> user: 171 </para> 149 172 150 173 <screen role="nodump"><userinput>groupadd -g 99 nogroup && … … 153 176 154 177 <note> 155 <para>The classic uid and gid values are 65534 which is also -2 when 156 interpreted as a signed 16-bit number. These values impact other files 157 on some filesystems that do not have support for sparse files. The 158 <systemitem class="username">nobody</systemitem> and <systemitem 159 class="groupname">nogroup</systemitem> values are relatively arbitrary. 160 The impact on a server is nil if the <filename>exports</filename> file 161 is configured correctly. If it is misconfigured, an 162 <command>ls -l</command> or <command>ps</command> listing will show a 163 uid or gid number of 65534 instead of a name. The client uses <systemitem 164 class="username">nobody</systemitem> only as the user running 165 <command>rpc.statd</command>.</para> 178 <para> 179 The classic uid and gid values are 65534 which is also -2 when 180 interpreted as a signed 16-bit number. These values impact other files 181 on some filesystems that do not have support for sparse files. The 182 <systemitem class="username">nobody</systemitem> and <systemitem 183 class="groupname">nogroup</systemitem> values are relatively arbitrary. 184 The impact on a server is nil if the <filename>exports</filename> file 185 is configured correctly. If it is misconfigured, an 186 <command>ls -l</command> or <command>ps</command> listing will show a 187 uid or gid number of 65534 instead of a name. The client uses 188 <systemitem class="username">nobody</systemitem> only as the user 189 running <command>rpc.statd</command>. 190 </para> 166 191 </note> 167 192 168 <para>Install <application>NFS Utilities</application> by running 169 the following commands:</para> 193 <para> 194 Install <application>NFS Utilities</application> by running 195 the following commands: 196 </para> 170 197 171 198 <screen><userinput>./configure --prefix=/usr \ … … 178 205 <!-- Test breakage: see 179 206 http://lists.linuxfromscratch.org/pipermail/blfs-book/2017-December/071861.html --> 180 <para>This package does not come with a working test suite.</para> 181 182 <para>Now, as the <systemitem class="username">root</systemitem> user:</para> 207 <para> 208 This package does not come with a working test suite. 209 </para> 210 211 <para> 212 Now, as the <systemitem class="username">root</systemitem> user: 213 </para> 183 214 184 215 <!-- dev note: make statduser=$(whoami) DESTDIR=<DESTDIR> install --> … … 190 221 191 222 <!-- commented, in case the tests get fixed 192 <para>The tests for this package require that the package be installed and 193 configured as specified below. In addition, the daemon from <xref 194 linkend="rpcbind"/> needs to be running and the tests need to be run as the 195 <systemitem class="username">root</systemitem> user.</para> 196 197 <para>To test the results, issue, as root: <command>make check</command>.</para>--> 223 <para> 224 The tests for this package require that the package be installed and 225 configured as specified below. In addition, the daemon from <xref 226 linkend="rpcbind"/> needs to be running and the tests need to be run as 227 the <systemitem class="username">root</systemitem> user. 228 </para> 229 230 <para> 231 To test the results, issue, as root: <command>make check</command>. 232 </para>--> 198 233 199 234 </sect2> … … 202 237 <title>Command Explanations</title> 203 238 <!-- 204 <para><command>sed ... support/nsm/rpc.c</command>: This sed it required 205 to fix a build issue with glibc-2.26 and later.</para> 239 <para> 240 <command>sed ... support/nsm/rpc.c</command>: This sed it required 241 to fix a build issue with glibc-2.26 and later. 242 </para> 206 243 --> 207 <para><parameter>--disable-nfsv4</parameter>: This allows the package to be 208 built when libnfsidmap has not been installed.</para> 209 210 <para><parameter>--disable-gss</parameter>: Disables support for 211 RPCSEC GSS (RPC Security).</para> 212 213 <para><command>chown nobody.nogroup /var/lib/nfs</command>: The 214 rpc.statd program uses the ownership of this directory to set 215 it's UID and GID. This command sets those to unprivileged entries. 244 <para> 245 <parameter>--disable-nfsv4</parameter>: This allows the package to be 246 built when libnfsidmap has not been installed. 247 </para> 248 249 <para> 250 <parameter>--disable-gss</parameter>: Disables support for 251 RPCSEC GSS (RPC Security). 252 </para> 253 254 <para> 255 <command>chown nobody.nogroup /var/lib/nfs</command>: The 256 rpc.statd program uses the ownership of this directory to set 257 it's UID and GID. This command sets those to unprivileged entries. 216 258 </para> 217 259 … … 224 266 <title>Server Configuration</title> 225 267 226 <para><filename>/etc/exports</filename> contains the exported directories 227 on NFS servers. Refer to the <filename>exports.5</filename> manual page 228 for the syntax of this file. Also refer to the "NFS HowTo" available at 229 <ulink url="http://nfs.sourceforge.net/nfs-howto/"/> for information on 230 how to configure the servers and clients in a secure manner. For example, 231 for sharing the <filename class="directory">/home</filename> directory 232 over the local network, the following line may be added:</para> 268 <para> 269 <filename>/etc/exports</filename> contains the exported directories 270 on NFS servers. Refer to the <filename>exports.5</filename> manual page 271 for the syntax of this file. Also refer to the "NFS HowTo" available at 272 <ulink url="http://nfs.sourceforge.net/nfs-howto/"/> for information on 273 how to configure the servers and clients in a secure manner. For 274 example, for sharing the <filename class="directory">/home</filename> 275 directory over the local network, the following line may be added: 276 </para> 233 277 234 278 <screen role="nodump"><userinput>cat >> /etc/exports << EOF … … 236 280 EOF</userinput></screen> 237 281 238 <note><para>Be sure to replace the directory, network address. and prefix above 239 to match your network. The only space in the line above should be between 240 the directory and the network address.</para></note> 282 <note> 283 <para> 284 Be sure to replace the directory, network address. and prefix above 285 to match your network. The only space in the line above should be 286 between the directory and the network address. 287 </para> 288 </note> 241 289 242 290 <indexterm zone="nfs-utils nfs-utils-server-config"> … … 248 296 <phrase revision="systemd">Systemd Units</phrase></title> 249 297 250 <para>Install the 251 <phrase revision="sysv"><filename>/etc/rc.d/init.d/nfs-server</filename> 252 init script</phrase> 253 <phrase revision="systemd">NFSv4 server units</phrase> 254 included in the <xref linkend="bootscripts" revision="sysv"/> 255 <xref linkend="systemd-units" revision="systemd"/> package 256 to start the server at boot.</para> 298 <para> 299 Install the 300 <phrase revision="sysv"> 301 <filename>/etc/rc.d/init.d/nfs-server</filename> 302 init script 303 </phrase> 304 <phrase revision="systemd">NFSv4 server units</phrase> 305 included in the <xref linkend="bootscripts" revision="sysv"/> 306 <xref linkend="systemd-units" revision="systemd"/> package 307 to start the server at boot. 308 </para> 257 309 258 310 <screen role="root" revision="systemd"><userinput>make install-nfsv4-server</userinput></screen> … … 271 323 </indexterm> 272 324 273 <para revision="sysv">Now create the 325 <para revision="sysv"> 326 Now create the 274 327 <filename>/etc/sysconfig/nfs-server</filename> configuration file: 275 328 </para> … … 282 335 283 336 <note revision="sysv"> 284 <para>The above parameters may be optionally placed in 337 <para> 338 The above parameters may be optionally placed in 285 339 <filename>/etc/sysconfig/rc.site</filename>. 286 340 </para> … … 302 356 </indexterm> 303 357 304 305 306 358 </sect4> 307 359 … … 311 363 <title>Client Configuration</title> 312 364 313 <para><filename>/etc/fstab</filename> contains the directories that 314 are to be mounted on the client. Alternately the partitions can be 315 mounted by using the <command>mount</command> command with the proper 316 options. To mount the <filename class="directory">/home</filename> 317 and <filename class="directory">/usr</filename> partitions, add the 318 following to the <filename>/etc/fstab</filename>:</para> 365 <para> 366 <filename>/etc/fstab</filename> contains the directories that 367 are to be mounted on the client. Alternately the partitions can be 368 mounted by using the <command>mount</command> command with the proper 369 options. To mount the <filename class="directory">/home</filename> 370 and <filename class="directory">/usr</filename> partitions, add the 371 following to the <filename>/etc/fstab</filename>: 372 </para> 319 373 320 374 <screen role="nodump"><userinput><replaceable><server-name></replaceable>:/home /home nfs rw,_netdev 0 0 321 375 <replaceable><server-name></replaceable>:/usr /usr nfs ro,_netdev 0 0</userinput></screen> 322 376 323 <para>The options which can be used are specified in <command>man 5 nfs</command>. 324 If both the client and server are running recent versions of linux, most of the 325 options will be negotiated (but see the Note above on nfsver=3). You can specify 326 either <literal>rw</literal> or 327 <literal>ro</literal>, <literal>_netdev</literal> if the filesystem is to be 328 automatically mounted at boot, or <literal>noauto</literal> (and perhaps 329 <literal>user</literal>) for other filesystems.</para> 330 331 <para>If the fileserver is not running a recent version of linux, you may need to 332 specifiy other options.</para> 333 334 <para>If you are using systemd, you may need to enable autofs v4 in your kernel, 335 and add the option <literal>comment=systemd.automount</literal>. Some machines 336 need this, because systemd tries to mount the external fs's before the network 337 is up, others do not need it. An alternative is for <systemitem 338 class="username">root</systemitem> to run <command>mount -a</command>.</para> 377 <para> 378 The options which can be used are specified in <command>man 5 nfs 379 </command>. If both the client and server are running recent versions 380 of linux, most of the options will be negotiated (but see the Note 381 above on nfsver=3). You can specify either <literal>rw</literal> or 382 <literal>ro</literal>, <literal>_netdev</literal> if the filesystem is 383 to be automatically mounted at boot, or <literal>noauto</literal> (and 384 perhaps <literal>user</literal>) for other filesystems. 385 </para> 386 387 <para> 388 If the fileserver is not running a recent version of linux, you may 389 need to specifiy other options. 390 </para> 391 392 <para revision="systemd"> 393 You may need to enable autofs v4 in your kernel, and add the option 394 <literal>comment=systemd.automount</literal>. Some machines need this, 395 because systemd tries to mount the external fs's before the 396 network is up, others do not need it. An alternative is for 397 <systemitem class="username">root</systemitem> to run 398 <command>mount -a</command>. 399 </para> 339 400 340 401 <indexterm zone="nfs-utils nfs-utils-client-config"> … … 355 416 </note> 356 417 357 <para>Install the 358 <phrase revision="sysv"> 359 <filename>/etc/rc.d/init.d/nfs-client</filename> init script</phrase> 360 <phrase revision="systemd">units</phrase> included in the 361 <xref linkend="bootscripts" revision="sysv"/> 362 <xref linkend="systemd-units" revision="systemd"/> package to start 363 the client services at boot.</para> 418 <para> 419 Install the 420 <phrase revision="sysv"> 421 <filename>/etc/rc.d/init.d/nfs-client</filename> init script 422 </phrase> 423 <phrase revision="systemd">units</phrase> included in the 424 <xref linkend="bootscripts" revision="sysv"/> 425 <xref linkend="systemd-units" revision="systemd"/> package to start 426 the client services at boot. 427 </para> 364 428 365 429 <screen role="root"><userinput>make install-nfs-client</userinput></screen> … … 369 433 </indexterm> 370 434 371 <para revision="sysv">To automatically mount <systemitem 372 class="filesystem">nfs</systemitem> filesystems, clients will also need 373 to install the <filename>netfs</filename> bootscript as described in 374 <xref linkend="postlfs-config-netfs"/>.</para> 435 <para revision="sysv"> 436 To automatically mount <systemitem class="filesystem">nfs 437 </systemitem> filesystems, clients will also need to install the 438 <filename>netfs</filename> bootscript as described in <xref 439 linkend="postlfs-config-netfs"/>. 440 </para> 375 441 376 442 <indexterm zone="nfs-utils nfs-utils-client-config" revision="sysv"> … … 409 475 <term><command>exportfs</command></term> 410 476 <listitem> 411 <para>maintains a list of NFS exported file systems.</para> 477 <para> 478 maintains a list of NFS exported file systems. 479 </para> 412 480 <indexterm zone="nfs-utils exportfs"> 413 481 <primary sortas="b-exportfs">exportfs</primary> … … 419 487 <term><command>mountstats</command></term> 420 488 <listitem> 421 <para>displays NFS client per-mount statistics.</para> 489 <para> 490 displays NFS client per-mount statistics. 491 </para> 422 492 <indexterm zone="nfs-utils mountstats"> 423 493 <primary sortas="b-mountstats">mountstats</primary> … … 429 499 <term><command>mount.nfs</command></term> 430 500 <listitem> 431 <para>is used to mount a network share using NFS</para> 501 <para> 502 is used to mount a network share using NFS. 503 </para> 432 504 <indexterm zone="nfs-utils mount.nfs"> 433 505 <primary sortas="b-mount.nfs">mount.nfs</primary> … … 439 511 <term><command>mount.nfs4</command></term> 440 512 <listitem> 441 <para>is used to mount a network share using NFSv4</para> 513 <para> 514 is used to mount a network share using NFSv4. 515 </para> 442 516 <indexterm zone="nfs-utils mount.nfs4"> 443 517 <primary sortas="b-mount.nfs4">mount.nfs4</primary> … … 449 523 <term><command>nfsconf</command></term> 450 524 <listitem> 451 <para>can be used to test for and retrieve configuration settings from 452 a range of nfs-utils configuration files.</para> 525 <para> 526 can be used to test for and retrieve configuration settings from 527 a range of nfs-utils configuration files. 528 </para> 453 529 <indexterm zone="nfs-utils nfsconf"> 454 530 <primary sortas="b-nfsconf">nfsconf</primary> … … 460 536 <term><command>nfsiostat</command></term> 461 537 <listitem> 462 <para>reports input/output statistics for network filesystems.</para> 538 <para> 539 reports input/output statistics for network filesystems. 540 </para> 463 541 <indexterm zone="nfs-utils nfsiostat-nfs-utils"> 464 542 <primary sortas="b-nfsiostat-nfs-utils">nfsiostat</primary> … … 470 548 <term><command>nfsstat</command></term> 471 549 <listitem> 472 <para>displays statistics kept about NFS client and server activity.</para> 550 <para> 551 displays statistics kept about NFS client and server activity. 552 </para> 473 553 <indexterm zone="nfs-utils nfsstat"> 474 554 <primary sortas="b-nfsstat">nfsstat</primary> … … 481 561 <term><command>osd_login</command></term> 482 562 <listitem> 483 <para>is a script that is a part of the autologin feature 484 mandated by the pnfs-objects standard.</para> 563 <para> 564 is a script that is a part of the autologin feature 565 mandated by the pnfs-objects standard. 566 </para> 485 567 <indexterm zone="nfs-utils osd_login"> 486 568 <primary sortas="b-osd_login">osd_login</primary> … … 493 575 <term><command>rpc.mountd</command></term> 494 576 <listitem> 495 <para>implements the NFS mount protocol on an NFS server.</para> 577 <para> 578 implements the NFS mount protocol on an NFS server. 579 </para> 496 580 <indexterm zone="nfs-utils rpc.mountd"> 497 581 <primary sortas="b-rpc.mountd">rpc.mountd</primary> … … 503 587 <term><command>rpc.nfsd</command></term> 504 588 <listitem> 505 <para>implements the user level part of the NFS 506 service on the server.</para> 589 <para> 590 implements the user level part of the NFS 591 service on the server. 592 </para> 507 593 <indexterm zone="nfs-utils rpc.nfsd"> 508 594 <primary sortas="b-rpc.nfsd">rpc.nfsd</primary> … … 514 600 <term><command>rpc.statd</command></term> 515 601 <listitem> 516 <para>is used by the NFS file locking service. Run on both sides, 517 client as well as server, when you want file locking enabled.</para> 602 <para> 603 is used by the NFS file locking service. Run on both sides, 604 client as well as server, when you want file locking enabled. 605 </para> 518 606 <indexterm zone="nfs-utils rpc.statd"> 519 607 <primary sortas="b-rpc.statd">rpc.statd</primary> … … 525 613 <term><command>rpcdebug</command></term> 526 614 <listitem> 527 <para>sets or clears the kernel's NFS client and server debug 528 flags.</para> 615 <para> 616 sets or clears the kernel's NFS client and server debug flags. 617 </para> 529 618 <indexterm zone="nfs-utils rpcdebug"> 530 619 <primary sortas="b-rpcdebug">rpcdebug</primary> … … 536 625 <term><command>showmount</command></term> 537 626 <listitem> 538 <para>displays mount information for an NFS server.</para> 627 <para> 628 displays mount information for an NFS server. 629 </para> 539 630 <indexterm zone="nfs-utils showmount"> 540 631 <primary sortas="b-showmount">showmount</primary> … … 546 637 <term><command>sm-notify</command></term> 547 638 <listitem> 548 <para>is used to send Network Status Monitor reboot messages.</para> 639 <para> 640 is used to send Network Status Monitor reboot messages. 641 </para> 549 642 <indexterm zone="nfs-utils sm-notify"> 550 643 <primary sortas="b-sm-notify">sm-notify</primary> … … 556 649 <term><command>start-statd</command></term> 557 650 <listitem> 558 <para>is a script called by nfsmount when mounting a filesystem with 559 locking enabled, if statd does not appear to be running. It can be 560 customised with whatever flags are appropriate for the site.</para> 651 <para> 652 is a script called by nfsmount when mounting a filesystem with 653 locking enabled, if statd does not appear to be running. It can be 654 customised with whatever flags are appropriate for the site. 655 </para> 561 656 <indexterm zone="nfs-utils start-statd"> 562 657 <primary sortas="b-start-statd">start-statd</primary> … … 568 663 <term><command>umount.nfs</command></term> 569 664 <listitem> 570 <para>is used to unmount a network share using NFS</para> 665 <para> 666 is used to unmount a network share using NFS. 667 </para> 571 668 <indexterm zone="nfs-utils umount.nfs"> 572 669 <primary sortas="b-umount.nfs">umount.nfs</primary> … … 578 675 <term><command>umount.nfs4</command></term> 579 676 <listitem> 580 <para>is used to unmount a network share using NFSv4</para> 677 <para> 678 is used to unmount a network share using NFSv4. 679 </para> 581 680 <indexterm zone="nfs-utils umount.nfs4"> 582 681 <primary sortas="b-umount.nfs4">umount.nfs4</primary>
Note:
See TracChangeset
for help on using the changeset viewer.