Hello,
I seem to have a very similar problem and hoping someone might be able to help please. I can't import my old pool after a boot USB failure. I don't think my pool was encrypted though I can't be entirely sure. I don't have a geli key saved.
I do have a backup config from 2017:
mammoth-FreeNAS-11.0-RELEASE (a2dc21583)-20171228212015.tar
Its contents include:
Code:
freenas-v1.db
pwenc_secret
I attempted to upload this configuration file; however, it appears to have failed and reverted back.
/data/update.failed
contains the following:
Code:
root@mammoth[/data]# less update.failed
Operations to perform:
Apply all migrations: account, auth, contenttypes, directoryservice, failover, network, services, sessions, sharing, storage, system, tasks, truenas, vm
Running migrations:
Applying account.0005_add_netdata_user... OK
Applying account.0006_bsdusers_bsdusr_attributes... OK
Applying account.0007_add_nslcd_user... OK
Applying account.0008_migrate_legacy_values... OK
Applying account.0008_add_pgsql_user... OK
Applying account.0009_merge_20181109_1114... OK
Applying account.0010_auto_20190221_0824... OK
Applying account.0011_remove_netdata_user... OK
Applying directoryservice.0003_kill_nt4... OK
Applying directoryservice.0004_idmap_script... OK
Applying directoryservice.0005_idmap_ad... OK
Applying directoryservice.0006_certificate_model... OK
Applying directoryservice.0007_migrate_to_nslcd... OK
Applying directoryservice.0008__alter_kerberos_principal... OK
Applying directoryservice.0009__add_createcomputer_to_ad... OK
Applying directoryservice.0010_encrypt_keytabs... OK
Applying directoryservice.0011_add_new_idmap_model... OK
Applying directoryservice.0012_remove_unix_extensions... OK
Applying directoryservice.0013_add_disable_freenas_cache_to_ldap... OK
Applying directoryservice.0014_remove_sysctls... OK
Applying directoryservice.0015_add_ldaps_validation... OK
Applying failover.0001_initial... FAKED
Applying network.0003_lagg_no_mtu... OK
Applying network.0004_auto_20170703_1224... OK
Applying network.0005_vlan_vlan_pcp... OK
Applying network.0006_globalconfiguration_gc_domains... OK
Applying network.0007_globalconfiguration_gc_hostname_virtual... OK
Applying network.0008_auto_20171121_1029... OK
Applying network.0009_move_options_and_mtu... OK
Applying network.0010_auto_20181114_1129... OK
Applying network.0011_disable_offload_capabilities... OK
Applying system.0005_auto_20170712_1137... OK
Applying system.0006_update_tun_var_size... OK
Applying system.0007_auto_201708211858... OK
Applying system.0008_auto_20170906_2335... OK
Applying system.0009_auto_20171023_2159... OK
Applying system.0017_auto_20180219_1615... OK
Applying system.0020_auto_20180502_1200... OK
Applying system.0016_encrypt_cloud_credentials... OK
Applying system.0021_merge_20180612_2332... OK
Applying system.0022_cert_serial... OK
Applying system.0022_cloud_sync... OK
Applying system.0010_syscons_to_vt... OK
Applying system.0011_auto_20180219_1615... OK
Applying system.0012_add_filesystem_model... OK
Applying system.0013_rename_consulalerts_to_alertservice... OK
Applying system.0014_alert_default_settings... OK
Applying system.0015_alert... OK
Applying system.0023_merge_20180612_2359... OK
Applying system.0024_rename_bes... OK
Applying system.0025_remove_screensaver... OK
Applying system.0026_keyvalue... OK
Applying system.0018_merge_20180409_1538... OK
Applying system.0019_increase_motd... OK
Applying system.0021_merge_20180507_1315... OK
Applying system.0027_merge_20180807_0638... OK
Applying system.0028_cert_serials... OK
Applying system.0029_add_organizational_unit... OK
Applying system.0030_ip_fields... OK
Applying system.0031_adv_boot_scrub... OK
Applying system.0032_remove_protocol_field... OK
Applying system.0033_acme_models... OK
Applying system.0034_keychain_credential... OK
Applying system.0035_vmware_snapshot_alert... OK
Applying system.0036_remove_parseable_cert_attrs... OK
Applying system.0037_reporting... OK
Applying system.0023_delete_vm_kmem_size_tunable... OK
Applying system.0029_merge_20190226_0917... OK
Applying system.0038_merge_20190226_1008... OK
Applying system.0039_alerts_classes... OK
Applying sharing.0004_afp_share_afp_timemachine_quota... OK
Applying sharing.0005_add_cifs_abe... OK
Applying sharing.0006_afp_share_afp_timemachine_quota_in_gib... OK
Applying sharing.0007_afp_share_afp_home...Traceback (most recent call last):
File "/usr/local/lib/migrate113/src/main.py", line 30, in <module>
run_syncdb()
File "/usr/local/lib/migrate113/src/utils.py", line 38, in run_syncdb
call_command('migrate', interactive=False, merge=True, delete_ghosts=True, migrate=True, fake_initial=True)
File "/usr/local/lib/migrate113/django/core/management/__init__.py", line 130, in call_command
return command.execute(*args, **defaults)
File "/usr/local/lib/migrate113/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/migrate113/django/core/management/commands/migrate.py", line 202, in handle
post_migrate_state = executor.migrate(
File "/usr/local/lib/migrate113/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/migrate113/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/usr/local/lib/migrate113/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/local/lib/migrate113/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/local/lib/migrate113/django/db/migrations/operations/special.py", line 189, in database_forwards
self.code(from_state.apps, schema_editor)
File "/usr/local/lib/migrate113/freenasUI/sharing/migrations/0007_afp_share_afp_home.py", line 17, in migrate_afp_home
share.afp_timemachine = service.afp_srv_hometimemachine
AttributeError: 'AFP' object has no attribute 'afp_srv_hometimemachine'
My USB drive seems to have been corrupted. It failed to boot the system. To conserve the configuration, I attempted to upgrade the old USB using a new installer; however, it didn't seem to recognize the old install. I installed TrueNAS-12.0-U1 to a new boot USB.
When I boot the system off the new USB with the old boot usb in the system, I get the following error message.
Code:
da8 at umass-sim0 bus 0 scbus9 target 0 lun 0
da8: <13FE USB DISK 50X PMAP> Removable Direct Access SPC-2 SCSI device
da8: Serial Number 000000000003
da8: 40.000MB/s transfers
da8: Attempt to query device size failed: NOT READY, Medium not present
da8: quirks=0x3<NO_SYNC_CACHE,NO_6_BYTE>
da8: Write Protected
When I attempt to mount this drive to access slice 4 and my old config, I can't mount the drive.
I think my data drives are ok:
Code:
root@mammoth[~]# gpart show
=> 34 7814037101 da0 GPT (3.6T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842696 2 freebsd-zfs (3.6T)
7814037128 7 - free - (3.5K)
=> 34 7814037101 da1 GPT (3.6T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842696 2 freebsd-zfs (3.6T)
7814037128 7 - free - (3.5K)
=> 34 7814037101 da2 GPT (3.6T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842696 2 freebsd-zfs (3.6T)
7814037128 7 - free - (3.5K)
=> 34 7814037101 da3 GPT (3.6T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842696 2 freebsd-zfs (3.6T)
7814037128 7 - free - (3.5K)
=> 34 7814037101 da4 GPT (3.6T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842696 2 freebsd-zfs (3.6T)
7814037128 7 - free - (3.5K)
=> 34 7814037101 da5 GPT (3.6T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842696 2 freebsd-zfs (3.6T)
7814037128 7 - free - (3.5K)
=> 40 7814037088 da6 GPT (3.6T)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842688 2 freebsd-zfs (3.6T)
7814037120 8 - free - (4.0K)
=> 40 7814037088 da7 GPT (3.6T)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 7809842688 2 freebsd-zfs (3.6T)
7814037120 8 - free - (4.0K)
=> 40 62521264 da9 GPT (30G)
40 532480 1 efi (260M)
532520 61964288 2 freebsd-zfs (30G)
62496808 24496 - free - (12M)
gpart list
results in the following. As suggested earlier in this thread, I attempted to use
zdb -l /dev/gptid/<rawuuid>
without any luck. I get the failed to unpack label errors as noted above.
Code:
root@mammoth[~]# gpart list
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7814037134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,f0cc5b70-197b-11e6-a81e-0cc47aaba68c,0x80,0x400000)
rawuuid: f0cc5b70-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: da0p2
Mediasize: 3998639460352 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,f1cf691f-197b-11e6-a81e-0cc47aaba68c,0x400080,0x1d180be08)
rawuuid: f1cf691f-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 3998639460352
offset: 2147549184
type: freebsd-zfs
index: 2
end: 7814037127
start: 4194432
Consumers:
1. Name: da0
Mediasize: 4000787030016 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Geom name: da1
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7814037134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da1p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,f35af841-197b-11e6-a81e-0cc47aaba68c,0x80,0x400000)
rawuuid: f35af841-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: da1p2
Mediasize: 3998639460352 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,f47cb65e-197b-11e6-a81e-0cc47aaba68c,0x400080,0x1d180be08)
rawuuid: f47cb65e-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 3998639460352
offset: 2147549184
type: freebsd-zfs
index: 2
end: 7814037127
start: 4194432
Consumers:
1. Name: da1
Mediasize: 4000787030016 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Geom name: da2
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7814037134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da2p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,f6240603-197b-11e6-a81e-0cc47aaba68c,0x80,0x400000)
rawuuid: f6240603-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: da2p2
Mediasize: 3998639460352 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,f741f471-197b-11e6-a81e-0cc47aaba68c,0x400080,0x1d180be08)
rawuuid: f741f471-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 3998639460352
offset: 2147549184
type: freebsd-zfs
index: 2
end: 7814037127
start: 4194432
Consumers:
1. Name: da2
Mediasize: 4000787030016 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Geom name: da3
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7814037134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da3p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,f8c660ae-197b-11e6-a81e-0cc47aaba68c,0x80,0x400000)
rawuuid: f8c660ae-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: da3p2
Mediasize: 3998639460352 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,f9e08047-197b-11e6-a81e-0cc47aaba68c,0x400080,0x1d180be08)
rawuuid: f9e08047-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 3998639460352
offset: 2147549184
type: freebsd-zfs
index: 2
end: 7814037127
start: 4194432
Consumers:
1. Name: da3
Mediasize: 4000787030016 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Geom name: da4
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7814037134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da4p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,fb665f60-197b-11e6-a81e-0cc47aaba68c,0x80,0x400000)
rawuuid: fb665f60-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: da4p2
Mediasize: 3998639460352 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,fc6eb15e-197b-11e6-a81e-0cc47aaba68c,0x400080,0x1d180be08)
rawuuid: fc6eb15e-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 3998639460352
offset: 2147549184
type: freebsd-zfs
index: 2
end: 7814037127
start: 4194432
Consumers:
1. Name: da4
Mediasize: 4000787030016 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Geom name: da5
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7814037134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da5p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,fdf85008-197b-11e6-a81e-0cc47aaba68c,0x80,0x400000)
rawuuid: fdf85008-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: da5p2
Mediasize: 3998639460352 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,ff1780ca-197b-11e6-a81e-0cc47aaba68c,0x400080,0x1d180be08)
rawuuid: ff1780ca-197b-11e6-a81e-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 3998639460352
offset: 2147549184
type: freebsd-zfs
index: 2
end: 7814037127
start: 4194432
Consumers:
1. Name: da5
Mediasize: 4000787030016 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Geom name: da6
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7814037127
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: da6p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,a99823f1-ae4f-11e8-8529-0cc47aaba68c,0x80,0x400000)
rawuuid: a99823f1-ae4f-11e8-8529-0cc47aaba68c
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: da6p2
Mediasize: 3998639456256 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,a9b2f147-ae4f-11e8-8529-0cc47aaba68c,0x400080,0x1d180be00)
rawuuid: a9b2f147-ae4f-11e8-8529-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 3998639456256
offset: 2147549184
type: freebsd-zfs
index: 2
end: 7814037119
start: 4194432
Consumers:
1. Name: da6
Mediasize: 4000787030016 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Geom name: da7
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7814037127
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: da7p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,aaa69fa8-ae4f-11e8-8529-0cc47aaba68c,0x80,0x400000)
rawuuid: aaa69fa8-ae4f-11e8-8529-0cc47aaba68c
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: da7p2
Mediasize: 3998639456256 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,aac491b0-ae4f-11e8-8529-0cc47aaba68c,0x400080,0x1d180be00)
rawuuid: aac491b0-ae4f-11e8-8529-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 3998639456256
offset: 2147549184
type: freebsd-zfs
index: 2
end: 7814037119
start: 4194432
Consumers:
1. Name: da7
Mediasize: 4000787030016 (3.6T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Geom name: da9
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 62521303
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: da9p1
Mediasize: 272629760 (260M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 20480
Mode: r0w0e0
efimedia: HD(1,GPT,3bbf87b6-ffa3-11ea-9e66-0cc47aaba68c,0x28,0x82000)
rawuuid: 3bbf87b6-ffa3-11ea-9e66-0cc47aaba68c
rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
label: (null)
length: 272629760
offset: 20480
type: efi
index: 1
end: 532519
start: 40
2. Name: da9p2
Mediasize: 31725715456 (30G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 272650240
Mode: r1w1e2
efimedia: HD(2,GPT,3c26ff7f-ffa3-11ea-9e66-0cc47aaba68c,0x82028,0x3b18000)
rawuuid: 3c26ff7f-ffa3-11ea-9e66-0cc47aaba68c
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 31725715456
offset: 272650240
type: freebsd-zfs
index: 2
end: 62496807
start: 532520
Consumers:
1. Name: da9
Mediasize: 32010928128 (30G)
Sectorsize: 512
Mode: r1w1e3