这是我的码头工人信息:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 3
Server Version: 18.06.1-ce
Storage Driver: devicemapper
Pool Name: docker-docker--pool
Pool Blocksize: 524.3kB
Base Device Size: 10.74GB
Backing Filesystem: ext4
Udev Sync Supported: true
Data Space Used: 20.3GB
Data Space Total: 318.3GB
Data Space Available: 298GB
Metadata Space Used: 1.815MB
Metadata Space Total: 323MB
Metadata Space Available: 321.1MB
Thin Pool Minimum Free Space: 31.82GB
Deferred Removal Enabled: true
Deferred Deletion Enabled: true
Deferred Deleted Device Count: 0
Library Version: 1.02.135-RHEL7 (2016-11-16)
我从私有存储库中提取了一个图像。我看到精简卷名称不断变化,并且在两者之间也消失了。为什么会这样呢?我还没有运行任何容器。这是lsblk在三个不同时间的输出:
lsblk第一次
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 1.7T 0 disk
xvda 202:0 0 24G 0 disk
+-xvda1 202:1 0 24G 0 part /
nvme3n1 259:3 0 1.7T 0 disk
xvdcz 202:26368 0 300G 0 disk
+-xvdcz1 202:26369 0 300G 0 part
+-docker-docker--pool_tdata 253:1 0 296.4G 0 lvm
¦ +-docker-docker--pool 253:2 0 296.4G 0 lvm
¦ +-docker-202:1-263284-4fbb7657bf1e81d8c4756d11a7cb182488a64cb9b47921c84c30bf02ccb5b5aa
253:3 0 10G 0 dm /var/lib/docker/devicemapper/mnt/4fbb7657bf1e81d8c4756d11a7cb182488a64cb9b47921c84c30bf02ccb5b
+-docker-docker--pool_tmeta 253:0 0 308M 0 lvm
+-docker-docker--pool 253:2 0 296.4G 0 lvm
+-docker-202:1-263284-4fbb7657bf1e81d8c4756d11a7cb182488a64cb9b47921c84c30bf02ccb5b5aa
253:3 0 10G 0 dm /var/lib/docker/devicemapper/mnt/4fbb7657bf1e81d8c4756d11a7cb182488a64cb9b47921c84c30bf02ccb5b
nvme2n1 259:2 0 1.7T 0 disk
nvme1n1 259:1 0 1.7T 0 disk
第二次lslklk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 1.7T 0 disk
xvda 202:0 0 24G 0 disk
+-xvda1 202:1 0 24G 0 part /
nvme3n1 259:3 0 1.7T 0 disk
xvdcz 202:26368 0 300G 0 disk
+-xvdcz1 202:26369 0 300G 0 part
+-docker-docker--pool_tdata 253:1 0 296.4G 0 lvm
¦ +-docker-docker--pool 253:2 0 296.4G 0 lvm
+-docker-docker--pool_tmeta 253:0 0 308M 0 lvm
+-docker-docker--pool 253:2 0 296.4G 0 lvm
nvme2n1 259:2 0 1.7T 0 disk
nvme1n1 259:1 0 1.7T 0 disk
lsblk第三次
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 1.7T 0 disk
xvda 202:0 0 24G 0 disk
+-xvda1 202:1 0 24G 0 part /
nvme3n1 259:3 0 1.7T 0 disk
xvdcz 202:26368 0 300G 0 disk
+-xvdcz1 202:26369 0 300G 0 part
+-docker-docker--pool_tdata 253:1 0 296.4G 0 lvm
¦ +-docker-docker--pool 253:2 0 296.4G 0 lvm
¦ +-docker-202:1-263284-88ae8285501b77c4a9b057ac90b083ed2813b24584e87334a02f008369c7fe8d
253:3 0 10G 0 dm /var/lib/docker/devicemapper/mnt/88ae8285501b77c4a9b057ac90b083ed2813b24584e87334a02f008369c7f
+-docker-docker--pool_tmeta 253:0 0 308M 0 lvm
+-docker-docker--pool 253:2 0 296.4G 0 lvm
+-docker-202:1-263284-88ae8285501b77c4a9b057ac90b083ed2813b24584e87334a02f008369c7fe8d
253:3 0 10G 0 dm /var/lib/docker/devicemapper/mnt/88ae8285501b77c4a9b057ac90b083ed2813b24584e87334a02f008369c7f
nvme2n1 259:2 0 1.7T 0 disk
nvme1n1 259:1 0 1.7T 0 disk
如您所见,精简卷名称docker-202:1-263284 *不断变化,并且在两者之间也消失了。挂载点也在不断变化。另外,如何找到精简卷块设备使用的空间?执行lvs不会显示精简卷的大小,只会显示精简池的信息