Michael Aos
Dabbler
- Joined
- Dec 16, 2023
- Messages
- 10
I'm planning to build a physical TrueNAS Scale box, but in the meantime I've been playing with it on VMware.
I've set up 2x 480GB disks for SLOG Over-Provision. Also looked found additional info on resize-command on Documentation Hub. Thinking I would resize each to 16GB and mirror them.
I've been tinkering with this for a while and eventually figured out how to remove the SLOG from the active pool. Then I figured out how to offline the drives.
admin@truenas[~]$
[truenas]>
[0%] ...
Error: Failure resizing: DISK: 'sdd,sde' SIZE: 16 gigabytes ERROR: Command '('disk_resize', 'sdd,sde', '16G')' returned non-zero exit status 1.
What the heck am I doing wrong?
[truenas]>
[0%] ...
[85%] Retasting disks...
[95%] Waiting for disk events to settle...
[100%] Retasting disks done...
SUCCESS
[truenas] storage disk>
+--------------------------------------------+------+-----------+--------+--------+--------+----------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+--------------+--------------+------+----------------------+------+---------+-----------+----------------+--------+
| identifier | name | subsystem | number | serial | lunid | size | description | transfermode | hddstandby | advpowermgmt | togglesmart | smartoptions | expiretime | critical | difference | informational | model | rotationrate | type | zfs_guid | bus | devname | enclosure | supports_smart | pool |
+--------------------------------------------+------+-----------+--------+--------+--------+----------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+--------------+--------------+------+----------------------+------+---------+-----------+----------------+--------+
| {uuid}2491dd10-cc6a-4751-8592-e696baf2e806 | sda | scsi | 2048 | | <null> | 21474836480 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | <null> | SCSI | sda | <null> | <null> | <null> |
| {devicename}sde | sde | scsi | 2112 | | <null> | 515396075520 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | <null> | SCSI | sde | <null> | <null> | <null> |
| {devicename}sdd | sdd | scsi | 2096 | | <null> | 515396075520 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | <null> | SCSI | sdd | <null> | <null> | <null> |
| {uuid}373478ba-8e96-4437-8fa6-3a13f18732c2 | sdc | scsi | 2080 | | <null> | 22001227671552 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | 13826010829014269233 | SCSI | sdc | <null> | <null> | <null> |
| {uuid}6745e816-f80f-48dd-87ff-f576aa0cf99b | sdb | scsi | 2064 | | <null> | 22001227671552 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | 3263109309399002586 | SCSI | sdb | <null> | <null> | <null> |
+--------------------------------------------+------+-----------+--------+--------+--------+----------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+--------------+--------------+------+----------------------+------+---------+-----------+----------------+--------+
I've set up 2x 480GB disks for SLOG Over-Provision. Also looked found additional info on resize-command on Documentation Hub. Thinking I would resize each to 16GB and mirror them.
I've been tinkering with this for a while and eventually figured out how to remove the SLOG from the active pool. Then I figured out how to offline the drives.
- diskname1 and diskname2 are the names of the disk you want to resize.
- number is the size (in gigabytes) to resize the disk(s) to.
- true/false in the sync property enables or disables synchronizing the new size of the disk(s) with the database cache.
- true/false in the raise_error property sets whether the disk(s) raise a CallError upon failure (true) or only log errors (false).
admin@truenas[~]$
cli
[truenas]>
storage disk resize disks={"name":"sdd,sde", "size":"16"} sync=true raise_error=true
[0%] ...
Error: Failure resizing: DISK: 'sdd,sde' SIZE: 16 gigabytes ERROR: Command '('disk_resize', 'sdd,sde', '16G')' returned non-zero exit status 1.
What the heck am I doing wrong?
[truenas]>
storage disk retaste
[0%] ...
[85%] Retasting disks...
[95%] Waiting for disk events to settle...
[100%] Retasting disks done...
SUCCESS
[truenas] storage disk>
query
+--------------------------------------------+------+-----------+--------+--------+--------+----------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+--------------+--------------+------+----------------------+------+---------+-----------+----------------+--------+
| identifier | name | subsystem | number | serial | lunid | size | description | transfermode | hddstandby | advpowermgmt | togglesmart | smartoptions | expiretime | critical | difference | informational | model | rotationrate | type | zfs_guid | bus | devname | enclosure | supports_smart | pool |
+--------------------------------------------+------+-----------+--------+--------+--------+----------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+--------------+--------------+------+----------------------+------+---------+-----------+----------------+--------+
| {uuid}2491dd10-cc6a-4751-8592-e696baf2e806 | sda | scsi | 2048 | | <null> | 21474836480 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | <null> | SCSI | sda | <null> | <null> | <null> |
| {devicename}sde | sde | scsi | 2112 | | <null> | 515396075520 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | <null> | SCSI | sde | <null> | <null> | <null> |
| {devicename}sdd | sdd | scsi | 2096 | | <null> | 515396075520 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | <null> | SCSI | sdd | <null> | <null> | <null> |
| {uuid}373478ba-8e96-4437-8fa6-3a13f18732c2 | sdc | scsi | 2080 | | <null> | 22001227671552 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | 13826010829014269233 | SCSI | sdc | <null> | <null> | <null> |
| {uuid}6745e816-f80f-48dd-87ff-f576aa0cf99b | sdb | scsi | 2064 | | <null> | 22001227671552 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | Virtual_disk | <null> | SSD | 3263109309399002586 | SCSI | sdb | <null> | <null> | <null> |
+--------------------------------------------+------+-----------+--------+--------+--------+----------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+--------------+--------------+------+----------------------+------+---------+-----------+----------------+--------+