Decreasing the size of a file system
You can decrease (shrink) the size of the file system.
To decrease the size of the file system, it must be online. If the file system is not online, an error message is displayed, and no action is taken.
You cannot decrease the size of a file system if a rollback exists. Delete the rollback first before using the Storage> fs shrinkto or Storage> fs shrinkby commands.
To decrease the size of a file system to a specified size
- To decrease the size of a file system, enter the following:
Storage> fs shrinkto tier_name fs_name new_length [balanced]
Note:
If you have configured continuous replication, the storage fs shrinkto command does not reduce the SRL size even if the file system size is reduced.
To decrease the size of a file system by a specified size
- To decrease the size of a file system, enter the following:
Storage> fs shrinkby tier_name fs_name length_change [balanced]
Note:
If you have configured continuous replication, the storage fs shrinkby command does not reduce the SRL size even if the file system size is reduced.
fs_name
Specifies the file system whose size decreases. If you specify a file system that does not exist, an error message is displayed.
tier_name
Specifies the tier name.
new_length
Specifies the size to decrease the file system to. The size that you specify must be a positive number, and it must be smaller than the size of the existing file system. If the new file system size is not smaller than the size of the existing file system, an error message is displayed, and no action is taken.
length_change
Decreases the file system by a specified size. The size that you specify must be a positive number, and it must be smaller than the size of the existing file system. If the new file system size is not smaller than the size of the existing file system, an error message is displayed, and no action is taken.
Note:
Decreasing the size of a file system can take a long time if there are many extents allocated in the shrink area, as these extents have to be relocated to other areas in the file system.