summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-10-21 23:54:46 +0000
committerjoerg <joerg@FreeBSD.org>1996-10-21 23:54:46 +0000
commit179cbc5d48c62f73496a417257fe8b97143988b9 (patch)
tree05dbe531be78bb31c87223aa6cd7e812b69e9cc5
parent52fc849c3344ab03891d82fd69048c4d4fee2f68 (diff)
downloadFreeBSD-src-179cbc5d48c62f73496a417257fe8b97143988b9.zip
FreeBSD-src-179cbc5d48c62f73496a417257fe8b97143988b9.tar.gz
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.
-rw-r--r--share/doc/handbook/diskless.sgml18
1 files changed, 13 insertions, 5 deletions
diff --git a/share/doc/handbook/diskless.sgml b/share/doc/handbook/diskless.sgml
index 5e44be2..b1062ef 100644
--- a/share/doc/handbook/diskless.sgml
+++ b/share/doc/handbook/diskless.sgml
@@ -1,4 +1,4 @@
-<!-- $Id: diskless.sgml,v 1.5 1996/07/06 14:20:11 joerg Exp $ -->
+<!-- $Id: diskless.sgml,v 1.6 1996/09/22 15:40:11 wosch 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
OpenPOWER on IntegriCloud