StephenFry
Contributor
- Joined
- Apr 9, 2012
- Messages
- 171
I am currently testing FreeNAS with a small number of drives to see what it, together with ZFS, can do for me. So far, so good.
Today however, I performed (what I thought was) a simple 'disaster scenario', but things didn't go as I expected. It would be great if someone could shed some light on this, I'm sure I'm misunderstanding something.
Setup: 3 x SATA 2TB drive in RAIDZ.
Disaster: a freak accident wipes one of the drives clean.
I restart the NAS, and FreeNAS tells me the pool is degraded. Of course. Data is all still available, good.
Then I performed a scrub. With only 50 or so GB of testdata, this went very quickly and suddenly the red light turns green and tells me the pool is healthy.
But from my (GUI) point-of-view, this is what it looks like:
http://i.imgur.com/sI6f3.png
As you can see, ada0 is the drive I erased. However, the drives are now called *p2 and the ada0 drive doesn't show its serialnr.
edit: I now also see that if I click 'Edit' next to the serial-less drive, the popup screen tells me that the drive is ada2,greyed-out. Now I'm even more confused, since clearly the 'real' ada2 is a drive I didn't monkey around with and is shown, serial and all, in the pool. Uh?!?
edit2: another thing that I just noticed is that when booting FreeNAS, I used to see THREE messages "ATAIDLE: the device does not support advanced power management" and now I see TWO. This is getting weirder and weirder...
edit3: There is no swap partition (of course, since I destroyed the drive's contents), could this be causing problems? And, how to fix?
[root@freenas] ~# swapctl -l
Device: 1024-blocks Used:
/dev/ada2p1 2097152 0
/dev/ada0p1 2097152 0
Question 1: is my pool indeed healthy? Was a scrub all it took to fix this?
Question 2: I thought this wipe would also be simulating a total death of one drive; but I guess should have used a different replacement drive then, instead of putting the original -if wiped- drive back? Since somewhere, FreeNAS/ZFS might recognize the 'old' drive is back and *really* replace by a new one.
Question 3: what does it mean that the ada0 drive is in 'last place' in the Disk View and how do I get FreeNAS to see the drive's serial properly?
Sorry if these q's are silly, but I think after reading all the docs and countless forums, I hoped to have a basic understanding of ZFS/FreeNAS and this test didn't go as expected at all.
Today however, I performed (what I thought was) a simple 'disaster scenario', but things didn't go as I expected. It would be great if someone could shed some light on this, I'm sure I'm misunderstanding something.
Setup: 3 x SATA 2TB drive in RAIDZ.
Disaster: a freak accident wipes one of the drives clean.
I restart the NAS, and FreeNAS tells me the pool is degraded. Of course. Data is all still available, good.
Then I performed a scrub. With only 50 or so GB of testdata, this went very quickly and suddenly the red light turns green and tells me the pool is healthy.
But from my (GUI) point-of-view, this is what it looks like:
http://i.imgur.com/sI6f3.png
As you can see, ada0 is the drive I erased. However, the drives are now called *p2 and the ada0 drive doesn't show its serialnr.
edit: I now also see that if I click 'Edit' next to the serial-less drive, the popup screen tells me that the drive is ada2,greyed-out. Now I'm even more confused, since clearly the 'real' ada2 is a drive I didn't monkey around with and is shown, serial and all, in the pool. Uh?!?
edit2: another thing that I just noticed is that when booting FreeNAS, I used to see THREE messages "ATAIDLE: the device does not support advanced power management" and now I see TWO. This is getting weirder and weirder...
edit3: There is no swap partition (of course, since I destroyed the drive's contents), could this be causing problems? And, how to fix?
[root@freenas] ~# swapctl -l
Device: 1024-blocks Used:
/dev/ada2p1 2097152 0
/dev/ada0p1 2097152 0
Question 1: is my pool indeed healthy? Was a scrub all it took to fix this?
Question 2: I thought this wipe would also be simulating a total death of one drive; but I guess should have used a different replacement drive then, instead of putting the original -if wiped- drive back? Since somewhere, FreeNAS/ZFS might recognize the 'old' drive is back and *really* replace by a new one.
Question 3: what does it mean that the ada0 drive is in 'last place' in the Disk View and how do I get FreeNAS to see the drive's serial properly?
Sorry if these q's are silly, but I think after reading all the docs and countless forums, I hoped to have a basic understanding of ZFS/FreeNAS and this test didn't go as expected at all.