The dsmdu command displays space usage information for files and directories. For migrated files, the dsmdu command uses the actual size of the files that are stored in Tivoli® Storage Manager storage to calculate space usage. In contrast, the du command (provided with your operating system) uses the size of the stub files that are stored in your local file system.
For AIX® GPFS™ and Linux x86_64 GPFS file systems only:
The dsmdf and dsmdu commands can display incorrect resident file size when you migrate newly-created files. This is because GPFS is not synchronized on all nodes when you migrate files. The last block of a file is not released from the disk although the file migrated successfully. This can cause deviation from assumed disk usage if many small files are migrated and blocksize is high.
| Cluster A | Cluster B |
|---|---|
| Tivoli Storage Manager for Space Management client installed | Tivoli Storage Manager for Space Management client installed |
| File system A | File system A (from Cluster A remotely mounted on Cluster B) |
| Mounted locally | Mounted remotely |
| Space-managed by A | Not Space-managed by B |
Only file systems of the local cluster can be managed by HSM. The local Cluster A file system is space-managed by Cluster A, but cannot be space-managed by Cluster B, although it is remotely mounted on Cluster B. The Data Management Application Programming Interface (DMAPI) interface does not work for remotely mounted file systems, so incorrect values might be reported by dsmls or dsmdu.
>>-+-DSMDU-+--+---------+--+-------------------+--------------->< '-DDU---' '-options-' | .---------------. | | V | | '---directoryspec-+-'
| Task | Command |
|---|---|
| Display space usage information for the current directory and all of its subdirectories. | dsmdu |
| Display space usage information for the /migfs3/test directory and all of its subdirectories. | dsmdu /migfs3/test |
| Display space usage information for each file in the /migfs2/test directory and in all of its subdirectories. | dsmdu -a /migfs2/test |
| Display the total number of 1 KB blocks that the /migfs2/test directory and all of it subdirectories use. | dsmdu -Summary /migfs2/test |