If you find any of the replies to your question as helpful, please be so kind as to mark replies as being "helpful" or "answered". This helps us track our success with the Forum.
I'm not sure there is a 'one liner' that will give you what you want. Remember what the results of a command are, often depends from what angle you are looking at something. From a server using disk you see what disk you have been allocated, but from the array you see all disk from the array perspective. For example the array sees a 2way mirr as two disk, but the host only thinks of it as one disk.
So, if I am understanding you, you want to know what disk there is, what disk has been used (by your servers) and what disk is left.
A long time ago I wrote a script to do this for my shop back then. But it involved using the syminq command on each server, then sorting down the file because syminq will print each disk for each fabric, and then you have reduce all duplicates. Then ran O/S specific commands, in my case HPUX, to get all the disk in use in any volume group. Raw disks required very special additional effort to identify. I took that information and combined all the servers that I had gathered the disk in use and sorted it down to produce a report that had the symdev, the hostname, the vg, the lvol and the f/s. Totalling the columns was easy at that point for that report.
This gave me all disks, on all systems, in use. Run any symdev on the array using the symcli commands you have seen here gave me the totals for the arrays and then I just had to put those (and do the math) at the bottom of the report.
But I doubt you are going to want to do this.....trust me it was tedious and no fun back then. But back then there were no other products to address this.
Since EMC finally figured out how to do this and packaged it in their Storage Report product, You may want to consider the product.
Booyah2
2 Intern
•
185 Posts
1
January 21st, 2011 04:00
Hello Ivy,
Check out this document, it may have a few helpful commands for locating storage space.
https://community.emc.com/docs/DOC-8082
Forum Reminder:
If you find any of the replies to your question as helpful, please be so kind as to mark replies as being "helpful" or "answered". This helps us track our success with the Forum.
cmskbc
6 Posts
0
January 24th, 2011 00:00
Hello,
I tried the different commands of DOC-8082 but no one gives me what I am looking for:
TOTALS of used space, TOTALS of free space.
I can use a "symdev -sid xyz list > report" and then sum the last column in excel...
The value does not match storagescope totals...
Simple question, difficult to resolve with EMC² SymCLI!
Rgds,
Ivy
SKT2
2 Intern
•
1.3K Posts
0
February 13th, 2011 07:00
a smal change based on what worked for me. Rest of the cmd worked as described.
sysmdev -sid xxxx -da all list -space
symdisk -sid xxxx list -dskgrp_summary
rworkman1
26 Posts
0
February 14th, 2011 05:00
Sorry for coming late to this one...but...
I'm not sure there is a 'one liner' that will give you what you want. Remember what the results of a command are, often depends from what angle you are looking at something. From a server using disk you see what disk you have been allocated, but from the array you see all disk from the array perspective. For example the array sees a 2way mirr as two disk, but the host only thinks of it as one disk.
So, if I am understanding you, you want to know what disk there is, what disk has been used (by your servers) and what disk is left.
A long time ago I wrote a script to do this for my shop back then. But it involved using the syminq command on each server, then sorting down the file because syminq will print each disk for each fabric, and then you have reduce all duplicates. Then ran O/S specific commands, in my case HPUX, to get all the disk in use in any volume group. Raw disks required very special additional effort to identify. I took that information and combined all the servers that I had gathered the disk in use and sorted it down to produce a report that had the symdev, the hostname, the vg, the lvol and the f/s. Totalling the columns was easy at that point for that report.
This gave me all disks, on all systems, in use. Run any symdev on the array using the symcli commands you have seen here gave me the totals for the arrays and then I just had to put those (and do the math) at the bottom of the report.
But I doubt you are going to want to do this.....trust me it was tedious and no fun back then. But back then there were no other products to address this.
Since EMC finally figured out how to do this and packaged it in their Storage Report product, You may want to consider the product.
Kindest regards,
Rita