Created
June 27, 2014 21:00
-
-
Save fire/66958e3c3d48c16779e8 to your computer and use it in GitHub Desktop.
dasjoe's zfs install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zpool create -f -o ashift=12 -O atime=off -O canmount=off -O compression=lz4 -O mountpoint=/ -R /mnt -O normalization=formD rpool mirror /dev/sda /dev/sdb | |
zpool export rpool | |
## 4 HDDs | |
# for disk in a b c d; do parted -s /dev/sd$disk mkpart GRUB2 48s 2047s; parted -s /dev/sd$disk set 2 bios_grub on; done | |
# 2 HDDs | |
for disk in a b; do parted -s /dev/sd$disk mkpart GRUB2 48s 2047s; parted -s /dev/sd$disk set 2 bios_grub on; done | |
zpool import -d /dev/disk/by-id -R /mnt rpool | |
zfs create -o canmount=off -o mountpoint=none rpool/ROOT | |
zfs create -o canmount=noauto -o mountpoint=/ rpool/ROOT/trusty | |
zfs mount rpool/ROOT/trusty | |
zpool set bootfs=rpool/ROOT/trusty rpool | |
debootstrap trusty /mnt http://mirror/ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment