Skip to content

Commit db40d43

Browse files
[Doc-A-Thon] Updating commands and Distro Markdown
1 parent d5d0199 commit db40d43

File tree

1 file changed

+47
-13
lines changed

1 file changed

+47
-13
lines changed

articles/storage/files/files-troubleshoot-linux-nfs.md

Lines changed: 47 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ Even if you correctly disable idmapping, it can be automatically re-enabled in s
3636
Make sure you've disabled idmapping and that nothing is re-enabling it. Then perform the following steps:
3737

3838
- Unmount the share
39-
- Disable idmapping with `# echo Y > /sys/module/nfs/parameters/nfs4_disable_idmapping`
39+
- Disable idmapping with
40+
```bash
41+
sudo echo Y > /sys/module/nfs/parameters/nfs4_disable_idmapping
42+
```
4043
- Mount the share back
4144
- If running rsync, run rsync with the "—numeric-ids" argument from a directory that doesn't have a bad dir/file name.
4245

@@ -90,39 +93,70 @@ Disable **secure transfer required** in your storage account's configuration bla
9093

9194
:::image type="content" source="media/storage-files-how-to-mount-nfs-shares/disable-secure-transfer.png" alt-text="Screenshot of storage account configuration blade, disabling secure transfer required.":::
9295

93-
### Cause 3: nfs-common package isn't installed
94-
Before running the `mount` command, install the nfs-common package.
96+
### Cause 3: nfs-utils, nfs-client or nfs-common package isn't installed
97+
Before running the `mount` command, install the nfs-utils, nfs-client or the nfs-common package.
98+
99+
To check if the NFS package is installed, run:
100+
101+
# [RHEL/CentOS/OracleLinux](#tab/RHEL/CentOS/OracleLinux)
102+
103+
```bash
104+
sudo rpm qa | grep nfs-utils
105+
```
106+
# [SLES](#tab/SLES)
95107

96-
To check if the NFS package is installed, run: `rpm qa | grep nfs-utils`
108+
```bash
109+
sudo rpm qa | grep nfs-client
110+
```
111+
# [Ubuntu/Debian](#tab/Ubuntu/Debian)
112+
113+
```bash
114+
sudo dpkg -l | grep -i nfs-common
115+
```
97116

98117
#### Solution
99118

100119
If the package isn't installed, install the package using your distro-specific command.
101120

102-
##### Ubuntu or Debian
121+
# [RHEL-CentOS-OracleLinux](#tab/RHEL-CentOS-OracleLinux)
103122

123+
Os Version 7.X
124+
125+
```bash
126+
sudo yum install nfs-utils
104127
```
105-
sudo apt update
106-
sudo apt install nfs-common
128+
OS Version 8.X or 9.X
129+
130+
```bash
131+
sudo dnf install nfs-utils
107132
```
108133

109-
##### Fedora, Red Hat Enterprise Linux 8+, CentOS 8+
134+
# [SLES](#tab/SLES)
110135

111-
Use the dnf package manager: `sudo dnf install nfs-utils`.
136+
```bash
137+
sudo zypper install nfs-client
138+
```
112139

113-
Older versions of Red Hat Enterprise Linux and CentOS use the yum package manager: `sudo yum install nfs-common`.
140+
# [Ubuntu/Debian](#tab/Ubuntu/Debian)
114141

115-
##### openSUSE
116142

117-
Use the zypper package manager: `sudo zypper install-nfscommon`.
143+
```bash
144+
sudo apt update
145+
sudo apt install nfs-common
146+
```
147+
---
118148

119149
### Cause 4: Firewall blocking port 2049
120150

121151
The NFS protocol communicates to its server over port 2049. Make sure that this port is open to the storage account (the NFS server).
122152

123153
#### Solution
124154

125-
Verify that port 2049 is open on your client by running the following command: `telnet <storageaccountnamehere>.file.core.windows.net 2049`. If the port isn't open, open it.
155+
Verify that port 2049 is open on your client by running the following command. If the port isn't open, open it.
156+
157+
```bash
158+
sudo nc -zv <storageaccountnamehere>.file.core.windows.net 2049
159+
```
126160

127161
## ls hangs for large directory enumeration on some kernels
128162

0 commit comments

Comments
 (0)