Skip to content

Commit 2a130d6

Browse files
authored
Merge pull request #8075 from khdownie/kendownie012125
Add AOD tool to SMB doc
2 parents b9b82b8 + e71bdbe commit 2a130d6

1 file changed

Lines changed: 74 additions & 2 deletions

File tree

support/azure/azure-storage/files/security/files-troubleshoot-linux-smb.md

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ ms.reviewer: kendownie, v-weizhu
1111

1212
This article lists common issues that can occur when using SMB Azure file shares with Linux clients. It also provides possible causes and resolutions for these problems.
1313

14-
You can use [AzFileDiagnostics](https://github.com/Azure-Samples/azure-files-samples/tree/master/AzFileDiagnostics/Linux) to automate symptom detection and ensure that the Linux client has the correct prerequisites. It helps set up your environment to get optimal performance. You can also find this information in the [Azure file shares troubleshooter](https://support.microsoft.com/help/4022301/troubleshooter-for-azure-files-shares).
15-
1614
> [!IMPORTANT]
1715
> This article only applies to SMB shares. For details on NFS shares, see [Troubleshoot NFS Azure file shares](/azure/storage/files/files-troubleshoot-linux-nfs).
1816
@@ -24,6 +22,80 @@ You can use [AzFileDiagnostics](https://github.com/Azure-Samples/azure-files-sam
2422
| Standard file shares (GPv2), GRS/GZRS | :::image type="icon" source="media/files-troubleshoot-smb-authentication/yes-icon.png" border="false"::: | :::image type="icon" source="media/files-troubleshoot-smb-authentication/no-icon.png" border="false"::: |
2523
| Premium file shares (FileStorage), LRS/ZRS | :::image type="icon" source="media/files-troubleshoot-smb-authentication/yes-icon.png" border="false"::: | :::image type="icon" source="media/files-troubleshoot-smb-authentication/no-icon.png" border="false"::: |
2624

25+
## Run diagnostics
26+
27+
Diagnostics tools can be helpful for ensuring that clients have the correct prerequisites and for collecting debug information on field issues that can be hard to reproduce.
28+
29+
### Use AzFileDiagnostics
30+
31+
You can use [AzFileDiagnostics](https://github.com/Azure-Samples/azure-files-samples/tree/master/AzFileDiagnostics/Linux) to automate symptom detection and ensure that the Linux client has the correct prerequisites. It helps set up your environment to get optimal performance.
32+
33+
### Use the Always-On Diagnostics tool
34+
35+
You can also use the Always-On Diagnostics (AOD) tool to collect logs on SMB and NFSv4 Linux clients. The daemon runs in the background as a system service and can be configured to detect anomalies in a variety of sources such as dmesg logs, debug data, and error and latency metrics. It can capture data from tcpdump, nfsstat, mountstsat, and other sources, along with the system's CPU and memory usage.
36+
37+
AOD is currently compatible with systems running SUSE Linux Enterprise Server 15 (SLES15) and Red Hat Enterprise Linux 8 (RHEL8). Follow the appropriate installation steps.
38+
39+
#### [SLES](#tab/SLES)
40+
41+
Follow these instructions to install the Always-On Diagnostics tool on SUSE Linux Enterprise Server 15.
42+
43+
1. Add the Microsoft repo. You might need to add the Microsoft repository key to your list of trusted keys.
44+
45+
```
46+
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
47+
sudo zypper addrepo --check --refresh --name 'Microsoft' https://packages.microsoft.com/sles/15/prod microsoft
48+
```
49+
50+
2. Refresh the repositories.
51+
52+
```
53+
sudo zypper refresh
54+
```
55+
56+
3. Check if the repo has been added and the aod package is available for installation.
57+
58+
```
59+
zypper search aod
60+
```
61+
62+
4. Install the package.
63+
64+
```
65+
sudo zypper install aod
66+
```
67+
68+
#### [RHEL](#tab/RHEL)
69+
70+
Follow these instructions to install the Always-On Diagnostics tool on Red Hat Enterprise Linux 8.
71+
72+
1. Download the repo config package.
73+
74+
```
75+
curl -ssl -O https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm
76+
```
77+
78+
2. Install the repo config package.
79+
80+
```
81+
sudo rpm -i packages-microsoft-prod.rpm
82+
```
83+
84+
3. Delete the repo config package after installing and updating the package index files.
85+
86+
```
87+
rm packages-microsoft-prod.rpm
88+
sudo dnf update
89+
```
90+
91+
4. Install the package.
92+
93+
```
94+
sudo dnf install aod
95+
```
96+
97+
---
98+
2799
## <a id="timestampslost"></a>Time stamps were lost when copying files
28100

29101
On Linux/Unix platforms, the `cp -p` command fails if different users own file 1 and file 2.

0 commit comments

Comments
 (0)