Hello, I'm building the first time a FreeNAS, after planning/reading a lot (also here of course
). To get some touch with the ZFS I've installed FreeNAS 9.10 into into a VM and made a few tests for later troubleshooting scenarios surely waiting for me one day ;-).
So I've created a few same sized files with dd, to simulate a few disks (may be my problem is related to using files and not physical drives for vdevs?). I started with a simple mirror, like:
zpool create test /path/disk1 /path/disk2.
Then I've created a text file onto /test/xx pool. Everything ok so far. Then I dropped brutally the disk2 file:
rm /path/disk2
..and I thought ZFS will notice immediately. But it did not. So I've tried to read/write onto /test/ pool - no problem realized; ZFS happily persists to the left disk1. Also scrub and status were nicely reporting 'ONLINE' and 'no errors'. I had to "offline" disk2 (which was not there in that time of course) to have ZFS realize finally that the file is long time gone. Only after that, I could resilver etc. normally. But this would be of course not be usable, to try offline all the disks just to have ZFS realize a problem with a missing disk.
I'm sure I don't understand something here: my intuitive feeling was like 'ZFS notices everything'. Now I'm not sure, what ZFS is actually able - and when? - to notice. But to ignore a missing disk is pretty strange somehow. What I'm missing here?
Thank you very much,
Andrej
So I've created a few same sized files with dd, to simulate a few disks (may be my problem is related to using files and not physical drives for vdevs?). I started with a simple mirror, like:
zpool create test /path/disk1 /path/disk2.
Then I've created a text file onto /test/xx pool. Everything ok so far. Then I dropped brutally the disk2 file:
rm /path/disk2
..and I thought ZFS will notice immediately. But it did not. So I've tried to read/write onto /test/ pool - no problem realized; ZFS happily persists to the left disk1. Also scrub and status were nicely reporting 'ONLINE' and 'no errors'. I had to "offline" disk2 (which was not there in that time of course) to have ZFS realize finally that the file is long time gone. Only after that, I could resilver etc. normally. But this would be of course not be usable, to try offline all the disks just to have ZFS realize a problem with a missing disk.
I'm sure I don't understand something here: my intuitive feeling was like 'ZFS notices everything'. Now I'm not sure, what ZFS is actually able - and when? - to notice. But to ignore a missing disk is pretty strange somehow. What I'm missing here?
Thank you very much,
Andrej