Migrating to GlusterFS Cluster
Migrating Standalone Storage to GlusterFS Cluster
1. Add Temporary Storage
1Open Change Environment Topology
Locate the environment in the dashboard and open the topology editor.
2Add a Shared Storage node in the Extra layer
Create a temporary Shared Storage node in the Extra layer and click Apply.
2. Create SSH Key Pair
Connect to the original source Storage node over SSH. The built-in Web SSH client can be used.
Generate a dedicated key pair for communication between the two storage nodes:
ssh-keygen -f ~/.ssh/storage
Display and copy the generated public key:
cat ~/.ssh/storage.pub
3. Authorize the Temporary Storage
Connect to the temporary Shared Storage node through SSH and add the source storage public key to:
~/.ssh/authorized_keys
The source example uses:
vim ~/.ssh/authorized_keys
4. Copy Data with rsync
Return to the original source storage and copy the contents of /data to the temporary storage using rsync over the dedicated SSH key:
cd /data; rsync -az . {NEW_STORAGE_IP}:/data/ -e "ssh -i $HOME/.ssh/storage"
Replace {NEW_STORAGE_IP} with the internal IP address of the temporary Shared Storage node shown in the dashboard.
5. Remount Applications to Temporary Storage
Applications must stop using the original storage before it can be removed.
1Unmount the original Shared Storage
Open Config for the application server, go to Mount Points, and unmount the current Shared Storage.
2Mount the temporary storage
Create a new mount that points to the temporary Shared Storage server.
6. Replace Standalone Storage with GlusterFS
The original standalone Shared Storage is replaced in two topology operations.
1Remove the original storage node
Open Change Environment Topology, remove the original Shared Storage node completely, and apply the change.
2Create the GlusterFS cluster
Open the topology wizard again, add Shared Storage, and enable Auto-Clustering.
7. Restore Data and Mounts
Copy the data from the temporary storage back to the new GlusterFS cluster. Repeat the SSH-key and rsync procedure, this time using the temporary storage as the source and the master node of the GlusterFS cluster as the target.
After the data is restored, remount the application to the new Shared Storage cluster.
8. Remove Temporary Storage
After the GlusterFS cluster contains the required data and all applications use the new mounts, remove the temporary Shared Storage node from the Extra layer.
/data with rsync → remount applications to temporary storage → remove standalone storage → recreate it with Auto-Clustering → copy data back → remount applications → remove the temporary node.
