terrysimons
Cadet
- Joined
- Dec 3, 2022
- Messages
- 6
Hi folks,
I'm seeing something similar to https://www.truenas.com/community/threads/unable-to-import-pool-after-version-upgrade.115158/ but my tank size is 25.5T and only 53% used space, so the above thread discussion, while the same error, seems like it must be some other issue than what is described in the above thread.
My system is an ASRock Rack X570D4I-2T with a Ryzen 5950X with 128GB of DDR4 ECC with an ASUS Hyper M.2 x16 Gen 4 Card hosting 4xSamsung SSD 983 DCT M.2 960GB drives for 2x mirrored zlog and 2x cache VDEVs.
My topology is:
The specific drive makeup of my RAIDZ1 pool is:
A couple of potentially pertinent points:
IIRC I had done several upgrades over time of my TrueNAS MiniX+ system, which eventually I upgraded from TrueNAS Core to TrueNAS Scale, then I built the above system and did a replication to this new system from the MiniX+, and then applied the MiniX+ config backup to restore my share configurations and accounts.
TL;DR I had done a lot of CORE updates over time and then a migration to scale before migrating my data from my MiniX+ to the new system listed above.
I've also upgraded BlueFin on this ASRock system several times (22.12.3.1 -> 22.12.3.2 -> 22.12.4.2 -> 23.10.1). The Cobia 23.10.1 upgrade broke things, however.
Just in case my issue is different from the above (seems very similar from the error messages) here's my specific error.
When I boot up Cobia my pool is disconnected. If I import it, I get an error:
After import, my pool is online and I can access it as expected after manually restarting all services.
Since my system is well below the 80% capacity that the above thread discussion was about, but I'm still seeing import errors similar to the above post, I'm curious what other information I can gather to debug this issue.
I'm seeing something similar to https://www.truenas.com/community/threads/unable-to-import-pool-after-version-upgrade.115158/ but my tank size is 25.5T and only 53% used space, so the above thread discussion, while the same error, seems like it must be some other issue than what is described in the above thread.
My system is an ASRock Rack X570D4I-2T with a Ryzen 5950X with 128GB of DDR4 ECC with an ASUS Hyper M.2 x16 Gen 4 Card hosting 4xSamsung SSD 983 DCT M.2 960GB drives for 2x mirrored zlog and 2x cache VDEVs.
My topology is:
Code:
Data VDEVs 1 x RAIDZ1 | 7 wide | Mixed Capacity Metadata VDEVsVDEVs not assigned Log VDEVs 1 x MIRROR | 2 wide | 894.25 GiB Cache VDEVs 2 x 894.25 GiB Spare VDEVs VDEVs not assigned Dedup VDEVs VDEVs not assigned
The specific drive makeup of my RAIDZ1 pool is:
Code:
/mnt/tank: 5x3.64TB ST4000NM0035-1V4107 1x12.73TB WDC_WD140EFFX-68VBXN0 1x16.37TB WDC_WD181KRYZ-01AGBB0 Log VDEVs 2xSamsung SSD 983 DCT M.2 960GB (mirrored) Cache VDEV: 2xSamsung SSD 983 DCT M.2 960GB
A couple of potentially pertinent points:
IIRC I had done several upgrades over time of my TrueNAS MiniX+ system, which eventually I upgraded from TrueNAS Core to TrueNAS Scale, then I built the above system and did a replication to this new system from the MiniX+, and then applied the MiniX+ config backup to restore my share configurations and accounts.
TL;DR I had done a lot of CORE updates over time and then a migration to scale before migrating my data from my MiniX+ to the new system listed above.
I've also upgraded BlueFin on this ASRock system several times (22.12.3.1 -> 22.12.3.2 -> 22.12.4.2 -> 23.10.1). The Cobia 23.10.1 upgrade broke things, however.
Just in case my issue is different from the above (seems very similar from the error messages) here's my specific error.
When I boot up Cobia my pool is disconnected. If I import it, I get an error:
Code:
Error importing pool
(sqlite3.IntegrityError) UNIQUE constraint failed: storage_volume.vol_name [SQL: INSERT INTO storage_volume (vol_name, vol_guid) VALUES (?, ?)] [parameters: ('tank', '5840402838289317082')] (Background on this error at: https://sqlalche.me/e/14/gkpj) Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context self.dialect.do_execute( File "/usr/lib/python3/dist-packages/sqlalchemy/engine/default.py", line 736, in do_execute cursor.execute(statement, parameters) sqlite3.IntegrityError: UNIQUE constraint failed: storage_volume.vol_name The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/job.py", line 427, in run await self.future File "/usr/lib/python3/dist-packages/middlewared/job.py", line 465, in __run_body rv = await self.method(*([self] + args)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 44, in nf res = await f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/import_pool.py", line 186, in import_pool pool_id = await self.middleware.call('datastore.insert', 'storage.volume', { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1399, in call return await self._call( ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1342, in _call return await methodobj(*prepared_call.args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/plugins/datastore/write.py", line 62, in insert result = await self.middleware.call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1399, in call return await self._call( ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1353, in _call return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1251, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/plugins/datastore/connection.py", line 106, in execute_write result = self.connection.execute(sql, binds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1365, in execute return self._exec_driver_sql( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1669, in _exec_driver_sql ret = self._execute_context( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1943, in _execute_context self._handle_dbapi_exception( File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception util.raise_( File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 211, in raise_ raise exception File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context self.dialect.do_execute( File "/usr/lib/python3/dist-packages/sqlalchemy/engine/default.py", line 736, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: storage_volume.vol_name [SQL: INSERT INTO storage_volume (vol_name, vol_guid) VALUES (?, ?)] [parameters: ('tank', '5840402838289317082')] (Background on this error at: https://sqlalche.me/e/14/gkpj)
After import, my pool is online and I can access it as expected after manually restarting all services.
Since my system is well below the 80% capacity that the above thread discussion was about, but I'm still seeing import errors similar to the above post, I'm curious what other information I can gather to debug this issue.