[英]What is /dev/mapper/vg_root-lv_root directory? Why my docker relies on this directory?
du
lists 名单
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_root-lv_root 38929872 36450548 503672 99% /
tmpfs 4025936 0 4025936 0%
/dev/shm /dev/sda1 53871 39618 201146 17% /boot
xxx.in:/vol/software/arch* 653053184 408978688 244074496 63% /usr/software
xxxx:/users003/gopir 3435973888 1024638080 2411335808 30% /u/gopir
I am not able to format it. 我无法格式化它。 In this case, my /dev/mapper/vg* is full. 在这种情况下,我的/ dev / mapper / vg *已满。 But i have space in my directory. 但我的目录中有空格。 How should i make use of my space? 我应该如何利用我的空间? Why do my docker depends on this space rather than my space? 为什么我的码头工人依赖于这个空间而不是我的空间? Due to this, i get write error. 因此,我得到写错误。 I referred this but it doesn't help me. 我提到了这个,但它对我没有帮助。 And what is this directory? 这个目录是什么?
With below command, I managed to find which folder this drive maps to. 使用以下命令,我设法找到此驱动器映射到的文件夹。
tree -LP 1 /dev/mapper/vg_os-lv_root
After that I was able to move folder to different drive (which have more space), in my case it was /var/lib/docker
之后,我能够将文件夹移动到不同的驱动器(有更多空间),在我的情况下,它是/var/lib/docker
You might have to install tree package using command yum install tree
if not available by default. 如果默认情况下不可用,则可能必须使用命令yum install tree
安装树包。
Docker by design has a flaw OOB. Docker的设计有一个缺陷OOB。 It gets mounted on aufs by default. 它默认安装在aufs上。 The better alternative to the same is to use Device mapper with lvm configured. 更好的替代方法是使用配置了lvm的Device mapper。
[ https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#write-examples][1] [ https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#write-examples][1]
So in your case it seems you already have device mapper in place. 所以在你的情况下,你似乎已经有了设备映射器。 So I suggest you create and extra loop-lvm config and add to your existing Volume Group based on the above documentation. 因此,我建议您创建并添加额外的loop-lvm配置,并根据上述文档添加到现有的Volume Group。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.