We had discussed about deleting a Thin pool here in one of our previous post. Now we will discuss how to expand a thin pool via symcli, i.e, adding more TDATs to the pool.
We can first make a note of pool details by running,
symcfg -sid 1234 show -pool T_Pool_1 -thin -detail
We have to identify the candidate TDATs, which can be added to the pool. We have to find the nonpooled TDAT devices from the required disk group.
symdev list -sid 1234 -datadev -disk_group 3 -nonpooled
This will list all the TDATs from disk group 3 which are not part of any pool. We can select the devices as per our size requirements etc… Here we have identified the devices AAAA through BBBB as the candidate TDATs.
The below command will add those devices to the pool,
symconfigure -sid 1234 -cmd “add dev AAAA:BBBB to pool T_Pool_1, type=thin, member_state=ENABLE;” commit -v -nop
If you are not using the member_state=ENABLE , the added TDATs will be in disabled state and you will have to manually enable them by running,
symconfigure -sid 1234 -cmd “enable dev AAAA:BBBB in pool T_Pool_1, type=thin;” commit -v -nop
Once you have the devices added and enabled , you will be able to see the new TDATs under the enabled devices in show -pool command output. Now the data is there in the existing TDATs and you will have to do a re-balancing of the data in pool by running the below command,
symconfigure -sid 1234 -cmd “start balancing on pool T_Pool_1, type=thin;” commit -v -nop
You can verify the pool state by running the show -pool command. The pool state now should be rebalancing from enabled.
Now you may change the maximum subscription limit for the pool. If you don’t want over subscription for the pool, you may set the maximum subscription percent as 100, otherwise can be some values higher than 100.
symconfigure -sid 1234 -cmd “set pool T_Pool_1, type=thin, max_subs_percent=100;” commit -v -nop
So that’s it you have added the devices to pool and balanced it. Now you should be able to see the added space and will be able to bind more thin devices to your pool.