Migration from old gmirror

tporcham

Cadet
Joined
Apr 17, 2021
Messages
2
Hi guys,

let's face it - I am a TrueNAS noob.
I installed FreeNAS some years ago and used it for a while. Then the motherboard died...

So, today I installed TrueNAS CORE using TrueNAS-12.0-U3.iso on other hardware and connected my 2 Western Digital 2 TB drives. The OS runs on a SSD.
So far so good.

The problem is I cannot access my data on the drives. It seems I had setup a gmirror named HomeRaid back then as the output of gmirror list is:

root@truenas[~]# gmirror list
Geom name: HomeRaid
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 3564078369
Type: AUTOMATIC
Providers:
1. Name: mirror/HomeRaid
Mediasize: 2000398933504 (1.8T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
Consumers:
1. Name: ada0
Mediasize: 2000398934016 (1.8T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 259880965
2. Name: ada2
Mediasize: 2000398934016 (1.8T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
State: ACTIVE
Priority: 1
Flags: NONE
GenID: 0
SyncID: 1
ID: 2812108144


It seems the filesystem type is UFS - that is what gdisk is saying.

Would anyone know what is the best way forward for me?
My goal is to migrate to a future proof NAS without losing my data.

Many thanks,

Thomas
 

tporcham

Cadet
Joined
Apr 17, 2021
Messages
2
Figured this out myself.
I had to remove on disk from the mirror, mount the partition any copy the data to a temp directory.
Then destroy the gmirror and create a new ZFS pool with 2 disks as mirror.
Next copy the data back to the new ZFS dataset.

Thanks,

Thomas
 
Top