Scan data volumes with the vpfs_stats utility
The vpfs_stats utility scans the data volumes and calculate the disk space usage consumed by vpfsd. It can help to calculate the data disk space which consumed by the data comes from vpfsd or universal share.
In the following cases, the disk space size will be shown as vpfsd space:
Data has been written by vpfsd but backup images consume that data.
All universal share/vpfsd data has been deleted, but there is still some universal share backup images.
The following example provides the format of the vpfs_stats utility:
vpfs_stats [options]...
Options:
--data-volume [--local] [--cloud]
Displays the VPFS data volume usage statistics. By default it displays the statistics for local storage usage and cloud storage usage. To display the statistics for local usage only, use the --local option. To display the statistics for cloud usage only, use --cloud option.
-help --help
Displays help text for the utility.
Here is an example of vpfs_stats --data-volume:
[root@hostname ~]# /usr/openv/pdde/vpfs/bin/vpfs_stats --data-volume Start to scan data volume /msdp/vol1/data Start to scan data volume /msdp/vol2 Finished scan data volume /msdp/vol1/data Finished scan data volume /msdp/vol2 ==================== Data volume summary ============================= Number of data volume : 2 Data volume 1 : /msdp/vol1/data Number of data container groups : 6 Number of vpfs data container groups : 4 Vpfs data size : 2958014398 bytes(2.8GB) Data volume 2 : /msdp/vol2 Number of data container groups : 4 Number of vpfs data container groups : 4 Vpfs data size : 103 bytes(0.0MB) All Data volumes Number of data container groups : 10 Number of vpfs data container groups : 8 Vpfs data size : 2958014501 bytes(2.8GB) ==================== Vpfs cloud cache summary ======================== Number of data volume : 2 Data volume 1 : /msdp/vol1/data Number of data container groups : 0 Number of vpfs data container groups : 1 Vpfs data size : 4533165734 bytes(4.2GB) Data volume 2 : /msdp/vol2 Number of data container groups : 0 Number of vpfs data container groups : 1 Vpfs data size : 5129660901 bytes(4.8GB) All Data volumes Number of data container groups : 0 Number of vpfs data container groups : 2 Vpfs data size : 9662826635 bytes(9.0GB) ==================== Overall volume usage summary ==================== Number of data volume : 2 Data volume 1 : /msdp/vol1/data Number of data container groups : 6 Number of vpfs data container groups : 5 Vpfs data size : 2958014398 bytes(7.0GB) Data volume 2 : /msdp/vol2 Number of data container groups : 4 Number of vpfs data container groups : 5 Vpfs data size : 103 bytes(4.8GB) All Data volumes Total number of data container groups : 10 Total number of vpfs data container groups : 10 Total vpfs data size : 12620841136 bytes(11.8GB)