Recently in the test of Oracle 12C original swap preset configuration 3G, in the case of only 2.91G, installed when the space is not enough warning.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/86/66/wKioL1e-QeqD42QIAAFxQwzZqMM865.png-wh_500x0-wm_3 -wmp_4-s_1057195108.png "title=" screen Shot 2016-08-25 at 8.54.19.png "alt=" Wkiol1e-qeqd42qiaafxqwzzqmm865.png-wh_ "/>
Although it does not affect the use, but I gently force me, can only be expanded, the operation is as follows:
1. Check Swap size
[Email protected] ~]# free-m Total used free shared buffers Cached mem:1996 1530 465 5 51 1029 -/+ buffers/cache:449 1546 swap:2983 0 2983 |
2. Check the VG/LV sub-district
[[email protected] ~]# vgs VG #PV #LV #SN Attr vsize vfree VolGroup 2 2 0 wz--n-29.50g 9.02g [[email protected] ~]# lvs lv VG & nbsp Attr lsize Pool Origin data% meta% Move Log cpy%sync Convert lv_root volgroup-wi-ao----17.57g &NBSP ; , &NB SP; lv_swap volgroup-wi-ao---- 2.91g |
3.VG has a predetermined getaner space, simply add space to the LV, first close the swap area, the expansion and then to activate swap.
[Email protected] ~]# Swapoff/dev/mapper/volgroup-lv_swap [Email protected] ~]# 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. [[email protected] ~]# 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 [email protected] ~]# Mkswap/dev/mapper/volgroup-lv_swap [email protected] ~]# Swapon/dev/mapper/volgroup-lv_swap
|
Re-activate the system and re-install the check through.
This article is from the "deep motto heart Sharp to take" blog, please be sure to keep this source http://canaan.blog.51cto.com/1971263/1842319
Linux system Exchange add capacity (Swap volume)