个人工具

“UbuntuHelp:UbuntuLTSP/EnableNBDSWAP”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/UbuntuLTSP/EnableNBDSWAP}} {{Languages|UbuntuHelp:UbuntuLTSP/EnableNBDSWAP}} '''This wiki page is specific to Ubuntu Version(s): 8.04''' ---- To e...)
 
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/UbuntuLTSP/EnableNBDSWAP}}
 
{{From|https://help.ubuntu.com/community/UbuntuLTSP/EnableNBDSWAP}}
 
{{Languages|UbuntuHelp:UbuntuLTSP/EnableNBDSWAP}}
 
{{Languages|UbuntuHelp:UbuntuLTSP/EnableNBDSWAP}}
'''This wiki page is specific to Ubuntu Version(s): 8.04'''
+
{|border="1" cellspacing="0"
 +
|This page is specific to Ubuntu versions 8.04
 +
|}
 +
''If you find this information applicable to additional versions/releases, '''''please''''' edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.''
 
----
 
----
 
To enable NBD Swap (Network swap for thin-clients) we must ensure the proper facilities are active and configured correctly.
 
To enable NBD Swap (Network swap for thin-clients) we must ensure the proper facilities are active and configured correctly.
 +
* First, you'll want to follow [[UbuntuHelp:UbuntuLTSP/UpdatingChroot|The|procedure to update client chroot]]. When you're done with that, proceed to the next step.
 
* Edit ''/var/lib/tftpboot/ltsp/i386/lts.conf'' :
 
* Edit ''/var/lib/tftpboot/ltsp/i386/lts.conf'' :
 
<pre><nowiki>
 
<pre><nowiki>

2009年5月12日 (二) 19:11的最新版本

This page is specific to Ubuntu versions 8.04

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


To enable NBD Swap (Network swap for thin-clients) we must ensure the proper facilities are active and configured correctly.

NBD_SWAP = True

The next lts.conf options, if used, will give you more control over where NBD Swap takes place:

SWAP_SERVER = IP_ADDRESS_OF_NBDSWAPD_SERVER # default is IP of LTSP server
NBD_PORT    = PORT                          # default is 9572 (after following instructions in https://help.ubuntu.com/community/UbuntuLTSP/UpdatingChroot )
  • Create a /etc/ltsp/nbdswapd.conf file with the size of desired swapfile for each client. Keep in mind swapfiles live in /tmp, so make sure you have enough space in /tmp to facilitate CLIENTS x SIZE:
SIZE=256
nbdswapd: ALL: keepalive

Reboot your thin-clients to activate their NBD Swap. You can verify swapfiles are being created in /tmp with the following to give you the number 256M files in /tmp starting with tmp. (which should be roughly accurate):

ls -lh /tmp/tmp.*|grep 256M|wc -l

This should be all you need to get swapfiles going in Ubuntu LTSP.