Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-111769

Disk identifier split error in 12.0-U5

    XMLWordPrintable

    Details

    • Impact:
      Critical

      Description

      I have a disk which not show in webui, but can access from console. when checking the dmsg -a, I found this:

      spa_misc.c:411:spa_load_note(): spa_load($import, config trusted): LOADING
      vdev.c:129:vdev_dbgmsg(): disk vdev '/dev/gptid/3320b76f-f807-11eb-969c-000c2995c20c': best uberblock found for spa $import. txg 6801
      spa_misc.c:411:spa_load_note(): spa_load($import, config untrusted): using uberblock with txg=6801
      spa.c:8229:spa_async_request(): spa=$import async request task=2048
      --
      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 973, in nf
          return await f(*args, **kwargs)
        File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/sync.py", line 104, in sync_all
          name = await self.middleware.call('disk.identifier_to_device', disk['disk_identifier'], sys_disks)
        File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1248, in call
          return await self._call(
        File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1216, 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 1120, in run_in_executor
          return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
        File "/usr/local/lib/python3.9/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.9/site-packages/middlewared/schema.py", line 977, in nf
          return f(*args, **kwargs)
        File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/identify_freebsd.py", line 91, in identifier_to_device
          _ident, _lunid = value.split('_')
      ValueError: too many values to unpack (expected 2)
      
      Alarm clock
      Starting file system checks:
      Setting hostuuid: f1f14d56-cfde-b537-bb67-c5af5d95c20c.
      Setting hostid: 0x2dd2fca1.
      Mounting local filesystems:.
      Beginning pools import

       

      This is the info of this Disk:

       

      root@truenas[~]# diskinfo -v ada3
      ada3
              512             # sectorsize
              3000592982016   # mediasize in bytes (2.7T)
              5860533168      # mediasize in sectors
              4096            # stripesize
              0               # stripeoffset
              5814021         # Cylinders according to firmware.
              16              # Heads according to firmware.
              63              # Sectors according to firmware.
              ST3000DM008-2DM166      # Disk descr.
              Z503DJG6        # Disk ident.
              id1,enc@n3061686369656d30/type@0/slot@4/elmdesc@Slot_03 # Physical path
              No              # TRIM/UNMAP support
              7200            # Rotation rate in RPM
              Not_Zoned       # Zone Mode
      

      ---

      ada3 at ahcich3 bus 0 scbus5 target 0 lun 0
      ada3: <ST3000DM008-2DM166 CC26> ACS-2 ATA SATA 3.x device
      ada3: Serial Number Z503DJG6
      ada3: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
      ada3: Command Queueing enabled
      ada3: 2861588MB (5860533168 512 byte sectors)
      ada3: quirks=0x1<4K>

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                caleb Caleb St. John
                Reporter:
                Jecvay Jecvay
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 0 minutes
                    0m
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour
                    1h