code: fqa.9front.org

Download patch

ref: 6a6e62109dc3db0ad862f2a3ce866c8e70332445
parent: 956a2148f802e0c0fb6505cd98b95e143c18ab92
author: sl <sl@stanleylieber.com>
date: Mon Jan 25 14:03:21 EST 2021

fqa.ms, fqa4.ms: add 4.3.6.1 - cwfs no-dump configuration (thanks, kvik)

--- a/fqa.ms
+++ b/fqa.ms
@@ -638,6 +638,10 @@
 4.3.6 - configfs
 .ihtml a
 
+.ihtml a <a href="fqa4.html#4.3.6.1">
+4.3.6.1 - cwfs no-dump configuration
+.ihtml a
+
 .ihtml a <a href="fqa4.html#4.3.7">
 4.3.7 -  partdisk
 .ihtml a
--- a/fqa4.ms
+++ b/fqa4.ms
@@ -640,6 +640,63 @@
 .CW cwfs64x
 as the default.
 
+.html - <a name="4.3.6.1" />
+.ihtml h3 <h3>
+.SH
+4.3.6.1 - cwfs no-dump configuration
+.R
+.ihtml h3
+A cheap VPS or an SD card lack the storage capacity for running a usable
+default `cwfs(4)` setup with a big WORM partition and daily dumps.
+The go-to solution is the `hjfs(4)` file system, which doesn't
+use a dedicated WORM partition and doesn't do daily dumps by default.
+However, it has several performance problems and is not as well tested.
+
+The `cwfs` file system can be configured in lots of ways beyond the
+default cache-worm + other configuration supported by the 9front
+installer.
+
+The desired configuration we're going to cover is a single `main`
+file server tree backed by a simple disk file system - the same type
+used by the `other` tree in the default setup.
+
+To do this we're going to partition the disk appropriately and override
+the `mountcwfs` stage of the 9front installer with a replacement script
+.ihtml a <a href="http://a-b.xyz/23/666a">
+http://a-b.xyz/23/666a
+.ihtml a
+that will configure `cwfs`
+appropriately. The rest of the installation and most of the
+subsequent system operation remain unaffected.
+
+Start by booting from the installation media. Configure networking
+with `ip/ipconfig(8)` and fetch the replacement `mountcwfs` script,
+or put the script on a flash drive:
+.P1
+% webfs
+% ramfs
+% hget http://a-b.xyz/23/666a >/tmp/mountcwfs
+% chmod +x /tmp/mountcwfs
+.P2
+Override the `mountcwfs` stage using `bind(1)`:
+.P1
+bind /tmp/mountcwfs /bin/inst/mountcwfs
+.P2
+Run `inst/start` and complete the stages up to `preppart` as you would
+normally.  At `preppart`, delete the default partitions and create one
+named `fsmain` with a desired size:
+.P1
+d other
+d fscache
+d fsworm
+a fsmain 123456 .+100%
+w
+q
+.P2
+Make sure to "ream" the new partition at the next step.
+
+Complete the rest of the installation, reboot. That is all.
+
 .html - <a name="4.3.7" />
 .ihtml h3 <h3>
 .SH