Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[blog] 2019-06-09: FreeBSD+ZFS: Look mom, no storage!
#!/bin/sh
mdconfig -t malloc -a -s 4g
zpool replace zroot gpt/SATADOM1 /dev/md0
#!/bin/sh
gpart destroy -F ${1}
gpart create -s gpt ${1}
gpart add -t efi -s 2m ${1}
gpart add -t freebsd-zfs -s 4g -a 1m -l SSD-ZFS ${1}
gpart show ${1}
dd if=/dev/zero of=/dev/${1}p1
dd if=/boot/boot1.efifat of=/dev/${1}p1
zpool replace zroot md0 gpt/SSD-ZFS
#!/bin/sh
while true
do
clear
date
zpool status -v
echo
echo "camcontrol devlist"
camcontrol devlist
sleep 1
done
@jessestuart

This comment has been minimized.

Copy link

jessestuart commented Jul 12, 2019

Definitely falls under the category of “few practical applications, but still dope as hell.” 👍

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.