This content has been marked as final. Show 5 replies
I don't see how this could happen but to me and maybe someone else can provide better input, it does not look like you added a replacement disk, it looks like your existing devices got mixed up. For example, c8t3d0s2 was in mirror-1 and now its in mirror-0. It is possible that c8t2d0s2 is now missing so it looks like the mirror-1 vdev is missing. Can you put the disks back to where they were originally and retry the pool import?
A few more things:
1. You don't need to offline a disk before you replace it.
2. Your pools are mostly built on s2, which represents the entire disk so a better config is building your pool on the whole disks like this:
# zpool create space-0 mirror c8t0d0 c8t1d0 mirror c8t2d0 c8t3d0
3. You also have a c8t0d0p0 which isn't recommended but its not doing any harm at the moment.
I think your best chance of recovery is to put the disks back to where they were originally. Then, re-attempt the import.
no, mirror-0 is still correct with c8t0d0p0 and c8t1d0s2. Within mirror-1 shold be c8t2d0s2 and c8t3d0s2. The disks are connected to the same port as they always were.
Although a zpool import doesn't work: "cannot import 'space0': one or more devices is currently unavailable" . I guess thats because I set the disk offline before. And now, that I'm unable to import the pool to add or attach the missing disks again, I wonder if there is some other option setting the disks back into the pool without having the pool online...?
One disk that is off lined in a mirrored pool should not cause the disk to disappear from the zpool status output. In addition, it should not cause the zpool import to fail because there should be enough remaining redundancy to make the pool available. So, off lining the disk should not have caused this failure. Is the c8t2d0s2 device still available in the format output?
the forum is miss-formating my posts. currently while trying to import the pool the output looks like this:
space0 UNAVAIL missing device
What you can't see is that c8t3d0s2 isn't a disk within mirror-0, it's a additional disk within space0. That's wrong and was my mistake. In fact, it is also physically a different device that the one the pool used to know as c8t3d0s2.
Actually what I'd need to do is remove the current c8t3d0s2 from the pool (it is a different device now connected on a different port) and add the original c8t3d0s2 disk.
I hope I could explain it somewhat understandable :-)
The question is how can I remove a disk from a pool which is offline and cannot be imported. And to answer your question: yes, all devices are still available on the format output.
I see now. I think you mentioned it at first but I didn't understand due to the formatting. I get it now.
The problem is that after you add a disk with zpool add, you can't remove it. I can't understand what
happened to mirror-1 and why c8t2d0s2 disappeared altogether. I understand why c3t8d0s2 is now
a standalone disk because you added it as a completely different disk.
I don't see how this config could be recoverable. If the pool was still imported, then you might be able
to attach a new disk to c8t3d0s2 to recreate the second mirror, but I would need to test this first.
Since pool is not importable then I don't see how that would be possible anyway.
Do you have backups of this pool's data?