How do I move data or files from EFS Standard-Infrequent Access or EFS ONE Zone-Infrequent Access to EFS Standard or EFS One Zone storage class?

3 minute read
0

I want to move data or files from Amazon Elastic File System (Amazon EFS) Standard-Infrequent Access EFS (Standard-IA) to EFS Standard storage. Or, I want to move data or files from EFS One Zone-Infrequent Access (EFS One Zone-IA) to EFS One Zone. How can I do this?

Resolution

Move files to Standard storage or One Zone storage

Method 1:

To move files from Standard-IA or One Zone IA to Standard or One Zone storage, do the following:

1.    Temporarily copy the files to another location.

2.    Move them back to the original location on the EFS file system. For example, if EFS is mounted at /efs/file-old, bring it back to Standard storage by copying to another path, as shown in the following example:

$ cp /efs/file-old /efs/file-new

Note: Moving or renaming files using the mv command doesn't transfer files to Standard storage class. If files must remain in the Standard storage class, first stop Lifecycle Management on the file system, and then copy the files following the preceding steps.

For more information, see Infrequent access performance.

Method 2:

Use Amazon EFS Intelligent-Tiering. If access patterns change, EFS Intelligent‐Tiering automatically moves files back to the EFS Standard or EFS One Zone storage classes when the Transition out of IA lifecycle policy is set to On first access.

Verify which files are moved to Infrequent Access storage

Amazon EFS lifecycle management uses an internal timer to track when a file was last accessed. Amazon EFS doesn't use the publicly viewable POSIX file system attributes. Whenever a file in Standard storage is written to or read from, the Lifecycle Management timer resets.

The following are prerequisites for files to be moved to infrequent access:

  • Files that are 128 KiB or larger and haven't been accessed or modified for at least 30 days can be transitioned to the new storage class. The 30 days requirement might vary depending on the number of days set in lifecycle management configuration of your file system.
  • Modifications to a file's metadata that don't change the file don't delay a transition.
  • Metadata operations, such as listing the contents of a directory, don't count as file access.
  • File metadata is always stored in Standard storage to ensure consistent metadata performance. File metadata includes file names, ownership information, and file system directory structure.

For more information, see Amazon EFS lifecycle management.


AWS OFFICIAL
AWS OFFICIALUpdated 2 years ago