You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/files/storage-troubleshoot-linux-file-connection-problems.md
+44-6Lines changed: 44 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Troubleshooting Azure Files problems in Linux. See common issues re
4
4
author: khdownie
5
5
ms.service: storage
6
6
ms.topic: troubleshooting
7
-
ms.date: 09/12/2022
7
+
ms.date: 01/10/2023
8
8
ms.author: kendownie
9
9
ms.subservice: files
10
10
---
@@ -30,11 +30,11 @@ In addition to the troubleshooting steps in this article, you can use [AzFileDia
30
30
31
31
Common causes for this problem are:
32
32
33
-
- You're using an Linux distribution with an outdated SMB client. See [Use Azure Files with Linux](storage-how-to-use-files-linux.md) for more information on common Linux distributions available in Azure that have compatible clients.
34
-
- SMB utilities (cifs-utils) are not installed on the client.
35
-
- The minimum SMB version, 2.1, is not available on the client.
36
-
- SMB 3.x encryption is not supported on the client. The preceding table provides a list of Linux distributions that support mounting from on-premises and cross-region using encryption. Other distributions require kernel 4.11 and later versions.
37
-
- You're trying to connect to an Azure file share from an Azure VM, and the VM is not in the same region as the storage account.
33
+
- You're using a Linux distribution with an outdated SMB client. See [Use Azure Files with Linux](storage-how-to-use-files-linux.md) for more information on common Linux distributions available in Azure that have compatible clients.
34
+
- SMB utilities (cifs-utils) aren't installed on the client.
35
+
- The minimum SMB version, 2.1, isn't available on the client.
36
+
- SMB 3.x encryption isn't supported on the client. The preceding table provides a list of Linux distributions that support mounting from on-premises and cross-region using encryption. Other distributions require kernel 4.11 and later versions.
37
+
- You're trying to connect to an Azure file share from an Azure VM, and the VM isn't in the same region as the storage account.
38
38
- If the [Secure transfer required](../common/storage-require-secure-transfer.md) setting is enabled on the storage account, Azure Files will allow only connections that use SMB 3.x with encryption.
39
39
40
40
### Solution
@@ -68,6 +68,44 @@ If virtual network (VNET) and firewall rules are configured on the storage accou
68
68
69
69
Verify virtual network and firewall rules are configured properly on the storage account. To test if virtual network or firewall rules is causing the issue, temporarily change the setting on the storage account to **Allow access from all networks**. To learn more, see [Configure Azure Storage firewalls and virtual networks](../common/storage-network-security.md).
70
70
71
+
<aid="mounterror22"></a>
72
+
## "Mount error(22): Invalid argument" when trying to mount an Azure file share snapshot
73
+
74
+
### Cause
75
+
76
+
If the `snapshot` option for the `mount` command isn't passed in a recognized format, the `mount` command can fail with this error. To confirm, check kernel log messages (dmesg), and dmesg will show a log entry such as **cifs: Bad value for 'snapshot'**.
77
+
78
+
### Solution
79
+
80
+
Make sure you're passing the `snapshot` option for the `mount` command in the correct format. Refer to the mount.cifs manual page (e.g. `man mount.cifs`). A common error is passing the GMT timestamp in the wrong format, such as using hyphens or colons in place of periods. For more information, see [Mount a file share snapshot](storage-how-to-use-files-linux.md#mount-a-file-share-snapshot).
81
+
82
+
<aid="badsnapshottoken"></a>
83
+
## "Bad snapshot token" when trying to mount an Azure file share snapshot
84
+
85
+
### Cause
86
+
87
+
If the snapshot `mount` option is passed starting with @GMT, but the format is still wrong (such as using hyphens and colons instead of periods), the `mount` command can fail with this error.
88
+
89
+
### Solution
90
+
91
+
Make sure you're passing the GMT timestamp in the correct format, which is **@GMT-year.month.day-hour.minutes.seconds**. For more information, see [Mount a file share snapshot](storage-how-to-use-files-linux.md#mount-a-file-share-snapshot).
92
+
93
+
<aid="mounterror2"></a>
94
+
## "Mount error(2): No such file or directory" when trying to mount an Azure file share snapshot
95
+
96
+
### Cause
97
+
98
+
If the snapshot that you're attempting to mount doesn't exist, the `mount` command can fail with this error. To confirm, check kernel log messages (dmesg), and dmesg will show a log entry such as:
99
+
100
+
```bash
101
+
[Mon Dec 12 10:34:09 2022] CIFS: Attempting to mount \\snapshottestlinux.file.core.windows.net\snapshot-test-share1
Make sure the snapshot you're attempting to mount exists. For more information on how to list the available snapshots for a given Azure file share, see [Mount a file share snapshot](storage-how-to-use-files-linux.md#mount-a-file-share-snapshot).
108
+
71
109
<aid="permissiondenied"></a>
72
110
## "[permission denied] Disk quota exceeded" when you try to open a file
0 commit comments