This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tsm:tsm_container_reduce [2021/01/01 21:25] 127.0.0.1 external edit |
tsm:tsm_container_reduce [2023/11/14 10:18] (current) manu [DELETE STGPOOLDIRECTORY (Deleting a storage pool directory)] |
||
---|---|---|---|
Line 65: | Line 65: | ||
tsm> q container stg=deduppool f=d | tsm> q container stg=deduppool f=d | ||
</cli> | </cli> | ||
+ | |||
+ | ====== DELETE STGPOOLDIRECTORY (Deleting a storage pool directory) ====== | ||
+ | |||
+ | You can issue this command only when no containers are assigned to the storage pool directory. Issue the QUERY CONTAINER command to determine whether any containers are assigned to the storage pool directory. | ||
+ | |||
+ | To remove containers from a storage pool directory, you must issue the UPDATE STGPOOLDIRECTORY command and specify the ACCESS=DESTROYED parameter. Then, issue the AUDIT CONTAINER command and specify the ACTION=REMOVEDAMAGED parameter. Verify that the containers are removed. | ||
+ | <cli prompt='>'> | ||
+ | Protect: TSM2>select * from occupancy where stgpool_name='CONTAINER01' | ||
+ | |||
+ | NODE_NAME: | ||
+ | TYPE: | ||
+ | FILESPACE_NAME: | ||
+ | STGPOOL_NAME: CONTAINER01 | ||
+ | NUM_FILES: 0 | ||
+ | PHYSICAL_MB: | ||
+ | LOGICAL_MB: | ||
+ | REPORTING_MB: 0.00 | ||
+ | FILESPACE_ID: | ||
+ | </cli> | ||
+ | |||
+ | <cli prompt='>'> | ||
+ | Protect: TSM2> update stgpooldirectory CONTAINER01 /tsm/CONT01 access=destroy | ||
+ | Protect: TSM2> AUDIT CONTAINER stgpool=CONTAINER01 ACTION=REMOVEDAMAGED | ||
+ | Protect: TSM2> delete stgpooldirectory CONTAINER01 /tsm/CONT01 | ||
+ | </cli> | ||
+ | |||
+ | FIXME | ||
+ | |||
+ | If the deletion doesn't work, may you have pending containers related to a previous move container, so best way is to wait the reuse delay to try again, here one day | ||
+ | <cli prompt='>'> | ||
+ | Protect: TSM2>q container | ||
+ | |||
+ | Container Storage Containe- State | ||
+ | Pool Name r Type | ||
+ | ------------------------------------- ------------ --------- ----------- | ||
+ | /tsm/CONT01/09/00000000000009d1.dcf CONTAINER01 Dedup Pending | ||
+ | /tsm/CONT01/09/00000000000009e1.dcf CONTAINER01 Dedup Available | ||
+ | |||
+ | Protect: TSM2>q stg CONTAINER01 f=d | ||
+ | Storage Pool Name: CONTAINER01 | ||
+ | Delay Period for Container Reuse: 1 | ||
+ | </cli> | ||
+ | |||