Zpool set cachefile=/mnt/etc/zfs/zpool.cache rpool zpool import -d /dev/disk/by-id -R /mnt rpool Reimport ZFS pool and create a ZFS configuration cache file. Now, we can start installing Debian system. Believe me, you don’t want to use UDEV naming (sda, sdb, etc.) on ZFS. We do this so that the ZFS config would read from disk by ID instead of common UDEV naming. Last, export the pool we’ve created for later import. What? Yes, I’m installing Debian not Ubuntu. Zpool set bootfs=rpool/ROOT/debian-1 rpool Zfs create -o mountpoint=/ rpool/ROOT/debian-1 Create PartitionĪs Debian configuration: zfs create -o mountpoint=none rpool/ROOT After this, I’m doing things from Crossroad’s tutorial with some tweaks. If nothing is wrong, we would got: # zpool status rpool If I may have a dream with two SSDs: zpool create -f -o ashift=12 -o altroot=/mnt -m none rpool mirror sda sdb log mirror sdc2 sdd2 cache sdc3 sdd3ĭisable access time, enable relative time and enable LZ4 compression on tanks. Here’s the reality: zpool create -f -o ashift=12 -o altroot=/mnt -m none rpool mirror sda sdb log sdc2 cache sdc3 But, don’t mirror the cache because it’s wasting space. If you are luckier than me, do it! It is for safety measure. I would mirror two partitions on separated SSDs for ZIL. After adding the two disks into a ZFS pool, the partitions will be like this: sda: sda1 sda9, sdb: sdb1 sdb9 Yeah, ZFS automatically turn the disk into GPT partitioning scheme. One big partition (sX1) for the use of ZFS and one 8MB partition (sdX9) for EFI partition (FAT). I’ve just recently found out that when you give your whole disk to ZFS, it would format the disk into two partitions. 8GB used for ZIL (ZFS Intent Log) drive.Some twisted soul refused to use separated partition for /boot, well, good for you! I go with the conservative. Using GParted, I turned SSD into GPT with 3 partitions: Upgrading a temporary system is wasting time, especially one with GUI installed. You may wondering why I’m not upgrading first.
#DEBIAN OPENZFS INSTALL INSTALL#
Install Ubuntu ZFS for Ubuntu Live SessionĪpt-add-repository -yes ppa:zfs-native/stableĪpt-get install debootstrap spl-dkms zfs-dkms ubuntu-zfs Last, change ubuntu user password.Īnd now the show live from my comfy SSH terminal laptop. I’m not going to go on religious war on ViM vs Emacs.
I need SSH because I can’t stand on server room too long.
#DEBIAN OPENZFS INSTALL UPDATE#
deb trusty main restrictedĭo the update and install SSH and VIM. I modify APT sources.list to match my nearest server. Boot it up and setup some trivial like IP, DNS and stuff. I’ve got Ubuntu 14.04 Live USB on my arsenal. Perhaps, if you want, I would reiterate what I do here with better Bahasa Indonesia. To keep writing and translating from my tacit into Bahasa Indonesia is kind of laboring. I’m writing in this blog as I moving forward installing. I’m in fast writing mode as this is probably won’t intended to be understood by most people. A REVISION WAS LOST! PLEASE TAKE A LOOK AT THE BOTTOM PAGE FOR GRUB SETTING BEFORE REBOOT.