SOLVED can't build Volume (MiddlewareError: Unable to GPT format the disk) DS4243

Status
Not open for further replies.

judokan9

Dabbler
Joined
Sep 26, 2018
Messages
13
Hello,

i am new to the forum and to freenas. But i a have some experience in the linux world with other distros.

Last week i buyed an DS4243 with 24 disks already pre installed (500GB SAS each) and inserted an IOM6 controller to get 6G-SCSI.
I connected the diskshelf to an LSI 9300-8e in my server.
So far so good...

All disks are shown when i type camcontrol devlist

<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 8 lun 0 (pass3,da2)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 9 lun 0 (pass4,da3)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 10 lun 0 (pass5,da4)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 11 lun 0 (pass6,da5)
<NETAPP X412_S15K7560A15 NA06> at scbus3 target 12 lun 0 (pass7,da6)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 13 lun 0 (pass8,da7)
<NETAPP X412_S15K7560A15 NA08> at scbus3 target 14 lun 0 (pass9,da8)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 15 lun 0 (pass10,da9)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 16 lun 0 (pass11,da10)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 17 lun 0 (pass12,da11)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 18 lun 0 (pass13,da12)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 19 lun 0 (pass14,da13)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 20 lun 0 (pass15,da14)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 21 lun 0 (pass16,da15)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 22 lun 0 (pass17,da16)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 23 lun 0 (pass18,da17)
<NETAPP X412_S15K7560A15 NA06> at scbus3 target 24 lun 0 (pass19,da18)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 25 lun 0 (pass20,da19)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 26 lun 0 (pass21,da20)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 27 lun 0 (pass22,da21)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 28 lun 0 (pass23,da22)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 29 lun 0 (pass24,da23)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 30 lun 0 (pass25,da24)
<NETAPP X412_HVIPC560A15 NA03> at scbus3 target 31 lun 0 (pass26,da25)
<NETAPP DS424IOM6 0191> at scbus3 target 36 lun 0 (ses0,pass27)

But i can't create a volume with the "Volume Manager" in the Web-GUI the error is:

Environment:

Software Version: FreeNAS-11.1-U6 (caffd76fa)
Request Method: POST
Request URL: http://IP/storage/volumemanager/


Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/storage/views.py" in volumemanager
148. if form.is_valid() and form.save():
File "./freenasUI/storage/forms.py" in save
309. raise e
File "./freenasUI/storage/forms.py" in save
298. notifier().create_volume(volume, groups=grouped, init_rand=init_rand)
File "./freenasUI/middleware/notifier.py" in create_volume
752. vdevs = self.__prepare_zfs_vdev(vgrp['disks'], vdev_swapsize, encrypt, volume)
File "./freenasUI/middleware/notifier.py" in __prepare_zfs_vdev
687. swapsize=swapsize)
File "./freenasUI/middleware/notifier.py" in __gpt_labeldisk
359. raise MiddlewareError(f'Unable to GPT format the disk "{devname}": {error}')

Exception Type: MiddlewareError at /storage/volumemanager/
Exception Value: [MiddlewareError: Unable to GPT format the disk "da2": gpart: Invalid alignment param: Invalid argument
]

I already tried to dd those disks like its shown in other threads in this forum, but this fails too:

dd if=/dev/zero of=/dev/da2 bs=512 count=1000

Gets me:

dd: /dev/da2: Invalid argument
1+0 records in
0+0 records out
0 bytes transferred in 0.069644 secs (0 bytes/sec)


I also runned badblocks -svw on /dev/da2 this returned:

1
[...]
583314618
done
Reading and comparing: set_o_direct: Inappropriate ioctl for device0 errors)
set_o_direct: Inappropriate ioctl for device
done
Testing with pattern 0x55: set_o_direct: Inappropriate ioctl for device0 errors)
set_o_direct: Inappropriate ioctl for device
gggghrdone
Reading and comparing: set_o_direct: Inappropriate ioctl for device0 errors)
set_o_direct: Inappropriate ioctl for device
done
Testing with pattern 0xff: set_o_direct: Inappropriate ioctl for device0 errors)
set_o_direct: Inappropriate ioctl for device
done
Reading and comparing: set_o_direct: Inappropriate ioctl for device0 errors)
set_o_direct: Inappropriate ioctl for device
done
Testing with pattern 0x00: set_o_direct: Inappropriate ioctl for device0 errors)
set_o_direct: Inappropriate ioctl for device
done
Reading and comparing: set_o_direct: Inappropriate ioctl for device0 errors)
set_o_direct: Inappropriate ioctl for device
done
Pass completed, 583314619 bad blocks found. (0/583314619/0 errors)

How can i get those drives to work?

By the way, its not only on /dev/da2 i tried this on all disks (except the badblock thing because i wanted to look how this does work out).
 

judokan9

Dabbler
Joined
Sep 26, 2018
Messages
13
I entered your command for /dev/da2 and the block size is 520 bytes.

I'm now running sg_format -v --format --fmtpinfo=0 --pfu=0 --size=512 --six /dev/da2 to convert it into 512 byte sectors.
I'm looking forward to the results how those will work out.

Just for imformation:
sg_format without --six has failed.
 
Last edited:

judokan9

Dabbler
Joined
Sep 26, 2018
Messages
13
It works now i can wipe the disk from the Web-GUI.
Thank you very much for your tip.
 
Status
Not open for further replies.
Top