Removing a disk from the shared file system
If you decide that your file system does not require all of the disks currently mounted on it, or that a given disk might be better deployed with a file system that requires more storage, you can easily remove a disk by using the db2cluster command.
Before you begin
Ensure that there is sufficient space on the remaining disks in the file system to accommodate the files that are on the disk being removed.
About this task
This task removes a disk from the file system and makes it available for use elsewhere.
Restrictions
- The instance owner can perform this task only if the instance owner created the file system; otherwise only the Db2 cluster services can remove a disk from a file system.
- If there is only one disk left in the file system, you cannot remove it using this method. Delete the file system instead, as described in Deleting a shared file system.
- You cannot remove the disk tiebreaker. To find out if a disk is a tiebreaker, see Retrieving file system information.
- You can remove only one disk at a time from a file system.
Procedure
To remove a disk from the shared file system, use the db2cluster command:
db2cluster -cfs -remove -filesystem filesystem-name -disk disk-nameWhat to do next
Once the disk is removed from your file system, run a rebalance operation to ensure that the file system is balanced over all remaining disks in the file system as described in Rebalancing a file system.