[blog] 2019-06-09: FreeBSD+ZFS: Look mom, no storage!
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
#!/bin/sh | |
mdconfig -t malloc -a -s 4g | |
zpool replace zroot gpt/SATADOM1 /dev/md0 |
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
#!/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 |
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
#!/bin/sh | |
while true | |
do | |
clear | |
date | |
zpool status -v | |
echo | |
echo "camcontrol devlist" | |
camcontrol devlist | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Definitely falls under the category of “few practical applications, but still dope as hell.”👍