您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

教程:打开包装、连接和解锁 Azure Data Box DiskTutorial: Unpack, connect, and unlock Azure Data Box Disk

本教程介绍如何打开包装、连接和解锁 Azure Data Box 磁盘。This tutorial describes how to unpack, connect, and unlock your Azure Data Box Disk.

在本教程中,你将了解如何执行以下操作:In this tutorial, you learn how to:

  • 打开 Data Box 磁盘的包装Unpack your Data Box Disk
  • 连接到磁盘并获取支持密钥Connect to disks and get the passkey
  • 在 Windows 客户端上解锁磁盘Unlock disks on Windows client
  • 在 Linux 客户端上解锁磁盘Unlock disks on Linux client

打开包装、连接和解锁 Azure Data Box DiskUnpack, connect, and unlock Azure Data Box Disk

必备条件Prerequisites

在开始之前,请确保:Before you begin, make sure that:

  1. 已完成教程:订购 Azure Data Box DiskYou have completed the Tutorial: Order Azure Data Box Disk.
  2. 已收到磁盘,并且门户中的作业状态已更新为“已交付”。 You have received your disks and the job status in the portal is updated to Delivered.
  3. 有一台可以安装 Data Box Disk 解锁工具的客户端计算机。You have a client computer on which you can install the Data Box Disk unlock tool. 客户端计算机必须:Your client computer must:

打开磁盘的包装Unpack your disks

执行以下步骤打开磁盘的包装。Perform the following steps to unpack your disks.

  1. Data Box 磁盘在一个小包装箱中寄送。The Data Box Disks are mailed in a small shipping Box. 请打开包装箱,并取出其中的物件。Open the box and remove its contents. 检查包装中是否包含 1 到 5 块固态硬盘 (SSD),每块磁盘配有一根 USB 连接线。Check that the box has 1 to 5 solid-state disks (SSDs) and a USB connecting cable per disk. 检查包装是否有任何改动的痕迹或任何明显的损坏。Inspect the box for any evidence of tampering, or any other obvious damage.

    Data Box 磁盘发货包装

  2. 如果包装箱被改动或有严重损坏,请不要打开包装箱。If the shipping box is tampered or severely damaged, do not open the box. 联系 Microsoft 支持部门,让他们帮助评估磁盘是否正常,或者是否需要更换磁盘。Contact Microsoft Support to help you assess whether the disks are in good working order and if they need to ship you a replacement.

  3. 检查包装箱中是否有一个透明套管,其中包含退件用的发货标签(在当前标签的下面)。Verify that the box has a clear sleeve containing a shipping label (under the current label) for return shipment. 如果此标签丢失或损坏,始终可以从 Azure 门户下载并打印新的发货标签。If this label is lost or damaged, you can always download and print a new one from the Azure portal.

    Data Box 磁盘发货标签

  4. 保管好包装箱和泡沫材料,以便在退回磁盘时使用。Save the box and packaging foam for return shipment of the disks.

连接到磁盘并获取支持密钥Connect to disks and get the passkey

  1. 使用随附的数据线将磁盘连接到运行先决条件部分中所述受支持 OS 的客户端计算机。Use the included cable to connect the disk to the client computer running a supported OS as stated in the prerequisites.

    Data Box 磁盘连接

  2. 在 Azure 门户中,转到“常规”>“设备详细信息”。 In the Azure portal, go to General > Device details. 使用复制图标复制支持密钥。Use the copy icon to copy the passkey. 此支持密钥用于解锁磁盘。This passkey will be used to unlock the disks.

    Data Box Disk 解锁支持密钥

根据是要连接到 Windows 还是 Linux 客户端,解锁磁盘的步骤有所不同。Depending on whether you are connected to a Windows or Linux client, the steps to unlock the disks are different.

在 Windows 客户端上解锁磁盘Unlock disks on Windows client

