<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2506&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Installing ZFS on Devuan Mirrored Root]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2506</link>
		<description><![CDATA[The most recent posts in Installing ZFS on Devuan Mirrored Root.]]></description>
		<lastBuildDate>Tue, 13 Oct 2020 20:04:46 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Installing ZFS on Devuan Mirrored Root]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25256#p25256</link>
			<description><![CDATA[<p>It may also be worth noting that the ZFS kernel modules won&#039;t be signed with Debian&#039;s Secure Boot key so that will have to be disabled (or the ZFS modules will have to be signed with a custom Secure Boot key which must then be enrolled).</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 13 Oct 2020 20:04:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25256#p25256</guid>
		</item>
		<item>
			<title><![CDATA[Re: Installing ZFS on Devuan Mirrored Root]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25253#p25253</link>
			<description><![CDATA[<p>Update: The ZFS computers are still in operation, however anytime there is an update to ZFS, it requires the kernel to manually re-compile. From what I understand, this is due to the NON GPL and (even) NON BSD licensing used by the ZFS project. I think theres a work around, but it requires manual intervention. On a high end server this may not be a big deal, but on my old computers - it takes a while.</p><p>So I wouldn&#039;t use ZFS again. Next time I would adopt B-tree FS (BTRFS) which isn&#039;t trapped by restrictive licensing or mdadm.</p>]]></description>
			<author><![CDATA[dummy@example.com (little)]]></author>
			<pubDate>Tue, 13 Oct 2020 18:33:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25253#p25253</guid>
		</item>
		<item>
			<title><![CDATA[Installing ZFS on Devuan Mirrored Root]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12950#p12950</link>
			<description><![CDATA[<p>NOTE: Read the whole guide, before starting. Some warnings are AFTER commands are written. Also read the whole attached github guide this is based off of.</p><p>This is my log from installing ZFS on the root of Devuan, with a mirrored (two hdd) setup. tl;dr everything works.</p><p>This is the main guide<br /><a href="https://github.com/zfsonlinux/zfs/wiki/Debian-Stretch-Root-on-ZFS" rel="nofollow">https://github.com/zfsonlinux/zfs/wiki/ … oot-on-ZFS</a></p><p>I see this guide:<br /><a href="https://www.klaus-hartnegg.de/gpo/2017-11-29-ZFS-in-Devuan.html" rel="nofollow">https://www.klaus-hartnegg.de/gpo/2017- … evuan.html</a></p><p>but I don&#039;t think it&#039;s necessary to install from compilation in ASCII.<br />He mentions (in a side box, which is easy to miss)<br />&quot;Installing zfs-dkms from contrib<br />in Devuan 2 works<br />like described here,<br />but it is old version 6.5.9.&quot;</p><p>I don&#039;t mind the old version, as it&#039;s likely to be stable. That&#039;s why it&#039;s in the repos.</p><p>I&#039;m using an x86-64 devuan ascii minimal live cd. You should be using x86-64.</p><p>Steps:</p><p>First add contrib archive to existing apt/sources</p><p>e.g.<br />deb <a href="http://pkgmaster.devuan.org/merged" rel="nofollow">http://pkgmaster.devuan.org/merged</a> ascii main<br />to<br />deb <a href="http://pkgmaster.devuan.org/merged" rel="nofollow">http://pkgmaster.devuan.org/merged</a> ascii main contrib</p><p>I&#039;m using apt-get not apt. Both should work.<br />apt-get install debootstrap gdisk dpkg-dev linux-headers-$(uname -r)</p><p>follow the zfsonlinux guide<br />I&#039;m using mirrored root.</p><p>this command:<br />sgdisk -a1 -n2:34:2047&#160; -t2:EF02 /dev/disk/by-id/scsi-SATA_disk1</p><p>-a means set sector alignment<br />-n is make new partition. here it is partition 2 with start at sector 34<br />end at sector 2047<br />-t is partition type</p><p>Note that this command uses the /dev/disk/by-id command.</p><p>sgdisk is the same functionally as gdisk and the hex codes for -t are:</p><div class="quotebox"><blockquote><div><p>0700 Microsoft basic data&#160; 0c01 Microsoft reserved&#160; &#160; 2700 Windows RE<br />4100 PowerPC PReP boot&#160; &#160; &#160;4200 Windows LDM data&#160; &#160; &#160; 4201 Windows LDM metadata<br />7501 IBM GPFS&#160; &#160; &#160; &#160; &#160; &#160; &#160; 7f00 ChromeOS kernel&#160; &#160; &#160; &#160;7f01 ChromeOS root<br />7f02 ChromeOS reserved&#160; &#160; &#160;8200 Linux swap&#160; &#160; &#160; &#160; &#160; &#160; 8300 Linux filesystem<br />8301 Linux reserved&#160; &#160; &#160; &#160; 8302 Linux /home&#160; &#160; &#160; &#160; &#160; &#160;8400 Intel Rapid Start<br />8e00 Linux LVM&#160; &#160; &#160; &#160; &#160; &#160; &#160;a500 FreeBSD disklabel&#160; &#160; &#160;a501 FreeBSD boot<br />a502 FreeBSD swap&#160; &#160; &#160; &#160; &#160; a503 FreeBSD UFS&#160; &#160; &#160; &#160; &#160; &#160;a504 FreeBSD ZFS<br />a505 FreeBSD Vinum/RAID&#160; &#160; a580 Midnight BSD data&#160; &#160; &#160;a581 Midnight BSD boot<br />a582 Midnight BSD swap&#160; &#160; &#160;a583 Midnight BSD UFS&#160; &#160; &#160; a584 Midnight BSD ZFS<br />a585 Midnight BSD Vinum&#160; &#160; a800 Apple UFS&#160; &#160; &#160; &#160; &#160; &#160; &#160;a901 NetBSD swap<br />a902 NetBSD FFS&#160; &#160; &#160; &#160; &#160; &#160; a903 NetBSD LFS&#160; &#160; &#160; &#160; &#160; &#160; a904 NetBSD concatenated<br />a905 NetBSD encrypted&#160; &#160; &#160; a906 NetBSD RAID&#160; &#160; &#160; &#160; &#160; &#160;ab00 Apple boot<br />af00 Apple HFS/HFS+&#160; &#160; &#160; &#160; af01 Apple RAID&#160; &#160; &#160; &#160; &#160; &#160; af02 Apple RAID offline<br />af03 Apple label&#160; &#160; &#160; &#160; &#160; &#160;af04 AppleTV recovery&#160; &#160; &#160; af05 Apple Core Storage<br />be00 Solaris boot&#160; &#160; &#160; &#160; &#160; bf00 Solaris root&#160; &#160; &#160; &#160; &#160; bf01 Solaris /usr &amp; Mac Z<br />bf02 Solaris swap&#160; &#160; &#160; &#160; &#160; bf03 Solaris backup&#160; &#160; &#160; &#160; bf04 Solaris /var<br />bf05 Solaris /home&#160; &#160; &#160; &#160; &#160;bf06 Solaris alternate se&#160; bf07 Solaris Reserved 1<br />bf08 Solaris Reserved 2&#160; &#160; bf09 Solaris Reserved 3&#160; &#160; bf0a Solaris Reserved 4<br />bf0b Solaris Reserved 5&#160; &#160; c001 HP-UX data&#160; &#160; &#160; &#160; &#160; &#160; c002 HP-UX service<br />ea00 Freedesktop $BOOT&#160; &#160; &#160;eb00 Haiku BFS&#160; &#160; &#160; &#160; &#160; &#160; &#160;ed00 Sony system partitio<br />ef00 EFI System&#160; &#160; &#160; &#160; &#160; &#160; ef01 MBR partition scheme&#160; ef02 BIOS boot partition<br />fb00 VMWare VMFS&#160; &#160; &#160; &#160; &#160; &#160;fb01 VMWare reserved&#160; &#160; &#160; &#160;fc00 VMWare kcore crash p<br />fd00 Linux RAID</p></div></blockquote></div><p>I&#039;m going to be mirroring root so I&#039;ll use this command on both drives.</p><p>sgdisk -a1 -n2:34:2047&#160; -t2:EF02 ata-WDC_WD10JPVX-5555555_WXA1AA755555<br />sgdisk -a1 -n2:34:2047&#160; -t2:EF02 ata-WDC_WD10JPVX-5555555_WXC1AA7C5555</p><p>He mentions to &#039;always&#039; use the long /dev/disk/by-id aliases<br />though this is contrary to what Damian Wojstaw says in<br />&quot;Introducing ZFS on Linux&quot;. So it is open to debate.</p><p>I&#039;ll be using that book to assist with the github steps.</p><p>then this command:<br />sgdisk&#160; &#160; &#160;-n1:0:0&#160; &#160; &#160; -t1:BF01 /dev/disk/by-id/scsi-SATA_disk1<br />for each hdd</p><p>next command for me:</p><div class="quotebox"><blockquote><div><p>zpool create&#160; &#160;\<br />&#160; &#160; &#160; -O atime=off -O canmount=off -O compression=lz4 -O normalization=formD \<br />&#160; &#160; &#160; -O mountpoint=/ -R /mnt \<br />&#160; &#160; &#160; rpool \<br />&#160; &#160; &#160; &#160; mirror /dev/disk/by-id/scsi-SATA_disk1-part1 /dev/disk/by-id/scsi-SATA_disk2-part1</p></div></blockquote></div><p>NOTE: from guide:Make sure to include the -part1 portion of the drive path. If you forget that, you are<br />specifying the whole disk, which ZFS will then add another partition, then you&#160; have to start over.</p><p>NOTE: I am NOT setting ashift, as recommended by the zfs guide. This is from the pre-mentioned book,<br />who recommends not setting it blindly (unless you know what you are doing - I don&#039;t). See the book for more details.</p><p>NOTE: I am also not setting acl acceleration with xattr=sa. This may be harmless, but there&#039;s<br /> a slight chance<br />I will move to BSD or Solaris for fun at some point. Probably not, but I don&#039;t need the perfo<br />rmance increase.</p><p>if you make a mistake: zpool destroy rpool, then start over.<br />If necessary, you can gdisk and erase the partitions and start again.<br />dont use fdisk, or else youll have to add the gpt back with gdisk (invalid partition table error)</p><p>check it with # zpool status</p><div class="quotebox"><blockquote><div><p>root@devuan:/dev/disk/by-id# zpool status<br />&#160; pool: rpool<br /> state: ONLINE<br />&#160; scan: none requested<br />config:</p><p>&#160; &#160; &#160; &#160; NAME&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;STATE&#160; &#160; &#160;READ WRITE CKSUM<br />&#160; &#160; &#160; &#160; rpool&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ONLINE&#160; &#160; &#160; &#160;0&#160; &#160; &#160;0&#160; &#160; &#160;0<br />&#160; &#160; &#160; &#160; &#160; mirror-0&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;ONLINE&#160; &#160; &#160; &#160;0&#160; &#160; &#160;0&#160; &#160; &#160;0<br />&#160; &#160; &#160; &#160; &#160; &#160; ata-WDC_WD10JPVX-5555555_WXA1AA755555&#160; ONLINE&#160; &#160; &#160; &#160;0&#160; &#160; &#160;0&#160; &#160; &#160;0<br />&#160; &#160; &#160; &#160; &#160; &#160; ata-WDC_WD10JPVX-5555555_WXC1AA7C5555&#160; ONLINE&#160; &#160; &#160; &#160;0&#160; &#160; &#160;0&#160; &#160; &#160;0</p><p>errors: No known data errors</p></div></blockquote></div><p>zfs create -o canmount=off -o mountpoint=none rpool/ROOT</p><p>I&#039;m going to skip making the datasets section, as I want one partition for root.<br />so only one create command:<br />//https://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_ZFS#Format_the_destination_disk<br />zfs create -o canmount=noauto -o mountpoint=/ rpool/ROOT/debian</p><p>which was that<br />so /zpool/ROOT/debian is already mounted at /mnt</p><p>per a $ mount command<br />it does NOT have a lost&amp;found folder, so it&#039;s simply blank.</p><p>though:</p><div class="quotebox"><blockquote><div><p>root@devuan:/# df -h<br />Filesystem&#160; &#160; &#160; &#160; &#160;Size&#160; Used Avail Use% Mounted on<br />udev&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;1.9G&#160; &#160; &#160;0&#160; 1.9G&#160; &#160;0% /dev<br />tmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; 386M&#160; 628K&#160; 385M&#160; &#160;1% /run<br />/dev/sr0&#160; &#160; &#160; &#160; &#160; &#160;363M&#160; 363M&#160; &#160; &#160;0 100% /lib/live/mount/medium<br />/dev/loop0&#160; &#160; &#160; &#160; &#160;344M&#160; 344M&#160; &#160; &#160;0 100% /lib/live/mount/rootfs/filesystem.squashfs<br />tmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; 1.9G&#160; &#160; &#160;0&#160; 1.9G&#160; &#160;0% /lib/live/mount/overlay<br />overlay&#160; &#160; &#160; &#160; &#160; &#160; 1.9G&#160; 436M&#160; 1.5G&#160; 23% /<br />tmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; 5.0M&#160; 4.0K&#160; 5.0M&#160; &#160;1% /run/lock<br />tmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; 771M&#160; &#160; &#160;0&#160; 771M&#160; &#160;0% /run/shm<br />tmpfs&#160; &#160; &#160; &#160; &#160; &#160; &#160; 1.9G&#160; 4.0K&#160; 1.9G&#160; &#160;1% /tmp<br />rpool/ROOT/debian&#160; 899G&#160; 128K&#160; 899G&#160; &#160;1% /mnt</p></div></blockquote></div><p>it is listed.</p><p>debootstrap ascii /mnt<br />notice it&#039;s not stretch, but ascii</p><p>and follow the rest of the steps. I had some trouble at the beginning when I used the ZFS create command on the disk and not the part1 partition (oops), but that is resolvable with gpart (and a reboot).</p><p>Worked well for me. Boots into ZFS, mirrored root devuan.</p><p>So far, so good with ZFS. I&#039;ll update if I learn anything else.</p>]]></description>
			<author><![CDATA[dummy@example.com (little)]]></author>
			<pubDate>Sun, 25 Nov 2018 02:04:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12950#p12950</guid>
		</item>
	</channel>
</rss>
