Skip to content

Instantly share code, notes, and snippets.

@Savagedlight
Created June 9, 2019 14:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Savagedlight/9ea895925762ee28a6220b8e1a8c2ca8 to your computer and use it in GitHub Desktop.
Save Savagedlight/9ea895925762ee28a6220b8e1a8c2ca8 to your computer and use it in GitHub Desktop.
[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
Copy link

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