Recently I was working with a buddy who was trying to find out what devices they has on a EMC VMAX which were created but not in a storage group. He was using SMC to do a whole lot of clicking on each device and checking its storage group manually. If you know me at all, you know I like to automate things – Automate All the Things! Dynamox over at Storage Monkey told me i’d automate myself out of a job one day and he may just be right! I decided to help this guy out and write something quick for him. It basically makes list of every meta on the system and if it doesn’t have a storage group associate with it, prints it out. Simple concept, but I don’t know if an easier way to do it.
[box] cincystorage@symcliserver scripts $ ./luns_without_sg.pl 9908
07BB,Unowned,400
07D8,Unowned,1800
0847,Unowned,500
0851,Unowned,500
085B,Unowned,500
087D,Unowned,500
0971,Unowned,750 [/box]
Pretty simple and useful. In this case the guy had about 24tb of meta devices removed from storage groups but had never been unbound. The vast majority of these were from devices being removed from hosts and kept around until it was clear it was no longer needed. The problem was they never went around and cleaned them up. If you’re like my buddy and don’t clean up after yourself maybe you have some space you can reclaim as well!
[box type=”download”] luns_without_sg[/box]
Comments are closed, but trackbacks and pingbacks are open.