创建 swap 区,512MB
dd if=/dev/zero of=/home/swapfile bs=1024 count=512000
标记
mkswap /home/swapfile
启用
swapon /home/swapfile
修改fstab
/home/swapfile swap swap defaults 0 0
或者直接调整原swap
swapoff /dev/mapper/vg_orcldb-lv_swap
lvextend -L +4G /dev/vg_orcldb/lv_swap
mkswap /dev/mapper/vg_orcldb-lv_swap
swapon /dev/mapper/vg_orcldb-lv_swap
检查fstab
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/1748.html