Hello,
The available swap space on one of the servers is almost all in use (7GB used out of 8GB), even though it has plenty of memory available (50GB used out of 188GB).
I would like help with two questions:
1 - How can I reduce the use of swap, even having several containers using swap?
2 - What would be the procedure to decrease the size of lvm-thin (362GB available) and add this space in swap?
For example... decrease lvm-thin to 200GB and use the 162GB available + the 8GB already used as swap, leaving a total of 170GB of swap.
Thanks!
The available swap space on one of the servers is almost all in use (7GB used out of 8GB), even though it has plenty of memory available (50GB used out of 188GB).
I would like help with two questions:
1 - How can I reduce the use of swap, even having several containers using swap?
2 - What would be the procedure to decrease the size of lvm-thin (362GB available) and add this space in swap?
For example... decrease lvm-thin to 200GB and use the 162GB available + the 8GB already used as swap, leaving a total of 170GB of swap.
Code:
# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- <464.23g 15.99g
# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 3 0 wz--n- <464.23g 15.99g
# lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-a-tz-- 337.34g 0.00 0.50
[data_tdata] pve Twi-ao---- 337.34g
[data_tmeta] pve ewi-ao---- <3.45g
[lvol0_pmspare] pve ewi------- <3.45g
root pve -wi-ao---- 96.00g
swap pve -wi-ao---- 8.00g
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 15G 0 loop
loop1 7:1 0 20G 0 loop
loop2 7:2 0 8G 0 loop
loop3 7:3 0 20G 0 loop
loop4 7:4 0 20G 0 loop
loop5 7:5 0 16G 0 loop
loop6 7:6 0 40G 0 loop
loop7 7:7 0 20G 0 loop
loop8 7:8 0 20G 0 loop
loop9 7:9 0 20G 0 loop
loop10 7:10 0 30G 0 loop
loop11 7:11 0 100G 0 loop
loop12 7:12 0 50G 0 loop
loop13 7:13 0 20G 0 loop
loop14 7:14 0 12G 0 loop
loop15 7:15 0 10G 0 loop
loop17 7:17 0 20G 0 loop
loop19 7:19 0 10G 0 loop
loop20 7:20 0 10G 0 loop
sda 8:0 0 464.7G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part
└─sda3 8:3 0 464.2G 0 part
├─pve-swap 253:0 0 8G 0 lvm [SWAP]
├─pve-root 253:1 0 96G 0 lvm /
├─pve-data_tmeta 253:2 0 3.5G 0 lvm
│ └─pve-data 253:4 0 337.4G 0 lvm
└─pve-data_tdata 253:3 0 337.4G 0 lvm
└─pve-data 253:4 0 337.4G 0 lvm
sr0 11:0 1 1024M 0 rom
Thanks!