Files
doc-exports/docs/sfs/umn/en-us_topic_0034428728.html
lizaoxu d8e1c23e3b SFS UMN Version
Reviewed-by: Miskanin, Jan <jan.miskanin@t-systems.com>
Co-authored-by: lizaoxu <lizaoxu@huawei.com>
Co-committed-by: lizaoxu <lizaoxu@huawei.com>
2026-04-27 08:42:09 +00:00

195 lines
34 KiB
HTML

<a name="en-us_topic_0034428728"></a><a name="en-us_topic_0034428728"></a>
<h1 class="topictitle1">Mounting an NFS File System to ECSs (Linux)</h1>
<div id="body1469764805160"><p id="en-us_topic_0034428728__p2306492150">After creating a file system, you need to mount it to cloud servers so that they can share the file system.</p>
<p id="en-us_topic_0034428728__p14583144511397">In this section, ECSs are used as example servers. Operations on BMSs and containers (CCE) are the same as those on ECSs.</p>
<p id="en-us_topic_0034428728__p28842411397">General purpose file systems cannot be mounted to 32-bit Linux servers.</p>
<div class="section" id="en-us_topic_0034428728__section27225646153519"><h4 class="sectiontitle">Prerequisites</h4><ul id="en-us_topic_0034428728__ul22392394151035"><li id="en-us_topic_0034428728__li1643177211639">You have checked the OS type of each ECS. Different OSs require different commands to install the NFS client.</li><li id="en-us_topic_0034428728__li36708344151035">You have created a file system and have obtained the mount point of the file system.</li><li id="en-us_topic_0034428728__li41791988151146">At least one ECS that is in the same VPC as the file system is available.</li><li id="en-us_topic_0034428728__li4035673142313">The IP address of the DNS server for resolving the file system domain name has been configured on the ECS. SFS Turbo file systems do not require domain name resolution.</li></ul>
</div>
<div class="section" id="en-us_topic_0034428728__section16325173453119"><h4 class="sectiontitle">Constraints</h4><div class="note" id="en-us_topic_0034428728__note762115317"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0034428728__p53731561502">This constraint only applies to local paths (mount points) and does not affect other files or directories.</p>
</div></div>
<p id="en-us_topic_0034428728__p1373185613012">Metadata of the local paths (mount points) cannot be modified. Specifically, the following operations cannot be performed on the local paths' metadata:</p>
<p id="en-us_topic_0034428728__p113737561014"><strong id="en-us_topic_0034428728__b195461915409">- touch</strong>: Update file access time and modification time.</p>
<p id="en-us_topic_0034428728__p33730568013"><strong id="en-us_topic_0034428728__b19925184110409">- rm</strong>: Delete files or directories.</p>
<p id="en-us_topic_0034428728__p537311567018"><strong id="en-us_topic_0034428728__b9676184844011">- cp</strong>: Replicate files or directories.</p>
<p id="en-us_topic_0034428728__p153734568013"><strong id="en-us_topic_0034428728__b1166266154119">- mv</strong>: Move files or directories.</p>
<p id="en-us_topic_0034428728__p737313561008"><strong id="en-us_topic_0034428728__b47481717184116">- rename</strong>: Rename files or directories.</p>
<p id="en-us_topic_0034428728__p1373356105"><strong id="en-us_topic_0034428728__b7222143320417">- chmod</strong>: Modify permissions on files or directories.</p>
<p id="en-us_topic_0034428728__p53731056801"><strong id="en-us_topic_0034428728__b6841946184117">- chown</strong>: Change file or directory owners.</p>
<p id="en-us_topic_0034428728__p1037325615010"><strong id="en-us_topic_0034428728__b2042615364310">- chgrp</strong>: Change file or directory groups.</p>
<p id="en-us_topic_0034428728__p1537319561503"><strong id="en-us_topic_0034428728__b3158939194412">- ln</strong>: Create hard links.</p>
<p id="en-us_topic_0034428728__p10373556906"><strong id="en-us_topic_0034428728__b12445350184412">- link</strong>: Create hard links.</p>
<p id="en-us_topic_0034428728__p337314561020"><strong id="en-us_topic_0034428728__b17876404451">- unlink</strong>: Delete hard links.</p>
<p id="en-us_topic_0034428728__p11630540103815">The <strong id="en-us_topic_0034428728__b107411644088">atime</strong>, <strong id="en-us_topic_0034428728__b1634017505810">ctime</strong>, and <strong id="en-us_topic_0034428728__b326471181">mtime</strong> attributes of a local path (root directory of the mount point) are the current time. So each time the root directory attribute is queried, the current time of the server is returned.</p>
</div>
<div class="section" id="en-us_topic_0034428728__section62423454145852"><h4 class="sectiontitle">Procedure</h4><ol id="en-us_topic_0034428728__ol41878263153942"><li id="en-us_topic_0034428728__li54621311946"><span>Log in to the management console using a cloud account.</span><p><ol type="a" id="en-us_topic_0034428728__ol1253112432049"><li id="en-us_topic_0034428728__li194621111413">Log in to the management console and select a region and a project.</li><li id="en-us_topic_0034428728__li1446216114413">Choose <strong id="en-us_topic_0034428728__b14510115119">Compute</strong> &gt; <strong id="en-us_topic_0034428728__b175111451616">Elastic Cloud Server</strong> to go to the ECS console.</li></ol>
</p></li><li id="en-us_topic_0034428728__li19554357153942"><span>Log in to the ECS as user <strong id="en-us_topic_0034428728__b18283141816578">root</strong>.</span><p><div class="note" id="en-us_topic_0034428728__note2420440359"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0034428728__p18421440456">If you log in to the ECS as a non-root user, see <a href="sfs_01_0100.html">Mounting a File System to a Linux ECS as a Non-root User</a>.</p>
</div></div>
</p></li><li id="en-us_topic_0034428728__li2120272211848"><span>Install the NFS client.</span><p><ol type="a" id="en-us_topic_0034428728__ol1301396611920"><li id="en-us_topic_0034428728__li14490173955118"><strong id="en-us_topic_0034428728__b13982384713">Install the NFS client.</strong><ol class="substepthirdol" id="en-us_topic_0034428728__ol1280653510545"><li id="en-us_topic_0034428728__li3005384611953">Run the following command to check whether the NFS software package is installed.<ul id="en-us_topic_0034428728__ul26672400113059"><li id="en-us_topic_0034428728__li15670880113059">In CentOS, Red Hat, Oracle Enterprise Linux, SUSE, EulerOS, Fedora, or openSUSE:<p id="en-us_topic_0034428728__p204915911953"><a name="en-us_topic_0034428728__li15670880113059"></a><a name="li15670880113059"></a><strong id="en-us_topic_0034428728__b1844243211953">rpm -qa|grep nfs</strong></p>
</li><li id="en-us_topic_0034428728__li6277913113226">In Debian or Ubuntu:<p id="en-us_topic_0034428728__p1057433113239"><a name="en-us_topic_0034428728__li6277913113226"></a><a name="li6277913113226"></a><strong id="en-us_topic_0034428728__b55921161113425">dpkg -l nfs</strong><strong id="en-us_topic_0034428728__b122393499567">-common</strong></p>
</li></ul>
<div class="p" id="en-us_topic_0034428728__p3176416211953">If a command output similar to the following is displayed, the NFS software package has been installed and you can go to <a href="#en-us_topic_0034428728__li6090605610251">4</a>. If no such command output is displayed, go to <a href="#en-us_topic_0034428728__li1895373549">b</a>.<ul id="en-us_topic_0034428728__ul6217171172614"><li id="en-us_topic_0034428728__li26096349172616">In CentOS, Red Hat, EulerOS, Fedora, or Oracle Enterprise Linux:<pre class="screen" id="en-us_topic_0034428728__screen8147337172614">libnfsidmap
nfs-utils</pre>
</li><li id="en-us_topic_0034428728__li24109349172735">In SUSE or openSUSE:<pre class="screen" id="en-us_topic_0034428728__screen5756238717356">nfsidmap
nfs-client</pre>
</li><li id="en-us_topic_0034428728__li35314414172712">In Debian or Ubuntu:<pre class="screen" id="en-us_topic_0034428728__screen35729206163428">nfs-common</pre>
</li></ul>
</div>
</li><li id="en-us_topic_0034428728__li1895373549"><a name="en-us_topic_0034428728__li1895373549"></a><a name="li1895373549"></a>Run the following command to install the NFS software package.<div class="note" id="en-us_topic_0034428728__note53285781104551"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0034428728__p9809982104551">The following commands require that ECSs be connected to the Internet. Or, the installation will fail. Installing NFS clients requires enabling effective software repositories. Installing NFS clients will fail if no software repository is enabled or the ECS does not have any software repository. If installing NFS clients fails, refer to <a href="sfs_01_0027.html">Enabling or Adding a Software Repository</a>.</p>
</div></div>
<ul id="en-us_topic_0034428728__ul131043712549"><li id="en-us_topic_0034428728__li6039788911109">In CentOS, Red Hat, EulerOS, Fedora, or Oracle Enterprise Linux:<p id="en-us_topic_0034428728__p671009311109"><a name="en-us_topic_0034428728__li6039788911109"></a><a name="li6039788911109"></a><strong id="en-us_topic_0034428728__b6039084511109">sudo yum -y install nfs-utils</strong></p>
</li><li id="en-us_topic_0034428728__li664669711109">In Debian or Ubuntu:<p id="en-us_topic_0034428728__p5982027311109"><a name="en-us_topic_0034428728__li664669711109"></a><a name="li664669711109"></a><strong id="en-us_topic_0034428728__b151155211109">sudo apt-get install nfs-common</strong></p>
</li><li id="en-us_topic_0034428728__li1510237195418">In SUSE or openSUSE:<p id="en-us_topic_0034428728__p2890598152658"><a name="en-us_topic_0034428728__li1510237195418"></a><a name="li1510237195418"></a><strong id="en-us_topic_0034428728__b58327056152729">zyppe</strong><strong id="en-us_topic_0034428728__b43001847212522">r install nfs-client</strong></p>
</li></ul>
</li></ol>
</li></ol>
</p></li><li id="en-us_topic_0034428728__li6090605610251"><a name="en-us_topic_0034428728__li6090605610251"></a><a name="li6090605610251"></a><span>Run the following command to check whether the domain name in the file system mount point can be resolved. SFS Turbo file systems do not require domain name resolution. Skip this step and directly mount the file system.</span><p><p id="en-us_topic_0034428728__en-us_topic_0034428728_p10935718194846"><strong id="en-us_topic_0034428728__en-us_topic_0034428728_b2640810495945">nslookup</strong> <i><span class="varname" id="en-us_topic_0034428728__en-us_topic_0034428728_varname38978436195057">File system domain name</span></i></p>
<div class="note" id="en-us_topic_0034428728__en-us_topic_0034428728_note29180387204651"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0034428728__ul17992171534413"><li id="en-us_topic_0034428728__li17427111734711">A file system domain name is just a part of the mount point, for example, <strong id="en-us_topic_0034428728__b4733152964511">sfs-nas1.example.com</strong>. You can obtain a file system domain name from the mount point of a file system. In this step, you are not supposed to enter the entire mount point but only the domain name.</li><li id="en-us_topic_0034428728__li27281032104413">If the <strong id="en-us_topic_0034428728__b465444505310">nslookup</strong> command cannot be used, install the <strong id="en-us_topic_0034428728__b1478230463154534">bind-utils</strong> software package by running the <strong id="en-us_topic_0034428728__b614874918346">yum install bind-utils</strong> command.</li></ul>
</div></div>
<ul id="en-us_topic_0034428728__en-us_topic_0034428728_ul22160462194958"><li id="en-us_topic_0034428728__en-us_topic_0034428728_li5818514194958">If the domain name can be resolved, go to <a href="#en-us_topic_0034428728__li4945457518115">5</a>.</li><li id="en-us_topic_0034428728__en-us_topic_0034428728_li14464294195144">If the domain name cannot be resolved, configure the DNS server IP address and then mount the file system. For details, see <a href="sfs_01_0038.html">Configuring DNS</a>.</li></ul>
</p></li><li id="en-us_topic_0034428728__li4945457518115"><a name="en-us_topic_0034428728__li4945457518115"></a><a name="li4945457518115"></a><span>Run the following command to create a local path for mounting the file system:</span><p><p id="en-us_topic_0034428728__p4635014715057"><strong id="en-us_topic_0034428728__b876721299165532">mkdir</strong> <i><span class="varname" id="en-us_topic_0034428728__varname653775474165532">Local path</span></i></p>
<div class="note" id="en-us_topic_0034428728__note379012441453"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0034428728__p456673831111">If there is any resource, such as a disk, already mounted on the local path, create a new path. (NFS clients do not refuse repeated mounts. If there are repeated mounts, information of the last successful mount is displayed.)</p>
</div></div>
</p></li><li id="en-us_topic_0034428728__li169893336331"><span>Mount the file system to the ECSs in the same VPC as the file system. You can now mount the file system to Linux ECSs using NFSv3 only.</span><p><p id="en-us_topic_0034428728__p117161352338"><a href="#en-us_topic_0034428728__table199544014035">Table 1</a> describes the variables.</p>
<p id="en-us_topic_0034428728__p206272818117">To mount an SFS Capacity-Oriented file system, run the following command: <strong id="en-us_topic_0034428728__b157061115016">mount -t nfs -o vers=3,timeo=600,noresvport,nolock</strong> <i><span class="varname" id="en-us_topic_0034428728__varname770691516111">Mount point</span></i> <i><span class="varname" id="en-us_topic_0034428728__varname970619156117">Local path</span></i></p>
<p id="en-us_topic_0034428728__p32897718105517">To mount an SFS Turbo file system, run the following command: <strong id="en-us_topic_0034428728__b1396441219589">mount -t nfs -o vers=3,timeo=600,noresvport,nolock</strong><strong id="en-us_topic_0034428728__b7802102011331">,tcp</strong> <i><span class="varname" id="en-us_topic_0034428728__varname7304105915428">Mount point</span></i> <i><span class="varname" id="en-us_topic_0034428728__varname143051059164218">Local path</span></i></p>
<p id="en-us_topic_0034428728__p112835112586">To mount a general purpose file system, run the following command: <strong id="en-us_topic_0034428728__b18724488582">mount -t nfs -o vers=3,timeo=600,noresvport,nolock,proto=tcp</strong> <i><span class="varname" id="en-us_topic_0034428728__varname4218121020159">Mount point</span></i> <i><span class="varname" id="en-us_topic_0034428728__varname1621811103156">Local path</span></i></p>
<div class="notice" id="en-us_topic_0034428728__note5663162814476"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="en-us_topic_0034428728__p120947155317">After a client ECS is restarted, it loses the file system mount information. You can configure auto mount in the <strong id="en-us_topic_0034428728__b1065942333020">fstab</strong> file to ensure that the ECS automatically mounts the file system when it restarts. For details, see <a href="sfs_01_0025.html">Mounting a File System Automatically</a>.</p>
</div></div>
<div class="p" id="en-us_topic_0034428728__p153666487529">
<div class="tablenoborder"><a name="en-us_topic_0034428728__table199544014035"></a><a name="table199544014035"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0034428728__table199544014035" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0034428728__row12186162151218"><th align="left" class="cellrowborder" valign="top" width="23.119999999999997%" id="mcps1.3.6.2.6.2.6.1.2.3.1.1"><p id="en-us_topic_0034428728__p151861721201215">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="76.88000000000001%" id="mcps1.3.6.2.6.2.6.1.2.3.1.2"><p id="en-us_topic_0034428728__p12186102119127">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0034428728__row1087259185"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.1 "><p id="en-us_topic_0034428728__p1888357181">vers</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.2 "><p id="en-us_topic_0034428728__p8882551818">File system version. Only NFSv3 is supported currently, so the value is fixed to <strong id="en-us_topic_0034428728__b987819218276">3</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row1166715112182"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.1 "><p id="en-us_topic_0034428728__p1566901201816">timeo</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.2 "><p id="en-us_topic_0034428728__p566914112182">Waiting time before the NFS client retransmits a request. The unit is 0.1 second. The recommended value is <strong id="en-us_topic_0034428728__b11601319487">600</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row18604134217211"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.1 "><p id="en-us_topic_0034428728__p1348720171934">noresvport</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.2 "><p id="en-us_topic_0034428728__p224913010103">Whether the NFS client uses a new TCP port when a network connection is re-established.</p>
<p id="en-us_topic_0034428728__p1424910181019">For example, during a network switch, the file system may be blocked, and it may take several minutes to re-establish the connection automatically. In more severe cases, you may need to restart the client ECS. It is strongly recommended that you specify <strong id="en-us_topic_0034428728__b4430155011157">noresvport</strong>, which ensures that your file system remains uninterrupted after a network reconnection or recovery.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row1611193815390"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.1 "><p id="en-us_topic_0034428728__p711113843912">lock/nolock</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.2 "><p id="en-us_topic_0034428728__p526822214011">Whether to lock files on the server using the NLM protocol. If <strong id="en-us_topic_0034428728__b18633113319211">nolock</strong> is selected, the lock is valid for applications on one host. For applications on another host, the lock is invalid. The recommended value is <strong id="en-us_topic_0034428728__b16238101472711">nolock</strong>. If this parameter is not specified, <strong id="en-us_topic_0034428728__b690794263">lock</strong> is selected by default. In this case, other servers cannot write data to the file system.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row159887458129"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.1 "><p id="en-us_topic_0034428728__p0989245151216">proto</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.2 "><p id="en-us_topic_0034428728__p7989164521218">Protocol used by NFS clients to send requests to the server. Both UDP and TCP protocols can be used.</p>
<p id="en-us_topic_0034428728__p5765449141418">General Purpose File System does not support UDP. Therefore, you need to set <strong id="en-us_topic_0034428728__b43216091017">proto</strong> to <strong id="en-us_topic_0034428728__b17328019100">tcp</strong> for general purpose file systems.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row13186221111215"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.1 "><p id="en-us_topic_0034428728__p121861521161211"><em id="en-us_topic_0034428728__i72319348531">Mount point</em></p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.2 "><p id="en-us_topic_0034428728__p16298184192213">The format for an SFS Capacity-Oriented file system is <em id="en-us_topic_0034428728__i22863491483">File system domain name</em>:/<em id="en-us_topic_0034428728__i12862491588">Path</em>, for example, <strong id="en-us_topic_0034428728__b2286174915812">example.com:/share-</strong><em id="en-us_topic_0034428728__i4286184915812">xxx</em>. </p>
<p id="en-us_topic_0034428728__p4872151516538">The format for a general purpose file system is <em id="en-us_topic_0034428728__i16141174517188">File system domain name</em>:/<em id="en-us_topic_0034428728__i14159171171919">File system name</em>, for example, <strong id="en-us_topic_0034428728__b1830641420192">example.com:/</strong><em id="en-us_topic_0034428728__i167075165199">xxx</em>.</p>
<p id="en-us_topic_0034428728__p443695664919">The format for an SFS Turbo Standard, Standard-Enhanced, Performance, or Performance-Enhanced file system is <em id="en-us_topic_0034428728__i66946442135">File system IP address</em><strong id="en-us_topic_0034428728__b15694544161317">:/</strong>, for example, <strong id="en-us_topic_0034428728__b869514419135">192.168.0.0:/</strong>. </p>
<p id="en-us_topic_0034428728__p9609430163119">For an SFS Turbo 1,000 MB/s/TiB, 500 MB/s/TiB, 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system, the format is <em id="en-us_topic_0034428728__i11831165622816">File system domain name</em><strong id="en-us_topic_0034428728__b1783135652816">:/</strong>, for example, <strong id="en-us_topic_0034428728__b783135632810">xxx.sfsturbo.internal:/</strong>.</p>
<div class="note" id="en-us_topic_0034428728__note1918652110122"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="en-us_topic_0034428728__ul16921194345613"><li id="en-us_topic_0034428728__li29211243145619">Variable <em id="en-us_topic_0034428728__i1212909102520">x</em> is a digit or letter.</li><li id="en-us_topic_0034428728__li19211143125611">If the mount point is too long to display completely, you can adjust the column width.</li><li id="en-us_topic_0034428728__li156121474580">Hover the mouse over the mount point to display the complete <strong id="en-us_topic_0034428728__b9930165141013">mount</strong> command.</li></ul>
</div></div>
</td>
</tr>
<tr id="en-us_topic_0034428728__row13186122161215"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.1 "><p id="en-us_topic_0034428728__p1118632112125"><em id="en-us_topic_0034428728__i157061642195314">Local path</em></p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.6.1.2.3.1.2 "><p id="en-us_topic_0034428728__p10186182112124">A local directory on the ECS used to mount the file system, for example, <span class="filepath" id="en-us_topic_0034428728__filepath15549154417113"><b>/local_path</b></span>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p id="en-us_topic_0034428728__p1664261985319">For more mounting parameters for performance optimization during file system mounting, see <a href="#en-us_topic_0034428728__table372185017537">Table 2</a>. Use commas (,) to separate parameters. The following command is an example:</p>
<p id="en-us_topic_0034428728__p15918191019258"><strong id="en-us_topic_0034428728__b13529324152618">mount -t nfs -o vers=3,timeo=600,nolock,rsize=1048576,wsize=1048576,hard,retrans=3,noresvport,ro,async,noatime,nodiratime</strong> <i><span class="varname" id="en-us_topic_0034428728__varname1369019156331">Mount point</span></i> <i><span class="varname" id="en-us_topic_0034428728__varname3690151519336">Local path</span></i></p>
<div class="tablenoborder"><a name="en-us_topic_0034428728__table372185017537"></a><a name="table372185017537"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0034428728__table372185017537" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters for file system mounting</caption><thead align="left"><tr id="en-us_topic_0034428728__row1872545055319"><th align="left" class="cellrowborder" valign="top" width="23.119999999999997%" id="mcps1.3.6.2.6.2.9.2.3.1.1"><p id="en-us_topic_0034428728__p8727850165312">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="76.88000000000001%" id="mcps1.3.6.2.6.2.9.2.3.1.2"><p id="en-us_topic_0034428728__p9729125015313">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0034428728__row12731450195314"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p14732145075316">rsize</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><p id="en-us_topic_0034428728__p18978184263717">Maximum number of bytes that can be read from the server each time. The actual data is less than or equal to the value of this parameter. The value of <strong id="en-us_topic_0034428728__b6869125132113">rsize</strong> must be a positive integer that is a multiple of <strong id="en-us_topic_0034428728__b5850141911509">1024</strong>. If the entered value is smaller than <strong id="en-us_topic_0034428728__b85121122205014">1024</strong>, the value is automatically set to <strong id="en-us_topic_0034428728__b267317247508">4096</strong>. If the entered value is greater than <strong id="en-us_topic_0034428728__b1731412735019">1048576</strong>, the value is automatically set to <strong id="en-us_topic_0034428728__b10446122914508">1048576</strong>. By default, the setting is performed after the negotiation between the server and the client.</p>
<p id="en-us_topic_0034428728__p71725635411">You are advised to set this parameter to the maximum value <strong id="en-us_topic_0034428728__b1814819439512">1048576</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row0748165025318"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p87501550205314">wsize</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><p id="en-us_topic_0034428728__p996335265410">Maximum number of bytes that can be written to the server each time. The actual data is less than or equal to the value of this parameter. The value of <strong id="en-us_topic_0034428728__b18685126162610">wsize</strong> must be a positive integer that is a multiple of <strong id="en-us_topic_0034428728__b12716163595015">1024</strong>. If the entered value is smaller than <strong id="en-us_topic_0034428728__b1294011374507">1024</strong>, the value is automatically set to <strong id="en-us_topic_0034428728__b1412984065010">4096</strong>. If the entered value is greater than <strong id="en-us_topic_0034428728__b9554144312508">1048576</strong>, the value is automatically set to <strong id="en-us_topic_0034428728__b376124115504">1048576</strong>. By default, the setting is performed after the negotiation between the server and the client.</p>
<p id="en-us_topic_0034428728__p8579149203711">You are advised to set this parameter to the maximum value <strong id="en-us_topic_0034428728__b1578018476514">1048576</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row15831677265"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p2583875267">soft/hard</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><p id="en-us_topic_0034428728__p1230732603814"><strong id="en-us_topic_0034428728__b111340380266">soft</strong> indicates that a file system is mounted in soft mount mode. In this mode, if an NFS request times out, the client returns an error to the invoking program. <strong id="en-us_topic_0034428728__b1954313111279">hard</strong> indicates that a file system is mounted in hard mount mode. In this mode, if the NFS request times out, the client continues to request until the request is successful.</p>
<p id="en-us_topic_0034428728__p105687113555">The default value is <strong id="en-us_topic_0034428728__b8530105419447">hard</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row145513217264"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p145611212617">retrans</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><p id="en-us_topic_0034428728__p153123612550">Number of retransmission times before the client returns an error. Recommended value: <strong id="en-us_topic_0034428728__b536451133319">1</strong></p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row18362154465518"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p33629447551">ro/rw</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><ul id="en-us_topic_0034428728__ul1364855318617"><li id="en-us_topic_0034428728__li10648553262"><strong id="en-us_topic_0034428728__b16893185713115">ro</strong>: indicates that the file system is mounted as read-only.</li><li id="en-us_topic_0034428728__li1464875310620"><strong id="en-us_topic_0034428728__b9354164821217">rw</strong>: indicates that the file system is mounted as read/write.</li></ul>
<p id="en-us_topic_0034428728__p1033313035612">The default value is <strong id="en-us_topic_0034428728__b1496215013133">rw</strong>. If this parameter is not specified, the file system will be mounted as read/write.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row157810472137"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p15051248121316">noresvport</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><p id="en-us_topic_0034428728__p105051648131317">Whether the NFS client uses a new TCP port when a network connection is re-established.</p>
<p id="en-us_topic_0034428728__p65051948141313">For example, during a network switch, the file system may be blocked, and it may take several minutes to re-establish the connection automatically. In more severe cases, you may need to restart the client ECS. It is strongly recommended that you specify <strong id="en-us_topic_0034428728__b8857175717156">noresvport</strong>, which ensures that your file system remains uninterrupted after a network reconnection or recovery.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row1841014819396"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p09771344017">sync/async</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><p id="en-us_topic_0034428728__p2068210194418"><strong id="en-us_topic_0034428728__b1620144254013">sync</strong> indicates that data is written to the server immediately. <strong id="en-us_topic_0034428728__b11896329194220">async</strong> indicates that data is first written to the cache before being written to the server.</p>
<p id="en-us_topic_0034428728__p1517011424019">Synchronous write requires that an NFS server returns a success message only after all data is written to the server, which brings long latency. The recommended value is <strong id="en-us_topic_0034428728__b1080193514469">async</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row333111388401"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p2484144104013">noatime</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><p id="en-us_topic_0034428728__p1928305111402">If you do not need to record the file access time, set this parameter. This prevents overheads caused by access time modification during frequent access.</p>
</td>
</tr>
<tr id="en-us_topic_0034428728__row121441656114020"><td class="cellrowborder" valign="top" width="23.119999999999997%" headers="mcps1.3.6.2.6.2.9.2.3.1.1 "><p id="en-us_topic_0034428728__p115761174114">nodiratime</p>
</td>
<td class="cellrowborder" valign="top" width="76.88000000000001%" headers="mcps1.3.6.2.6.2.9.2.3.1.2 "><p id="en-us_topic_0034428728__p786308184113">If you do not need to record the directory access time, set this parameter. This prevents overheads caused by access time modification during frequent access.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="en-us_topic_0034428728__note3628223202710"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0034428728__p96281723142714">You are advised to use the default values for the parameters without usage recommendations.</p>
</div></div>
</p></li><li id="en-us_topic_0034428728__li5972183015356"><span>Run the following command to view the mounted file system:</span><p><p id="en-us_topic_0034428728__p249187081543"><strong id="en-us_topic_0034428728__b318697281545">mount -l</strong></p>
<div class="p" id="en-us_topic_0034428728__p4776349815359">If the command output contains the following information, the file system has been mounted:<pre class="screen" id="en-us_topic_0034428728__screen25662203111850"><em id="en-us_topic_0034428728__i1172563110214">Mount point</em> on <em id="en-us_topic_0034428728__i76371658595">/local_path</em> type nfs (rw,vers=3,timeo=600,nolock,addr=)</pre>
</div>
</p></li><li id="en-us_topic_0034428728__li5224542115174"><span>Check that you can access the file system on the ECSs to read or write data.</span><p><p id="en-us_topic_0034428728__p4501358756">If the mounting fails or times out, rectify the fault by referring to <a href="sfs_01_0056.html">Troubleshooting</a>.</p>
<p id="en-us_topic_0034428728__p32612187247"></p>
<div class="p" id="en-us_topic_0034428728__p11502152392713"><div class="note" id="en-us_topic_0034428728__note870812112383"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0034428728__p5708111103819">The maximum size of a file that can be written to an SFS Capacity-Oriented file system is 240 TB.</p>
<p id="en-us_topic_0034428728__p1995226111410">The maximum size of a file that can be written to an SFS Turbo Standard or Performance file system is 32 TB, that for a Standard-Enhanced or Performance-Enhanced file system is 320 TB, and that for a 1,000 MB/s/TiB, 500 MB/s/TiB, 250 MB/s/TiB, 125 MB/s/TiB, 40 MB/s/TiB, or 20 MB/s/TiB file system is 1 PB.</p>
</div></div>
</div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="sfs_01_0024.html">Mount a File System</a></div>
</div>
</div>