StephenFry
Contributor
- Joined
- Apr 9, 2012
- Messages
- 171
This afternoon I assisted a panicked friend who had a failed HDD in his FreeNAS and it led me to an interesting question. To me, at least, because I don't know the answer...
He uses 9.2.1.9, the last 32-bit version, for reasons I'm not aware of.
The setup is a 4-drive RAID-Z2. Again, I don't know why, but that's not the issue here.
He had already pulled the failed drive and put a new drive in its place.
The reason for his panic was that the GUI, which I told him to use, didn't offer the options it normally does in this case. I verified and indeed, the GUI was of no help. It said the pool was degraded, but all drives showed online and there was nothing to take offline, all very weird. No idea why and there was no time to find out, there was a problem to fix, and that I did. OR DID I?
I used the CLI to offline the old drive, and online the new drive. It resilvered immediately and all was fine and dandy. OR WAS IT?
My friend was happy and I was feeling pretty good about myself, until I started having doubts about what I did and performed a simulation on a virtual FreeNAS of exactly this scenario.
The results are that 'gpart show' tells me only 3 drives have a freebsd-swap of 2 gigabyte. Should I have manually created a swap partition?
Also, even though the pool was created with an ashift of 12, and still reports this is the case, shouldn't I have manually controlled/checked this? Especially on pools with mixed 512/4K drives, this makes sense.
As usual, my enthusiasm wasn't tempered by any actual knowledge. How would I have gone about this *properly* on the CLI?
He uses 9.2.1.9, the last 32-bit version, for reasons I'm not aware of.
The setup is a 4-drive RAID-Z2. Again, I don't know why, but that's not the issue here.
He had already pulled the failed drive and put a new drive in its place.
The reason for his panic was that the GUI, which I told him to use, didn't offer the options it normally does in this case. I verified and indeed, the GUI was of no help. It said the pool was degraded, but all drives showed online and there was nothing to take offline, all very weird. No idea why and there was no time to find out, there was a problem to fix, and that I did. OR DID I?
I used the CLI to offline the old drive, and online the new drive. It resilvered immediately and all was fine and dandy. OR WAS IT?
My friend was happy and I was feeling pretty good about myself, until I started having doubts about what I did and performed a simulation on a virtual FreeNAS of exactly this scenario.
The results are that 'gpart show' tells me only 3 drives have a freebsd-swap of 2 gigabyte. Should I have manually created a swap partition?
Also, even though the pool was created with an ashift of 12, and still reports this is the case, shouldn't I have manually controlled/checked this? Especially on pools with mixed 512/4K drives, this makes sense.
As usual, my enthusiasm wasn't tempered by any actual knowledge. How would I have gone about this *properly* on the CLI?