SpicySpice
Cadet
- Joined
- Feb 24, 2018
- Messages
- 5
Hi all. First let me start by saying while I have over 19 years in the IT industry (namely dealing networking infrastructure), I'm still relatively new to FreeNAS and Linux, so please go easy on me and forgive me if I ask stupid questions or am missing the "obvious".
This is the situation: I have FreeNAS installed on two hard disks in a mirror. Both disks are quite old (160 GB drives) so it's safe to say they weren't in the best condition when they went in (this is a development server so there is nothing critical on it, but I would like to iron out any issues before I build a production FreeNAS box). Both drives have started reporting SMART errors (sector reallocation count) so they are on their way out.
I've physically replaced one of the boot drives with an identical spare (same size, firmware, model etc...) but it probably has pre-existing data and partitions on it. However when I attempt to "attach" it to the mirror, I get the following error:
I get similar "Operation not permitted" errors if I try to wipe the drive or basically do anything with it. I also can't detach the "removed" drive from the mirror.
How do I resync/repair the mirror so that it's no longer degraded?
This is the situation: I have FreeNAS installed on two hard disks in a mirror. Both disks are quite old (160 GB drives) so it's safe to say they weren't in the best condition when they went in (this is a development server so there is nothing critical on it, but I would like to iron out any issues before I build a production FreeNAS box). Both drives have started reporting SMART errors (sector reallocation count) so they are on their way out.
I've physically replaced one of the boot drives with an identical spare (same size, firmware, model etc...) but it probably has pre-existing data and partitions on it. However when I attempt to "attach" it to the mirror, I get the following error:
Code:
[MiddlewareError: [EFAULT] 'gpart create -s gpt -f active /dev/ada1' failed: gpart: geom 'ada1': Operation not permitted ]
I get similar "Operation not permitted" errors if I try to wipe the drive or basically do anything with it. I also can't detach the "removed" drive from the mirror.
How do I resync/repair the mirror so that it's no longer degraded?