Terence Faul
Dabbler
- Joined
- Aug 12, 2015
- Messages
- 45
Are any of these destructive commands?
Should they be done to the data disks, or the OS?
Should they be done to the data disks, or the OS?
Please be specific in what you are running. I may assume you mean one thing but you are actually doing something else. I'm not trying to be mean or anything, it's just the best way to convery what you are doing and to remove any confusion.Ok I am running the first command on my first drive, is I'm just looking at a curser on the very next line, I assume that it is running?
No, you cannot recover the data that way, if you have a RAIDZ1 then only one drive can be missing, the failed one of course. The rest must be present.If I pop any of these drives into a external enclosure and connect to a linux box by usb is there any way to mount the drive and recover some of the data?
dd if=/dev/da0p2 | strings | grep pool_guid
So thanks to the others who posted why the drive was a failure and as far as I can tell it is the only drive which is failing right now. Since you say you had a RAIDZ1 pool, your pool may be able to be restored but if it were just a striped pool then your data is gone. As for if your pool is recoverable, well the guys here are trying to help to recover it, assuming it can be recovered.
I am currently running
Code:dd if=/dev/da0p2 | strings | grep pool_guid
root@nas ~ # dd if=/dev/da0p2 | strings | grep pool_guid pool_guid pool_guid ^C33459+0 records in 33459+0 records out 17131008 bytes transferred in 1.700069 secs (10076655 bytes/sec)
dd if=/dev/da2p2 bs=1k count=1k | hd | grep "0c b1 ba 00"
[root@freenas] ~# dd if=/dev/ada0p2 bs=1k count=1k | hd | grep "0c b1 ba 00" 1024+0 records in 1024+0 records out 1048576 bytes transferred in 0.195593 secs (5361013 bytes/sec)
dd if=/dev/da2 bs=1m count=4k | hd | grep "0c b1 ba 00"
root@nas ~ # dd if=/dev/da2 bs=1m count=4k | hd | grep "0c b1 ba 00" 40030000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40031000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40032000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40033000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40034000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40035000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40036000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40037000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40038000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................| 40039000 0c b1 ba 00 00 00 00 00 88 13 00 00 00 00 00 00 |................|
root@nas ~ # gpart show da2 => 34 5860533101 da2 GPT (2.7T) 34 94 - free - (47k) 128 2097152 1 freebsd-swap (1.0G) 2097280 5858435848 2 freebsd-zfs (2.7T) 5860533128 7 - free - (3.5k)
load: 0.75 cmd: hd 41651 [running] 71.64r 68.18u 0.42s 100% 1628k 1262+0 records in 1258+8 records out 1323302912 bytes transferred in 71.677958 secs (18461783 bytes/sec)
[root@freenas] ~# dd if=/dev/ada0 bs=1m count=4k | hd | grep "0c b1 ba 00" 4096+0 records in 4096+0 records out 4294967296 bytes transferred in 786.348227 secs (5461915 bytes/sec)
dd if=/dev/da2p2 bs=1k count=1k | hd | less
root@nas test # dd if=/dev/da2p2 bs=1k count=1k | hd | less 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00100000
dd if=test bs=1k count=1k | hd -v | less
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~