#dpkg-reconfigure -f noninteractive tzdata Pause 'Verify correct - press key to continue, CTRL-C to abort'Ĭat > /mnt/etc/netplan/ens192.yaml /mnt/etc/apt/sources.list /etc/timezone Zfs create -o com.sun:auto-snapshot=false -o exec=on rpool/var/tmp Zfs create -o acltype=posixacl -o xattr=sa rpool/var/log Zfs create -o com.sun:auto-snapshot=false rpool/var/cache Zfs create -o canmount=off -o setuid=off -o exec=off rpool/var Zfs create -o mountpoint=/root rpool/home/root Zfs create -o canmount=noauto -o mountpoint=/ rpool/ROOT/ubuntu Zfs create -o canmount=off -o mountpoint=none rpool/ROOT O atime=off -O canmount=off -O compression=lz4 -O normalization=formD \ Pause 'Press any key to clean /dev/sda - CTRL-C to abort'Īpt install zfs-initramfs gdisk debootstrap If you're awake, press key to continue or CTRL-C to abort and re-tool the rest of the script'Īpt install -y openssh-server zfs-initramfs gdisk debootstrap Pause 'NOTE: Will pause occasionally to verify stuff. Note: Will not work with 'live server' ISO.įrom another computer, log into the system running the live ISO:Ĭopy this script and run from ssh terminal - there's a few things you'll likely have to change in the script:ġ) paste it into nano and use ctrl-\ to find-and-replace your boot drive assignment after identifying it with lsblk.Ģ) change /etc/netplan/controllername.yaml to reflect your device name desired network settings Or you can just install it without encryption using EFI by copying my scripts here and running them. If you want more granular detail or a LUKS installation, or a BIOS installation rather than EFI, you can check there and do it step by step. I do not work for, nor am I affiliated with, Canonical in any way. However, my belief is that zfs snapshots are incredibly helpful for management of root filesystems. Also note that ZFS is only supported for data storage, not the root filesystem. Note that ZFS is only supported on 64 bit architectures. ZFS support was added to Ubuntu Wily 15.10 as a technology preview and comes fully supported in Ubuntu Xenial 16.04. I recommend you ONLY use it on a system with just ONE DRIVE you're going to dedicate to Ubuntu unless you really know what you're doing - and even then, you'll have to modify it quite a bit.Īlso, this is completely unsupported by Canonical. But make sure you understand what each command does and verify that it's what you want if you're going to try it. This definitely makes things easier for me and MUCH faster than going step-by-step. Should those folders be deleted? Should /mediaserver be deleted?Īny advice on what I'm doing wrong? I'm happy to provide any other information you might need.Have some fairly rudimentary scripts I threw together while installing Ubuntu 18.04 on ZFS using a live ISO flash drive. When I pull up the individual disks in Disks, it shows as a ZFS partition but with Contents as "Unknown (zfs_member 5000) - Not Mounted"įor the folders on /mediaserver (/mediaserver/TV, /mediaserver/Movies, etc), the folders still appear, but are empty. Mediaserver 32.0T 3.13T 32.0T /mediaserver Zfs list: NAME USED AVAIL REFER MOUNTPOINT Zfs mount -a / zfs mount mediaserver: cannot mount '/mediaserver': directory is not empty Zpool import: no pools available to import Scan: scrub repaired 192K in 47h41m with 0 errors on Tue May 14 00:05:27 2019 Here are some outputs of certain commands, in case it's helpful (all as root): I've tried Googling around but I'm afraid I'll do irreparable damage if I don't look to the right place first.Ĭan anyone help me get this mounted properly again? And set up so it mounts automatically at boot? There were two raidz1 pools, with three 10TB hard drives in each, under the collective /mediaserver.Īfter reboot, /mediaserver and its folders are showing up, but every folder is empty. I successfully installed a ZFS pool about a month ago on my computer, running Ubuntu 18.04.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |