什么是/ dev / mapper / vg_root-lv_root目录?为什么我的docker依赖于这个目录?

时间:2021-10-07 23:11:50
    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. 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?

我无法格式化它。在这种情况下,我的/ dev / mapper / vg *已满。但我的目录中有空格。我应该如何利用我的空间?为什么我的码头工人依赖于这个空间而不是我的空间?因此,我得到写错误。我提到了这个,但它对我没有帮助。这个目录是什么?

2 个解决方案

#1


2  

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 tr​​ee安装树包。

#2


0  

Docker by design has a flaw OOB. It gets mounted on aufs by default. The better alternative to the same is to use Device mapper with lvm configured.

Docker的设计有一个缺陷OOB。它默认安装在aufs上。更好的替代方法是使用配置了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中。

#1


2  

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 tr​​ee安装树包。

#2


0  

Docker by design has a flaw OOB. It gets mounted on aufs by default. The better alternative to the same is to use Device mapper with lvm configured.

Docker的设计有一个缺陷OOB。它默认安装在aufs上。更好的替代方法是使用配置了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中。