Why don't the changes that I make on my Amazon S3 bucket show up on the Storage Gateway file share?

2 minute read
1

When I make changes to my Amazon Simple Storage Service (Amazon S3) bucket, the changes don't propagate to my AWS Storage Gateway file share.

Short description

When you use the file share to write files to the cache locally, Storage Gateway updates the file share cache automatically. However, when you upload a file directly to Amazon S3, Storage Gateway doesn't automatically update the cache. When you upload a file directly to Amazon S3, you must perform a RefreshCache operation to see the changes on the file share. If you have more than one file share, then you must run the RefreshCache operation on each file share.

Resolution

Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshoot AWS CLI errors. Also, make sure that you're using the most recent AWS CLI version.

You can use the Storage Gateway console or the AWS CLI to refresh the cache manually. You can also use the Storage Gateway console to configure an automated cache refresh schedule.

Manually refresh the cache

Storage Gateway console

To use the Storage Gateway console to manually refresh the cache, see Perform a manual cache refresh using the Storage Gateway console.

AWS CLI

Complete the following steps:

  1. Run the list-file-shares command.

    $ aws storagegateway list-file-shares
  2. Copy the Amazon Resource Number (ARN) of the file share with the cache that you want to refresh. Then, run the refresh-cache command and enter the ARN as the value for --file-share-arn.

    $ aws storagegateway refresh-cache --file-share-arn arn:aws:storagegateway:eu-west-1:12345678910:share/share-FFDEE12

Configure an automated cache refresh schedule

To use the Storage Gateway console to configure an automated cache refresh schedule, see How can I automate the RefreshCache operation on Storage Gateway?

For more information, see Configure an automated cache refresh schedule using the Storage Gateway console.

Note: Automated cache refresh relies on a Time To Live (TTL) setting. TTL is the length of time since the last refresh after the first access to the directory in your File Gateway file share. If the file share was never accessed, then the Automated cache refresh doesn't work.

AWS OFFICIAL
AWS OFFICIALUpdated 2 days ago