Skip to content

AWS Stora gateway file

0

hi We have Storage gateway type: S3 File we have cache on vm in vmware. we want migrate this vm to aws as ec2. how to do?

asked a year ago343 views

2 Answers
0

To migrate your existing S3 File Gateway from a VMware VM to an EC2 instance in AWS, you have two main approaches:

  1. Migrate cache disk and Gateway ID to replacement instance:
  • Stop applications writing to your existing gateway
  • Verify the cache is clean
  • Shut down the gateway
  • Detach its disks
  • Create a new EC2 instance in AWS
  • Attach the old disks to the new instance
  • Initiate the gateway migration process by connecting to the new EC2 instance with a URL using the format: http://your-VM-IP-address/migrate?gatewayId=your-gateway-ID
  • Complete the final steps to start the new gateway
  • Delete the old gateway once everything is working correctly
  1. Set up a replacement gateway with empty cache disk and new Gateway ID:
  • Stop applications writing to the existing gateway
  • Save the gateway and file share configurations using the AWS CLI
  • Create a new gateway on EC2 with the same settings and configurations
  • Configure the new gateway with empty cache disks
  • Remap clients to the new file shares

When setting up your new EC2-based gateway, remember that the minimum requirement for cache storage is 150 GB. For optimal performance, consider the following specifications:

  • For a small deployment: 4 vCPUs and 16 GB memory (minimum)
  • For a medium deployment: 8 vCPUs and 32 GB memory
  • For a large deployment: 16 vCPUs and 64 GB memory

The cache size should be determined based on your hot data set, typically following the 80/20 rule (20% of data is hot, 80% is cold). You can start small and increase as needed since AWS provides metrics to monitor cache utilization.
Sources
Replacing your existing S3 File Gateway with a new instance - AWS Storage Gateway
Cloud storage in minutes with AWS Storage Gateway (updated) | AWS Storage Blog
Automate Amazon S3 File Gateway deployments in VMware with Terraform by HashiCorp | AWS Storage Blog

answered a year ago

  • Do we need a special AMI file from the AWS store to create EC2?

  • On my vm on vmware i have two disk 80 GB (root) and 150gb (for cache). witch disk I must migrate to aws and attach to EC2?

0

One of the benefits is local caching. You would loose this benefit if you moved to EC2.

However, when creating a gateway in the console, you have a platform option of Amazon EC2. The AWS Storage Gateway Amazon Machine Image (AMI) is available as a community AMI.

S3 File Gateway AMIs use the following naming convention. The version number appended to the AMI name changes with each version release.

aws-storage-gateway-FILE_S3-1.25.0

https://docs.aws.amazon.com/filegateway/latest/files3/ec2-quicklaunch-settings.html?icmpid=docs_console_unmapped https://docs.aws.amazon.com/filegateway/latest/files3/ec2-gateway-file.html

EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.