Skip to content

Commit eb6e77f

Browse files
authored
Merge pull request #88774 from pagienge/patch-7
Update network-file-system-protocol-support-how-to.md
2 parents 3d3c446 + a464e93 commit eb6e77f

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

articles/storage/blobs/network-file-system-protocol-support-how-to.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,31 +75,43 @@ Create a directory on your Linux system, and then mount the container in the sto
7575
1. On your Linux system, create a directory:
7676

7777
```
78-
mkdir -p /mnt/test
78+
mkdir -p /nfsdata
7979
```
8080

81-
2. Mount the container by using the following command:
81+
2. Mount the container by using one of the following methods. In both methods, replace the `<storage-account-name>` placeholder with the name of your storage account, and replace `<container-name>` with the name of your container.
8282

83-
```
84-
mount -o sec=sys,vers=3,nolock,proto=tcp <storage-account-name>.blob.core.windows.net:/<storage-account-name>/<container-name> /mnt/test
85-
```
83+
- To have the share mounted automatically on reboot:
8684

87-
- Replace the `<storage-account-name>` placeholder that appears in this command with the name of your storage account.
85+
1. Create an entry in the /etc/fstab file by adding the following line:
86+
87+
```
88+
<storage-account-name>.blob.core.windows.net:/<storage-account-name>/<container-name> /nfsdata nfs defaults,sec=sys,vers=3,nolock,proto=tcp,nofail 0 0
89+
```
8890
89-
- Replace the `<container-name>` placeholder with the name of your container.
91+
1. Run the following command to immediately process the /etc/fstab entries and attempt to mount the preceding path:
92+
93+
```
94+
mount /nfsdata
95+
```
96+
97+
- For a temporary mount that doesn't persist across reboots, run the following command:
98+
99+
```
100+
mount -o sec=sys,vers=3,nolock,proto=tcp <storage-account-name>.blob.core.windows.net:/<storage-account-name>/<container-name> /nfsdata
101+
```
90102
91103
## Resolve common errors
92104
93105
|Error | Cause/resolution|
94106
|---|---|
95107
|`Access denied by server while mounting`|Ensure that your client is running within a supported subnet. See [Supported network locations](network-file-system-protocol-support.md#supported-network-connections).|
96108
|`No such file or directory`| Make sure to type, rather than copy and paste, the mount command and its parameters directly into the terminal. If you copy and paste any part of this command into the terminal from another application, hidden characters in the pasted information might cause this error to appear. This error also might appear if the account isn't enabled for NFS 3.0.|
97-
|`Permission denied`| The default mode of a newly created NFS 3.0 container is 0750. Non-root users don't have access to the volume. If access from non-root users is required, root users must change the mode to 0755. Sample command: `sudo chmod 0755 /mnt/<newcontainer>`|
109+
|`Permission denied`| The default mode of a newly created NFS 3.0 container is 0750. Non-root users don't have access to the volume. If access from non-root users is required, root users must change the mode to 0755. Sample command: `sudo chmod 0755 /nfsdata`|
98110
|`EINVAL ("Invalid argument"`) |This error can appear when a client attempts to:<li>Write to a blob that was created from a blob endpoint.<li>Delete a blob that has a snapshot or is in a container that has an active WORM (write once, read many) policy.|
99111
|`EROFS ("Read-only file system"`) |This error can appear when a client attempts to:<li>Write to a blob or delete a blob that has an active lease.<li>Write to a blob or delete a blob in a container that has an active WORM policy. |
100112
|`NFS3ERR_IO/EIO ("Input/output error"`) |This error can appear when a client attempts to read, write, or set attributes on blobs that are stored in the archive access tier. |
101113
|`OperationNotSupportedOnSymLink` error| This error can be returned during a write operation via a Blob Storage or Azure Data Lake Storage Gen2 API. Using these APIs to write or delete symbolic links that are created by using NFS 3.0 is not allowed. Make sure to use the NFS 3.0 endpoint to work with symbolic links. |
102-
|`mount: /mnt/test: bad option;`| Install the NFS helper program by using `sudo apt install nfs-common`.|
114+
|`mount: /nfsdata: bad option;`| Install the NFS helper program by using `sudo apt install nfs-common`.|
103115
104116
## See also
105117

0 commit comments

Comments
 (0)