Seguir los pasos descritos acontinuación:
Crear volumen logico de swap de 200 megas de espacio.
[root@localhost ~]# lvcreate -L 200M -n swap2 VolGroup00
Rounding up size to full physical extent 224.00 MB
Logical volume "swap2" created
[root@localhost ~]#
Formatear el nuevo volumen de swap
[root@localhost ~]# mkswap /dev/VolGroup00/swap2
Setting up swapspace version 1, size = 234876 kB
[root@localhost ~]#
Activar la swap recién formateada
[root@localhost ~]# swapon /dev/VolGroup00/swap2
Comprobar
[root@localhost ~]# free -m
total used free shared buffers cached
Mem: 1010 526 484 0 29 367
-/+ buffers/cache: 130 880
Swap: 735 0 735
[root@localhost ~]#
[root@localhost ~]# cat /proc/swaps
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol00 partition 524280 0 -1
/dev/mapper/VolGroup00-swap2 partition 229368 0 -2
[root@localhost ~]#
No hay comentarios:
Publicar un comentario