我有一台 Ubuntu 18.04 服务器,它被备份软件用作存储。备份软件将数据保存到 RAID5 上的 xfs 分区 (/backup)。根文件系统是 ext4。
当我用以下方法检查可用空间时,df -h
得到了以下结果:
Filesystem Size Used Avail Use% Mounted on
/dev/md1 16T 11T 5,8T 64% /backup
当我使用以下方法检查磁盘使用情况时,du -h /backup
我得到了以下信息:
16G /backup/backup_folder1
0 /backup/backup_folder2
1,4T /backup/backup_folder3
4,8T /backup/backup_folder4
0 /backup/backup_folder5
0 /backup/backup_folder6
0 /backup/backup_folder7
0 /backup/backup_folder8
23G /backup/backup_folder9
3,5T /backup/backup_folder10
35M /backup/backup_folder11
675G /backup/backup_folder12
2,7T /backup/backup_folder13
69G /backup/backup_folder14
58G /backup/backup_folder15
158G /backup/backup_folder16
103G /backup/backup_folder17
14T /backup/
我得到xfs_quota -x -c "report -h" /backup
了这个:
ser quota on /backup (/dev/md1)
Blocks
User ID Used Soft Hard Warn/Grace
---------- ---------------------------------
root 0 0 15,6T 00 [------]
user 13,1T 0 15,8T 00 [------]
Group quota on /backup (/dev/md1)
Blocks
Group ID Used Soft Hard Warn/Grace
---------- ---------------------------------
root 0 0 0 00 [------]
user 13,1T 0 0 00 [------]
有人知道这些差异背后的原因是什么吗?主要问题是我的备份软件也看到 xfs 分区有 5,8TB 的可用空间(就像确实如此df -h
),因此备份作业失败。
我已看到许多关于df
显示已使用空间过多的帖子,du
但我的情况却相反。
xfs_info /backup
:
meta-data=/dev/md1 isize=512 agcount=32, agsize=132748288 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=1 finobt=1 spinodes=0 rmapbt=0
= reflink=1
data = bsize=4096 blocks=4247945216, imaxpct=5
= sunit=128 swidth=384 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=521728, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
任何想法都将不胜感激!
谢谢你!