Specifying other default storage directories by using bind mount
If you want to use different default storage directories for the core IBM® Cloud Private services, you must change them before you install IBM Cloud Private by using a bind mount.
To prevent disk space issues, mount the default storage directories on separate paths that have larger disk capacities.
You can use a bind mount to mount the following directories:
- Etcd -
/var/lib/etcd - Private image registry -
/var/lib/registry - Management services -
/opt/ibm/cfc - VA -
/var/lib/icp - Kubelet service -
/var/lib/kubelet
To set a new default location, run the following commands:
-
Create a new storage directory.
mkdir <new storage directory name> -
Use bind mount to set the new location.
mount --rbind <new storage directory> <old storage directory> -
Persist this change across system reboots.
echo "<new storage directory> <old storage directory> none defaults,bind 0 0" >> /etc/fstab
For example, to set the new location as /mnt/etcd for the /var/lib/etcd directory, you would run the following commands:
mkdir /mnt/etcd
mount --rbind /mnt/etcd /var/lib/etcd
echo "/mnt/etcd /var/lib/etcd none defaults,bind 0 0" >> /etc/fstab