LOST ZPOOL, PLEASE HELP

Status
Not open for further replies.

EmENAS

Dabbler
Joined
Sep 19, 2017
Messages
11
Hi ,

I was working on adding extra storage to my NAS and I didn't unmount one of the drives that I removed and now my data has become inaccessible

Please help me recover HDD1
 

Attachments

  • Screen Shot 2017-09-19 at 11.18.16 AM.png
    Screen Shot 2017-09-19 at 11.18.16 AM.png
    74.1 KB · Views: 277
  • Screen Shot 2017-09-19 at 11.21.38 AM.png
    Screen Shot 2017-09-19 at 11.21.38 AM.png
    83.3 KB · Views: 284

rs225

Guru
Joined
Jun 28, 2014
Messages
878
Have you tried shutting it off, reconnecting the drive, and then restarting?
 

EmENAS

Dabbler
Joined
Sep 19, 2017
Messages
11
root@freenas:/tmp/zfs # zdb -e HDD1

Configuration for import:
vdev_children: 2
version: 5000
pool_guid: 10021509398290906532
name: 'HDD1'
state: 0
hostid: 3747601221
hostname: 'freenas.local'
vdev_tree:
type: 'root'
id: 0
guid: 10021509398290906532
children[0]:
type: 'disk'
id: 0
guid: 1584505759463818007
whole_disk: 1
metaslab_array: 38
metaslab_shift: 34
ashift: 12
asize: 2998440558592
is_log: 0
create_txg: 4
path: '/dev/gptid/07d0267c-937e-11e7-88dc-001d099cbd06'
children[1]:
type: 'missing'
id: 1
guid: 0
zdb: can't open 'HDD1': No such file or directory


That's the path for the missing drive
 

Attachments

  • Screen Shot 2017-09-19 at 1.35.31 PM.png
    Screen Shot 2017-09-19 at 1.35.31 PM.png
    273.8 KB · Views: 239

rs225

Guru
Joined
Jun 28, 2014
Messages
878
Is there a second drive you were working with? Perhaps you added it to the pool and didn't realize it?
 

EmENAS

Dabbler
Joined
Sep 19, 2017
Messages
11
Yes it was a removable USB that I was trying to add
 

Attachments

  • Screen Shot 2017-09-19 at 2.04.13 PM.png
    Screen Shot 2017-09-19 at 2.04.13 PM.png
    64.2 KB · Views: 246

EmENAS

Dabbler
Joined
Sep 19, 2017
Messages
11
Yes I removed it and cleared it. I didn't realize that I had mounted the drive to HDD1
 
Last edited by a moderator:

rs225

Guru
Joined
Jun 28, 2014
Messages
878
How was it cleared? Was it completely overwritten, or just partition table removed?
 

Dice

Wizard
Joined
Dec 11, 2015
Messages
1,410
How was the drive added? If it was as a single drive into a single vdev added to the pool, you've effectively wrecked the pool (inc other drive's content) once you removed the drive and wiped it.
 

EmENAS

Dabbler
Joined
Sep 19, 2017
Messages
11
How was the drive added? If it was as a single drive into a single vdev added to the pool, you've effectively wrecked the pool (inc other drive's content) once you removed the drive and wiped it.
it was added using the web gui
 

rs225

Guru
Joined
Jun 28, 2014
Messages
878
Was it overwritten with random? If so, it does look like it is probably gone. You can try
Code:
head -c15000000 /dev/da0 | hexdump -C | grep "0c b1 ba 00"
for a more precise look.

If the USB is gone, your quickest route to any data is going to be something like testdisk 7.0 or other file recovery software. Since your disk was a single element, most files are stored in an intelligible way. File names will be lost. A full ZFS recovery is possible, but not practical in the year 2017. So you may want to set the drive aside after you recover what you can with file recovery.
 

EmENAS

Dabbler
Joined
Sep 19, 2017
Messages
11
Was it overwritten with random? If so, it does look like it is probably gone. You can try
Code:
head -c15000000 /dev/da0 | hexdump -C | grep "0c b1 ba 00"
for a more precise look.

If the USB is gone, your quickest route to any data is going to be something like testdisk 7.0 or other file recovery software. Since your disk was a single element, most files are stored in an intelligible way. File names will be lost. A full ZFS recovery is possible, but not practical in the year 2017. So you may want to set the drive aside after you recover what you can with file recovery.


All right m so there's no way to unmount the drive ?
 

Attachments

  • Screen Shot 2017-09-19 at 3.14.24 PM.png
    Screen Shot 2017-09-19 at 3.14.24 PM.png
    46.5 KB · Views: 247
Status
Not open for further replies.
Top