Cloud Computing Learning Route course syllabus Courseware: XFS File system
=
Centos7 default file system, why give up to the EXT family?
The EXT family has the widest support:
But creating a file system (formatting) is slow!
But the repair is slow!
But the storage capacity of the file system is limited!
Xfs is also a journalistic file system:
High capacity and support for large storage
High performance, fast to create / repair file system
Both inode and block are dynamically configured when the system needs to be used.
XFS file system
Data area (data section)
The data area is the same as the previous ext family, including inode/data block/superblock and other information, are placed in this block.
File system log area (log section)
Real-time operation area (realtime section)
Repair XFS file system xfs_repair
[root@tianyun ~] # xfs_repair / dev/vda1
Xfs_repair: / dev/vda1 contains a mounted filesystem
Xfs_repair: / dev/vda1 contains a mounted and writable filesystem
Fatal error-couldn't initialize XFS library
[root@tianyun ~] # umount / dev/vda1
[root@tianyun ~] # xfs_repair / dev/vda1
Phase 1-find and verify superblock...
Phase 2-using internal log
Zero log...
Scan filesystem freespace and inode maps...
Found root inode chunk