我正在尝试让我们在GCP上运行一些服务。

我目前看到的问题之一是,我快速启动的VM似乎用完了/ var / lib / docker文件系统的inode。我曾期望这是在容器优化的操作系统中调整的事情之一?
wouter@nbwm-cron ~ $ df -hiFilesystem Inodes IUsed IFree IUse% Mounted on/dev/root 78K 13K 65K 17% /devtmpfs 463K 204 463K 1% /devtmpfs 464K 1 464K 1% /dev/shmtmpfs 464K 500 463K 1% /runtmpfs 464K 13 464K 1% /sys/fs/cgrouptmpfs 464K 9 464K 1% /mnt/diskstmpfs 464K 16K 448K 4% /tmp/dev/sda8 4.0K 11 4.0K 1% /usr/share/oem/dev/sda1 1013K 998K 15K 99% /vartmpfs 464K 45 464K 1% /var/lib/cloudoverlayfs 464K 39 464K 1% /etcwouter@nbwm-cron ~ $ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE<name>/stackdriver-agent latest 0c4b075e7550 3 days ago 1.423 GB<none> <none> 96d027d3feea 4 days ago 905.2 MBgcr.io/<project>/nbwm-ops/docker-php5 latest 5d2c59c7dd7a 2 weeks ago 1.788 GBnbwm-cron wouter # tune2fs -l /dev/sda1tune2fs 1.43.3 (04-Sep-2016)Filesystem volume name: STATELast mounted on: /varFilesystem UUID: ca44779b-ffd5-405a-bd3e-528071b45f73Filesystem magic number: 0xEF53Filesystem revision #: 1 (dynamic)Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isizeFilesystem flags: signed_directory_hashDefault mount options: user_xattr aclFilesystem state: cleanErrors behavior: Remount read-onlyFilesystem OS type: LinuxInode count: 1036320Block count: 4158971Reserved block count: 0Free blocks: 4062454Free inodes: 1030756First block: 0Block size: 4096Fragment size: 4096Group descriptor size: 64Reserved GDT blocks: 747Blocks per group: 32768Fragments per group: 32768Inodes per group: 8160Inode blocks per group: 510Flex block group size: 16Filesystem created: Thu Jun 15 22:39:33 2017Last mount time: Wed Jun 28 13:51:31 2017Last write time: Wed Jun 28 13:51:31 2017Mount count: 5Maximum mount count: -1Last checked: Thu Nov 19 19:00:00 2009Check interval: 0 (<none>)Lifetime writes: 67 MBReserved blocks uid: 0 (user root)Reserved blocks gid: 0 (group root)First inode: 11Inode size: 256Required extra isize: 32Desired extra isize: 32Journal inode: 8Default directory hash: half_md4Directory Hash Seed: 66aa0e7f-57da-41d0-86f7-d93270e53030Journal backup: inode blocks
如何调整文件系统以具有更多可用的inode?

最佳答案

这是docker中overlay存储驱动程序的一个已知问题,由overlay2驱动程序解决。
新的cos-61 releases使用带有overlay2存储驱动程序的docker 17.03。您能否尝试一下,看看问题是否再次发生?

谢谢!

07-24 15:28