Data Recovery

Status
Not open for further replies.

csing

Cadet
Joined
Jan 21, 2014
Messages
7
Greetings,
First post to the group.....and as with most other N00bs...posted with abated desperation!

Using FreeNAS 8.3 and booting from a 4GB USB drive.
HW a Dell Poweredge 1950 dual processor 16GB RAM box with just 2 SCSI 149GB disks.

Attached are two screenshots, video too large to post.

The 2 Disks are in a RAID0 single volume returning "Not Ready" and boots me to the command prompt. It has been running flawlessly for over a year........ Backups are 3 months old.............

The error occurred following a kernel panic. I have only run fschk -y which cleared some file errors. Then I burned the 8.3 iso to a CD and this boots to the install/upgrade menu.

Question. What is the best way to determine if the data can be recovered?

Thanks,
Charles
 

Attachments

  • 20140121_121645.jpg
    20140121_121645.jpg
    203.8 KB · Views: 172
  • 20140121_121740.jpg
    20140121_121740.jpg
    158.6 KB · Views: 190

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Did you use ZFS on top of a hardware RAID?
 

csing

Cadet
Joined
Jan 21, 2014
Messages
7
I don't believe so. Sorry not very helpful. I did the liked it, installed it, forgot it.

I may have to put together another server and run through the install again to jog the memory.

Any suggestions on how I can get the disk to mount?

TIA
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Can you install FreeNAS 9.2.0 on a new USB and then from the CLI do the following commands:

gpart list
dmesg
zpool import
 

csing

Cadet
Joined
Jan 21, 2014
Messages
7
Attached are screenshots of the command outputs, named accordingly.

These were taken while booting in a new 9.2 usb drive. Will "zpool import -f shares" allow me to access the data?

Thanks,
Charles
 

Attachments

  • gpart_list00.jpg
    gpart_list00.jpg
    128.7 KB · Views: 182
  • gpart_list01.jpg
    gpart_list01.jpg
    137.8 KB · Views: 180
  • gpart02.jpg
    gpart02.jpg
    125.8 KB · Views: 173
  • zpool_import.jpg
    zpool_import.jpg
    161 KB · Views: 155
  • dmesg00.jpg
    dmesg00.jpg
    175.1 KB · Views: 173
  • dmesg01.jpg
    dmesg01.jpg
    164.4 KB · Views: 162
  • dmesg02.jpg
    dmesg02.jpg
    179.6 KB · Views: 174
  • dmesg03.jpg
    dmesg03.jpg
    177.8 KB · Views: 169
  • dmesg04.jpg
    dmesg04.jpg
    159.6 KB · Views: 164
  • dmesg05.jpg
    dmesg05.jpg
    167.7 KB · Views: 183

csing

Cadet
Joined
Jan 21, 2014
Messages
7
I want to clone my RAID0 drives in another machine. Which is the preferred linux distro that uses ddrescue to clone/image the drive?

Thanks!
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
I haven't tried it myself, but System Rescue CD seems to contain ddrescue.
Also any Ubuntu Live CD should be fine, I think you can add packages like ddrescue with the package manager even on a live system.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Keep in mind if you do cloning of hardware RAID disks it won't work the way you are expecting. :(
 

csing

Cadet
Joined
Jan 21, 2014
Messages
7
I was able to import the pool using -f and see all my data.
however after a reboot i have to run the import -f again.
zpool status reports status Online and "No known data errors"

Should I run a scrub or resilver before making a copy of the data?
Also none of the NAS services are running....I am still in single user mode.
What is the simplest way to get the data off? Manually start samba or mount usb drive?

Thanks
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
The "simplest" is whatever you are most comfortable with. There's no right or wrong answer.

If you are forced to do -f to get it to mount something is seriously wrong.

You should make a copy of your data before attempting any scrubs. You can't resilver as your vdev design doesn't have redundancy. Resilvering replace lost redundancy in a vdev.
 

csing

Cadet
Joined
Jan 21, 2014
Messages
7
Thanks! I have been quite but made progress. Did as you suggested and upgraded to 9.2 and auto import of pool following that. Got all the data and then created ntfs share and copied it to a backup disk. boy that took time.

Found out that my config db was gone. So have created them again in 9.2. Here is my current problem....

CIFS is not working with my new config. I have carefully followed the anonoymous access instructions but my workstation cannot net view or map a drive to the samba share. I see there is a bug in 9.2 with anonymous access so not sure what works. I will post another problem with this.....I literally hate samba!!!!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
ntfs share? You mean NFS share?

CIFS works flawlessly with me. What bug report in particular are you referring to? We get a large number of bug reports that are more related to people not knowing how to use FreeNAS/permissions/whatever than an actual bug.
 

csing

Cadet
Joined
Jan 21, 2014
Messages
7
Sorry my previous post was incoherent... I was a little frustrated.
I was able to take a ntfs drive and mount it as a share on the freenas box using ntfs-3g command. Copied my data to this share and provided that ntfs disk for temporary file retrieval until I was able to whip FreeNAS into shape. :

I created a CIFS share using anonymous but this allowed me to read but not delete files. I changed guest to nobody and samba to User from anonymous and now it works fine.

My final problem is that some Window7 machine cannot see the network share!!!!! I have one Win7 and XP box that sees the shares fine and 2 win7 boxes that see nothing. Very frustrating...

Any ideas. I have turned on debug logging on the share but need to find the log files...to post the error.

Charles
 
Status
Not open for further replies.
Top