将 VHD 文件装载为 Windows Azure 节点上的驱动器,或列出该节点上当前装载的所有驱动器。
VHD 从 Windows Azure 存储帐户加载,可以使用 Windows Azure 存储帐户名称及其存储密钥或共享访问签名(SAS)令牌指定帐户。
注意
此子命令支持从 HPC Pack 2008 R2 和 Service Pack 4(SP4)开始将 VHD 装载到 Windows Azure 工作器节点,在以前的版本中不受支持。
注意
装载的 VHD 必须具有固定大小。 不能动态调整大小,这是默认值。
语法
hpcpack mount <VHDname> /account:<storageAccountName> (/key:<storageKey>|/sas:<sasToken>)
[/container:<containerName>] [/force|/snapshot]
hpcpack mount /list
hpcpack mount {/? | /help}
参数设置
| 参数 | 说明 |
|---|---|
| <VHDname > | 指定要从 Windows Azure 存储帐户装载的 VHD 文件的名称。 例如:myDrive.vhd。 |
| /帐户 | 指定 Windows Azure 存储帐户的公共名称(在 Windows Azure 节点模板中指定的相同存储名称)。 这是帐户公共 URL 中 <storageAccountName> 的值:https:// <storageAccountName>.blob.core.windows.net。 如果指定 /account,则还必须指定 /key。 |
| /钥匙 | 指定 Windows Azure 存储帐户的访问密钥。 如果指定 /key,则还必须指定 /account。 |
| /容器 | 指定包含 VHD 文件的 Windows Azure 存储帐户中的容器的名称。 |
| /力 | 强制装载已在另一个实例上装载的 VHD。 |
| /sas | 指定共享访问签名 (SAS) 令牌。 注意: 此参数是在 HPC Pack 2012 中引入的,在以前的版本中不受支持。 |
| /快照 | 装载指定 VHD 的快照。 这会将驱动器装载为只读。 存储帐户中 VHD 的更改在卸载后再次装载之前,不会对 Windows Azure 节点可见。 |
| /列表 | 列出 Windows Azure 节点上当前装载的所有驱动器。 |
| /? | 在命令提示符处显示帮助。 |
| /帮助 | 在命令提示符处显示帮助。 |
示例
若要将 myVHD.vhd 的只读快照从指定的存储帐户和容器装载到 Windows Azure 节点,请执行以下操作:
hpcPack mount myVHD.vhd /account:accountName /key:storageKey /container:myVHDs /snapshot
列出 Windows Azure 节点上当前装载的驱动器:
hpcPack mount /list