PhiloEpisteme
Guru
- Joined
- Oct 18, 2018
- Messages
- 969
No worries, move on with
zpool import -m Data-Storage
.zpool import -m Data-Storage
.output=waited about 10 seconds and returned back to promptNo worries, move on withzpool import -m Data-Storage
.
root@freenas:~ # zpool import -m Data-Storage root@freenas:~ #
zpool status Data-Storage
? If you see it, great!output=i see it but not sure if it is successfully importedall right, and now what aboutzpool status Data-Storage
? If you see it, great!
root@freenas:~ # zpool status Data-Storage pool: Data-Storage state: ONLINE status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://illumos.org/msg/ZFS-8000-8A scan: scrub repaired 0 in 0 days 10:50:26 with 0 errors on Sun Jun 3 10:50:28 2018 config: NAME STATE READ WRITE CKSUM Data-Storage ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 gptid/13105a29-c624-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/1405e572-c624-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/e3502be7-ec58-11e7-81f8-086266295468 ONLINE 0 0 0 gptid/bfdede03-ed42-11e7-969f-086266295468 ONLINE 0 0 0 raidz2-1 ONLINE 0 0 0 gptid/367a9015-c625-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/18a60acb-ecae-11e7-af1c-086266295468 ONLINE 0 0 0 gptid/8cc6f7c5-ec2f-11e7-8da4-086266295468 ONLINE 0 0 0 gptid/0544db8f-ece7-11e7-ad97-086266295468 ONLINE 0 0 0 logs 1100341364746838742 UNAVAIL 0 0 0 was /dev/gptid/d3317a51-d4e1-11e7-8c89-086266295468 errors: 1 data errors, use '-v' for a list root@freenas:~ #
zpool remove Data-Storage 1100341364746838742
. Then, give me another zpool status -v Data-Storage
. Note I added a -v flag this time, it'll give more output.state
went from UNAVAIL -> ONLINEOMG Philo, i think we are nearly thereSweet! Now, lets get rid of that damned log device.zpool remove Data-Storage 1100341364746838742
. Then, give me anotherzpool status Data-Storage
root@freenas:~ # zpool remove Data-Storage 1100341364746838742 root@freenas:~ # zpool status Data-Storage pool: Data-Storage state: ONLINE status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://illumos.org/msg/ZFS-8000-8A scan: scrub repaired 0 in 0 days 10:50:26 with 0 errors on Sun Jun 3 10:50:28 2018 config: NAME STATE READ WRITE CKSUM Data-Storage ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 gptid/13105a29-c624-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/1405e572-c624-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/e3502be7-ec58-11e7-81f8-086266295468 ONLINE 0 0 0 gptid/bfdede03-ed42-11e7-969f-086266295468 ONLINE 0 0 0 raidz2-1 ONLINE 0 0 0 gptid/367a9015-c625-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/18a60acb-ecae-11e7-af1c-086266295468 ONLINE 0 0 0 gptid/8cc6f7c5-ec2f-11e7-8da4-086266295468 ONLINE 0 0 0 gptid/0544db8f-ece7-11e7-ad97-086266295468 ONLINE 0 0 0 errors: 1 data errors, use '-v' for a list root@freenas:~ #
zpool status -v Data-Storage
, with the -v
flag. That will tell us if any files were corrupted by all of this.zpool export Data-Storage
and then import it in the GUI by navigating to Pool->Add->Import and Existing Pool. This last step will import the pool such that FreeNAS can manage it as it normally would.outputWe are nearly there, you're right. Give me thatzpool status -v Data-Storage
, with the-v
flag. That will tell us if any files were corrupted by all of this.
root@freenas:~ # zpool status -v Data-Storage pool: Data-Storage state: ONLINE status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://illumos.org/msg/ZFS-8000-8A scan: scrub repaired 0 in 0 days 10:50:26 with 0 errors on Sun Jun 3 10:50:28 2018 config: NAME STATE READ WRITE CKSUM Data-Storage ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 gptid/13105a29-c624-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/1405e572-c624-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/e3502be7-ec58-11e7-81f8-086266295468 ONLINE 0 0 0 gptid/bfdede03-ed42-11e7-969f-086266295468 ONLINE 0 0 0 raidz2-1 ONLINE 0 0 0 gptid/367a9015-c625-11e7-bbe0-086266295468 ONLINE 0 0 0 gptid/18a60acb-ecae-11e7-af1c-086266295468 ONLINE 0 0 0 gptid/8cc6f7c5-ec2f-11e7-8da4-086266295468 ONLINE 0 0 0 gptid/0544db8f-ece7-11e7-ad97-086266295468 ONLINE 0 0 0 errors: Permanent errors have been detected in the following files: Data-Storage/VM-DS:<0x0> root@freenas:~ #
doing this nowThen, go ahead and export the pool from the CLI withzpool export Data-Storage
and then import it in the GUI by navigating to Pool->Add->Import and Existing Pool. This last step will import the pool such that FreeNAS can manage it as it normally would.
outputThen, go ahead and export the pool from the CLI withzpool export Data-Storage
and then import it in the GUI by navigating to Pool->Add->Import and Existing Pool. This last step will import the pool such that FreeNAS can manage it as it normally would.
root@freenas:~ # zpool export Data-Storage root@freenas:~ #
Data-Storage
if you don't already have one.Data-Storage
(you may want to wait until the backup is complete).OMG Philo it's done ! Thank you x10 so much for this ! this storage pool is where i keep all our stuff and it is pretty pretty important. i reached out to many of my friends locally and ...............but i found help here in you. What you have done, is an important milestone to us. Thank you, sincerely ;)Great, go ahead and import it. When you're done what is the status, online?
1. yes i am in the midst of backing up files that i did not back upOnce you import it I recommend you do some things, in this order.
- Make a backup of any data off of
Data-Storage
if you don't already have one.- Start a Scrub of
Data-Storage
(you may want to wait until the backup is complete).- Configure regular short and long smart tests for all of your HDDs. I do daily short and weekly long tests.
- Configure regular scrubs of all of your pools.
- Configure email alerting.
- Pick up an HBA, such as this one, which will allow you avoid having to use that RAID card.
Totally did, here's the screen shotDid it work @1kokies?
You're welcome, I'm glad we got your data back. Thank you for being patient with me while we worked through what was going on. I'm sorry to hear some of the files may have been corrupted/lost; at least it isn't everything.OMG Philo it's done ! Thank you x10 so much for this ! this storage pool is where i keep all our stuff and it is pretty pretty important. i reached out to many of my friends locally and ...............but i found help here in you. What you have done, is an important milestone to us. Thank you, sincerely ;)
Is there any way i can contribute back ? if i could i will fly to Boston to shake your hands.
God bless you Philo.
Unlikely but possible. Do you have periodic snapshots configured? If so, that might help?2. yes, will do. in the process of recovering there were some lost files, will scrubs help ?
There are many cards that will work, I would stick with one that is known to play nicely with FreeBSD and FreeNAS, which is why I suggested the one I did.6. OK but i do have many of my existing raid cards as i know how to flash them. will look at the one you recommended
Thanks for your patience, i was very confused in the earlier posts & despite being a newbie in this forum, you had the patience to guide me.You're welcome, I'm glad we got your data back. Thank you for being patient with me while we worked through what was going on. I'm sorry to hear some of the files may have been corrupted/lost; at least it isn't everything.
yes i can, i can immediately think of 2 that i had experience and solved, of the 3 years i used Freenas. will do it later after settling back ups, recovery, etc.The best way you can give back is by sticking around the forums and help people out where they need it or asking questions where you're confused. These forums are a wealth of information and they are made better when more people contribute. The forums are also made better when everyone is friendly and polite. So that is my suggestion. :)
yes i do and it's not too critical as data, so it's ok.Unlikely but possible. Do you have periodic snapshots configured? If so, that might help?
yes i read your Build and Back Up NAS, very good. i have data on server A and rsycn to Server B, a copy into my laptop and another at external drive which i carry if our whole family/team travels together. But those are my personal files, there are files like movies and others which are >10TB which i can't move physically. It's a long story but yes my design have a flaw and is reflected this round. Thanks for your advice and i will review my storage and back up strategy soon, taking que from yoursI got some good advice early on when I started with FreeNAS and zfs that is relevant here I think. No amount of redundancy in a vdev is a replacement for a backup. For that reason, if you can, you should follow the 3-2*-1 backup rule. Keep 3 copies of your data, keep copies on two different type of media*, and keep at lest one copy off-site.
My personal backup strategy is as follows
- Every pool is configured to have periodic snapshots taken
- I have a second FreeNAS server in my home built from cheap used parts
- For every pool in my primary server there are two backup pools composed of two disks in a mirror. For example vault has vault1 and vault2. At any given time only one of the backup pools is in my backup machine; the other pool is off-site in a safety deposit box.
- I have ZFS replication tasks configured on main server to send those periodic snapshots to my backup server automatically.
- Every week or so I swap out vault1 with vault2.
I have 3 pools containing my data, the primary pool, and vault1 + vault2. The latter two are mirrors so in some sense I have 5 copies rather than 3 copies of my data.
I don't use 2 types of media but I think I satisfy the spirit of the rule by using different machines and ZFS vdevs which get updated regularly
And 1 set of backups is off-site at all time. This protects me from catastrophe at home such as fire or flood.
no you didn't ramble ya ;), it was true pleasure following your guide.Anyway, I ramble too much. I'm really happy you got your pool back. If you get stuck with any of my suggestions or are looking at hardware etc feel free to post a new thread and someone will help you I'm sure.
yes yes, Freenas will give an alert and i moved out data so that the pool will be 80%Oh, and while I'm thinking about it, don't forget the 80% rule. ZFS performance can tank after filling up more than 80% of a pool. If you fill it completely you can have serious issues importing the pool and may be locked out forever.
it's a real nightmare this round, let me recover a bit first yaAlso, about the SLOG. SLOGs are great! I know you had issues here, but I suspect it was compounded by other factors. Two things you should keep in mind if you add another SLOG; you probably want a device with Power Loss Protection (PLP) and many people choose to use mirrored SLOGs so that if one goes down the other continues to function. I don't want to go too in depth here because it can get complicated but there is plenty of information on these forums about SLOG devices and how to pick them. :)
yes, after this round and que from you i have learned not only to take notice on bad sectors but also on disk communication UDMA etc.AAND keep an eye on those drives with those SMART values we didn't like. If the number doesn't go up any more you're okay. If it goes up at all, consider replacing them, Also, those other values I listed way way back should always have the last value of 0. If it goes to greater than 0 it is a bad thing and you should consider replacing the drive; even if the SMART test doesn't report it as a failure and the drive is still otherwise functional. The reason is that it is indication of a possible upcoming failure so best to replace it before everything goes to crap.