/docker-data
This guide outlines the steps required to expand the logical volume and filesystem for /docker-data after additional disk capacity has been added to the underlying physical disk. This mount point is commonly used to store Docker data and persistent volumes.
lsblk
Example output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sdb 8:16 0 750G 0 disk └─vg_docker-lv_docker 254:1 0 500G 0 lvm /docker-data
In this example:
/dev/sdb
/dev/mapper/vg_docker-lv_docker
pvresize /dev/sdb
lvextend -l +100%FREE /dev/mapper/vg_docker-lv_docker
resize2fs /dev/mapper/vg_docker-lv_docker
Confirm that the additional space is now available on /docker-data:
df -h /docker-data
Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_docker-lv_docker 750G 420G 330G 56% /docker-data
Was this article helpfu?
Thank you for voting
You are related to multiple companies. Please select the company you wish to login as.