Stuck with Red Hat Ceph storage migration? Worry not, the Support Engineers at Bobcares have come up with a brilliant solution to solve your troubles.
Manually migrating a bare-metal, non-containerized, Red Hat Celph Storage cluster is no longer a difficult task with Bobcares by your side. The Support Team offers you an easy solution that will get the job done sooner rather than later.
All About JetBackup Restorations
Red Hat Ceph storage migration to a containerized environment is easily done as long as you have the right solution on hand. Our Support Team did this recently for one of our customers. They did this by using the ceph-ansible switch-from-non-containerized-to-containerized-ceph-daemons.yml playbook.
Prerequisites for Red Hat Ceph storage migration
- A running RED Hat Ceph Storage bare-metal, non-containerized, cluster.
- An Ansible user account and sudo access to it.
- Access to Ansible administration node.
In order to create an Ansible user account, run the following commands as the root user:
ssh [email protected]_name adduser user_name # passwd user_name
Remember to replace host_name and user_name with the host name of the node and the new Ansible user name respectively. After you have set the password for the new user, configure sudo access by running the following commands:
cat << EOF >/etc/sudoers.d/USER_NAME $USER_NAME ALL = (root) NOPASSWD:ALL EOF
Our Support Engineers recommend assigning the correct file permissions with the following command:
chmod 0440 /etc/sudoers.d/USER_NAME
How to proceed with Red Hat Ceph storage migration
- First, we will open the group_vars/all.yml file.
- Then, edit it to include the following configuration:
ceph_docker_image_tag: "latest" ceph_docker_image: rhceph/rhceph-4-rhel8 containerized_deployment: true
If you are using the latest version of the storage cluster, replace ceph_docker_image with latest. Additionally, you can also use the appropriate image tag.
- Next, go to the /usr/share/ceph-ansible directory by running the following command
[[email protected] ~]$ cd /usr/share/ceph-ansible
- After getting on the Ansible administration node, use the following syntax to run the Ansible migration playbook:
ansible-playbook ./infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml -i INVENTORY_FILE
[[email protected] ceph-ansible]$ ansible-playbook ./infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml -i hosts
Then, check whether the cluster has switched to containerized environment.
- Next, list the running containers on the monitor node:
Red Hat Enterprise Linux 7:[[email protected] ~]$ sudo docker ps
Red Hat Enterprise Linux 8:[[email protected] ~]$ sudo podman ps
[Looking for help? We are here at your service.]
In brief, we saw how to migrate Red Hat Ceph storage cluster to a containerized environment without too much trouble. The solution offered by the Support Team at Bobcares will get the migration done in a jiffy.