Chapter 7. Volumes 311
Example 7-32 shows use of shrinkvdisksize command to reduce the size of volume 
volume_D from a total size of 80 GB by 44 GB to the new total size of 36 GB. 
Example 7-32   The shrinkvdisksize command 
IBM_2145:ITSO_CLUSTER:superuser>shrinkvdisksize -size 44 -unit gb volume_D
7.8.19  Listing volumes using the MDisk
Use the lsmdiskmember command to identify which volumes use space on the specified 
MDisk. Example 7-33 displays list of volume IDs of all volume copies that use mdisk8. To 
correlate the IDs that are displayed in this output to volume names, use the lsvdisk 
command.
Example 7-33   The lsmdiskmember command
IBM_2145:ITSO_CLUSTER:superuser>lsmdiskmember mdisk8
id copy_id
24 0
27 0
7.8.20  Listing MDisks used by the volume
Use the lsvdiskmember command to list MDisks that supply space used by the specified 
volume. Example 7-34 lists MDisk IDs of all MDisks used by volume with ID 0.
Example 7-34   The lsvdiskmember command
IBM_2145:ITSO_CLUSTER:superuser>lsvdiskmember 0
id
4
5
6
7
If you want to know more about these MDisks, you can run the lsmdisk command providing 
as a parameter the MDisk ID that is listed in the output of the lsvdiskmember command.
7.8.21  Listing volumes defined in the storage pool 
Use the lsvdisk -filtervalue command to list volumes that are defined in the specified 
storage pool. Example 7-35 shows how to use the lsvdisk -filtervalue command to list all 
volumes that are defined in the storage pool named Pool0.
Example 7-35   The lsvdisk -filtervalue command: volumes in the pool
IBM_Storwize:ITSO:superuser>lsvdisk -filtervalue mdisk_grp_name=Pool0 -delim ,
id,name,IO_group_id,IO_group_name,status,mdisk_grp_id,mdisk_grp_name,capacity,type,FC_id,FC
_name,RC_id,RC_name,vdisk_UID,fc_map_count,copy_count,fast_write_state,se_copy_count,RC_cha
nge,compressed_copy_count,parent_mdisk_grp_id,parent_mdisk_grp_name,formatting,encrypt,volu
me_id,volume_name,function
0,A_MIRRORED_VOL_1,0,io_grp0,online,0,Pool0,10.00GB,striped,,,,,6005076400F5800498000000000
00002,0,1,empty,0,no,0,0,Pool0,no,yes,0,A_MIRRORED_VOL_1,
2,VOLUME_WITH_MIRRORED_COPY,0,io_grp0,online,0,Pool0,10.00GB,striped,,,,,6005076400F5800498
00000000000004,0,1,empty,0,no,0,0,Pool0,no,yes,2,VOLUME_WITH_MIRRORED_COPY,