# mount | grep 'rootvg-var\b'
/dev/mapper/rootvg-var on /var type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/rootvg-var on /var/lib/docker/containers type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/rootvg-var on /var/lib/docker/overlay2 type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
左侧相同的设备/dev/mapper/rootvg-var
安装到右侧的不同路径。如果我查看这三个中的每一个,我会看到里面有不同的目录,因此它不会在三个不同的位置安装相同的东西。
我怎样才能找出这三者之间的区别?这是如何运作的?
# lvdisplay /dev/mapper/rootvg-var
--- Logical volume ---
LV Path /dev/rootvg/var
LV Name var
VG Name rootvg
LV UUID zIM6j1-lcGB-qNd1-NUPn-vZTh-8FOv-EwL40U
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2019-07-08 15:18:13 +1200
LV Status available
# open 1
LV Size 6.00 GiB
Current LE 1536
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:2
红帽企业 Linux 服务器版本 7.8 (Maipo)