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:

To set a new default location, run the following commands:

  1. Create a new storage directory.

    mkdir <new storage directory name>
    
  2. Use bind mount to set the new location.

    mount --rbind <new storage directory> <old storage directory>
    
  3. 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