Preparing your nodes for a reinstallation of GlusterFS or IBM Cloud Private
If you configured GlusterFS in your cluster, and you want to reinstall GlusterFS or IBM® Cloud Private on the same cluster, you must first prepare your nodes for the reinstallation.
Delete the Helm chart
-
Ensure that Helm CLI is set up. For more information, see Installing the Helm CLI (helm).
-
Get the release name.
helm list --tls | grep gluster
-
Delete the chart.
helm delete --purge <release_name> --tls
Delete the backup Heketi database
-
Ensure that kubectl CLI is set up. For more information, see Accessing your cluster from the kubectl CLI.
-
Get the Heketi secret.
kubectl -n kube-system get secret | grep heketi
-
Delete backup Heketi database.
kubectl -n kube-system delete secret <heketi-db-backup-name>
Remove the configuration directories
Remove the Heketi and Gluster daemon configuration directories from each storage node that is used for reinstallation. Run these commands:
rm -rf /var/lib/heketi
rm -rf /var/lib/glusterd
rm -rf /var/log/glusterfs
Prepare the disks to be used for GlusterFS installation
You can reuse the disks or add new disks for a reinstallation of GlusterFS.
-
If you are adding new disks, see Hardware requirements for information about the disk requirements. After you add the disks, you must restart the nodes so that the system identifies the disks.
-
If you are reusing the disks, complete these steps:
Note: The disk cleanup process might not work in some environments. If that happens, you might need to use fresh disks.
-
Back up the data on the disks that were used in an earlier installation. The steps that follow might cause a loss of data on the old disks.
-
Run these commands to remove the GlusterFS volumes:
-
Remove the logical volumes and volume group.
lvscan | grep 'vg_' | awk '{print $2}' | xargs -n 1 lvremove -y vgscan | grep 'vg_' | awk '{print $4}' | xargs -n 1 vgremove -y
-
Scan for the physical volumes. Make a note of the physical volume name.
pvscan
-
Remove all physical volumes.
pvremove <pv_name>
-
Get the device name.
fdisk -l
-
Erase all file system, raid, and partition-table signatures.
wipefs --all --force <device_name>
-
-
Next, complete the tasks in Configuring GlusterFS after IBM Cloud Private installation.