

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 数据存储库事件日志
<a name="data-repo-event-logs"></a>

可以启用 CloudWatch Logs 日志记录，以记录有关使用导入、导出和数据存储库任务和恢复事件导入或导出文件时遭遇失败的信息。有关更多信息，请参阅 [使用 Amazon CloudWatch 日志进行登录](cw-event-logging.md)。

**注意**  
当数据存储库任务失败时，Amazon FSx 还会将失败信息写入任务完成报告。有关完成报告中失败信息的更多信息，请参阅[数据存储库任务失败故障排除](failed-tasks.md)。

**Topics**
+ [导入事件](#import-event-logging)
+ [导出事件](#export-event-logging)
+ [HSM 恢复事件](#hsm-restore-event-logging)

## 导入事件
<a name="import-event-logging"></a>


| 错误类型 | 日志级别 | 日志消息 | 根本原因 | 完成报告中的错误代码 | 
| --- | --- | --- | --- | --- | 
| 列出对象失败 | ERROR | Failed to list S3 objects in S3 bucket bucket\$1name with prefix prefix. | Amazon FSx 无法列出 S3 桶中的 S3 对象。如果 S3 桶策略没有为 Amazon FSx 提供足够的权限，则可能会发生这种情况。 | 不适用 | 
| 不支持的 S3 存储类别 | 警告 | Failed to import S3 object with key key\$1value in S3 bucket bucket\$1name due to an S3 object in an unsupported tier S3\$1tier\$1name. | Amazon FSx 无法导入 S3 对象，因为该对象属于不支持的 Amazon S3 存储类，例如 S3 Glacier Flexible Retrieval 或 S3 Glacier Deep Archive 存储类。 | S3ObjectInUnsupportedTier | 
| 不支持的符号链接存储类别 | ERROR | Failed to import S3 object with key key\$1value in S3 bucket bucket\$1name due to an S3 symlink object in an unsupported tier S3\$1tier\$1name. | Amazon FSx 无法导入符号链接对象，因为该对象属于不支持的 Amazon S3 存储类，例如 S3 Glacier Flexible Retrieval 或 S3 Glacier Deep Archive 存储类。 | S3SymlinkInUnsupportedTier | 
| S3 访问被拒 | ERROR | Failed to import S3 object with key key\$1value in S3 bucket bucket\$1name because access to the S3 object was denied. | 执行数据存储库导出导入任务时拒绝访问 Amazon S3。 对于导入任务，Amazon FSx 文件系统必须具有执行 `s3:HeadObject` 和 `s3:GetObject` 操作的权限，才能从 S3 上关联的数据存储库导入。 对于导入任务，如果您的 S3 桶使用服务器端加密以及存储在 AWS Key Management Service 中的客户托管密钥（SSE-KMS），则必须遵循[使用服务器端加密的 Amazon S3 桶](s3-server-side-encryption-support.md)中的策略配置。  | S3AccessDenied | 
| 删除访问被拒 | ERROR | Failed to delete local file for S3 object with key key\$1value in S3 bucket bucket\$1name because access to the S3 object was denied. | 自动导入时拒绝访问 S3 对象。 | 不适用 | 
| 非 POSIX 兼容的对象 | ERROR | Failed to import S3 object with key key\$1value in S3 bucket bucket\$1name because S3 object is not POSIX compliant. |  Amazon S3 对象存在但无法导入，因为它不是 POSIX 兼容的对象。有关支持的 POSIX 元数据的信息，请参阅 [针对数据存储库的 POSIX 元数据支持](posix-metadata-support.md)。  | S3ObjectPathNotPosixCompliant | 
| 对象类型不匹配 | ERROR | Failed to import S3 object with key key\$1value in S3 bucket bucket\$1name because an S3 object with the same name has already been imported into the file system. | 正在导入的 S3 对象与文件系统中同名的现有对象属于不同的类型（文件或目录）。 | S3ObjectTypeMismatch | 
| 目录元数据更新失败 | ERROR | Failed to update local directory metadata due to an internal error. | 由于内部错误，无法导入目录元数据。 | 不适用 | 
| 未找到 S3 对象 | ERROR | Failed to import S3 object with key key\$1value because it was not found in S3 bucket bucket\$1name. | Amazon FSx 无法导入文件元数据，因为数据存储库中不存在相应的对象。 | S3FileDeleted | 
| 未找到 S3 存储桶 | ERROR | Failed to import S3 object with key key\$1value in S3 bucket bucket\$1name due to bucket does not exist. | 由于 S3 存储桶已不存在，Amazon FSx 无法自动将 S3 对象导入文件系统。 | 不适用 | 
| 未找到 S3 存储桶 | ERROR | Failed to delete local file for S3 object with key key\$1value in S3 bucket bucket\$1name due to bucket does not exist. | 由于 S3 存储桶已不存在，Amazon FSx 无法删除链接到文件系统上 S3 对象的文件。 | 不适用 | 
| 目录创建失败 | ERROR | Failed to create local directory due to an internal error. | 由于内部错误，Amazon FSx 无法自动导入文件系统上创建的目录。 | 不适用 | 
| 磁盘空间已满 | ERROR | Failed to import S3 object with key key\$1value in S3 bucket bucket\$1name because the file system is full. | 创建文件或目录时，元数据服务器上的文件系统磁盘空间不足。 | 不适用 | 

## 导出事件
<a name="export-event-logging"></a>


| 错误类型 | 日志级别 | 日志消息 | 根本原因 | 完成报告中的错误代码 | 
| --- | --- | --- | --- | --- | 
| 访问被拒绝 | ERROR | Failed to export file because access was denied to S3 object with key key\$1value in S3 bucket bucket\$1name. | 执行数据存储库导出任务时访问 Amazon S3 遭拒绝。 对于导出任务，Amazon FSx 文件系统必须具有执行 `s3:PutObject` 操作的权限，才能导出到 S3 上关联的数据存储库。此权限在 `AWSServiceRoleForFSxS3Access_fs-0123456789abcdef0` 服务关联角色中授予。有关更多信息，请参阅 [使用适用于 Amazon 的服务相关角色 FSx](using-service-linked-roles.md)。 由于导出任务要求数据流出文件系统的 VPC，因此如果目标存储库的桶策略包含 `aws:SourceVpc` 或 `aws:SourceVpce` IAM 全局条件键之一，则可能会发生此错误。 如果您的 S3 桶包含从与您的文件系统关联的 S3 桶账户不同的 AWS 账户 上传的对象，则可以确保您的数据存储库任务可以修改 S3 元数据或覆盖 S3 对象，而不管是从哪个账户上传的这些对象。我们建议您为 S3 桶启用 S3 对象所有权功能。借助此功能，可强制上传以提供 `--acl bucket-owner-full-control` 标准 ACL，从而获得其他 AWS 账户 上传到桶的新对象的所有权。可以通过在 S3 桶中选择**桶拥有者优先**选项来启用 S3 对象所有权。有关更多信息，请参阅《Amazon S3 用户指南》**中的[使用 S3 对象所有权控制已上传对象的所有权](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html)。  | S3AccessDenied | 
| 导出路径过长 | ERROR | Failed to export file because the local file path size exceeds the maximum object key length supported by S3. | 导出路径过长。S3 支持的最大对象键长度为 1024 个字符。  | PathSizeTooLong | 
| 文件过大 | ERROR | Failed to export file because the file size exceeds the maximum supported S3 objects size. | Amazon S3 支持的最大对象大小为 5TiB。 | FileSizeTooLarge | 
| 未找到 KMS 密钥。 | ERROR | Failed to export file for S3 object with key key\$1value in S3 bucket bucket\$1name because the bucket's KMS key was not found. | 由于找不到 AWS KMS key，Amazon FSx 无法导出该文件。请确保使用与 S3 桶位于同一 AWS 区域 的密钥。有关创建 KMS 密钥的更多信息，请参阅《AWS Key Management Service 开发人员指南》中的[创建密钥](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html)。 | N/A | 
| 资源繁忙 | ERROR | Failed to export file because it is being used by another process. | Amazon FSx 无法导出该文件，因为文件系统上的另一个客户端正在对其进行修改。可以在工作流程完成对文件的写入后重试该任务。 | ResourceBusy | 
| 文件已释放 | 警告 | Export skipped: Local file is in released state and a linked S3 object with key key\$1value was not found in bucket bucket\$1name. | Amazon FSx 无法导出该文件，因为该文件在文件系统上处于已释放状态。 | 不适用 | 
| 数据存储库路径不匹配 | 警告 | Export skipped: local file does not belong to a data repository linked file system path. | Amazon FSx 无法导出，因为对象不属于关联到数据存储库的文件系统路径。 | 不适用 | 
| 内部故障 | ERROR | Automatic export encountered an internal error while exporting a file system object | 由于内部（auto-export- 或 lustre-level）错误，导出失败。 | 不适用 | 
| 完成报告上传失败 | ERROR | Failed to upload data repository task completion report into bucket\$1name | Amazon FSx 无法上传完成报告。 | 不适用 | 
| 完成报告验证失败 | ERROR | Failed to upload data repository task completion report into bucket bucket\$1name because the completion report path report\$1path does not belong to a data repository associated with this file system | Amazon FSx 无法上传完成报告，因为客户提供的 S3 路径不属于关联的数据存储库。 | 不适用 | 

## HSM 恢复事件
<a name="hsm-restore-event-logging"></a>


| 错误类型 | 日志级别 | 日志消息 | 根本原因 | 
| --- | --- | --- | --- | 
| 访问被拒绝 | ERROR | Failed to restore file because access was denied to S3 object object\$1name in S3 bucket bucket\$1name. | 尝试使用 HSM 命令恢复文件时，访问 Amazon S3 遭拒。文件系统必须具有执行 `s3:HeadObject` 和 `s3:GetObject` 操作的权限，才能从 S3 上关联的数据存储库恢复。 | 
| 不支持的 S3 存储类别 | 警告 | Failed to restore file because S3 object object\$1name in bucket bucket\$1name was in an unsupported S3\$1storage\$1class \$1name. | Amazon FSx 无法恢复文件，因为相应的 S3 对象属于不支持的 S3 存储类别，例如 S3 Glacier Flexible Retrieval 或 S3 Glacier Deep Archive。使用 `hsm_restore` 之前，必须先从 Glacier 存储类别中恢复对象。 | 
| 未找到 S3 对象 | ERROR | Failed to restore file because S3 object with key key\$1value was not found in S3 bucket bucket\$1name. | Amazon FSx 无法恢复文件，因为数据存储库中不存在相应的 S3 对象。 | 
| 未找到 S3 存储桶 | ERROR | Failed to restore file because S3 bucket bucket\$1name does not exist. | Amazon FSx 无法恢复文件，因为关联的 S3 存储桶不再存在。 | 
| 磁盘空间已满 | ERROR | Failed to restore file because there was no available storage space on the file system. | 尝试从 S3 恢复文件数据时，文件系统的可用存储空间不足。考虑增加文件系统的存储容量，或释放文件以释放空间。 | 