特殊:Badtitle/NS100:UbuntuLTSP/EnableNBDSWAP

来自Ubuntu中文
Wikibot留言 | 贡献2008年12月16日 (二) 20:22的版本
跳到导航跳到搜索
可打印版本不再受到支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认打印功能。

{{#ifexist: :UbuntuLTSP/EnableNBDSWAP/zh | | {{#ifexist: UbuntuLTSP/EnableNBDSWAP/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/EnableNBDSWAP|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/EnableNBDSWAP|1|-1|}} | zh | | }}

This wiki page is specific to Ubuntu Version(s): 8.04


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.