rebuild

Status
Not open for further replies.

marian78

Patron
Joined
Jun 30, 2011
Messages
210
hi, i test freenas v8 in virtual before start usiing on real hardware. I build zfs raidz with 6 hdd and one spare. than i copy some data to volume.... now i "unplug" 4 hdd... restart freenas, plug another 3 hdd, restart freenas. And see , that all hdds is replaced nclude spare hdd. need i rebuild these disks (raidz)? how i now, that data on disks is automaticli rebuilded after replacing hdds....??? thx, marian.
 

Tekkie

Patron
Joined
May 31, 2011
Messages
353
zpool status output? have you run zpool scrub [volume]?
 

marian78

Patron
Joined
Jun 30, 2011
Messages
210
ok, now is status online - little googling, and fuond this. i use console with:

"zpool replace disk1 da2 /dev/da4" caused the raid to be rebuilt.
"zpool detach disk1 xyz" removed the defunct entry from the array
"zpool scrub data" validated the changes.

it works, in web gui status is online but when i open "view disk" i can still see nonexist disk that i replaced. Now again search with google, and solution is to edit database with sqlite. But i dont know "data/freenas-v1.db" database structure(tables,... - in console sqlite3 i try .tables and .schema, but nothing show)... any help???? thx, marian

edit: i connect to freenas with putty ssh and there is view output sqlite3....strange

SQL database output
Select * From storage_disk;
Disabled|Always On|{uuid}92195f3d-a556-11e0-8c52-000c29eb36d8|1|Disabled|Auto|Member of disk1 raidz|1||1|da1

Disabled|Always On|{uuid}92ac44d7-a556-11e0-8c52-000c29eb36d8|1|Disabled|Auto|Member of disk1 raidz|1||2|da2

Disabled|Always On|{uuid}934080fd-a556-11e0-8c52-000c29eb36d8|1|Disabled|Auto|Member of disk1 raidz|1||3|da3

Disabled|Always On|{uuid}a8dd3d7c-a559-11e0-abab-000c29eb36d8|1|Disabled|Auto|Member of disk1 spare|2||4|da3

sqlite>


and zpool status here
freenas# zpool status
pool: disk1
state: ONLINE
scrub: scrub completed after 0h0m with 0 errors on Sun Jul 3 12:48:21 2011
config:

NAME STATE READ WRITE CKSUM
disk1 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
da1p2 ONLINE 0 0 0
da4p2 ONLINE 0 0 0
da2p2 ONLINE 0 0 0
spares
da3p2 AVAIL

errors: No known data errors




now what nex...???? can i fixit? how? how can i view proper uuid for disks?

disk.jpg
 

Tekkie

Patron
Joined
May 31, 2011
Messages
353
Let me guess you are not using 8.0.1beta3 or? All FreeNAS8 pre 8.0.1beta3 have a known problem with replacing drives, if you do it through the shell it will become de-synced with the DB.
 

marian78

Patron
Joined
Jun 30, 2011
Messages
210
yes, i use v8.0.1beta3 and before tray v8.0 (same problem). but questions is: v7 have same broblem with replacing disks (or all is automatic like other nassystems)? and how synced shell and db in version 8 (is it possible manualy)? .....
 
Status
Not open for further replies.
Top