aboutsummaryrefslogtreecommitdiff
path: root/handbook
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-10-21 23:54:46 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-10-21 23:54:46 +0000
commit624d57b30d575bab4fe11a33a5d54d277edf7fca (patch)
tree87650ded85dc9ecae40ad153544a52021e7c8dd9 /handbook
parent00bddfc91b47a12caa2f47d2c6bf373efff0dc45 (diff)
downloaddoc-624d57b30d575bab4fe11a33a5d54d277edf7fca.tar.gz
doc-624d57b30d575bab4fe11a33a5d54d277edf7fca.zip
Suggest using `dd' to create the swapfile for diskless operation, with
the required size, as opposed to simply `touch'ing it. This works around problems in the -current NFS and/or VFS and/or VM code. Also hint about restricting the permissions to this file.
Notes
Notes: svn path=/head/; revision=613
Diffstat (limited to 'handbook')
-rw-r--r--handbook/diskless.sgml18
1 files changed, 13 insertions, 5 deletions
diff --git a/handbook/diskless.sgml b/handbook/diskless.sgml
index 92ef602085..49e8223aed 100644
--- a/handbook/diskless.sgml
+++ b/handbook/diskless.sgml
@@ -1,4 +1,4 @@
-<!-- $Id: diskless.sgml,v 1.6 1996-09-22 15:40:11 wosch Exp $ -->
+<!-- $Id: diskless.sgml,v 1.7 1996-10-21 23:54:46 joerg Exp $ -->
<!-- The FreeBSD Documentation Project -->
<sect><heading>Diskless operation<label id="diskless"></heading>
@@ -102,13 +102,21 @@ hostname myclient.mydomain
<item>If you are swapping over NFS (completely diskless
configuration) create a swap file for your client
- using touch. If your <tt>swapfs</tt> command has the
- argument <tt>/swapfs</tt> as in the example above,
- the swapfile for myclient will be called
+ using <tt>dd</tt>. If your <tt>swapfs</tt> command has the
+ arguments <tt>/swapfs</tt> and the size 20000 as in the
+ example above, the swapfile for myclient will be called
<tt>/swapfs/swap.X.X.X.X</tt> where <tt>X.X.X.X</tt>
is the client's IP addr, eg:
<tscreen><verb>
-# touch /swapfs/swap.192.1.2.4
+# dd if=/dev/zero of=/swapfs/swap.192.1.2.4 bs=1k count=20000
+</verb></tscreen>
+
+ Also, the client's swap space might contain sensitive
+ information once swapping starts, so make sure to
+ restrict read and write access to this file to prevent
+ unauthorized access:
+<tscreen><verb>
+# chmod 0600 /swapfs/swap.192.1.2.4
</verb></tscreen>
<item> Unpack the root filesystem in the directory the