排查 Azure Data Box Disk 中的数据复制问题Troubleshoot data copy issues in Azure Data Box Disk

本文适用于 Azure Data Box Disk,并介绍如何排查将数据复制到磁盘时看到的任何问题。This article applies to Azure Data Box Disk and describes how to troubleshoot any issues you see when copying the data to disks. 本文还介绍了使用拆分复制工具时出现的问题。The article also covers issues when using the split copy tool.

使用 Linux 系统时的数据复制问题Data copy issues when using a Linux system

本节详细介绍了使用 Linux 客户端将数据复制到磁盘时遇到的一些主要问题。This section details some of the top issues faced when using a Linux client to copy data to disks.

问题:将驱动器装载为只读Issue: Drive getting mounted as read-only

原因Cause

这可能是由于文件系统不干净造成。This could be due to an unclean file system.

将驱动器重新装载为读写不适用于 Data Box Disk。Remounting a drive as read-write does not work with Data Box Disks. dislocker 解密的驱动器不支持此方案。This scenario is not supported with drives decrypted by dislocker. 你可能已使用以下命令成功重新装载设备:You may have successfully remounted the device using the following command:

# mount -o remount, rw /mnt/DataBoxDisk/mountVol1

虽然重新装载成功,但不会保留数据。Though the remounting was successful, the data will not persist.

解决方法Resolution

在 Linux 系统上执行以下步骤:Take the following steps on your Linux system:

  1. 为 ntfsfix 实用程序安装 ntfsprogs 包。Install the ntfsprogs package for the ntfsfix utility.

  2. 卸载解锁工具为驱动器提供的装入点。Unmount the mount points provided for the drive by the unlock tool. 装入点的数量因驱动器而异。The number of mount points will vary for drives.

    unmount /mnt/DataBoxDisk/mountVol1
    
  3. 在相应的路径上运行 ntfsfixRun ntfsfix on the corresponding path. 突出显示的数目应与步骤 2 相同。The highlighted number should be same as Step 2.

    ntfsfix /mnt/DataBoxDisk/bitlockerVol1/dislocker-file
    
  4. 运行以下命令以删除可能导致装载问题的休眠元数据。Run the following command to remove the hibernation metadata that may cause the mount issue.

    ntfs-3g -o remove_hiberfile /mnt/DataBoxDisk/bitlockerVol1/dislocker-file /mnt/DataBoxDisk/mountVol1
    
  5. 执行干净卸载。Do a clean unmount.

    ./DataBoxDiskUnlock_x86_64 /unmount
    
  6. 执行干净解锁和装载。Do a clean unlock and mount.

  7. 通过写入文件来测试装入点。Test the mount point by writing a file.

  8. 卸载并重新装载以验证文件持久性。Unmount and remount to validate the file persistence.

  9. 继续复制数据。Continue with the data copy.

问题:复制后数据不存在时出错Issue: Error with data not persisting after copy

原因Cause

如果看到驱动器在卸载后没有数据(尽管数据已复制到其中),则可能在将驱动器装载为只读后将驱动器重新装载为读写。If you see that your drive does not have data after it was unmounted (though data was copied to it), then it is possible that you remounted a drive as read-write after the drive was mounted as read-only.

解决方法Resolution

如果是这种情况,请参阅将驱动器装载为只读的解决方法。If that is the case, see the resolution for drives getting mounted as read-only.

如果不是这种情况,请从具有 Data Box Disk 解锁工具的文件夹中复制日志,然后联系 Azure 支持部门If that was not the case, copy the logs from the folder that has the Data Box Disk Unlock tool and contact Azure Support.

Data Box 磁盘拆分复制工具错误Data Box Disk Split Copy tool errors

下表总结了使用拆分复制工具在多个磁盘上拆分数据时出现的问题。The issues seen when using a Split Copy tool to split the data over multiple disks are summarized in the following table.

错误消息/警告Error message/Warnings 建议Recommendations
[信息] 正在检索卷: m 的 BitLocker 密码[Info] Retrieving BitLocker password for volume: m
[错误] 检索卷 m: 的 BitLocker 密钥时捕获到异常[Error] Exception caught while retrieving BitLocker key for volume m:
序列未包含任何元素。Sequence contains no elements.
如果目标 Data Box 磁盘处于脱机状态,则会引发此错误。This error is thrown if the destination Data Box Disk are offline.
使用 diskmgmt.msc 工具将磁盘联机。Use diskmgmt.msc tool to online disks.
[错误]引发异常:WMI 操作失败:[Error] Exception thrown: WMI operation failed:
Method=UnlockWithNumericalPassword,ReturnValue=2150694965,Method=UnlockWithNumericalPassword, ReturnValue=2150694965,
Win32Message=所提供的恢复密码的格式无效。Win32Message=The format of the recovery password provided is invalid.
BitLocker 恢复密码有 48 位。BitLocker recovery passwords are 48 digits.
请验证恢复密码的格式是否正确,然后重试。Verify that the recovery password is in the correct format and then try again.
使用 Data Box 磁盘解锁工具首先解锁磁盘,然后重试该命令。Use Data Box Disk Unlock tool to first unlock the disks and retry the command. 有关详细信息,请转到For more information, go to
  • 为 Windows 客户端解锁 Data Box 磁盘。Unlock Data Box Disk for Windows clients.
  • 为 Linux 客户端解锁 Data Box 磁盘。Unlock Data Box Disk for Linux clients.
  • [错误]引发异常:目标驱动器上存在 DriveManifest.xml 文件。[Error] Exception thrown: A DriveManifest.xml file exists on the target drive.
    这表明可能已使用不同的日志文件准备了目标驱动器。This indicates the target drive may have been prepared with a different journal file.
    若要向同一驱动器添加更多数据,请使用之前的日志文件。To add more data to the same drive, use the previous journal file. 若要删除现有数据并将目标驱动器重复用于新的导入作业,请删除驱动器上的 DriveManifest.xml。To delete existing data and reuse target drive for a new import job, delete the DriveManifest.xml on the drive. 使用新的日志文件重新运行此命令。Rerun this command with a new journal file.
    当尝试将同一组驱动器用于多个导入会话时会收到此错误。This error is received when you attempt to use the same set of drives for multiple import session.
    将一组驱动器仅用于一个拆分和复制会话。Use one set of drives only for one split and copy session only.
    [错误]引发异常:CopySessionId importdata-sept-test-1 引用了以前的复制会话,无法将其重复用于新的复制会话。[Error] Exception thrown: CopySessionId importdata-sept-test-1 refers to a previous copy session and cannot be reused for a new copy session. 当尝试为新作业使用与以前成功完成的作业相同的名称时,会报告此错误。This error is reported when trying to use the same job name for a new job as a previous successfully completed job.
    为新作业分配唯一的名称。Assign a unique name for your new job.
    [信息] 目标文件或目录名称超出了 NTFS 长度限制。[Info] Destination file or directory name exceeds the NTFS length limit. 当目标文件因为文件路径太长而被重命名时,会报告此消息。This message is reported when the destination file was renamed because of long file path.
    修改 config.json 文件中的 disposition 选项来控制此行为。Modify the disposition option in config.json file to control this behavior.
    [错误]引发异常:错误的 JSON 转义序列。[Error] Exception thrown: Bad JSON escape sequence. 当 Config.json 具有无效格式时,会报告此消息。This message is reported when the config.json has format that is not valid.
    在保存文件之前使用 JSONlint 验证 config.jsonValidate your config.json using JSONlint before you save the file.

    后续步骤Next steps