a) 系统调用接口(SCI):open、read、write等系统调用 b) 进程管理(PM):创建进程、删除进程、调度进程等 c) 内存管理(MM):内存分配、管理等 d) 虚拟文件系统(VFS):为多种文件系统提供统一的操作接口 e) 网络协议栈:提供各种网络协议 f) CPU架构相关代码(Arch):为的是提高至移植性 g) 设备驱动程序(DD):各种设备驱动,占到内核的70%左右代码
[admin@localhost ~]$ sudo fdisk -l [sudo] password for admin:
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x0009003d
Device Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 41943039 19921920 8e Linux LVM /dev/sda3 41943040 83886079 20971520 83 Linux
Command (m forhelp): n # 输入 n 表示创建新分区 Command action e extended p primary partition (1-4) p Partition number (1-4): 3 # 输入 3 表示sda3,因为前面已经有两个了 First cylinder (1306-4568, default 1306): # 回车,按默认值 Using default value 1306 Last cylinder, +cylinders or +size{K,M,G} (1306-4568, default 4568): # 回车,按默认值 Using default value 4568
Command (m forhelp): w # 输入 w 保存退出 The partition table has been altered!
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x0009003d
Device Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 41943039 19921920 8e Linux LVM /dev/sda3 41943040 83886079 20971520 83 Linux
[admin@localhost ~]$ sudo vgdisplay [sudo] password for admin: --- Volume group --- VG Name centos System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 5 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 2 Act PV 2 VG Size 38.99 GiB PE Size 4.00 MiB Total PE 9982 Alloc PE / Size 9958 / <38.90 GiB Free PE / Size 24 / 96.00 MiB VG UUID IW5x2l-MRIe-AbnO-u110-wmFr-QCJj-DwN41a
正常未扩容之前Free PE / Size应该很大,由于我是先进行了扩容后写的博客,这里没法展示之前原本的数据。