I'm trying to learn about ZFS for a NAS I'm planning on building. I'm trying to understand if the following scenario would be possible to set up. Disclaimer: I know very little about ZFS, so forgive me if I say something stupid.
- I have 4 drives in a zpool configured in raidz2 (RAID 6)
- One drive fails
- I would like to be able to remove the drive that failed, plug in a new drive and have the system automatically resilver the array without issuing any commands or rebooting.
From what I have gathered zpool set autoreplace=on <pool>
would allow the drive the be replaced, but you would still need to issue the scrub
command to start the resilver process, right? Also, I have no idea if hotswapping is supported, or not.
I realize that issuing a single command on the rare occasion that a disk fails is not the end of the world. But, in my opinion it would be a lot nicer if it was automated, and I'm pretty sure it can be done with hardware RAID.