执行以下步骤,以连接并解锁磁盘。Perform the following steps to connect and unlock your disks.

  1. 在 Azure 门户中,转到“常规”>“设备详细信息”。 In the Azure portal, go to General > Device details.

  2. 下载对应于 Windows 客户端的 Data Box Disk 工具集。Download the Data Box Disk toolset corresponding to the Windows client. 此工具集包含 3 个工具:Data Box Disk 解锁工具、Data Box Disk 验证工具和 Data Box Disk 拆分复制工具。This toolset contains 3 tools: Data Box Disk Unlock tool, Data Box Disk Validation tool, and Data Box Disk Split Copy tool.

    在此过程中,将仅使用 Data Box Disk 解锁工具。In this procedure, you will use only the Data Box Disk Unlock tool. 其他两个工具将在以后使用。The other two tools will be used later.

  3. 在将用于复制数据的同一台计算机上提取工具集。Extract the toolset on the same computer that you will use to copy the data.

  4. 打开命令提示符窗口,或者在同一台计算机上以管理员身份运行 Windows PowerShell。Open a Command Prompt window or run Windows PowerShell as administrator on the same computer.

  5. (可选)若要验证用于解锁磁盘的计算机是否满足操作系统要求,请运行系统检查命令。(Optional) To verify the computer that you are using to unlock the disk meets the operating system requirements, run the system check command. 下面显示了示例输出。A sample output is shown below.

    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    PS C:\DataBoxDiskUnlockTool\DiskUnlock> .\DataBoxDiskUnlock.exe /SystemCheck
    Successfully verified that the system can run the tool.
    PS C:\DataBoxDiskUnlockTool\DiskUnlock>
    
  6. 运行 DataBoxDiskUnlock.exe,并提供在连接到磁盘并获取支持密钥中获取的支持密钥。Run DataBoxDiskUnlock.exe and supply the passkey you obtained in Connect to disks and get the passkey. 此时会显示分配给磁盘的驱动器号。The drive letter assigned to the disk is displayed. 下面显示了示例输出。A sample output is shown below.

    PS C:\WINDOWS\system32> cd C:\DataBoxDiskUnlockTool\DiskUnlock
    PS C:\DataBoxDiskUnlockTool\DiskUnlock> .\DataBoxDiskUnlock.exe
    Enter the passkey :
    testpasskey1
    
    Following volumes are unlocked and verified.
    Volume drive letters: D:
    
    PS C:\DataBoxDiskUnlockTool\DiskUnlock>
    
  7. 将来每次重新插入磁盘,都需要重复解锁步骤。Repeat the unlock steps for any future disk reinserts. 如需 Data Box Disk 解锁工具的帮助,请使用 help 命令。Use the help command if you need help with the Data Box Disk unlock tool.

    PS C:\DataBoxDiskUnlockTool\DiskUnlock> .\DataBoxDiskUnlock.exe /help
    USAGE:
    DataBoxUnlock /PassKey:<passkey_from_Azure_portal>
    
    Example: DataBoxUnlock /PassKey:<your passkey>
    Example: DataBoxUnlock /SystemCheck
    Example: DataBoxUnlock /Help
    
    /PassKey:        Get this passkey from Azure DataBox Disk order. The passkey unlocks your disks.
    /SystemCheck:    This option checks if your system meets the requirements to run the tool.
    /Help:           This option provides help on cmdlet usage and examples.
    
    PS C:\DataBoxDiskUnlockTool\DiskUnlock>
    
  8. 解锁磁盘后,可以查看磁盘的内容。Once the disk is unlocked, you can view the contents of the disk.

    Data Box 磁盘内容

如果解锁磁盘时遇到任何问题,请参阅如何排查解锁问题If you run into any issues while unlocking the disks, see how to troubleshoot unlock issues.

