cannot replace usb device from boot pool
Description
Problem/Justification
None
Impact
None
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Show:

Metis IT November 13, 2019 at 6:01 PMEdited
well, thanks for the hint using SSDs, i might consider that.
still, what is happening here is different. the new stick has been verified working without read/write problems. i assumed the problem might occur because of pre-existing partitions and data, but i just wiped the stick and retried the pool replace operation through the UI, same error message.
currently i don't see a way to replace the failed devic by UI.

Dru Lavigne November 13, 2019 at 1:45 PM
resilvering a USB device adds additional stress (often causing it to fail). The recommendation is to instead install the same FreeNAS version to a new stick and to restore your config. Alternately, consider using an SSD for the boot device.
Not Applicable
Pinned fields
Click on the next to a field label to start pinning.
Created November 13, 2019 at 9:26 AM
Updated July 1, 2022 at 4:43 PM
Resolved November 13, 2019 at 1:45 PM
old usb device was faulted due to write errors. plugged an additonanl usb stick as replacement and started replacing through UI. new device still has some partitions/data, was an opnsense installer. i wanted to clear/overwrite it during replacement.
pool: freenas-boot
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
repaired.
scan: scrub repaired 0 in 0 days 00:01:08 with 0 errors on Wed Nov 6 03:46:08 2019
config:
NAME STATE READ WRITE CKSUM
freenas-boot DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
da1p2 FAULTED 0 282 0 too many errors
da0p2 ONLINE 0 0 0
camcontrol devlist
at scbus9 target 0 lun 0 (da4,pass5)
at scbus10 target 0 lun 0 (pass6,da1)
at scbus12 target 0 lun 0 (da0,pass8)
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 167, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1098, in call_method
return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1046, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 664, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/boot.py", line 221, in replace
boottype = await self.format(dev, format_opts)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 664, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/boot.py", line 113, in format
raise CallError('%r failed:\n%s%s' % (" ".join(command), p.stdout.decode("utf-8"), p.stderr.decode("utf-8")))
middlewared.service_exception.CallError: [EFAULT] 'newfs_msdos -F 16 /dev/da4p1' failed:
newfs_msdos: /dev/da4p1: Operation not permitted