danb35
Hall of Famer
- Joined
- Aug 16, 2011
- Messages
- 15,504
Yes, that's the design of a striped pool--when any device fails, the pool is toast.Is a stripe pool supposed to not work when a drive is not present?
Yes, that's the design of a striped pool--when any device fails, the pool is toast.Is a stripe pool supposed to not work when a drive is not present?
Is a stripe pool supposed to not work when a drive is not present?
Windows likes to put files like Thumbs.db and sometimes folders like System Volume Information on anything it has a write access to the second it sees it. I don't know if this is what corrupted it, but it could possibly be it.I only put it into my computer with windows but didn't format it or anything.
Well you tell me, cuz I tried this with a mother test pool, ripped out the usb stick from it, but the pool was fine, except the fact that it didn't have a drive. So I have no idea wth is happening hereHow is a pool supposed to work if some portions of its data are not available from anywhere?
Well it would have to do this with only sd card cuz it didn't do anything to my usb stickWindows likes to put files like Thumbs.db and sometimes folders like System Volume Information on anything it has a write access to the second it sees it. I don't know if this is what corrupted it, but it could possibly be
Your other pool probably has a redundancy and not just a simple striped pool with no redundancy like this one.Well you tell me, cuz I tried this with a mother test pool, ripped out the usb stick from it, but the pool was fine, except the fact that it didn't have a drive. So I have no idea wth is happening here
So I have no idea wth is happening here
Due to my limited knowledge I make it a point to never monkey with a functioning TrueNAS box. Especially with one holding valuable data.
Aren't yes, ik. I already know that now way to well. I could have don that on a separate pool an nothing would have happend but look at me nowI am speechless.
Someone purposefully experiments on a supposedly valuable data pool. Then when they have problems, they don't have a full backup or back out plan.
And it's not TrueNAS nor ZFS' fault.
I'm guessing your stick was an 8 GB stick?Although now let's leave my original problem for now. I'm kind of confused at how truenas handles broken drives. If the pool can boot up without a drive (which I tested it does) why won't it boot up when a drive is for ex. Like here corrupt? I mean I'd does work just fine without it and I recreated my original scenario but it was wierd how it just didn't care if the drive was there or not. It did show me that the pool is unhealthy but I could do everything I would normally like read, write and delete files even though it did include the extra drive space into the total space. The pool without the usb stick was 899 GB and with it its 904 GB and it showed that 904 even when the stick was unplugged. So what's going on here?
I'm kind of confused at how truenas handles broken drives. If the pool can boot up without a drive (which I tested it does) why won't it boot up when a drive is for ex. Like here corrupt?
Ok thank you for that this does help me a lot in terms of how ZFS works.This is really a ZFS question, not a TrueNAS question.
ZFS handles broken drives by looking for redundancy elsewhere. In a mirror, that means the other paired disk. In RAIDZ, that means recomputing the contents of the broken drive by using the parity to back-compute what was supposed to be there.
In the very special case where no redundancy is available, ZFS doesn't know what to do. When all redundancy sources for a block are permanently lost, the file that they are part of becomes permanently damaged. If corrupt data gets written into a pool, it can be very difficult to expunge that as well.
ZFS pools do not have a "fsck" or "chkdsk" type command. This makes sense, if you think about it. How would you fsck a pool that was 5 petabytes large? It'd take forever, and the memory required to track state would be crazy.
ZFS instead relies on the administrator to have provided for appropriate redundancy during the pool design stage. With the redundancy, ZFS will attempt to correct the error and then move on.
Yea no your rightUsing a USB stick as part of a pool seems kinda silly to me but what do I know.
If the SD card does not work (which seems somewhat unlikely, but Murphy's Law and all that...), your best hope is to import the pool read-only, with whatever special incantation is needed to import a pool with missing vdevs. Consider all data from after the SD card was added as lost, but old data is likely to be recoverable - if you can get this to work.Sooo... what now?