在 Linux 客户端上解锁磁盘Unlock disks on Linux client

  1. 在 Azure 门户中,转到“常规”>“设备详细信息”。 In the Azure portal, go to General > Device details.

  2. 下载对应于 Linux 客户端的 Data Box Disk 工具集。Download the Data Box Disk toolset corresponding to the Linux client.

  3. 在 Linux 客户端上打开终端。On your Linux client, open a terminal. 导航到软件下载到的文件夹。Navigate to the folder where you downloaded the software. 更改文件权限,以便可以执行这些文件。Change the file permissions so that you can execute these files. 键入下列命令:Type the following command:

    chmod +x DataBoxDiskUnlock_x86_64

    chmod +x DataBoxDiskUnlock_Prep.sh

    下面显示了示例输出。A sample output is shown below. 运行 chmod 命令后,可以通过运行 ls 命令来验证文件权限是否已更改。Once the chmod command is run, you can verify that the file permissions are changed by running the ls command.

        [user@localhost Downloads]$ chmod +x DataBoxDiskUnlock_x86_64  
        [user@localhost Downloads]$ chmod +x DataBoxDiskUnlock_Prep.sh   
        [user@localhost Downloads]$ ls -l  
        -rwxrwxr-x. 1 user user 1152664 Aug 10 17:26 DataBoxDiskUnlock_x86_64  
        -rwxrwxr-x. 1 user user 795 Aug 5 23:26 DataBoxDiskUnlock_Prep.sh
    
  4. 执行脚本,以安装 Data Box Disk 解锁软件所需的所有二进制文件。Execute the script so that it installs all the binaries needed for the Data Box Disk Unlock software. 使用 sudo 以 root 身份运行该命令。Use sudo to run the command as root. 成功安装二进制文件后,终端上会显示相关的说明。Once the binaries are successfully installed, you will see a note to that effect on the terminal.

    sudo ./DataBoxDiskUnlock_Prep.sh

    该脚本首先检查客户端计算机是否在运行受支持的操作系统。The script will first check whether your client computer is running a supported operating system. 下面显示了示例输出。A sample output is shown below.

    [user@localhost Documents]$ sudo ./DataBoxDiskUnlock_Prep.sh 
        OS = CentOS Version = 6.9 
        Release = CentOS release 6.9 (Final) 
        Architecture = x64 
    
        The script will install the following packages and dependencies. 
        epel-release 
        dislocker 
        ntfs-3g 
        fuse-dislocker 
        Do you wish to continue? y|n :|
    
  5. 键入 y 继续安装。Type y to continue the install. 脚本安装的包为:The packages that the script installs are:

    • epel-release - 包含以下三个包的存储库。epel-release - Repository that contains the following three packages.

    • dislocker 和 fuse-dislocker - 这些实用工具可帮助解密 BitLocker 加密的磁盘。dislocker and fuse-dislocker - These utilities helps decrypting BitLocker encrypted disks.

    • ntfs-3g - 帮助装载 NTFS 卷的包。ntfs-3g - Package that helps mount NTFS volumes.

      成功安装包后,终端将显示相关的通知。Once the packages are successfully installed, the terminal will display a notification to that effect.

      Dependency Installed: compat-readline5.x86 64 0:5.2-17.I.el6 dislocker-libs.x86 64 0:0.7.1-8.el6 mbedtls.x86 64 0:2.7.4-l.el6        ruby.x86 64 0:1.8.7.374-5.el6 
      ruby-libs.x86 64 0:1.8.7.374-5.el6 
      Complete! 
      Loaded plugins: fastestmirror, refresh-packagekit, security 
      Setting up Remove Process 
      Resolving Dependencies 
      --> Running transaction check 
      ---> Package epel-release.noarch 0:6-8 will be erased --> Finished Dependency Resolution 
      Dependencies Resolved 
      Package        Architecture        Version        Repository        Size 
      Removing:  epel-release        noarch         6-8        @extras        22 k 
      Transaction Summary                                 
      Remove        1 Package(s) 
      Installed size: 22 k 
      Downloading Packages: 
      Running rpmcheckdebug 
      Running Transaction Test 
      Transaction Test Succeeded 
      Running Transaction 
      Erasing : epel-release-6-8.noarch 
      Verifying : epel-release-6-8.noarch 
      Removed: 
      epel-release.noarch 0:6-8 
      Complete! 
      Dislocker is installed by the script. 
      OpenSSL is already installed.
      
  6. 运行 Data Box Disk 解锁工具。Run the Data Box Disk Unlock tool. 在 Azure 门户中提供在连接到磁盘并获取支持密钥中获取的支持密钥。Supply the passkey from the Azure portal you obtained in Connect to disks and get the passkey. (可选)指定要解锁 BitLocker 加密卷列表。Optionally specify a list of BitLocker encrypted volumes to unlock. 应在单引号中指定支持密钥和卷列表。The passkey and volume list should be specified within single quotes.

    键入以下命令。Type the following command.

    `sudo ./DataBoxDiskUnlock_x86_64 /PassKey:’`sudo ./DataBoxDiskUnlock_x86_64 /PassKey:’

    下面显示了示例输出。The sample output is shown below.

    [user@localhost Downloads]$ sudo ./DataBoxDiskUnlock_x86_64 /Passkey:’qwerqwerqwer’  
    
    START: Mon Aug 13 14:25:49 2018 
    Volumes: /dev/sdbl 
    Passkey: qwerqwerqwer 
    
    Volumes for data copy : 
    /dev/sdbl: /mnt/DataBoxDisk/mountVoll/ 
    END: Mon Aug 13 14:26:02 2018
    

    其中显示了可将数据复制到的卷的装入点。The mount point for the volume that you can copy your data to is displayed.

  7. 将来每次重新插入磁盘,都需要重复解锁步骤。Repeat unlock steps for any future disk reinserts. 如需 Data Box Disk 解锁工具的帮助,请使用 help 命令。Use the help command if you need help with the Data Box Disk unlock tool.

    sudo ./DataBoxDiskUnlock_x86_64 /Help

    下面显示了示例输出。The sample output is shown below.

    [user@localhost Downloads]$ sudo ./DataBoxDiskUnlock_x86_64 /Help  
    START: Mon Aug 13 14:29:20 2018 
    USAGE: 
    sudo DataBoxDiskUnlock /PassKey:’<passkey from Azure_portal>’ 
    
    Example: sudo DataBoxDiskUnlock /PassKey:’passkey’ 
    Example: sudo DataBoxDiskUnlock /PassKey:’passkey’ /Volumes:’/dev/sdbl’ 
    Example: sudo DataBoxDiskUnlock /Help Example: sudo DataBoxDiskUnlock /Clean 
    
    /PassKey: This option takes a passkey as input and unlocks all of your disks. 
    Get the passkey from your Data Box Disk order in Azure portal. 
    /Volumes: This option is used to input a list of BitLocker encrypted volumes. 
    /Help: This option provides help on the tool usage and examples. 
    /Unmount: This option unmounts all the volumes mounted by this tool. 
    
    END: Mon Aug 13 14:29:20 2018 [user@localhost Downloads]$
    
  8. 解锁磁盘后,可以转到装入点并查看磁盘的内容。Once the disk is unlocked, you can go to the mount point and view the contents of the disk. 现在,可将数据复制到 BlockBlobPageBlob 文件夹。You are now ready to copy the data to BlockBlob or PageBlob folders.

    Data Box 磁盘内容

