Import Disk: invalid argument

mrelephant

Cadet
Joined
Dec 12, 2021
Messages
3
Trying to import a disk that has a lot of existing files I want to copy over. I have a pool already created using a separate disk that I hope to copy the files too. However I'm getting an error while trying to import the disk using the UI.

Mount failed (exit code 1): mount: /dev/ada1p3: Invalid argument

More info...
Error: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run await self.future File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 403, in __run_body rv = await self.method(*([self] + args)) File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf return await f(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool_/import_disk.py", line 54, in import_disk async with await self.middleware.call('pool.import_disk_mount_fs_context_manager', device, src, File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool_/import_disk_freebsd.py", line 96, in __aenter__ await mount(self.device, self.path, *self.args, **self.kwargs) File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool_/import_disk_freebsd.py", line 54, in mount raise ValueError("Mount failed (exit code {0}):\n{1}{2}" .format( ValueError: Mount failed (exit code 1): mount: /dev/ada1p3: Invalid argument

I used "gpart show" to verify it is indeed ada1p3

40 88 - free - (44K) 128 4194304 1 freebsd-swap (2.0G) 4194432 9763346696 2 freebsd-zfs (4.5T)


I'm not sure if this is a bug or if I'm doing something wrong, any help is greatly appreciated.
 

mrelephant

Cadet
Joined
Dec 12, 2021
Messages
3
I just realized the copy and past of the gpart show didn't work. Here is a screenshot.
Screen Shot 2021-12-12 at 11.12.48 AM.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
That linux-data partition is most likely ext3 or ext4 then... TrueNAS only supports etx2.

Best bet is to run a linux live distro on another box from USB stick and copy the files over the network.

 

mrelephant

Cadet
Joined
Dec 12, 2021
Messages
3
That's too bad, well I booted up a Mint distro and started the transfer, should only take 40 hours it says. The computer I booted it up from doesn't have a great connection otherwise it would probably take less.
Thanks for the help I look forward to doing more with TrueNAS.
 
Top