Professional Documents
Culture Documents
umount /var
e2fsck -fy /dev/vg_system/lv_var
lvextend --size +400M /dev/vg_system/lv_var
resize2fs /dev/vg_system/lv_var
mount /var
A reasonable size for this partition would be 32MB times the number of thin clients you
plan to have. If you try to boot more thin clients with swapfiles than you have space for
in /var/opt/ltsp/swapfiles, then the thin client will not boot.
umount /var/opt/ltsp/swapfiles
e2fsck -fy /dev/vg_system/lv_ltsp_swap
lvextend --size +600M /dev/vg_system/lv_ltsp_swap
resize2fs /dev/vg_system/lv_ltsp_swap
mount /var/opt/ltsp/swapfiles
If there is already thinclients running using such a swapfile, you might have to stop nfs
before you manage to umount /var/opt/ltsp/swapfiles
/etc/init.d/nfs-common stop
/etc/init.d/nfs-kernel-server stop
And then when you are done resize, start nfs again
/etc/init.d/nfs-kernel-server start
/etc/init.d/nfs-common start
8.5.6. Swap
This lv belongs to vg_system. It's present in the profiles mainserver, workstation and
thinclientserver.
Resize the swap-partition is a bit different than the other partitions, mainly because there
is no ext2 filesystem on this partition.
First use free to see the current size of swap
ltspserver05:~# free
total used free shared buffers
cached
Mem: 256968 96684 160284 0 5536
48500
-/+ buffers/cache: 42648 214320
Swap: 524280 0 524280
ltspserver05:~# free
total used free shared buffers
cached
Mem: 256968 97036 159932 0 5768
48520
-/+ buffers/cache: 42748 214220
Swap: 729080 0 729080
Probably the most interesting would be to make the swap-partition smaller, for that use
the same commands as above, but use lvresize -L -300M /dev/vg_system/lv_swap to
reduce the size by 300MB
/etc/init.d/squid stop
The maximum size of this cache is default set to 100MB; look in the file
/etc/squid/squid.conf for the line number 699
If you need a bigger squid-cache, remove the # in front of the line, and change the 100 to
desired size. Then you must stop squid, resize the squid-cache and finally start squid
again. If you need 500MB for your squid-cache, this line will do that:
/etc/init.d/squid stop
squid -z
/etc/init.d/squid start