Failed to wipe disk nvd2: gpart: Operation not permitted

Rabinovitch

Dabbler
Joined
Apr 3, 2021
Messages
43
Welcome all!
This is my first experience with TrueNAS, and unfortunately it was an unpleasant experience.
My goal was to create a zpool with two SSDs for the cache. As usual in Ubuntu, I tried to preformat them with support for 4096 byte sectors.
The list of commands was as follows:

Code:
nvmecontrol devlist
geom disk list
smartctl -a /dev/nvme2ns1
gpart create -s gpt nvd2
gpart show
nvmecontrol format -f 2 nvme2ns1


The actions seem to have completed successfully, at least Namespace 1 Formatted LBA Size has become 4096. But when in the web interface I tried to create a zpool, TrueNAS was unable to include these SSDs pool.
What should I do about it? Nothing can be done in the console either.

I tried to do something similar on one of the drives (dd if=/dev/zero of=/dev/nvd2 bs=512), but now the error sounds like

root@truenas[~]# gpart create -s gpt /dev/nvd2
gpart: Input/output error

I quote the error message in the attached screenshot. The detailed error message is:

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 367, in run
await self.future
File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 403, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 666, in do_create
formatted_disks = await self.middleware.call('pool.format_disks', job, disks)
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
return await self._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool_/format_disks.py", line 56, in format_disks
await asyncio_map(format_disk, disks.items(), limit=16)
File "/usr/local/lib/python3.8/site-packages/middlewared/utils/asyncio_.py", line 16, in asyncio_map
return await asyncio.gather(*futures)
File "/usr/local/lib/python3.8/site-packages/middlewared/utils/asyncio_.py", line 13, in func
return await real_func(arg)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool_/format_disks.py", line 29, in format_disk
await self.middleware.call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
return await self._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1206, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1110, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/disk_/format.py", line 25, in format
raise CallError(f'Failed to wipe disk {disk}: {job.error}')
middlewared.service_exception.CallError: [EFAULT] Failed to wipe disk nvd1: [EFAULT] Command gpart create -s gpt /dev/nvd2 failed (code 1):
gpart: Operation not permitted

 

Attachments

  • Failed_to_wipe_disk_Operation_not_permitted.JPG
    Failed_to_wipe_disk_Operation_not_permitted.JPG
    18.5 KB · Views: 159

Rabinovitch

Dabbler
Joined
Apr 3, 2021
Messages
43
Right now it looks like this:
root@lenstor1[~]# gpart create -s gpt /dev/nvd2
gpart: geom 'nvd2': File exists
root@lenstor1[~]# gpart create -s gpt /dev/nvd1
gpart: geom 'nvd1': File exists
And it looks that it can't be solved with any obvious measures...

root@lenstor1[~]# gpart destroy -F nvd2
gpart: Input/output error
root@lenstor1[~]# gpart destroy -F nvd1
gpart: Operation not permitted
root@lenstor1[~]# gpart destroy -F /dev/nvd1
gpart: Device not configured
root@lenstor1[~]# gpart destroy -F /dev/nvd2
gpart: Device not configured
root@lenstor1[~]# geom disk list

Geom name: nvd1
Providers:
1. Name: nvd1
Mediasize: 400088457216 (373G)
Sectorsize: 512
Mode: r0w0e0
descr: INTEL SSDPF21Q400GB
lunid: 01000000000000005cd2e4e760155351
ident: PHAL0445001Q400AGN
rotationrate: 0
fwsectors: 0
fwheads: 0

Geom name: nvd2
Providers:
1. Name: nvd2
Mediasize: 3200631791616 (2.9T)
Sectorsize: 512
Mode: r1w1e1
descr: SAMSUNG MZPLJ3T2HBJR-00007
lunid: 35354830522006730025384300000004
ident: S55HNC0R200673
rotationrate: 0
fwsectors: 0
fwheads: 0
 
Top