From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 4146 invoked from network); 22 Jun 2021 09:12:41 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 22 Jun 2021 09:12:41 -0000 Received: from NAM12-MW2-obe.outbound.protection.outlook.com ([40.92.23.82]) by 1ess; Tue Jun 22 01:47:17 -0400 2021 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CO5cr5jYVvqrrqJofL3wcrZLKSk5h+1+2/00A+PFkrGV3T9tTbTh4QK4WxyrMVts/lNjPLJfRIREQCl+awKgmW4qDTYnmtMR0ikJqQjHu7qCsakrZKvYVUYUaoCf5XYPguD8pxBATujgwivCzAJb39LyTAbi1o04Wztviim0EvOiZY2ByhVcNGm0lNO0JWxtJhzi5VmvuKJCZC+vim0sLtqKXeebBc+JvCPrQai7b20A+nt+583DE7OfnfvwmGEHPjxQg4/HVbuYkg0BtesjH+afMg33fSvxlEVD+AJUD08r2s7Q8FLEaFH76RltvVvGS/PpuFcSQHKN1gutbmls8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ELVC7S3nHTXXPN+DY6dCCuyn9TZ/6RePdCX9oVJVZpg=; b=dPj6fhoOUJVtMo+MgDvPA12eBBAvXpMoj1KX+wH9PfeHIJZL/5Y+pFNSccjOXvz/mGr23cqfPF1xC+mV9D2ErOef4PisbYT2GwHKFB3jyVdonGAtr3C+azyP/F2IDx02K0QrJZfMz0TWtIPc4TWtoGMZhrn14KqTNgbRNmiV6n+qA4fAWzyEox0euzy85qV9ax3q7YPAanQGu3t4+Iw9N5INiwhAVYuhTXv3NVVeTIn7vwCNJj4U/eAEFAik8pShkJpXwm/rq5PUeP0zOyvfacAJDAPFz93NjcPhXtziRhZYe9tRCnPT3lCOjbphZWqpfL4qeJrtRJxTJabC2xgApw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ELVC7S3nHTXXPN+DY6dCCuyn9TZ/6RePdCX9oVJVZpg=; b=ce5V/hmNmWbLJ5FXHvFsmdLJBpsQw9Uf8btpkX9Y4b2evecwrVBeynuUqqxd3uypweGAzGU/47jYt5A81P37otuoKQiSzLlhdOfYy9k8IiDMBlrJ3r+t4NHWfRAUOoYzg34kxow10Be0Lhs+ZFd1rXGG1EfuqQ6n8jn6cdcwtIxOX5f1t1ExyGmnrelSydsZPCfmXa/0cpJ4oOH2Jb3+H77q7z1T5j4GaMhCWRvragYpI5lc8NvJhxAGS1Vi5LTLMaG1XuG4vaIys4R8P+83MyXKkmudn6XNR+pp0oYQnZ66gniVxFle1qJEhUTIbFjJxU07JF3TmQK83cpH907vLQ== Received: from BN8NAM12FT058.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::50) by BN8NAM12HT151.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.10; Tue, 22 Jun 2021 05:47:13 +0000 Received: from CO1PR17MB5177.namprd17.prod.outlook.com (2a01:111:e400:fc66::52) by BN8NAM12FT058.mail.protection.outlook.com (2a01:111:e400:fc66::188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.10 via Frontend Transport; Tue, 22 Jun 2021 05:47:13 +0000 Received: from CO1PR17MB5177.namprd17.prod.outlook.com ([fe80::75fc:c74:a485:b568]) by CO1PR17MB5177.namprd17.prod.outlook.com ([fe80::75fc:c74:a485:b568%2]) with mapi id 15.20.4242.023; Tue, 22 Jun 2021 05:47:12 +0000 From: Lorenzo Bivens To: "9front@9front.org" <9front@9front.org> Thread-Topic: [PATCH] Doc contribution: CWFS with WORM on a separate drive Thread-Index: AQHXZymYj+AS/vVxVkOrBUrU03RcOQ== Sender: Lorenzo Bivens Date: Tue, 22 Jun 2021 05:47:12 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:6743F04E7AA1BA85D8BF113E36BDD859C3CD586FE80921D7F76CA9C141183F9A;UpperCasedChecksum:4752E541257837AD7E9B19D87C5A1F28A4349FBEF05174B590E1B6F08B404185;SizeAsReceived:6768;Count:43 x-ms-exchange-messagesentrepresentingtype: 2 x-tmn: [xTLKSpx4suXd4rX4XxEClPVirMgAEoPF] x-ms-publictraffictype: Email x-incomingheadercount: 43 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: ec1730b4-1400-4211-7a6e-08d935412ee6 x-ms-traffictypediagnostic: BN8NAM12HT151: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4DbYr8tlAJuqwl+mGmU2K9GLJ72lfzH6GAXMxpwWlHNYJ8w5c2gfc/y+2aTvSZdtds0GQ9pOOlykmO4fNgu4BwavqFYwruTIFmhyzcQC2dtIbYLlIIcB1lsE46F5VJT+NsnsBHh0xe8bkUP96mEn+7ZFjNO1gZW5HJl/0KIhpzLitU+G5QaIeupGMigilQ2V3gB+2wVlDI6nRl5sEQJ4gbJyNEUb+7XU2LLt14+AYDnbfJBwylokHDiRYatuAUwOXO/wiJBTCel4aLKsLTHuxwyDpnC+BVAqNnXmkJYBh2KQDIl20YJVQjVPkW2Il+HzEewdYyQ0ShcB8xy/znlx/akSoc/sXunBh5ztrCQxJ/EDtxTj+Znnipc5jeO8EtrCHYuczy5MjlCcB57hn+M/vA== x-ms-exchange-antispam-messagedata: rq+g/O2ghG1G3A7rxNWbMgVMO7WalZHm5VaUU+SbMsYA/c78cERXrBLv1ScJNSxNgMO2RsgQ90JVDfSTs8EtRDIMibXZoRqv8fexmxg7ei/QVRVGIpoPhq92H7UZYf30JyIZGp6+kaoV8UoB0SPJIA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: BN8NAM12FT058.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: ec1730b4-1400-4211-7a6e-08d935412ee6 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jun 2021 05:47:12.4902 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM12HT151 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shared distributed template standard frontend Subject: [9front] [PATCH] Doc contribution: CWFS with WORM on a separate drive Reply-To: 9front@9front.org Precedence: bulk Hi!=0A= =0A= I have put together a few notes on how to setup cwfs with the cache and wor= m on separate disks. =0A= I think it could be a reasonable addition to the cwfs page of the docs page= .=0A= =0A= Patch inline below. Feedback is quite welcomed!=0A= =0A= --- /tmp/docs.9front.org/.git/fs/object/a35de70a4d9d04e8af37ec5fd729cf6d9bf= 98230/tree/cwfs.md=0A= +++ cwfs.md=0A= @@ -87,3 +87,43 @@=0A= to confirm. `wsize * 16000` is the size of your WORM.=0A= =0A= No refunds=0A= +=0A= +CWFS with WORM on a separate drive=0A= +----------------------------------=0A= +=0A= +### What you do is what you get=0A= +These instructions assume you want to set up a CWFS on two drives one cont= aining=0A= +the cache filesystem, and the other containing the WORM=0A= +=0A= +This process has been tested on MBR installations, but should be extrapola= ble =0A= +to GPT as well with minor changes. (please report results)=0A= +=0A= +Note that the instructions won't work unless you have read them first=0A= +=0A= +### Initialize the disks=0A= +For this examble sd00 will be our cache drive, sd01 will be our WORM=0A= +=0A= +Assuming your drives are new, for a MBR partitioning scheme, you want to f= irst =0A= +create a MBR partition table. (see end note if using GPT)=0A= +=0A= + disk/mbr -a /386/mbr /dev/sd00/data =0A= + disk/mbr -a /386/mbr /dev/sd01/data=0A= +=0A= +You need to add a plan9 partition to both disks, otherwise the installer w= ill not see them=0A= +=0A= + disk/fdisk -baw /dev/sd00/data =0A= + disk/fdisk -baw /dev/sd01/data=0A= +=0A= +Now it is time to subdivide the plan9 partitions on both disks. We will th= en subpartition =0A= +the cache, and worm disks=0A= +=0A= + disk/prep -bw -a^(9fat nvram other fscache) /dev/sd00/plan9=0A= + disk/prep -bw -a fsworm /dev/sd01/plan9=0A= +=0A= +The steps to make this layout work on GPT partitioned drives should be sim= ilar, =0A= +skipping the mbr initialization, and using disk/edisk instead of fdisk.=0A= +=0A= +### Finally=0A= +Start your installation as usual: select cwfs64x as your filesystem, =0A= +skip partdisk and prepdisk. When going through the mountfs step, =0A= +make sure to point to the right partitions on each function.=0A=