There are a couple of important factors to consider before beginning a migration of existing data from your cloud service provider into a LucidLink Filespace.
You need to consider the cloud provider's egress policies, as many cloud providers charge transfers or egress fees for moving data out of their platform. the majority are quite happy to receive your data, and often take it for free, however are reluctant to give it back.
Careful considerations must equally be made for how you are going to move the data. Whether certain data must be moved first, and over what timeframes does the migration need to take place.
If we are clever, there are ways to get around these additional fees and significantly improve on the transfer times by leveraging their services to perform the migration.
These providers do charge egress although not against data accessed within their region, via their compute service offerings therefore we can leverage their compute instances to perform our migration.
Compute instances equally take advantage of vendor's content delivery networks (CDN) to accommodate data access and offer significant speeds to perform migrations efficiently.
In this knowledge base we will take the example of an Amazon S3 bucket that contains 43GB based on 2700x Adobe PDF files (objects) of various sizes.
aws s3 ls s3://sourcedataset --recursive --human-readable --summarize ... Total Objects: 2700 Total Size: 43.2 GiB
We will utilize Rclone https://rclone.org/overview/ to perform our transfer. Although you can use AWS CLI, s4cmd, etc. we've found Rclone natively supports many cloud providers and is an obvious choice for convenience.
A t2.medium instance should be sufficient, although larger instances which have an equally higher price, often have the advantage of faster network connectivity.
It is important to ensure this EC2 instance is in the source bucket region to avoid egress fees. The destination Filespace bucket, or provider doesn't tend to matter much, as stated earlier, they'll often take your data at $0 cost.
Once you've created your EC2 instance you'll download and install our LucidLink client. The presumption is you've already created a Filespace, if not, please follow our getting started guide. We'll assume you have a Filespace and will begin at this point.
wget https://www.lucidlink.com/download/latest/lin64/stable/ -O lucid.deb
2. Install LucidLink client
sudo apt update -y sudo apt upgrade -y sudo apt install ./lucid.deb -y
3. Download install Rclone
sudo curl https://rclone.org/install.sh | sudo bash
4. Next configure Rclone to access your Amazon S3 data. For this step you will need your access-key and secret-key and your source data region.
a. Select N for New Remote and provide a profile name "AWS" will do in our case.
b. Choose 4 for S3 compatbile storage provider
c. Select 1 for provider Amazon S3
d. In this particular step we will provide our AWS credentials (access-key and secret-key) by selecting 1 however environmental variables could be retrieved via your EC2 instance.
e. Choose your region. ours is Frankfurt 9
f. We will leave our endpoint blank and set our location constraint to EU with option 9
g. Our next options we will leave default by simply pressing "enter" for default "" and choose N to not edit advanced config.
h. And Y to save our profile.
i. Finally quit the config session with Q
5. We can test our AWS profile with a simple "ls" List Files and Directories - rclone ls <profile>:<bucket>
rclone ls AWS:sourcedataset
6. All things being equal, you'll see a list of files, you can cancel at any time with CTRL+C. Now it's time to Link to our Filespace and begin our migration.
lucid daemon --fs <filespace.domain> --user <fsuser> --password <fsuserpwd> --mount-point <mount> &
7. Check we can access our Filespace mount
8. We've created a MIGRATE folder to put our Amazon S3 data. We can access this location from our Windows workstation - obviously it's empty right now.
9. Let's begin our Rclone to our Filespace MIGRATE directory with 30x file transfers to run in parallel and displaying our progress.
rclone copy AWS:sourcedataset ~/demo/MIGRATE --transfers 30 -P
Rclone has a sophisticated set of include and exclude rules https://rclone.org/filtering/ to improve on the efficiency of migrating data.
10. You will note our transfer has begun populating our Filespace.
11. Once our transfer is complete, we can confirm our data behaves as expected, and safely terminate our EC2 instance.
You can move your data around your Filespace by simply cut/paste vs. copy allowing you to further refine your data layout, organize your data directory structure in preparation for presenting to your users.
Should you have any queries or require assistance, please do not hesitate to reach out via a support ticket.