Hello everyone,
this is my unfortunate adventure with FreeNAS and ZFS pool.
1. I have two WD Caviar RED NAS hard drives - each 2.7 TB. Both were used as NTFS bacup drives combined with iSCSI, but I decided to switch to SMB and ZFS file system imposed by FreeNAS.
2. I started with one disk (called ada0) - one ZFS partition - containing all of the data ~2TB. Pool_SMB was the name of the pool is this case. Everything was working well.
3. Then I wanted to add the second one (ada1) using FreeNAS web interface. Here we have stupid steps I made.
- simultaneously to running Pool_SMB (containing only ada0) I tried to create another pool: Pool_SMB_All (containing ada0 and ada1)
- then I think that I deleted Pool_SMB
- Pool_SMB_All was ONLINE, but I couldn't see any data from the first disk
- so I deleted Pool_SMB_All and created once again Pool_SMB with ada0.
Therefore, pool status of Pool_SMB is OK, but I still can't recover the data.
I believe it is still possible to get it somehow (like with recovery software for FAT/NTFS). I really hope so.
So far, I've made copy of ada0 using dd.
Also, I've used latest MFSBSD iso to get some information about both disks:
--- ada0 ---
I will be really grateful for any clues.
Thanks!
this is my unfortunate adventure with FreeNAS and ZFS pool.
1. I have two WD Caviar RED NAS hard drives - each 2.7 TB. Both were used as NTFS bacup drives combined with iSCSI, but I decided to switch to SMB and ZFS file system imposed by FreeNAS.
2. I started with one disk (called ada0) - one ZFS partition - containing all of the data ~2TB. Pool_SMB was the name of the pool is this case. Everything was working well.
3. Then I wanted to add the second one (ada1) using FreeNAS web interface. Here we have stupid steps I made.
- simultaneously to running Pool_SMB (containing only ada0) I tried to create another pool: Pool_SMB_All (containing ada0 and ada1)
- then I think that I deleted Pool_SMB
- Pool_SMB_All was ONLINE, but I couldn't see any data from the first disk
- so I deleted Pool_SMB_All and created once again Pool_SMB with ada0.
Therefore, pool status of Pool_SMB is OK, but I still can't recover the data.
I believe it is still possible to get it somehow (like with recovery software for FAT/NTFS). I really hope so.
So far, I've made copy of ada0 using dd.
Also, I've used latest MFSBSD iso to get some information about both disks:
--- ada0 ---
Code:
zdb -l /dev/ada
--------------------------------------------
LABEL 0
--------------------------------------------
failed to unpack label 0
--------------------------------------------
LABEL 1
--------------------------------------------
version: 5000
name: 'Pool_SMB'
state: 0
txg: 579
pool_guid: 14218318371378138485
hostid: 2094371779
hostname: 'mfsbsd'
top_guid: 10867942708007115030
guid: 10867942708007115030
vdev_children: 1
vdev_tree:
type: 'disk'
id: 0
guid: 10867942708007115030
path: '/dev/ada0'
phys_path: '/dev/ada0'
whole_disk: 1
metaslab_array: 34
metaslab_shift: 34
ashift: 12
asize: 3000588042240
is_log: 0
DTL: 42
create_txg: 4
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data
--------------------------------------------
LABEL 2
--------------------------------------------
version: 5000
name: 'Pool_SMB'
state: 0
txg: 579
pool_guid: 14218318371378138485
hostid: 2094371779
hostname: 'mfsbsd'
top_guid: 10867942708007115030
guid: 10867942708007115030
vdev_children: 1
vdev_tree:
type: 'disk'
id: 0
guid: 10867942708007115030
path: '/dev/ada0'
phys_path: '/dev/ada0'
whole_disk: 1
metaslab_array: 34
metaslab_shift: 34
ashift: 12
asize: 3000588042240
is_log: 0
DTL: 42
create_txg: 4
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data
--------------------------------------------
LABEL 3
--------------------------------------------
version: 5000
name: 'Pool_SMB'
state: 0
txg: 579
pool_guid: 14218318371378138485
hostid: 2094371779
hostname: 'mfsbsd'
top_guid: 10867942708007115030
guid: 10867942708007115030
vdev_children: 1
vdev_tree:
type: 'disk'
id: 0
guid: 10867942708007115030
path: '/dev/ada0'
phys_path: '/dev/ada0'
whole_disk: 1
metaslab_array: 34
metaslab_shift: 34
ashift: 12
asize: 3000588042240
is_log: 0
DTL: 42
create_txg: 4
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data
Code:
zpool import
pool: Pool_SMB
id: 14218318371378138485
state: ONLINE
status: Some supported features are not enabled on the pool.
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:
Pool_SMB ONLINE
ada0 ONLINE
Code:
gpart show
=> 34 5860533101 ada0 GPT (2.7T)
34 262144 1 ms-reserved (128M)
262178 5860270957 - free - (2.7T)
=> 34 5860533101 diskid/DISK-WD-WMC4N0J9A1X4 GPT (2.7T)
34 262144 1 ms-reserved (128M)
262178 5860270957 - free - (2.7T)
Code:
gpart list
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 5860533134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
Mediasize: 134217728 (128M)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 1024
Mode: r0w0e0
rawuuid: 996d404f-c837-4c7c-a8c1-2ed7a661422c
rawtype: e3c9e316-0b5c-4db8-817d-f92df00215ae
label: Microsoft reserved partition
length: 134217728
offset: 17408
type: ms-reserved
index: 1
end: 262177
start: 34
Consumers:
1. Name: ada0
Mediasize: 3000592982016 (2.7T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Code:
glabel status
diskid/DISK-WD-WMC4N0J9A1X4 N/A ada0
gptid/996d404f-c837-4c7c-a8c1-2ed7a661422c N/A ada0p1
I will be really grateful for any clues.
Thanks!
Last edited by a moderator: