Unsolved
This post is more than 5 years old
9 Posts
0
911
This tool finds unused storage elements on Vplex (VPLEXCleanup Candidates by NeGAM@mab13)
This tool finds unused storage elements on Vplex. Its aim is help storage admin do the cleaning task on Vplex side and then backend arrays. It performs the following controls and find Vplex elements which are candidates to delete: 1- Find unmapped virtual-volumes 2- Find distributed devices that dont have any associated virtual volume definitions 3- Find devices that dont have any associated virtual volume definitions 4- Find extents that dont have any associated device definitions 5- Find claimed volumes that dont have extent definitions 6- Find unclaimed volume definitions sample output: Found..cluster-1 Found..cluster-2 cluster-1 progressing... Find unmapped volumes section... unmapped distributed devices:(cluster-1) CSYESX_device_Symm0XXX_0087_1_vol( Symm0XXX_0087 (2T) Symm0YYY_0078 (2T) ) unmapped distributed devices:(cluster-1) PRODESX_DMS_SHARED_DISK_device_Symm0XXX_0088_1_vol( Symm0XXX_00A1 (2T) Symm0YYY_0088 (2T) ) unmapped distributed devices:(cluster-1) device_PRODESX_Symm0YYY_0086_1_vol( Symm0XXX_009F (2T) Symm0YYY_0086 (2T) ) unmapped distributed devices:(cluster-1) device_PRODESX_Symm0YYY_0087_1_vol( Symm0XXX_00A0 (2T) Symm0YYY_0087 (2T) ) Find DistributedDevices with no Virtual Volume Attr section... Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D8_1, VDEV=-( Symm0XXX_00D8 (12G) Symm0YYY_00A8 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D4_1, VDEV=-( Symm0XXX_00D4 (12G) Symm0YYY_00AC (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D0_1, VDEV=-( Symm0XXX_00D0 (12G) Symm0YYY_00B0 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00CC_1, VDEV=-( Symm0XXX_00CC (12G) Symm0YYY_00B4 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00DE_1, VDEV=-( Symm0XXX_00DE (12G) Symm0YYY_00A2 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00DA_1, VDEV=-( Symm0XXX_00DA (12G) Symm0YYY_00A6 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D9_1, VDEV=-( Symm0XXX_00D9 (12G) Symm0YYY_00A7 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D5_1, VDEV=-( Symm0XXX_00D5 (12G) Symm0YYY_00AB (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D1_1, VDEV=-( Symm0XXX_00D1 (12G) Symm0YYY_00AF (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00CD_1, VDEV=-( Symm0XXX_00CD (12G) Symm0YYY_00B3 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00DB_1, VDEV=-( Symm0XXX_00DB (12G) Symm0YYY_00A5 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D6_1, VDEV=-( Symm0XXX_00D6 (12G) Symm0YYY_00AA (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D2_1, VDEV=-( Symm0XXX_00D2 (12G) Symm0YYY_00AE (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00CE_1, VDEV=-( Symm0XXX_00CE (12G) Symm0YYY_00B2 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00DC_1, VDEV=-( Symm0XXX_00DC (12G) Symm0YYY_00A4 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D7_1, VDEV=-( Symm0XXX_00D7 (12G) Symm0YYY_00A9 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00D3_1, VDEV=-( Symm0XXX_00D3 (12G) Symm0YYY_00AD (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00CF_1, VDEV=-( Symm0XXX_00CF (12G) Symm0YYY_00B1 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00CB_1, VDEV=-( Symm0XXX_00CB (12G) Symm0YYY_00B5 (12G) ) Distributed device with no virtual volume name: (cluster-1) DDEV:device_Symm0XXX_00DD_1, VDEV=-( Symm0XXX_00DD (12G) Symm0YYY_00A3 (12G) ) Extend only claimed section... Storage Volumes only claimed or unclaimed section... Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313434:-use unclaimed(00296800XXX/0144) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314433:-use unclaimed(00296800XXX/01D3) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314431:-use unclaimed(00296800XXX/01D1) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030303638:-use unclaimed(00296800XXX/0068) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313241:-use unclaimed(00296800XXX/012A) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313245:-use unclaimed(00296800XXX/012E) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313737:-use unclaimed(00296800XXX/0177) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314136:-use unclaimed(00296800XXX/01A6) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314141:-use unclaimed(00296800XXX/01AA) cluster-2 progressing... Find unmapped volumes section... unmapped distributed devices:(cluster-2) CSYESX_device_Symm0XXX_0087_1_vol( Symm0XXX_0087 (2T) Symm0YYY_0078 (2T) ) unmapped distributed devices:(cluster-2) PRODESX_DMS_SHARED_DISK_device_Symm0XXX_0088_1_vol( Symm0XXX_00A1 (2T) Symm0YYY_0088 (2T) ) unmapped distributed devices:(cluster-2) device_PRODESX_Symm0YYY_0086_1_vol( Symm0XXX_009F (2T) Symm0YYY_0086 (2T) ) unmapped distributed devices:(cluster-2) device_PRODESX_Symm0YYY_0087_1_vol( Symm0XXX_00A0 (2T) Symm0YYY_0087 (2T) ) unmapped distributed devices:(cluster-2) CSYESX_device_Symm0XXX_0087_1_vol( Symm0XXX_0087 (2T) Symm0YYY_0078 (2T) ) unmapped distributed devices:(cluster-2) PRODESX_DMS_SHARED_DISK_device_Symm0XXX_0088_1_vol( Symm0XXX_00A1 (2T) Symm0YYY_0088 (2T) ) unmapped distributed devices:(cluster-2) device_PRODESX_Symm0YYY_0086_1_vol( Symm0XXX_009F (2T) Symm0YYY_0086 (2T) ) unmapped distributed devices:(cluster-2) device_PRODESX_Symm0YYY_0087_1_vol( Symm0XXX_00A0 (2T) Symm0YYY_0087 (2T) ) Find DistributedDevices with no Virtual Volume Attr section... Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D8_1, VDEV=-( Symm0XXX_00D8 (12G) Symm0YYY_00A8 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D4_1, VDEV=-( Symm0XXX_00D4 (12G) Symm0YYY_00AC (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D0_1, VDEV=-( Symm0XXX_00D0 (12G) Symm0YYY_00B0 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CC_1, VDEV=-( Symm0XXX_00CC (12G) Symm0YYY_00B4 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DE_1, VDEV=-( Symm0XXX_00DE (12G) Symm0YYY_00A2 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DA_1, VDEV=-( Symm0XXX_00DA (12G) Symm0YYY_00A6 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D9_1, VDEV=-( Symm0XXX_00D9 (12G) Symm0YYY_00A7 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D5_1, VDEV=-( Symm0XXX_00D5 (12G) Symm0YYY_00AB (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D1_1, VDEV=-( Symm0XXX_00D1 (12G) Symm0YYY_00AF (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CD_1, VDEV=-( Symm0XXX_00CD (12G) Symm0YYY_00B3 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DB_1, VDEV=-( Symm0XXX_00DB (12G) Symm0YYY_00A5 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D6_1, VDEV=-( Symm0XXX_00D6 (12G) Symm0YYY_00AA (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D2_1, VDEV=-( Symm0XXX_00D2 (12G) Symm0YYY_00AE (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CE_1, VDEV=-( Symm0XXX_00CE (12G) Symm0YYY_00B2 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DC_1, VDEV=-( Symm0XXX_00DC (12G) Symm0YYY_00A4 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D7_1, VDEV=-( Symm0XXX_00D7 (12G) Symm0YYY_00A9 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D3_1, VDEV=-( Symm0XXX_00D3 (12G) Symm0YYY_00AD (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CF_1, VDEV=-( Symm0XXX_00CF (12G) Symm0YYY_00B1 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CB_1, VDEV=-( Symm0XXX_00CB (12G) Symm0YYY_00B5 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DD_1, VDEV=-( Symm0XXX_00DD (12G) Symm0YYY_00A3 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D8_1, VDEV=-( Symm0XXX_00D8 (12G) Symm0YYY_00A8 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D4_1, VDEV=-( Symm0XXX_00D4 (12G) Symm0YYY_00AC (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D0_1, VDEV=-( Symm0XXX_00D0 (12G) Symm0YYY_00B0 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CC_1, VDEV=-( Symm0XXX_00CC (12G) Symm0YYY_00B4 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DE_1, VDEV=-( Symm0XXX_00DE (12G) Symm0YYY_00A2 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DA_1, VDEV=-( Symm0XXX_00DA (12G) Symm0YYY_00A6 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D9_1, VDEV=-( Symm0XXX_00D9 (12G) Symm0YYY_00A7 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D5_1, VDEV=-( Symm0XXX_00D5 (12G) Symm0YYY_00AB (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D1_1, VDEV=-( Symm0XXX_00D1 (12G) Symm0YYY_00AF (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CD_1, VDEV=-( Symm0XXX_00CD (12G) Symm0YYY_00B3 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DB_1, VDEV=-( Symm0XXX_00DB (12G) Symm0YYY_00A5 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D6_1, VDEV=-( Symm0XXX_00D6 (12G) Symm0YYY_00AA (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D2_1, VDEV=-( Symm0XXX_00D2 (12G) Symm0YYY_00AE (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CE_1, VDEV=-( Symm0XXX_00CE (12G) Symm0YYY_00B2 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DC_1, VDEV=-( Symm0XXX_00DC (12G) Symm0YYY_00A4 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D7_1, VDEV=-( Symm0XXX_00D7 (12G) Symm0YYY_00A9 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00D3_1, VDEV=-( Symm0XXX_00D3 (12G) Symm0YYY_00AD (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CF_1, VDEV=-( Symm0XXX_00CF (12G) Symm0YYY_00B1 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00CB_1, VDEV=-( Symm0XXX_00CB (12G) Symm0YYY_00B5 (12G) ) Distributed device with no virtual volume name: (cluster-2) DDEV:device_Symm0XXX_00DD_1, VDEV=-( Symm0XXX_00DD (12G) Symm0YYY_00A3 (12G) ) Extend only claimed section... Extend attr is claimed:/clusters/cluster-2/storage-elements/extents/extent_Symm0YYY_0059_1:-use claimed Storage Volumes only claimed or unclaimed section... Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313434:-use unclaimed(00296800XXX/0144) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314433:-use unclaimed(00296800XXX/01D3) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314431:-use unclaimed(00296800XXX/01D1) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030303638:-use unclaimed(00296800XXX/0068) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313241:-use unclaimed(00296800XXX/012A) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313245:-use unclaimed(00296800XXX/012E) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313737:-use unclaimed(00296800XXX/0177) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314136:-use unclaimed(00296800XXX/01A6) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314141:-use unclaimed(00296800XXX/01AA) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313434:-use unclaimed(00296800XXX/0144) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314433:-use unclaimed(00296800XXX/01D3) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314431:-use unclaimed(00296800XXX/01D1) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030303638:-use unclaimed(00296800XXX/0068) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313241:-use unclaimed(00296800XXX/012A) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313245:-use unclaimed(00296800XXX/012E) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030313737:-use unclaimed(00296800XXX/0177) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314136:-use unclaimed(00296800XXX/01A6) Storage Volume attr is claimed:/clusters/cluster-1/storage-elements/storage-volumes/VPD83T3:60000970000ZZZZ00XXX533030314141:-use unclaimed(00296800XXX/01AA)