Add_workflow_for_techpubs | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Info | ||
---|---|---|
| ||
Perform the following steps using an SSH client such as PuTTY. |
...
Verify enough free disk exists before proceeding. In the example below, the additional free disk space is under nvme0n1.
Code Block |
---|
lsblk |
Create the file system using the following command:
Code Block |
---|
mkfs.xfs /dev/$device |
Tip | ||
---|---|---|
| ||
Replace $device with the name of your actual device in all the following commands. Examples are provided for the reference system. |
For example:
Code Block |
---|
mkfs.xfs /dev/nvme0n1 |
Create the mount point for Docker using the following command:
Code Block |
---|
mkdir -p /var/lib/docker/ |
Mount the new file system at /var/lib/docker/:
Code Block |
---|
mount /dev/$device /var/lib/docker/ |
For example:
Code Block |
---|
mount /dev/nvme0n1 /var/lib/docker/ |
pdate Update /etc/fstab to ensure the changes are still present after a reboot:
Code Block |
---|
echo "/dev/$device /var/lib/docker xfs defaults,noatime 1 1" >> /etc/fstab/ |
For example:
Code Block |
---|
echo "/dev/nvme0n1 /var/lib/docker xfs defaults,noatime 1 1" >> /etc/fstab |
Before continuing, ensure your system is up-to-date, and validate the storage configuration settings are accurate. Assuming that there are no other production applications running on this server, execute the following command:
Code Block |
---|
apt-get update -y && reboot (Ubuntu) yum update -y && reboot (CentOS) |
Validate the storage configuration settings are accurate after the reboot using the following command:
Code Block |
---|
df -h |
...