Tag: zfs
-
ZFS: third time through
Fascinating–I had just finished a scrub on June 6. Then a drive started dying. Now I’ve attempted to replace it, but an adjacent drive also had errors. I feel like I’m in a bit of a pickle. This snapshot had the error, so I deleted the snapshot and did a zfs clear tank, and the […]
-
ZFS Snapshot alias
Add this to your .bash_aliases for fun and profit: function Snapshot () { local dst=”” local atnam=”” if [ -z “$1″ ]; then dst=`df -l . | tail -1 |awk ‘{print $1}’` else if [[ $1 = *@* ]]; then atnam=”${1##*@}” dst=”${1%%@*}” fi dst=`df -l “$dst” | tail -1 |awk ‘{print $1}’` fi [ -z […]
-
Apply ZFS driver settings without reboot
Apply your modprobe.d values without rebooting: egrep -v ‘^#|^\s*$’ zfs.conf \ | while read L; do M=($L) N=${M[2]} P=(${N/=/ }) echo “${P[1]}” > /sys/module/zfs/parameters/${P[0]} done #zfs #linux #bash
-
ZFS Rebuild Script
I’ve rebuilt my zfs modules often enough that I’ve written a script to do a clean build that should avoid old kernel modules and old libraries. #!/bin/bash sudo find /lib/modules -depth -type d -iname “spl” -exec rm -rf {} \; sudo find /lib/modules -depth -type d -iname “zfs” -exec rm -rf {} \; sudo find […]
-
Build OpenZFS on Ubuntu 16.04 from git
I have to import a zpool from one Ubuntu workstation with recent features to a new Ubuntu workstation. The new workstation being a fresh Ubuntu 16.04 Server install. It only has ubuntu-mate-desktop and build-essentials installed. Below is an aggregation of some of the apt install commands I preformed to get things going: apt install dkms […]
-
Notes on Updating Centos7 to 4.3.3
Upgrades! Sometimes they are a lot of homework. Enabled Centos-Plus repos and elrepo for recent kernels. I figured out I want to install kernel-ml, kernel-ml-headers, kernel-ml-devel. That last one escaped me but is necessary because you need it when you do a dkms install. So after updating that stuff, I was able to dkms install […]
-
Ubuntu 15.10 and ZFS
Some quick thots on doing this for my workstation: I have six 2TB drives in raid 10 zfs pool, and they would not import to 15.10 because 15.10 ships with (or tries to) zfs 0.6.4.2 I decided on /boot, swap, /, mdadm partitions for OS install needed to do 15.10 server cmdline install for mdadm […]
-
Crazy Times with zxfer
I’ve started using zxfer that @AllanJude referred me to recently. It does a nice job. My main difficulty was how to get it to work efficiently over the 10Mbps that’s my effective DSL speed. First, I made a copy of zxfer (zmxfer) that incorporates mbuffer. This is a crude hack, but helps me ensure that […]
-
Speeding ahead with ZFS and VirtualBox | FreedomPenguin
I have created a lot of VMs with VirtualBox and I organize their snapshotting with ZFS.