Recovering zfs pools after a system crash

Feed

date: 2021-08-17 12:01:10

categories: hardware

firstPublishDate: 2021-08-17 12:01:10

My backup server died in June 2021:

I had debian bullseye with ZFS installed on it.

The CPU fan broke and ZFS killed the machine because I was tranfering terabytes of data and ZFS uses a lot CPU resources on this machinei and the CPU became too hot.

The computer became unbootable because the ZFS root partition on the internal disk was not found anymore.

To recover the data on the internal disk, I tried debian live which didn't work because the computer was turning itself off when compiling the ZFS kernel module.

So I decided to copy FreeBSD on a USB key and use the live environment. ZFS is the default file system in FreeBSD, there is no need to compile the ZFS kernel module. The pool on the internal disk was not exported, so I used `zfs import` before mounting the datasets:

Then I used `scp` to copy the data to another computer.

I had also a 1.5tb external disk with ZFS, the pool in this drive is unreadable:

I restored the data from backup.

hashtags: #zfs

Feed

Guestbook

Proxied content from gemini://gmi.noulin.net/2021-08-17-recovering-zfs-pools-after-a-system-crash.gmi (external content)

Gemini request details:

Original URL
gemini://gmi.noulin.net/2021-08-17-recovering-zfs-pools-after-a-system-crash.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.