TrueNAS not able to create pool but i could with zfs cli

I am still having issue i mentioned here Now able to create a pool with single disk in Stripe layout

now i added a second drive so i could create a mirror vdev pool and getting different but still same issue creating a pool

i already formatted the drive fully with zeroes which took hours and yet still same error

so this is what i noticed, the drive truenas is complaining about has the following on the smartctl command

Vendor:               IBM-E050
...
...
Compliance:           SPC-5
User Capacity:        3,200,631,791,616 bytes [3.20 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
Formatted with type 2 protection
8 bytes of protection information per logical block
LU is resource provisioned, LBPRZ=1
Rotation Rate:        Solid State Device
Form Factor:          2.5 inches

and the other drive is similar but different brand. lenovo vs IBM

Vendor:               LENOVO
...
...
Compliance:           SPC-4
User Capacity:        3,200,631,791,616 bytes [3.20 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate:        Solid State Device
Form Factor:          2.5 inches

now like i said i have been able to create a zfs pool on another server with this same drive with type 2 protection, so why does truenas have a hard time just creating pool? always complaining about one thing or the other

here is how i created as pool with the same type 2 protection on another server but truenas is here complaining about it

:~# zpool create data-1 /dev/disk/by-id/scsi-4e70 

:~# zpool status
  pool: data-1
 state: ONLINE
config:

        NAME                      STATE     READ WRITE CKSUM
        data-1                    ONLINE       0     0     0
          scsi-4e70  ONLINE       0     0     0

errors: No known data errors

how do i get past this error so i can successfully create the pool?

can i just create the pool via truenas CLI on the server?

because am not sure what is going with TrueNAS dashboard, it is always complaining about something when creating pools whereas zfs commands works like a charm on a linux server with zero issues barely ever

i have tried everything and truenas wont create this pool

if i take the 2 drives and drop in ubuntu server with zfs, i am able to create a pool easily

anyone willing to help with way forward with this?

TrueNAS does not support disk data integrity features. These are 520 byte sector disks and for normal usage outside of a Enterprise SAN / NAS, you have to re-format them at a low level to 512 bytes, (or 4096 bytes), per sector.

Search for 520 byte blocks / sector removal. There should be instructions either here in the TrueNAS forums. Or in the general internet.

1 Like

so how come there was no issue when i create pool with zpool command directly on linux server?

why cant truenas just create pool same way?

Some OSes do support the 520 byte sector disks.

It appears TrueNAS middleware, (that sits on top the OS), does not.

I have no further knowledge of why that is, other than most people who come to the forums end up changing the sector size to 512 or 4096 bytes.

how do i know what size to use 512 or 4096?

sg_format --format --size=512 /dev/sdf

OR

sg_format --format --size=4096 /dev/sdf

here is outpool of smartctl command for the drives

Vendor:               IBM-E050
...
...
Compliance:           SPC-5
User Capacity:        3,200,631,791,616 bytes [3.20 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
Formatted with type 2 protection
8 bytes of protection information per logical block
LU is resource provisioned, LBPRZ=1
Rotation Rate:        Solid State Device
Form Factor:          2.5 inches
Vendor:               LENOVO
...
...
Compliance:           SPC-4
User Capacity:        3,200,631,791,616 bytes [3.20 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate:        Solid State Device
Form Factor:          2.5 inches

I overlooked that these are SSDs, (Solid State Devices). They would appear to store the protection information else where, not as part of the sector.

So I don’t know if standard method of removal works. Sorry.

But it is good that the physical block size is 4096.

ok i ran the command and here is new issue again now

first tried with --size=4096 and had errors

image


then tried with --size=512 and then worked for both drives


now went back to truenas dashboard to create the pool with the 2 drives again and yet error again

what is next to try?

There may be a way to disable the protection thing.

Again, I don’t know. Give Google a search.

It has been literally 15 years since I have dealt with such disks… even then, they were Fibre Channel.

current error is no longer about protection. did you see the posted screenshots?

now it says this for the other drive without the protection

You may need to power cycle the SSD. And if that does not work, then post the output of lsblk and state which is the disk in question.

I already power cycled the truenas server and still same error

from the screenshots the disk in question it the other one /dev/sde which is the one that does not have the data protection on it

the other one with the data protection is /dev/sdf

this one

Vendor:               LENOVO
...
...
Compliance:           SPC-4
User Capacity:        3,200,631,791,616 bytes [3.20 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LU is resource provisioned, LBPRZ=1
Rotation Rate:        Solid State Device
Form Factor:          2.5 inches

Sorry, this is beyond me.

anyone else that knows way out of this?

if i take these 2 drives to ubuntu server and install zfs, it is a single command to create a pool with zero issues