[关闭]
@yanglt7 2018-03-13T14:42:11.000000Z 字数 1835 阅读 1006

Linux笔记 13

Linux


一、其他 Linux 支持的档案系统与 VFS

常见的支持系统有:

查看 Linux支持的档案系统:[ls -l /lib/modules/$(uname -r)/kernel/fs]
系统目前已载入到记忆体中支持的档案系统:[cat /proc/filesystems]

二、Linux VFS(Virtual Filesystems Switch)

Linux 的系统是通过 Virtual Filesystems Switch 的核心功能去读取 filesystem 的。

 VFS档案示意图

三、 XFS 档案系统简介

EXT档案系统家族对于格式化处理方面,采用的是预先规划出所有的 inode/block/meta data 等资料,未来系统可以直接采用,不需要再进行动态配置的方法。耗费很长的时间。

1. XFS 档案系统的配置

CentOS 7.x 的预设档案系统为 xfs。xfs是被开发用于高容量磁碟以及高效能档案系统。
xfs 档案系统在资料的分布上,主要规划为三个部分:

2.XFS 档案系统的描述资料观察

xfs_info 挂载点|装置档名


例1:找出系统 /boot 这个挂载点底下的档案系统的 superblock 记录
[root@study ~]# df -T /boot
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/vda2 xfs 1038336 133704 904632 13% /boot

例2:
[root@study ~]# xfs_info /dev/vda2
1 meta-data=/dev/vda2 isize=256 agcount=4, agsize=65536 blks
2 = sectsz=512 attr=2, projid32bit=1
3 = crc=0 finobt=0
4 data = bsize=4096 blocks=262144, imaxpct=25
5 = sunit=0 swidth=0 blks
6 naming =version 2 bsize=4096 ascii-ci=0 ftype=0
7 log =internal bsize=4096 blocks=2560, version=2
8 = sectsz=512 sunit=0 blks, lazy-count=1
9 realtime =none extsz=4096 blocks=0, rtextents=0

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注