docker卷上的inode用尽 [英] Running out of inodes on a docker volume

查看:567
本文介绍了docker卷上的inode用尽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下docker-compos.yml文件:

I have the following docker-compos.yml file:

 web:
   build: .
   ports:
     - "4200:4200"
     - "35729:35729"
   volumes:
     - ..:/code
     - ../home:/home/dev

映射了上面的两个卷。当我登录到我的VM并运行 df -i 时,我看到

which maps the 2 volumes above. When I login into my VM and run df -i i see

Filesystem      Inodes  IUsed  IFree IUse% Mounted on
none           1218224 509534 708690   42% /
tmpfs           256337     18 256319    1% /dev
shm             256337      1 256336    1% /dev/shm
tmpfs           256337     11 256326    1% /sys/fs/cgroup
none              1000      0   1000    0% /code
none              1000      0   1000    0% /home/dev
/dev/sda1      1218224 509534 708690   42% /etc/resolv.conf
/dev/sda1      1218224 509534 708690   42% /etc/hostname
/dev/sda1      1218224 509534 708690   42% /etc/hosts
tmpfs           256337     18 256319    1% /proc/kcore
tmpfs           256337     18 256319    1% /proc/timer_stats

您可以/ code和/ home / dev我的2个卷只有1000个inode,所以当我运行构建过程并最终创建大量文件时,我收到一个错误,提示我ino不够des。

As you can /code and /home/dev my 2 volumes only have 1000 inodes, so when I run my build process and it ends up creating a ton of files, I get an error that I don't have enough inodes.

主机= OSX
访客= CentOs 6.5
使用Virtualbox

Host = OSX Guest = CentOs 6.5 Using Virtualbox

我的问题是:如何为上面的/ code和/ home / dev数据卷分配更多的inode?

My question is: how do I assign more inodes to my data volumes /code and /home/dev above?

推荐答案

我是寻找类似的解决方案,到目前为止,我发现此帖子中包含一些有用的信息:

I'm looking for a similar solution and so far, I've found this post to have some useful information in it:

  • how to free inode usage

此外,根据这篇文章,似乎还没有动态分配inode的方法:

Also, according to this post there doesn't seem to be a dynamic way of allocating inodes:

  • how can I increase the number of inodes ...

最后,文档中包含以下内容:

And finally, there is this line in the documentation:


  • 创建文件系统后,无法扩展其索引节点的数量

  • it is not possible to expand the number of inodes on a filesystem after it is created

这篇关于docker卷上的inode用尽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