mka
Contributor
- Joined
- Sep 26, 2013
- Messages
- 107
Hi,
I'm currently planing my new NAS upon FreeNAS and ZFS (RaidZ2 6x WD Red 4TB). I've built up an "evaluation" system to test certain feature before the new system goes live and migration will start.
I absolutely enjoy ZFS, it seems to fix everything I always disliked about traditional Raid Setup. But it's quite easy to do "harmful" stuff, like adding a single disk to an RaidZ Pool. Which I accidentally did during evaluation:
The non redundancy drive cannot be removed without destroying the zpool and it removes all redundancy from the pool. I cannot think of a scenario in which this is not a mistake. I then accidentally destroyed the wrong zpool pool. One wrong number at the end and it was all gone :) That's why I built the evaluation system in the first place and it has been fun. But the chances of doing harmful commands on real live data appear to be quite high from my first impression.
I would suspect ZFS to warn about possible dangerous commands and require maybe a "--force" program option. Or only accept certain commands in su mode. Is it possible to restrict certain commands to administrative user privileges?
Thank you! :)
I'm currently planing my new NAS upon FreeNAS and ZFS (RaidZ2 6x WD Red 4TB). I've built up an "evaluation" system to test certain feature before the new system goes live and migration will start.
I absolutely enjoy ZFS, it seems to fix everything I always disliked about traditional Raid Setup. But it's quite easy to do "harmful" stuff, like adding a single disk to an RaidZ Pool. Which I accidentally did during evaluation:
Code:
NAME STATE READ WRITE CKSUM tank0 ONLINE 0 0 0 raidz1 ONLINE 0 0 0 ad2s1 ONLINE 0 0 0 ad3s1 ONLINE 0 0 0 ad4s1 ONLINE 0 0 0 ad6s1 ONLINE 0 0 0
The non redundancy drive cannot be removed without destroying the zpool and it removes all redundancy from the pool. I cannot think of a scenario in which this is not a mistake. I then accidentally destroyed the wrong zpool pool. One wrong number at the end and it was all gone :) That's why I built the evaluation system in the first place and it has been fun. But the chances of doing harmful commands on real live data appear to be quite high from my first impression.
I would suspect ZFS to warn about possible dangerous commands and require maybe a "--force" program option. Or only accept certain commands in su mode. Is it possible to restrict certain commands to administrative user privileges?
Thank you! :)