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/hpc-cache/hpc-cache-mount.md
+36-22Lines changed: 36 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ description: How to connect clients to an Azure HPC Cache service
4
4
author: ekpgh
5
5
ms.service: hpc-cache
6
6
ms.topic: conceptual
7
-
ms.date: 04/03/2020
8
-
ms.author: rohogue
7
+
ms.date: 04/15/2020
8
+
ms.author: v-erkel
9
9
---
10
10
11
11
# Mount the Azure HPC Cache
@@ -40,51 +40,65 @@ Install the appropriate Linux utility software to support the NFS mount command:
40
40
41
41
### Create a local path
42
42
43
-
Create a local directory path on each client to connect to the cache. Create a path for each storage target that you want to mount.
43
+
Create a local directory path on each client to connect to the cache. Create a path for each namespace path that you want to mount.
44
44
45
45
Example: `sudo mkdir -p /mnt/hpc-cache-1/target3`
46
46
47
+
The [Mount instructions](#use-the-mount-instructions-utility) page in the Azure portal includes a prototype command that you can copy.
48
+
49
+
When you connect the client machine to the cache, you will associate this path with a virtual namespace path that represents a storage target export. Create directories for each of the virtual namespace paths the client will use.
50
+
47
51
## Use the mount instructions utility
48
52
49
-
Open the **Mount instructions** page from the **Configure** section of the cache view in the Azure portal.
53
+
You can use the **Mount instructions** page in the Azure portal to create a copyable mount command. Open the page from the **Configure** section of the cache view in the portal.
54
+
55
+
Before using the command on a client, make sure the client meets the prerequisites and has the software needed to use the NFS `mount` command as described above in [Prepare clients](#prepare-clients).
50
56
51
57

52
58
53
-
The mount command page includes information about the client mount process and prerequisites, plus fields you can use to create a copyable mount command.
59
+
Follow this procedure to create the mount command.
60
+
61
+
1. Customize the **Client path** field. This field gives an example command that you can use to create a local path on the client. The client accesses the content from the Azure HPC Cache locally in this directory.
62
+
63
+
Click the field and edit the command to contain the directory name you want. The name appears at the end of the string after `sudo mkdir -p`
64
+
65
+

66
+
67
+
After you finish editing the field, the mount command at the bottom of the page updates with the new client path.
68
+
69
+
1. Choose the **Cache mount address** from the list. This menu lists all of the cache's [client mount points](#find-mount-command-components).
54
70
55
-
To use this page, follow this procedure:
71
+
Balance client load across all of the available mount addresses for better cache performance.
56
72
57
-
<!--1. In step one of **Mounting your file system**, enter the path that the client will use to access the Azure HPC Cache storage target.
73
+

58
74
59
-
* This path is local to the client.
60
-
* After you provide the directory name, the field populates with a command you can copy. Use this command on the client directly or in a setup script to create the directory path on the client VM. -->
75
+
1. Choose the **Virtual namespace path** to use for the client. These paths link to exports on the back-end storage system.
61
76
62
-
1. Review the client prerequisites and install the utilities needed to use the NFS `mount` command as described above in [Prepare clients](#prepare-clients).
77
+

63
78
64
-
1. Step one of **Mounting your file system**<!-- label will change --> gives an example command for creating the local path on the client. This is the path that the client will use to access the content from the Azure HPC Cache.
79
+
You can view and change virtual namespace paths on the Storage targets portal page. Read [Add storage targets](hpc-cache-add-storage.md)to see how.
65
80
66
-
Note the path name so that you can modify it in the command if needed.
81
+
To learn more about Azure HPC Cache's aggregated namespace feature, read [Plan the aggregated namespace](hpc-cache-namespace.md).
67
82
68
-
1.In step two, select one of the available IP addresses. All of the cache's [client mount points](#find-mount-command-components) are listed here. Make sure that you have a system to balance load among all IP addresses.
83
+
1.The **Mount command** field in step three automatically populates with a customized mount command that uses the mount address, virtual namespace path, and client path that you set in the previous fields.
69
84
70
-
1. The field in step three automatically populates with a prototype mount command. Click the copy symbol at the right side of the field to automatically copy it to your clipboard.
85
+
Click the copy symbol at the right side of the field to automatically copy it to your clipboard.
71
86
72
-
> [!NOTE]
73
-
> Check the copy command before using it. You might need to customize the client mount path and the storage target virtual namespace path, which are not yet selectable in this interface. You also should update the mount command options to reflect the [recommended options](#mount-command-options) below. Read [Understand mount command syntax](#understand-mount-command-syntax) for help.
87
+

74
88
75
-
1. Use the copied mount command (with edits, if needed) on the client machine to connect it to the storage target on the Azure HPC Cache. You can issue the command directly from the client command line, or include the mount command in a client setup script or template.
89
+
1. Use the copied mount command on the client machine to connect it to the Azure HPC Cache. You can issue the command directly from the client command line, or include the mount command in a client setup script or template.
76
90
77
91
## Understand mount command syntax
78
92
79
93
The mount command has the following form:
80
94
81
-
> sudo mount *cache_mount_address*:/*namespace_path**local_path* {*options*}
95
+
> sudo mount {*options*} *cache_mount_address*:/*namespace_path**local_path*
82
96
83
97
Example:
84
98
85
99
```bash
86
100
root@test-client:/tmp# mkdir hpccache
87
-
root@test-client:/tmp# sudo mount 10.0.0.28:/blob-demo-0722 ./hpccache/ -o hard,proto=tcp,mountproto=tcp,retry=30
101
+
root@test-client:/tmp# sudo mount -o hard,proto=tcp,mountproto=tcp,retry=30 10.0.0.28:/blob-demo-0722 hpccache
88
102
root@test-client:/tmp#
89
103
```
90
104
@@ -105,16 +119,16 @@ For a robust client mount, pass these settings and arguments in your mount comma
105
119
106
120
### Find mount command components
107
121
108
-
If you want to create a mount command without using the **Mount instructions** page, you can find the mount addresses on the cache **Overview** page and the virtual namespace paths on the **Storage targets** page.
122
+
If you want to create a mount command without using the **Mount instructions** page, you can find the mount addresses on the cache **Overview** page and the virtual namespace paths on the **Storage target** page.
109
123
110
124

111
125
112
126
> [!NOTE]
113
127
> The cache mount addresses correspond to network interfaces inside the cache's subnet. In a resource group, these NICs are listed with names ending in `-cluster-nic-` and a number. Do not alter or delete these interfaces, or the cache will become unavailable.
114
128
115
-
The virtual namespace paths are shown in the **Storage targets** page. Click an individual storage target name to see its details, including aggregated namespace paths associated with it.
129
+
The virtual namespace paths are shown on each storage target's details page. Click an individual storage target name to see its details, including aggregated namespace paths associated with it.
116
130
117
-

131
+

0 commit comments