Start a Conversation

Unsolved

This post is more than 5 years old

3795

April 4th, 2012 14:00

Single report for LUN / Volume size and host it's mapped to?

Anybody have any suggestions on how to create a single report that shows my LUN size and servers using them?

1.4K Posts

April 4th, 2012 17:00

If you are using Unisphere Report Wizard, I reckon there is no option which gives the desired output.

However, I am unaware if it can be received by any sort of custom script.

2 Intern

 • 

20.4K Posts

April 4th, 2012 17:00

if information can be retrieved with naviseccli (which this information can)  it can scripted and molded into customer reports.

1.4K Posts

April 4th, 2012 18:00

LUN size can be obtained: naviseccli -h SPA IP getlun -capacity

Again, I dont' believe there's a switch with this command which can be added to get the host assigned to particular LUN.

I wonder, if a single comamnd can be used to get the output like:

Host Name, LUN, LUN Size, Total Space, Available Space and Used Space.

1.4K Posts

April 4th, 2012 18:00

At the mo?! I can just hope so!

Right Now, SingleTrackMind I do not think it is possible.

2 Intern

 • 

20.4K Posts

April 4th, 2012 18:00

i am not sure how you are going to get host based info like available space, used space using naviseccli.

2 Intern

 • 

1.4K Posts

April 5th, 2012 06:00

LUN usage on host side cannot be reported as the array doesn't aware this higher layer (LVM, FS, etc) behaviour, only host side reporting tools could be able to provide the answer i believe.

On the array, you can only get the left capacity of a RAID Group.

2 Intern

 • 

20.4K Posts

April 10th, 2012 08:00

from EMC there is EMC ControlCenter (although it's way overkill for what you are trying to do). Look at DPA as well ..it might have some host based reporting.

April 10th, 2012 08:00

Thanks for taking the time to think about this. Is there any reporting software out there that can get this information? Just wondering if anybody ever has to provide these sorts of metrics and how they go about it. I'm digging through scripts other people have posted to see if there is some solution. Otherwise, I will have to manually go through each storage group and manually document the disk assigned and LUN size, used, and available. Yeah...

April 10th, 2012 12:00

Thank you Dynamox, I'm not familiar with DPA. Wish there was a way to script this. This report is just ridiculous. The info is all there under reporting. It's just in two different XML files. One has servers and LUNs in a single field comma separated. The other only has the luns with the sizes in there own fields. So, I would need to somehow export the XML file, copy the comma separated data to a text file (per cluster / attached server) import into excel, break it up and correlate with the attached server section.

2 Intern

 • 

20.4K Posts

April 10th, 2012 13:00

you don't care about meta members, you just care about the total size  presented to your host ?

April 10th, 2012 13:00

Would it help! I can't even begin to explain how much it would help. I have about 10 arrays to get this info from.

I did find this:

#!/bin/sh
# Licence : GPL - http://www.fsf.org/licenses/gpl.txt

warn=$1
crit=$2
lun=$3
FILE=`ls -tr /var/log/EMCcapacity*.log | tail -1`
shostname=`/usr/bin/hostname`
line=`grep "${shostname}:SID=$lun " $FILE | tail -1`
cap_lable=`echo $line | awk '{print $49}' | awk -F"=" '{print $1}'`
capacity=`echo $line | awk '{print $49}' | awk -F"=" '{print $2}'`
if [ $? -eq 0 -a $capacity -ne 0 ]; then
  used_lable=`echo $line | awk '{print $50}' | awk -F"=" '{print $1}'`
  used=`echo $line | awk '{print $50}' | awk -F"=" '{print $2}'`
  percetage=`echo "$used * 100 / $capacity" | bc`
  if [ $percetage -ge $crit ]; then
    RETVAL=2
  elif [ $percetage -ge $warn ]; then
    RETVAL=1
  else
    RETVAL=0
  fi
  RETSTR="The usage is ${used}/${capacity} = ${percetage}% used"
else
  RETVAL=3
  RETSTR="There is an error, please investigate."
fi

echo $RETSTR
exit $RETVAL

April 10th, 2012 13:00

This is what I'm trying to accomplish using the Celerra LUNS as example:

Attached Servers Capacity in GB LUN & Meta LUN Name
Celerra_AMDF-AP-NAS01 11 Celerra_AMDF-AP-NAS01_0_root_disk (NAS/OS)
11 Celerra_AMDF-AP-NAS01_1_root_ldisk (NAS/OS)
651.212 Celerra_AMDF-AP-NAS01_16_d7
651.212 Celerra_AMDF-AP-NAS01_17_d8
2751.447 Celerra_AMDF-AP-NAS01_18_d9
2751.447 Celerra_AMDF-AP-NAS01_19_d13
2 Celerra_AMDF-AP-NAS01_2_d3 (NAS/OS)
2751.447 Celerra_AMDF-AP-NAS01_20_d10
2751.447 Celerra_AMDF-AP-NAS01_21_d14
2048 Celerra_AMDF-AP-NAS01_216_d19
1834.298 Celerra_AMDF-AP-NAS01_22_d11
2751.447 Celerra_AMDF-AP-NAS01_23_d15
1834.298 Celerra_AMDF-AP-NAS01_24_d12
2751.447 Celerra_AMDF-AP-NAS01_25_d16
1834.298 Celerra_AMDF-AP-NAS01_27_d17
1834.298 Celerra_AMDF-AP-NAS01_29_d18
2 Celerra_AMDF-AP-NAS01_3_d4 (NAS/OS)
2 Celerra_AMDF-AP-NAS01_4_d5 (NAS/OS)
32 Celerra_AMDF-AP-NAS01_5_d6 (NAS/OS)
Total in GB 27256.298

April 10th, 2012 13:00

Yes,

I just realized that I have meta luns to contend with now as well. Ugg. But yest that's exactly what I'm trying to achieve plus the meta luns..

2 Intern

 • 

20.4K Posts

April 10th, 2012 13:00

i can write something in perl and write output into csv, will that work ?

April 10th, 2012 13:00

The formatting can be anything, just need to get this data into a spreadsheet somehow.

No Events found!

Top