Moving from OMV to Freenas Disaster

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
why does it successfully mount on linux and receive all the data then?

Good question. "More data needed". Maybe it's Linux-LVM or linux-raid and not linux-data. That'd cause it. Or maybe there's a bug. Or maybe something else entirely.
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
Good question. "More data needed". Maybe it's Linux-LVM or linux-raid and not linux-data. That'd cause it. Or maybe there's a bug. Or maybe something else entirely.
This.

That being said:
With FreeNAS/TrueNAS (and BSD in general tbh) the advice is always "Stick with what works":
SATA or SAS, ZFS and Intel NICs
 

pschatz100

Guru
Joined
Mar 30, 2014
Messages
1,184
I would say this entire thread can be characterized as "FreeBSD is not Linux." At the end of the day, I have not tried to import Linux disks since I set up my first FreeNAS many years ago, so I can't really comment on that. FreeNAS documentation offers some suggestions about preparing Linux disks for import - I would start there. I would also check some FreeBSD sources to see if there are any utilities available that might be helpful.

One thing that is clear though, is that Linux supports a wider array of hardware options than does FreeBSD. One cannot automatically assume that something which works in Linux will also work in FreeBSD.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Out of curiosity. I've just imported an ext2 formatted drive into FreeNAS 11.3-4U without problem. Picking the appropriated drive on the WEBUI import disk page automatically highlighted the "ext2" option:

disk_import.jpg


in the shell:

Code:
root@freenas[/mnt]# gpart show
=>      40  62914480  da0  GPT  (30G)
        40        88       - free -  (44K)
       128   4194304    1  freebsd-swap  (2.0G)
   4194432  58720088    2  freebsd-zfs  (28G)

=>      40  33554352  da1  GPT  (16G)
        40      1024    1  freebsd-boot  (512K)
      1064  33521664    2  freebsd-zfs  (16G)
  33522728     31664       - free -  (15M)

=>      40  62914480  da2  GPT  (30G)
        40        88       - free -  (44K)
       128   4194304    1  freebsd-swap  (2.0G)
   4194432  58720088    2  freebsd-zfs  (28G)

=>    2048  20969439  da3  GPT  (10G)
      2048  20969439    1  linux-data  (10G)


and

Code:
root@freenas[/mnt]# geom PART list da3
Geom name: da3
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 20971486
first: 2048
entries: 128
scheme: GPT
Providers:
1. Name: da3p1
   Mediasize: 10736352768 (10G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(1,GPT,9e2d914b-7aa0-a84e-aca9-6f1693ef0ff9,0x800,0x13ff7df)
   rawuuid: 9e2d914b-7aa0-a84e-aca9-6f1693ef0ff9
   rawtype: 0fc63daf-8483-4772-8e79-3d69d8477de4
   label: (null)
   length: 10736352768
   offset: 1048576
   type: linux-data
   index: 1
   end: 20971486
   start: 2048
Consumers:
1. Name: da3
   Mediasize: 10737418240 (10G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2

root@freenas[/mnt]#


The drive can also be mounted using the CLI:
Code:
root@freenas[/]# mount -vv -t ext2fs /dev/da3p1 /media
/dev/da3p1 on /media (ext2fs, local, fsid 67000000f3000000)
root@freenas[/]# ls -l /media
total 680888
-rw-r--r--  1 root  wheel  696539136 Aug 23 22:00 pfSense-CE-2.4.4-RELEASE-p3-amd64.iso
root@freenas[/]# umount /media


OK, it's not a USB drive and this was all done in virtual machines. But this import function looks to work to me.
 
Top