ZFS pool doesn't import

ypadlyak

New Member
Nov 21, 2020
3
0
1
40
Hi Everyone,

1. I've made one of 3 disks in raidz pool offline to replace with a bigger partition on the same disk
2. exported pool
3. repartitioned that one disk to make the partition for ZFS bigger
4. tried importing to then replace disk, but it fails:

root@ve:~# zpool import pool1
cannot import 'pool1': one or more devices is currently unavailable

Please help me figure out
 
Last edited:
Hi,

I guess you destroyed your ZFS on the disk you partitioned.
you have to use the "-F" flag to import and then rebuild the zpool.
For more information see man zpool
 
Probably you are right. With -f an error is the same. What I think I will try is to restore previous partitions on that disk and see if it helps
 
Last edited:
zpool import -d /dev did the trick! After that, I was able to replace offline disk with a new one. Now waiting for resilver and celebrating :) I was already considering the data lost (not critical ectually)