Zpool online, but no data [Solved]

James Watt
Sep 14, 2017 · 1 min read

Had a bit of a scare this morning on one of my zpools: 24TB of data was missing. Although I couldn’t find my data, zpool status showed that everything was online.

pool: storage
state: ONLINE
scan: scrub in progress since Mon Sep 11 03:24:01 2017
23.8T scanned out of 25.2T at 249M/s, 1h42m to go
0 repaired, 94.21% done
storage ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
sda ONLINE 0 0 0
sdb ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
errors: No known data errors

A month or so ago, I implemented some hacky mount points in /etc/fstab to bind a user folder on my main filesystem with a directory on the zpool tank. I had forgotten all about it…

# <file system>     <mount point>    <type> <options>
/dev/sdi1 / ext4 errors=remount-ro 0 1
/dev/sdi5 none swap sw 0 0
/storage/redacted /home/red/act/ none bind 0 0
/storage/redacted2 /home/red/act2/ none bind 0 0

When the server rebooted, /etc/fstab mount points have priority over zfs-mount. So, fstab was binding to a zpool tank that didn’t yet exist. When the zpool tank tried to come online, the mount point was already in use.

I unmounted and deleted the hacky binds in /etc/fstab and restarted the zfs-mount service. Easy fix!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store