Skip to content

Commit 9833370

Browse files
Merge pull request #223523 from khdownie/kendownie011023
tsg entry for snapshot mount on linux
2 parents f0c2839 + b6d9b35 commit 9833370

File tree

2 files changed

+47
-7
lines changed

2 files changed

+47
-7
lines changed

articles/storage/files/storage-how-to-use-files-linux.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to mount an Azure file share over SMB on Linux and review
44
author: khdownie
55
ms.service: storage
66
ms.topic: how-to
7-
ms.date: 01/06/2023
7+
ms.date: 01/10/2023
88
ms.author: kendownie
99
ms.subservice: files
1010
---
@@ -323,6 +323,8 @@ After you've created the file share snapshot, following these instructions to mo
323323

324324
6. If you're able to browse the snapshot under the path `/mnt/<file-share-name>/snapshot1`, then the mount succeeded.
325325
326+
If the mount fails, see [Troubleshoot Azure Files problems in Linux (SMB)](storage-troubleshoot-linux-file-connection-problems.md).
327+
326328
## Next steps
327329
See these links for more information about Azure Files:
328330

articles/storage/files/storage-troubleshoot-linux-file-connection-problems.md

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Troubleshooting Azure Files problems in Linux. See common issues re
44
author: khdownie
55
ms.service: storage
66
ms.topic: troubleshooting
7-
ms.date: 09/12/2022
7+
ms.date: 01/10/2023
88
ms.author: kendownie
99
ms.subservice: files
1010
---
@@ -30,11 +30,11 @@ In addition to the troubleshooting steps in this article, you can use [AzFileDia
3030

3131
Common causes for this problem are:
3232

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.
3838
- 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.
3939

4040
### Solution
@@ -68,6 +68,44 @@ If virtual network (VNET) and firewall rules are configured on the storage accou
6868

6969
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).
7070

71+
<a id="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+
<a id="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+
<a id="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
102+
[Mon Dec 12 10:34:09 2022] CIFS: VFS: cifs_mount failed w/return code = -2
103+
```
104+
105+
### Solution
106+
107+
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+
71109
<a id="permissiondenied"></a>
72110
## "[permission denied] Disk quota exceeded" when you try to open a file
73111

0 commit comments

Comments
 (0)