Solved [Solved] Missing ZFS Filesystem

Hi all-

So I did some complicated ZFS rejiggering tonight and I'm having some issues getting everything back online. It's a little complicated how it all went down. Here's the story:

I had a RAIDZ zpool named "data" that used 5x 2TB disks. I wanted to grow it using 4TB disks, but when I replaced the first 2tb disk with a 4TB disk I got the "512B configured, 4096B native" error, and realized the only way around this was to create an entirely new zpool. Now, mind you, at this point "data" consists of 4x 2TB disks and 1x 4TB disk, because I replaced one of the 2TB disks with a 4TB disk in my initial attempt to grow the fs. New plan: I decided to backup my files from "data" and create a completely new 6x 4TB array called "data24" that would use the same SATA ports that "data" did (i.e. it was a wholesale swap). Here are the steps I took:

  • I created two single zfs disk filesystems for backups, named "temp2tb" and "temp4tb" (a 2TB disk and 4TB disk, respectively) using zfs create temp2tb and zfs create temp4tb respectively. As I only had one spare SATA port available, I took turns plugging them in and rsync -av'ing files from "data" to them. The mountpoints were /mnt/temp2tb and /mnt/temp4tb respectively.
  • I unplugged all of the disks and installed the 6x 4TB disks and rebooted
  • zfs destroy data
  • zfs create raidz data24 ada1 ada2 ada3 ada4 ada5 ada6 failed with an error that /dev/ada6 was still part of "data" (remember, I had replaced one of the 2TB disks with this 4TB disk, which I needed for the new RAIDZ), so I added -f to force it:
  • zfs create -f raidz data24 ada1 ada2 ada3 ada4 ada5 ada6

At this point the "data24" zpool showed up at 21TB (yay). Now, here's the rub. When I went to plug in "temp2tb" and "temp4tb" into the spare SATA port so I could start copying the data back over, zfs list said that the only filesystem available was "data24". "temp2tb" and "temp4tb" were nowhere to be found. The backup drive(s) are visible by the filesystem at /dev/ada2, so that's a good sign.

Before I created "data24" I double-checked that the disks mounted fine, even from another SATA port. But now, they're not showing up at all when I do a zfs list.

Any ideas on how to get those two ZFS filesystems on those two backup disks to show up? I'm hoping I didn't do something awful here...

Thanks in advance,
Darren
 
Re: Missing ZFS Filesystem

Hi @darrendavid!

You have to issue:
# zpool import temp2tb
# zpool import temp4tb

for those filesystems to show up.

/Sebulon
 
Last edited by a moderator:
Back
Top