SOLVED Unable to create pool, GUI returning 1 on dd. Unable to create via cli

noaxispoint

Cadet
Joined
Jul 12, 2019
Messages
6
Hello,

I am trying to create a new pool on my FreeNAS server. Currently there are 6 internal drives that are working fine. The new storage is an external enclosure connected via SAS. The enclosure has 25 600GB drives in it.

I have searched for this and tried examples on this site, Stack Overflow and more.

The enclosure is connected via 2 cables, 1 to each controller on the enclosure. FreeBSD see's these and has multipath to each drive. Creating the pool using the GUI I get the following output:

Code:
Error: Traceback (most recent call last):

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 219, in wrapper
    response = callback(request, *args, **kwargs)

  File "./freenasUI/api/resources.py", line 1448, in dispatch_list
    request, **kwargs

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 450, in dispatch_list
    return self.dispatch('list', request, **kwargs)

  File "./freenasUI/api/utils.py", line 251, in dispatch
    request_type, request, *args, **kwargs

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 482, in dispatch
    response = method(request, **kwargs)

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 1384, in post_list
    updated_bundle = self.obj_create(bundle, **self.remove_api_resource_names(kwargs))

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 2175, in obj_create
    return self.save(bundle)

  File "./freenasUI/api/utils.py", line 445, in save
    form.save()

  File "./freenasUI/storage/forms.py", line 316, in save
    raise e

  File "./freenasUI/storage/forms.py", line 310, in save
    c.call("alert.unblock_source", lock)

  File "./freenasUI/storage/forms.py", line 303, in save
    notifier().create_volume(volume, groups=grouped, init_rand=init_rand)

  File "./freenasUI/middleware/notifier.py", line 763, in create_volume
    vdevs = self.__prepare_zfs_vdev(vgrp['disks'], vdev_swapsize, encrypt, volume)

  File "./freenasUI/middleware/notifier.py", line 698, in __prepare_zfs_vdev
    sync=False)

  File "./freenasUI/middleware/notifier.py", line 341, in __gpt_labeldisk
    c.call('disk.wipe', devname, 'QUICK', False, job=True)

  File "./freenasUI/middleware/notifier.py", line 341, in __gpt_labeldisk
    c.call('disk.wipe', devname, 'QUICK', False, job=True)

  File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py", line 477, in call
    raise ClientException(job['error'], trace=job['exception'])

middlewared.client.client.ClientException: Command '('dd', 'if=/dev/zero', 'of=/dev/multipath/disk1', 'bs=1m', 'count=32')' returned non-zero exit status 1.


Trying to create via CLI I get the following:
Code:
root@Gemini[~]# find /dev/multipath -iname "disk*" | xargs zpool create -fn s2 raidz
would create 's2' with the following layout:

        s2
          raidz1
            multipath/disk1
            multipath/disk2
            multipath/disk3
            multipath/disk4
            multipath/disk5
            multipath/disk6
            multipath/disk7
            multipath/disk8
            multipath/disk9
            multipath/disk10
            multipath/disk11
            multipath/disk12
            multipath/disk13
            multipath/disk14
            multipath/disk15
            multipath/disk16
            multipath/disk17
            multipath/disk18
            multipath/disk19
            multipath/disk20
            multipath/disk21
            multipath/disk22
            multipath/disk23
            multipath/disk24
            multipath/disk25
root@Gemini[~]# find /dev/multipath -iname "disk*" | xargs zpool create -f s2 raidz
cannot create 's2': invalid argument for this pool operation



Does anyone have any suggestions?
 
D

dlavigne

Guest
Which FreeNAS version (from System -> Information or Dashboard)?
 
D

dlavigne

Guest
To clarify, the disks are new (not previously formatted)?
 

noaxispoint

Cadet
Joined
Jul 12, 2019
Messages
6
To clarify, the disks are new (not previously formatted)?
No, they were not new. I got this encolure and drives second hand which is what caused me to finally find the issue. I didn't immediately see this in the logs on FreeNAS and it wasn't until I booted Linux that I saw the issue. The hard drives had 520 byte blocks. So I used "setblocksize" (http://micha.freeshell.org/scsi/) to format them to 512 byte blocks. It took a little over 2 hours per drive but I was able to run all 25 drives concurrently.
After that completed I was able to go back in to FreeNAS and create the pool with no issues.
 
Top