I try to expand and pool which was initially created with Truenas CORE as as 6x4TB RAIDZ2
Over the time I replaced 2 disks with 12TB, and later on 2 with 16TB, now replaced the last 2 also with 16TB disks. Inbeween I also migrated(new install and import the pool) from CORE to SCALE.
Autoexpand didn’t work as expected even it’s on.
If I press the Expand button, I get an error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 560, in __run_body
rv = await self.method(*args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 174, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 48, in nf
res = await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/expand.py", line 61, in expand
await self.expand_partition(part_data)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/expand.py", line 94, in expand_partition
await self.middleware.run_in_thread(wipe_label)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 622, in run_in_thread
return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 619, 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/pool_/expand.py", line 91, in wipe_label
f.seek(wipe_start)
OSError: [Errno 22] Invalid argument
It also appears that the partitions are in a disorganized state.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 10.9T 0 disk
├─sda1 8:1 0 2G 0 part
└─sda2 8:2 0 10.9T 0 part
sdb 8:16 0 14.6T 0 disk
└─sdb1 8:17 0 3.6T 0 part
sdc 8:32 0 14.6T 0 disk
├─sdc1 8:33 0 2G 0 part
└─sdc2 8:34 0 3.6T 0 part
sdd 8:48 0 14.6T 0 disk
└─sdd1 8:49 0 14.6T 0 part
sde 8:64 0 14.6T 0 disk
├─sde1 8:65 0 2G 0 part
└─sde2 8:66 0 3.6T 0 part
sdf 8:80 0 10.9T 0 disk
└─sdf1 8:81 0 3.6T 0 part
I’ on the latest version 25.04.1.
sda and sdf was the first replacement done under CORE.
sdc and sde are done later, not sure, but i think already been done under SCALE
sdb and sdd are now the last one done with latest SCALE version.
Any hint, to get the pool expanded to the 12TB devices?