Cant create Pool on TrueNAS Scale (it does work on TrueNAS Core under same Hardware)

Description

I did face issues while creating a Pool Under a HS-1235T server with TrueNAS Scale, error while creating the pool states:

Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 378, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 414, in __run_body
rv = await self.method(*([self] + args))
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1001, in nf
return await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool.py", line 673, in do_create
formatted_disks = await self.middleware.call('pool.format_disks', job, disks)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1239, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1196, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/format_disks.py", line 56, in format_disks
await asyncio_map(format_disk, disks.items(), limit=16)
File "/usr/lib/python3/dist-packages/middlewared/utils/asyncio_.py", line 16, in asyncio_map
return await asyncio.gather(*futures)
File "/usr/lib/python3/dist-packages/middlewared/utils/asyncio_.py", line 13, in func
return await real_func(arg)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/format_disks.py", line 32, in format_disk
devname = await self.middleware.call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1239, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1207, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1111, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/lib/python3/dist-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/disk_/disk_info_linux.py", line 97, in gptid_from_part_type
raise CallError(f'Partition type {part_type} not found on {disk}')
middlewared.service_exception.CallError: [EFAULT] Partition type 6a898cc3-1dd2-11b2-99a6-080020736631 not found on sda

I checked the partitions, and correct partition type was created on the disk while trying to create the pool

truenas# fdisk -l /dev/sda
Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000NM0043 A4
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 32B4345D-D7A5-4776-94A6-6E1CA7D7E195

Device Start End Sectors Size Type
/dev/sda1 128 4194304 4194177 2G Linux swap
/dev/sda2 4194432 3907029134 3902834703 1.8T Solaris /usr & Apple ZFS

  1. note that "/dev/sda2" is of type "Solaris /usr & Apple ZFS" which is partition type / Alias < 67 Solaris /usr & Apple ZFS 6A898CC3-1DD2-11B2-99A6-080020736631>

Decided to Check if the problem was especific to TrueNAS Scale, so re-installed TrueNAS Core. follow same process to create pool from the GUI and worked perfectly, so i assume its something wrong on SCALE. (I was able to create a pool on the SCALE using a different hardDrive (SATA instead of SAS using same port from Backplane), so my first guess was it must be related to something on those specific drives.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Logan Weber 
September 26, 2021 at 1:51 PM

I can confirm the issue on a new fresh trueNAS SCALE install (21.08-BETA.1) when I would like to create a pool with two disks with mirroring :


 
And my disks are not protected :

The problem seems random, because after several attempts it worked without explanation.

(GalaxyMaster) 
September 15, 2021 at 9:37 AM

I am also observing this issue: got 3 brand new Seagate IronWolf Pro 4TB SAS drives installed them into QNAP-653D, booted into TrueNAS SCALE from the USB stick and cannot create the pool via Web UI.  The behavior matches exactly what is described by previous reporters.  None of the disks are protected and I believe this issue needs to be re-open and investigsted.  This is output from my system:

 

and this is the error I am getting in the Web UI:

Please let me know if you need any additional info about the system.

 

Jacob Pavlock 
July 31, 2021 at 9:50 PM
(edited)

I had the same issue (my drive did not have the security bits set), and creating the pool manually on the commandline then importing it in truenas worked. Note, I had to restart my server after manually creating the pool for truenas to see the new pool to import.

German Alejandro Fidalgo 
June 5, 2021 at 8:12 PM

New Dump File

German Alejandro Fidalgo 
June 5, 2021 at 8:11 PM

Hi Caleb, sadly reformating does not work (I attahced a new dump file). Also i also think this is not working as expected (at least in compartission with TrueNAS Core. There i achieve to create the pool directly from the GUI without warryng about wiping and reformating on the first try consistently <I have 9 of this blades, all with trueNAS core except the one i am now reporting. FreeBSD is handling this drives in a better and simpler way)

 

reformatting:

 

Format in progress, 99.63% done
Format in progress, 99.91% done
FORMAT UNIT Complete

  1. truenas#

  2. truenas# sg_readcap -l /dev/sda
    Read Capacity results:
    Protection: prot_en=0, p_type=0, p_i_exponent=0
    Logical block provisioning: lbpme=0, lbprz=0
    Last LBA=3907029167 (0xe8e088af), Number of logical blocks=3907029168
    Logical block length=512 bytes
    Logical blocks per physical block exponent=0
    Lowest aligned LBA=0
    Hence:
    Device size: 2000398934016 bytes, 1907729.1 MiB, 2000.40 GB, 2.00 TB

 

error afterwards while trying to create the pool:

 

Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 378, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 414, in __run_body
rv = await self.method(*([self] + args))
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1001, in nf
return await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool.py", line 673, in do_create
formatted_disks = await self.middleware.call('pool.format_disks', job, disks)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1239, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1196, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/format_disks.py", line 56, in format_disks
await asyncio_map(format_disk, disks.items(), limit=16)
File "/usr/lib/python3/dist-packages/middlewared/utils/asyncio_.py", line 16, in asyncio_map
return await asyncio.gather(*futures)
File "/usr/lib/python3/dist-packages/middlewared/utils/asyncio_.py", line 13, in func
return await real_func(arg)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/format_disks.py", line 29, in format_disk
await self.middleware.call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1239, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1207, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1111, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/lib/python3/dist-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/disk_/format.py", line 67, in format
raise CallError(f'Unable to GPT format the disk "{disk}": {cp.stderr}')
middlewared.service_exception.CallError: [EFAULT] Unable to GPT format the disk "sda": Warning! Read error 5; strange behavior now likely!
Warning: Partition table header claims that the size of partition table
entries is 0 bytes, but this program supports only 128-byte entries.
Adjusting accordingly, but partition table may be garbage.
Warning! Read error 5; strange behavior now likely!
Warning: Partition table header claims that the size of partition table
entries is 0 bytes, but this program supports only 128-byte entries.
Adjusting accordingly, but partition table may be garbage.
Unable to save backup partition table! Perhaps the 'e' option on the experts'
menu will resolve this problem.
Warning! An error was reported when writing the partition table! This error
MIGHT be harmless, or the disk might be damaged! Checking it is advisable.

 

Behaves as Intended

Details

Assignee

Reporter

Labels

Impact

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created May 31, 2021 at 10:00 PM
Updated July 6, 2022 at 8:57 PM
Resolved June 4, 2021 at 12:37 PM