29、将你的交换分区扩大 1G 空间(通过两种方式)
第一种方式: 将逻辑卷作为交换分区
[root@virtual1 ~]# pvcreate /dev/vdb3
Physical volume "/dev/vdb3" successfully created.
[root@virtual1 ~]# vgcreate vg01 /dev/vdb3
Volume group "vg01" successfully created
[root@virtual1 ~]# lvcreate -L 800M -n lv01 vg01
Logical volume "lv01" created.
[root@virtual1 ~]# mkswap /dev/vg01/lv01
Setting up swapspace version 1, size = 819196 KiB
no label, UUID=c641af39-5aa5-4d51-a72b-eecab3f3e261
[root@virtual1 ~]# swapon -s
Filename Type Size Used Priority
/dev/dm-1 partition 4194300 2664 -1
[root@virtual1 ~]# vim /etc/fstab
[root@virtual1 ~]# swapon -a
[root@virtual1 ~]# swapon -s
Filename Type Size Used Prior