Commit Graph

329 Commits

Author SHA1 Message Date
Maurice Zhou
6b8c308aad NixOS: enclose disk variable in double quotes
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2023-03-19 01:39:25 +03:00
Maurice Zhou
b6cf700f62 Update NixOS configuration, clean up RHEL, Fedora, Arch guide mount section
Closes #397

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2023-03-18 21:58:25 +03:00
Maurice Zhou
a69befb2ce Update Alpine, Arch, Fedora and RHEL root on ZFS guides
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2023-03-10 20:57:14 +03:00
m3t
450f043363 NixOS Root on ZFS: fix config hints
Stay in sync with the config template generated by nixos-generate-config
2023-02-16 23:54:49 +03:00
Richard Laager
2efebdb5db Debian/Ubuntu: Mention blkdiscard
Inspired by PR #387

Co-authored-by: Maurice Zhou <ja@apvc.uk>
[The author of PR #387.]
2023-02-15 12:51:54 -06:00
Richard Laager
e51faf4e81 Ubuntu: Add wipefs to the instructions
This was present in the Debian instructions.  I don't know why we
wouldn't want it here too.
2023-02-15 12:51:54 -06:00
Maurice Zhou
3a93793b53 NixOS Root on ZFS: add escape hatch for zfs rollback
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2023-02-14 20:51:04 +03:00
Maurice Zhou
b3180fd225 NixOS Root on ZFS: wipe flash-based storage device.
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2023-02-14 20:51:04 +03:00
Maurice Zhou
cc6d72c02d NixOS Root on ZFS: use Nix-config for multi-disk
NixOS has enjoyed popularity among ZFS users thanks to
its declarative configuration and native ZFS support.
However, the installation guide used hardcoded disk
names in configuration files, which is unnecessary and
is the source of difficulties in multidisk setups.

The guide is now rewritten to leverage expressions in
the Nix language to manage multidisk setups.

Also adds instruction on replacing failed disk.

Closes #385.

Signed-off-by: Maurice Zhou <ja@apvc.uk>
2023-02-12 19:24:24 +03:00
Maurice Zhou
1211e98faf NixOS Root on ZFS: Do not bind mount /boot/efi
Previously we used a bind mount from /boot/efis/*-part1
to /boot/efi to facilitate bootloader configuration.
Recent reports indicate that this bind mount prevents
the system from booting.  This pull request removes the
bind mount.

Closes #383.

Signed-off-by: Maurice Zhou <ja@apvc.uk>
2023-02-10 11:16:11 +03:00
FrostKiwi
0aaa23397e Remove instruction to block disk cache
By my understanding, unnecessary due to unmounting at the end of the instruction. Has lead to unstable and error-spewing ZFS setups, as discussed in this issue: https://github.com/NixOS/nixpkgs/issues/214871
2023-02-08 23:46:53 +03:00
Richard Laager
33de2eef4b Debian/Ubuntu: Add a note about ZFS_INITRD_ADDITIONAL_DATASETS
Putting /etc on a separate dataset leads to a bad time.

Closes #356
2023-01-05 22:46:22 -06:00
Issam Maghni
2af017fe58 Use nix builtins for hostId 2023-01-02 13:22:43 +03:00
Gergin Darakov
ef2be632e8 - Fix typo 2022-12-30 13:18:18 +03:00
jze2
d63d75e5a0 Update openSUSE Tumbleweed Root on ZFS.rst
There is no dbus package, only dbus-1
2022-12-10 11:56:36 +03:00
jze2
91088376fa Update openSUSE Tumbleweed Root on ZFS.rst
There is no grub2-x86_64-pc package anymore.
2022-12-10 11:56:09 +03:00
jze2
6f965cbe8b Update openSUSE Tumbleweed Root on ZFS.rst
When mail dataset is created in /var/mail, the filesystem package will fail to install (as it does not expect /var/mail to be a directory, see https://archive.virtualmin.com/node/23096), so create it in /var/spool/mail instead as is usual.
2022-12-10 11:53:29 +03:00
LordNicky
7e5a343523 Update openSUSE Leap Root on ZFS.rst
Suse have some problems with rpool's new features,
document features set for now + minor fixes.

Co-authored-by: George Melikov <mail@gmelikov.ru>
2022-12-10 11:50:28 +03:00
TonyBoston
218a441379 remove @-sign as this doesn't work
dnf group install gnome-desktop works
2022-11-29 15:44:11 +03:00
Pariksheet Nanda
577bcc4f93 Debian: Install NTP service on Bullseye to avoid web login failures
Closes #344
2022-11-29 12:56:07 +03:00
Brooks Davis
ccb9d2a17f Mention that fdescfs needs to be mounted
Some tests require access to /dev/fs/3 which requires a proper /dev/fd
with fdescfs not just symlinks to fd's 0-2.
2022-11-02 12:45:07 +03:00
Brooks Davis
56afbc77ef FreeBSD: define MAKE=gmake in configure env
The default make on FreeBSD is bmake not GNU make.  Set MAKE=gmake to
prevent configure errors.
2022-11-02 12:45:07 +03:00
Brooks Davis
28e0bde4c4 FreeBSD: Update python package references
Install the "python" package to get the a friendly bin/python wrapper
and install dependencies using origins rather than package names in
order to install the default flavor.
2022-11-02 12:45:07 +03:00
Brooks Davis
f8a3542b58 Drop svnlite instructions in favor of git
While FreeBSD 12 sources are still available via Subversion, users are
better off using git as it is the source of truth.
2022-11-02 12:45:07 +03:00
Richard Laager
81b6c209e4 Debian: Add work-around for bpool import failures
I am not sure under what circumstances this occurs, or whether it also
affects Debian Buster or Ubuntu.

Closes #349
Co-authored-by: Immanuel Albrecht <immanuel.albrecht@dlh.de>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-10-01 04:50:09 -05:00
Maurice Zhou
68eebfd5df Add double quotes to DISK=$DISK
Without the double quotes, the $DISK variable expands and will not
handle multi-disk correctly.

Co-authored-by: @baberlevi

Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-09-23 21:49:09 +03:00
sam-kleiner
233952e4e7 update partition sizes 2022-09-11 23:30:11 -05:00
Sam Kleiner
1a3b19f2e8 fix ubuntu 22.04 zfs on pi link 2022-09-11 23:30:11 -05:00
bajjer
f7aafbd853 Revise example to tune to the recordsize for rpool
Change the provided example to tune the ``recordsize`` to apply to the
root dataset when creating the rpool. See
https://github.com/openzfs/openzfs-docs/issues/345#issuecomment-1242657449

Closes #345
Closes #346

Signed-off-by: Richard Laager <rlaager@wiktel.com>
[applied the change to all the distros]
2022-09-10 16:28:09 -05:00
Scott G. Ainsworth
f5fbbb6f90 Clarify boot wording. Remove trailing spaces. 2022-08-28 15:53:55 -05:00
Scott G. Ainsworth
2fdc3aaf9a Update image link to Ubuntu 2022.04.01 2022-08-28 15:53:55 -05:00
Adam Kalisz
90fbd14df3 Add cryptsetup-initramfs package to include cryptsetup into initrd.
The initrd cannot otherwise decrypt the partition.
2022-08-23 12:25:31 +03:00
Maurice Zhou
d5ae2ab80b Update links to ZFS repo for RHEL
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-08-10 23:33:44 +03:00
Tony Hutter
46a912175e Remove unneeded rpm --import <key>
RPM will prompt to install our signing key, so no need to manually import it:
```
ZFS on Linux for EL9 - kmod                                                                                                                                                         3.3 MB/s | 3.4 kB     00:00    
Importing GPG key 0x9DB84141:
 Userid     : "OpenZFS <release@openzfs.org>"
 Fingerprint: 7DC7 299D CF7C 7FD9 CD87 701B A599 FD5E 9DB8 4141
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs
Is this ok [y/N]: y
```
Removing the line also gets around the problem of the key being renamed from `RPM-GPG-KEY-zfsonlinux` -> `RPM-GPG-KEY-openzfs`
2022-08-08 12:27:17 -07:00
Tony Hutter
5d2d7b4d23 Point to new zfs-release-2-2 RPMs, add key
Add our new key for EL9+ and Fedora 37+, and update instructions
to include EL9.  Also update links for Fedora/EL to use the
new zfs-release-2-2 RPM.

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
2022-08-08 21:46:51 +03:00
Maurice Zhou
b35065b4fc Alpine: Use ZFS for /boot, updated bootloader instructions
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-07-31 21:48:31 +03:00
Maurice Zhou
82988571d1 Root on ZFS: Fix broken links
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-07-27 15:38:33 +03:00
Maurice Zhou
0e22ae68eb Add support for Alpine Linux
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-07-27 11:12:03 +03:00
Maurice Zhou
2766cb7197 Updates and cleanup for Arch, RHEL, NixOS and Fedora
Signed-off-by: Maurice Zhou <ja@apvc.uk>
2022-07-27 11:11:03 +03:00
Tony Hutter
5b51f08df4 Temporarly remove EL 9
Remove EL 9 references until we can sign EL9 packages with an updated RPM key that EL9 supports by default.
2022-07-20 17:14:32 -07:00
Tony Hutter
bc3d372c17 Add EL 9.0 text 2022-07-19 14:20:14 -07:00
Tony Hutter
64a1217920 Use universal zfs-release link for CentOS again
Earlier we had to revert the CentOS 7 zfs-release RPM to point to the older `zfs-release.el8_6` RPM, since the newer universal RPM was encoded with zstd compression (which CentOS 7 didn't support).  Since then, we've rebuilt the universal RPM with gzip, so we can use it again.
2022-07-14 10:08:51 -07:00
George Melikov
1d2ffe3528 Apt: use kernel/headers meta packages
- `generic` packages exist since bullseye
- older versions have `amd64` meta package
2022-07-13 23:41:59 +03:00
weijh
ecc6c713f9 Update index.rst 2022-07-08 10:20:30 -07:00
Tony Hutter
2d636cb596 Use universal zfs-release RPM (#325)
We now have universal zfs-release RPMs that will work for all
version of either Fedora or RHEL/CentOS:

https://github.com/zfsonlinux/zfsonlinux.github.com/pull/67

Update the docs to point to the new RPMs.

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
2022-07-06 09:28:04 +03:00
Maria
c67000823a Update 2-system-configuration.rst (#321)
Add correct path to `aliases` file on immutable step
2022-06-22 13:31:06 +03:00
Maurice Zhou
077e24712a NixOS: update system major version inside configuration files
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2022-06-19 14:23:05 +03:00
Maurice Zhou
1cd6ef244f fix argument order
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2022-06-19 14:23:05 +03:00
Maurice Zhou
d9782f7877 NixOS: upgrade to 22.05, mail notification, procedure for system upgrade
Signed-off-by: Maurice Zhou <jasper@apvc.uk>
2022-06-19 14:23:05 +03:00
Richard Laager
e1f251bba1 Debian: Correct backports pinning
The source package is zfs-linux, not zfsutils-linux.  I had this wrong
in the fix for #314.

Closes #318
Reported-by: Piscium
Signed-off-by: Richard Laager <rlaager@wiktel.com>
2022-06-13 12:40:50 -05:00