disk wipe failed
Description
Problem/Justification
None
Impact
None
Activity
Show:
Waqar Ahmed June 22, 2022 at 2:42 PM
@Hans Kunz let us know please if this is a problem in the next stable release. Thanks!
Waqar Ahmed June 11, 2022 at 1:48 PM
@Hans Kunz there have been significant changes since the issue was created. Can you please try this on latest stable release and let me know if the issue persists ? Thanks!
Bonnie Follweiler February 28, 2022 at 3:51 PM
Thank you @Hans Kunz .
This ticket is now in our queue to review. An engineering representative will update with any further questions or details in the near future.
Hans Kunz February 26, 2022 at 12:03 PM
Log after error occurred, but before reboot ( thus before workaround "fixed" the problem)
iX-Tony February 22, 2022 at 11:57 AM
@Hans Kunz As far as I know, you'd have to manually delete the information yourself. However, if you place files into the Private Attachments area, only developers will be able to view them.
Need additional information
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Triage Team
Triage TeamReporter
Hans Kunz
Hans KunzLabels
Impact
Medium
Components
Fix versions
Affects versions
Priority
More fields
Time tracking
More fields
Time trackingKatalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Created February 15, 2022 at 6:44 AM
Updated July 6, 2022 at 8:59 PM
Resolved June 22, 2022 at 2:42 PM
While trying to add a new vdev (mirror) to an existing pool via the web based managment (WBM) the operation failed.
The error was:
[EFAULT] Failed to wipe disk da6: [Errno 1] Operation not permitted: '/dev/da6'
task disk.wipe faild 2 times:
[Errno 1] Operation not permitted: '/dev/da7'
[Errno 1] Operation not permitted: '/dev/da6'
Trying to manually wipe the disk failed aswell (via WBM)
[Errno 1] Operation not permitted: '/dev/da6'
History of the disk(s):
They had been part of the same pool in a different vdev.
They have been removed from the vdev and thus pool by the "replace" command via WBM. (Storage/PoolsPool/Status>vdev options > replace)
They are healthy disks
The pool:
3xmirror vdevs, legacy encryption
The system:
No reboot has been performed between removing the disks and trying to wipe them
Version: TrueNAS-12.0-U7
Errortrace:
[2022/02/15 07:04:58] (ERROR) middlewared.job.run():379 - Job <bound method accepts.<locals>.wrap.<locals>.nf of <middlewared.plugins.disk_.wipe.DiskService object at 0x819e3a5e0>> failed
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 403, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/wipe.py", line 82, in wipe
await self.middleware.run_in_thread(self._wipe, {'job': job, 'dev': dev, 'mode': mode})
File "/usr/local/lib/python3.9/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/wipe.py", line 15, in _wipe
with open(f'/dev/{data["dev"]}', 'wb') as f:
PermissionError: [Errno 1] Operation not permitted: '/dev/da6'
[2022/02/15 07:04:58] (ERROR) middlewared.job.run():379 - Job <bound method accepts.<locals>.wrap.<locals>.nf of <middlewared.plugins.pool.PoolService object at 0x819e490a0>> failed
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 403, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py", line 850, in do_update
enc_disks = await self.middleware.call('pool.format_disks', job, disks, {'enc_keypath': enc_keypath})
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1256, in call
return await self._call(
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1213, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.9/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.9/site-packages/middlewared/utils/asyncio_.py", line 16, in asyncio_map
return await asyncio.gather(*futures)
File "/usr/local/lib/python3.9/site-packages/middlewared/utils/asyncio_.py", line 13, in func
return await real_func(arg)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool_/format_disks.py", line 29, in format_disk
await self.middleware.call(
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1256, in call
return await self._call(
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1224, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1128, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/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 da6: [Errno 1] Operation not permitted: '/dev/da6'
[2022/02/15 07:04:58] (ERROR) middlewared.job.run():379 - Job <bound method accepts.<locals>.wrap.<locals>.nf of <middlewared.plugins.disk_.wipe.DiskService object at 0x819e3a5e0>> failed
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 403, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/wipe.py", line 82, in wipe
await self.middleware.run_in_thread(self._wipe, {'job': job, 'dev': dev, 'mode': mode})
File "/usr/local/lib/python3.9/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/wipe.py", line 15, in _wipe
with open(f'/dev/{data["dev"]}', 'wb') as f:
PermissionError: [Errno 1] Operation not permitted: '/dev/da7'
[2022/02/15 07:05:52] (ERROR) middlewared.job.run():379 - Job <bound method accepts.<locals>.wrap.<locals>.nf of <middlewared.plugins.disk_.wipe.DiskService object at 0x819e3a5e0>> failed
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 403, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/wipe.py", line 82, in wipe
await self.middleware.run_in_thread(self._wipe, {'job': job, 'dev': dev, 'mode': mode})
File "/usr/local/lib/python3.9/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/wipe.py", line 15, in _wipe
with open(f'/dev/{data["dev"]}', 'wb') as f:
PermissionError: [Errno 1] Operation not permitted: '/dev/da6'
Sorry if i messed up the workflow by filling out components and impact.