标签:交換分區擴容
近期在測試Oracle 12C原SWAP預分配置3G,換算下來只有2.91G,安裝時顯示空間不足出現警告。
雖不影響使用,但本人輕微強迫朕,只能擴容,操作如下:
1.檢查SWAP大小
[root@vcdb ~]# free -m total used free shared buffers cached Mem: 1996 1530 465 5 51 1029 -/+ buffers/cache: 449 1546 Swap: 2983 0 2983 |
[root@vcdb ~]# vgs VG #PV #LV #SN Attr VSize VFree VolGroup 2 2 0 wz--n- 29.50g 9.02g [root@vcdb ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert lv_root VolGroup -wi-ao---- 17.57g lv_swap VolGroup -wi-ao---- 2.91g |
[root@vcdb ~]# swapoff /dev/mapper/VolGroup-lv_swap [root@vcdb ~]# lvextend -L +600M /dev/mapper/VolGroup-lv_swap Size of logical volume VolGroup/lv_swap changed from 2.91 GiB (746 extents) to 2.93 GiB (751 extents). Logical volume lv_swap successfully resized. [root@vcdb ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert lv_root VolGroup -wi-ao---- 17.57g lv_swap VolGroup -wi-a----- 3.50g [root@vcdb ~]# mkswap /dev/mapper/VolGroup-lv_swap [root@vcdb ~]# swapon /dev/mapper/VolGroup-lv_swap |
本文出自 “刻骨銘心銳意進取” 博客,请务必保留此出处http://canaan.blog.51cto.com/1971263/1842319
标签:交換分區擴容
原文地址:http://canaan.blog.51cto.com/1971263/1842319