Displaying results from a compression analysis

After you have ran the analyzevdisk or the analyzevdiskbysystem commands to analyze volumes for the potential compression savings, you can display the results for the completed volumes with the lsvdiskanalysis command.

After a volume has been analyzed for its compression savings, you can display the results and determine whether to use compression on the volumes.
  1. In the command-line interface, enter the following command to display an analysis for a single volume:
    lsvdiskanalysis -vdisk_name | -vdisk_id 
    where -vdisk_name or -vdisk_id is either the name or identifier for the volume that you want to analyze for compression savings. The following is an example of the output for this command for a single volume:
    id 6
    name vol6
    state estimated
    started_time 150608135446
    analysis_time 150608135456
    capacity 1.00GB
    thin_size 62.18MB
    thin_savings 961.82MB
    thin_savings_ratio 93.92
    compressed_size 12.23MB
    compression_savings 49.95MB
    compression_savings_ratio 80.33
    total_savings 1011.77MB
    total_savings_ratio 98.80
    accuracy 4.97
  2. To display the compression analysis results for all the volumes on the system, enter this command:
    lsvdiskanalysis
    The following is an example of the output for this command for multiple volumes:
    id name  state     analysis_time capacity thin_size thin_savings thin_savings_ratio compressed_size compression_savings compression_savings_ratio total_savings total_savings_ratio accuracy
    0  vol0  idle                    1.00GB   0.00MB    0.00MB       0                  0.00MB          0.00MB              0                         0.00MB        0                   0
    1  vol1  idle                    1.00GB   0.00MB    0.00MB       0                  0.00MB          0.00MB              0                         0.00MB        0                   0
    2  vol2  active                  1.00GB   0.00MB    0.00MB       0                  0.00MB          0.00MB              0                         0.00MB        0                   0
    3  vol3  idle                    1.00GB   0.00MB    0.00MB       0                  0.00MB          0.00MB              0                         0.00MB        0                   0
    4  vol4  idle                    1.00GB   0.00MB    0.00MB       0                  0.00MB          0.00MB              0                         0.00MB        0                   0
    5  vol5  idle                    1.00GB   0.00MB    0.00MB       0                  0.00MB          0.00MB              0                         0.00MB        0                   0
    6  vol6  estimated 150608135456  1.00GB   62.18MB   961.82MB     93.92              12.23MB         49.95MB             80.33                     1011.77MB     98.80               4.97
    7  vol7  scheduled               1.00GB   0.00MB    0.00MB       0                  0.00MB          0.00MB              0                         0.00MB        0                   0
    8  vol8  idle                    1.00GB   0.00MB    0.00MB       0                  0.00MB          0.00MB              0                         0.00MB        0