Mostrando postagens com marcador Swap. Mostrar todas as postagens
Mostrando postagens com marcador Swap. Mostrar todas as postagens

How much swap has in the server?

domingo, 8 de janeiro de 2012

You can check your amount swap using the swapinfo command, follow the command used for show the total swap size:

# swapinfo -a

Creating a swap device

sexta-feira, 30 de dezembro de 2011

1 -Create a logical volume:

#lvcreate -L "xxM" -n "myswap" -C y -n "name"(optiona) /dev/vgXX

where:

-L = size
-n = name of new swap device
-C y = the record will be contiguous.
/dev/vgXX = your vg

2 - Enable the logical volume as swap:

#swapon -f /dev/vgXX/myswap