You can perform the following steps using an SSH client such as PuTTY.
This section will provide an example to configure a raw block device and mount it at /var/lib/docker/ which is where all
The example provided here will provision an XFS file system which is supported by both CentOS and Ubuntu. Other file systems such as EXT4 may be used at the discretion of the operator of the
If you would like assistance, don't hesitate to reach out to our Customer Support at https://ribboncommunications.com/services/support-services.
Create a new filesystem at /var/lib/docker/ and mount it persistently on the host:
Validate that you have a free disk to use. Here, the additional free disk is nvme0n1.
lsblk
Create the filesystem using the following command:
mkfs.xfs /dev/$device
Replace $device with the name of your actual device in all the following commands. Examples are provided for the reference system.
for example:
mkfs.xfs /dev/nvme0n1
Create the mount point for Docker using the following command:
mkdir -p /var/lib/docker/
Mount the new filesystem at /var/lib/docker/:
mount /dev/$device /var/lib/docker/
for example:
mount /dev/nvme0n1 /var/lib/docker/
Update /etc/fstab to ensure the changes persist a reboot:
echo "/dev/$device /var/lib/docker xfs defaults,noatime 1 1" >> /etc/fstab/
for example:
echo "/dev/nvme0n1 /var/lib/docker xfs defaults,noatime 1 1" >> /etc/fstab
apt-get update -y && reboot (Ubuntu)
yum update -y && reboot (CentOS)
Validate that the storage configuration persisted after the reboot, using the following command:
df -h