In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the xfs file system prompts no disk space errors how to do, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian with you to understand.
A few days ago, my colleague responded to a question: using the xfs file system in a large partition (24T) for backup of historical files suddenly indicates that there is no disk space error. Check it first:
The code is as follows:
[root@imysql ~] # df-hT
Filesystem Type Size Used Avail Use% Mounted on
/ dev/sdb1 xfs 19T 16T 2.4T 88% / backup
[root@imysql ~] # df-hi
Filesystem Inodes IUsed IFree IUse% Mounted on
/ dev/sdb1 9.3G 3.4M 9.3G 1% / backup
As you can see, there is still a lot of room for both physical space and inode, so why report that there is not enough disk space?
After querying XFS FAQ, I found a paragraph:
The code is as follows:
Q: What is the inode64 mount option for?
By default, with 32bit inodes, XFS places inodes only in the first 1TB of a disk. If you have a disk with 100TB, all inodes will be stuck in the first TB. This can lead to strange things like "disk full" when you still have plenty space free, but there's no more place in the first TB to create a new inode. Also, performance sucks.
To come around this, use the inode64 mount options for filesystems > 1TB. Inodes will then be placed in the location where their data is, minimizing disk seeks.
Beware that some old programs might have problems reading 64bit inodes, especially over NFS. Your editor used inode64 for over a year with recent (openSUSE 11.1and higher) distributions using NFS and Samba without any corruptions, so that might be a recent enough distro.
The general idea is that the xfs file system will store the inode in the first 1T of the disk, and if this space is completely filled, there will be an error that the disk space is insufficient. The workaround is to specify the inode64 option when mounting:
The code is as follows:
Mount-o remount-o noatime,nodiratime,inode64,nobarrier / dev/sdb1 / backup
Thank you for reading this article carefully. I hope the article "xfs file system prompts what to do without disk space errors" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.