Skip to content

Commit bbca6fa

Browse files
Merge pull request #313023 from khdownie/kendownie031126-3
clarify NFS mount commands
2 parents fec7dd9 + bc5ac46 commit bbca6fa

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

articles/storage/files/storage-snapshots-files.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ az storage share list --account-name <storage-account-name> --include-snapshots
371371

372372
To mount an NFS classic file share snapshot to a Linux VM (NFS client) and restore files, follow these steps.
373373

374-
1. Run the following command in a console. See [Mount options](storage-files-how-to-mount-nfs-shares.md#mount-options) for other recommended mount options. To improve copy performance, mount the snapshot by using [nconnect](nfs-performance.md#nfs-nconnect) to use multiple TCP channels.
374+
1. Run the following command in a console. See [Mount options](storage-files-how-to-mount-nfs-shares.md#mount-options) for other recommended mount options. To improve copy performance, mount the snapshot by using [nconnect](nfs-performance.md#nfs-nconnect) to use multiple TCP channels. Replace the placeholder values, including brackets, with your own values. Replace `/media/nfs` with your local mount path, if different.
375375

376376
```bash
377-
sudo mount -o vers=4,minorversion=1,proto=tcp,sec=sys $server:/nfs4account/share /media/nfs
377+
sudo mount -o vers=4,minorversion=1,proto=tcp,sec=sys <StorageAccountName>.file.core.windows.net:/<StorageAccountName>/<FileShareName> /media/nfs
378378
```
379379

380380
1. Change the directory to `/media/nfs/.snapshots` so you can view the available snapshots. The `.snapshots` directory is hidden by default, but you can access and read from it like any directory. If you just created the snapshot, wait at least 30 seconds for the `.snapshots` directory to become available.
@@ -539,7 +539,9 @@ $filesharesnapshot.properties.metadata
539539
```
540540

541541
# [Azure CLI](#tab/cli)
542+
542543
To list all file share snapshots, run the following Azure CLI command. Replace `<subscription-ID>`, `<resource-group-name>`, and `<file-share-name>` with your own values.
544+
543545
```bash
544546
az rest --method get \
545547
--uri "/subscriptions/<subscription-ID>/resourceGroups/<resource-group-name>/providers/Microsoft.FileShares/fileShares/<file-share-name>/fileShareSnapshots/?api-version=2025-09-01-preview"
@@ -551,10 +553,16 @@ az rest --method get \
551553

552554
To mount an NFS file share snapshot to a Linux VM (NFS client) and restore files, follow these steps.
553555

554-
1. Run the following command in a console. See [Mount options](storage-files-how-to-mount-nfs-shares.md#mount-options) for other recommended mount options. To improve copy performance, mount the snapshot by using [nconnect](nfs-performance.md#nfs-nconnect) to use multiple TCP channels. Make sure you change `/media/nfs` to your corresponding path to the file share.
556+
1. Sign in to the Azure portal and go to your file share.
557+
558+
1. Select **JSON view** from the upper right. In the JSON view, under properties, copy the value for **hostName**. The format looks like `fs-xxxxxxxxxxxxxxxxx.xx.file.storage.azure.net`.
559+
560+
1. Run the following command in a console. Replace the placeholder values, including brackets, with your own values. The value for `<hostName>` should be the entire value you copied in step 2. The value for `<hostNamePrefix>` is the first segment of the hostName (up to but not including the first period), which includes everything before `.xx.file.storage.azure.net`.
561+
562+
Replace `/media/nfs` with your local mount path for the file share, if different. To improve copy performance, mount the snapshot by using [nconnect](nfs-performance.md#nfs-nconnect) to use multiple TCP channels. See [Mount options](storage-files-how-to-mount-nfs-shares.md#mount-options) for other recommended mount options.
555563

556564
```bash
557-
sudo mount -o vers=4,minorversion=1,proto=tcp,sec=sys $server:/nfs4account/share /media/nfs
565+
sudo mount -o vers=4,minorversion=1,proto=tcp,sec=sys <hostName>:/<hostNamePrefix>/<fileShareName> /media/nfs
558566
```
559567

560568
1. Change the directory to `/media/nfs/.snapshots` so you can view the available snapshots. The `.snapshots` directory is hidden by default, but you can access and read from it like any directory. If you just created the snapshot, wait at least 30 seconds for the `.snapshots` directory to become available.

0 commit comments

Comments
 (0)