如果解锁磁盘时遇到任何问题,请参阅如何排查解锁问题If you run into any issues while unlocking the disks, see how to troubleshoot unlock issues.

  1. 打开磁盘包装并使用附带的电缆将磁盘连接到客户端计算机。Unpack disks and use the included cable to connect the disk to the client computer.

  2. 下载 Data Box Disk 工具集并将其解压缩到将用于复制数据的同一台计算机上。Download and extract the Data Box Disk toolset on the same computer that you will use to copy the data.

    or

  3. 若要在 Windows 客户端上解锁磁盘,请打开命令提示符窗口,或者在同一台计算机上以管理员身份运行 Windows PowerShell:To unlock the disks on a Windows client, open a Command Prompt window or run Windows PowerShell as administrator on the same computer:

    • 在安装了 Data Box Disk 解锁工具的同一文件夹中键入以下命令。Type the following command in the same folder where Data Box Disk Unlock tool is installed.

      .\DataBoxDiskUnlock.exe
      
    • 从 Azure 门户中的“常规”>“设备详细信息” 获取密钥,并在此处提供。Get the passkey from General > Device details in the Azure portal and provide it here. 此时会显示分配给磁盘的驱动器号。The drive letter assigned to the disk is displayed.

  4. 若要在 Linux 客户端上解锁磁盘,请打开终端。To unlock the disks on a Linux client, open a terminal. 转到软件下载到的文件夹。Go to the folder where you downloaded the software. 键入以下命令以更改文件权限,以便可以执行这些文件:Type the following commands to change the file permissions so that you can execute these files:

    chmod +x DataBoxDiskUnlock_x86_64
    chmod +x DataBoxDiskUnlock_Prep.sh
    

    执行脚本以安装所有必需的二进制文件。Execute the script to install all the required binaries.

    sudo ./DataBoxDiskUnlock_Prep.sh
    

    运行 Data Box Disk 解锁工具。Run the Data Box Disk Unlock tool. 从 Azure 门户中的“常规”>“设备详细信息” 获取密钥,并在此处提供。Get the passkey from General > Device details in the Azure portal and provide it here. (可选)在单引号内指定要解锁的 BitLocker 加密卷列表。Optionally specify a list of BitLocker encrypted volumes within single quotes to unlock.

    sudo ./DataBoxDiskUnlock_x86_64 /PassKey:’<Your passkey from Azure portal>’
    
  5. 将来每次重新插入磁盘,都需要重复解锁步骤。Repeat the unlock steps for any future disk reinserts. 如需 Data Box 磁盘解锁工具的帮助,请使用 help 命令。Use the help command if you need help with the Data Box Disk unlock tool.

解锁磁盘后,可以查看磁盘的内容。After the disk is unlocked, you can view the contents of the disk.

有关如何设置和解锁磁盘的详细信息,请参阅设置 Data Box DiskFor more information on how to set up and unlock disks, go to Set up Data Box Disk.

后续步骤Next steps

本教程介绍了有关 Azure Data Box 磁盘的主题,例如:In this tutorial, you learned about Azure Data Box Disk topics such as:

  • 打开 Data Box 磁盘的包装Unpack your Data Box Disk
  • 连接到磁盘并获取支持密钥Connect to disks and get the passkey
  • 在 Windows 客户端上解锁磁盘Unlock disks on Windows client
  • 在 Linux 客户端上解锁磁盘Unlock disks on Linux client

请继续学习下一篇教程,了解如何复制 Data Box 磁盘上的数据。Advance to the next tutorial to learn how to copy data on your Data Box Disk.