Files
gitea-pages/admin-guide/troubleshooting/filesystem.md
2024-08-07 16:15:29 +02:00

1.7 KiB

Filesystem

Check filesystem capacity using df:

[root@lx ~]# df -h
Filesystem                      Size  Used Avail Use% Mounted on
/dev/mapper/vg_root-lv_root     8.0G  1.4G  6.7G  17% /
devtmpfs                        909M     0  909M   0% /dev
tmpfs                           920M     0  920M   0% /dev/shm
tmpfs                           920M  816K  920M   1% /run
tmpfs                           920M     0  920M   0% /sys/fs/cgroup
/dev/sda1                       976M  198M  728M  22% /boot
/dev/mapper/vg_root-lv_tmp     1014M   34M  981M   4% /tmp
/dev/mapper/vg_root-lv_var      2.9G  1.4G  1.5G  47% /var
/dev/mapper/vg_root-lv_var_log  2.0G  160M  1.9G   8% /var/log
/dev/mapper/vg_root-lv_openafs 1008M  1.3M  956M   1% /var/cache/openafs
tmpfs                           184M  4.0K  184M   1% /run/user/0

Check available inodes (~ the maximum number of files that can be created)::

[root@lx ~]# df -i
Filesystem                      Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/vg_root-lv_root    4194304   48891 4145413    2% /
devtmpfs                        232630     383  232247    1% /dev
tmpfs                           235485       1  235484    1% /dev/shm
tmpfs                           235485     575  234910    1% /run
tmpfs                           235485      16  235469    1% /sys/fs/cgroup
/dev/sda1                        65536     348   65188    1% /boot
/dev/mapper/vg_root-lv_tmp      524288     316  523972    1% /tmp
/dev/mapper/vg_root-lv_var     1474560 1042691  431869   71% /var
/dev/mapper/vg_root-lv_var_log 1048576      81 1048495    1% /var/log
/dev/mapper/vg_root-lv_openafs   65536      11   65525    1% /var/cache/openafs
tmpfs                           235485       2  235483    1% /run/user/0