Operating System - HP-UX
1752729 Members
5853 Online
108789 Solutions
New Discussion юеВ

Find unused SAN disks and their size in GB

 
SOLVED
Go to solution
jmckinzie
Super Advisor

Find unused SAN disks and their size in GB

Can someone help to find the unused(unallocated) SAN disks in an EMC/Hitachi environment?

I would like to also get the size of those disks in GB if possible.

I have searched on the forums and haven't found much luck.

Something that would look like.

Disk allocated Size


This is an HP-UX 11.11 server.

I really appreciate the help.

I need to provide a report to my DBA of unused disks on a server.

9 REPLIES 9
Tim Nelson
Honored Contributor

Re: Find unused SAN disks and their size in GB

Usage:(this assumes you are using LVM)
For each device execute pvdisplay.

Size:
for each device execute diskinfo
jmckinzie
Super Advisor

Re: Find unused SAN disks and their size in GB

What if we are using VxFS?
Rita C Workman
Honored Contributor

Re: Find unused SAN disks and their size in GB

EMC - do yu have Solutions Enabler software?

Maybe this can get it for you in MB

symconfigure list -freespace -units MB

Just a thought,
Rita
Tim Nelson
Honored Contributor

Re: Find unused SAN disks and their size in GB

VxFS on an LVM ?

or VxFS on VxVM ??

A simple bdf will tell you what you are using. if you see all filesystem names like /dev/vgXX/XXX then you are using LVM.

If you see somthing like vxdisk ( i think ) then you are using VxVM.

If you see both then you have a mix ( ugh ).

The filesystem type of VxFS is irrelevant.

Rita C Workman
Honored Contributor

Re: Find unused SAN disks and their size in GB

Do you have ECC Console (EMC product)?

You can get something from that.

Or you can run symdev list | grep for "N/Asst'd" and then total the value of the last column in that output. Again that is in MB.
Of course that doesn't divide disk by type (RAID5;2way mirr;BCV)you'd have to sort or extract for each type & then total.

Just thinking out loud.
Rgrds,
Rita
jmckinzie
Super Advisor

Re: Find unused SAN disks and their size in GB

VxFS on an LVM ?
Rita C Workman
Honored Contributor

Re: Find unused SAN disks and their size in GB

Looking at disk at the LVM level will get you what disk has been mapped & masked to your server. You can check the output of bdf, just as Tim mentions to see what is "free".

BUT........that does not tell you what disk is free on your SAN array, that has yet to be mapped & masked to anything.

Rgrds,
Rita
Tim Nelson
Honored Contributor
Solution

Re: Find unused SAN disks and their size in GB

Rita is right as usual.

From what perspective are you asking ? From the server that has been allocated storage or simply from the global storage perspective no matter what host(s) storage is presented to.

They are both two very different perspectives.

symm commands to get symm info and hpux commands to get OS info.

And documenting this is very important in the event of a major failure.
jmckinzie
Super Advisor

Re: Find unused SAN disks and their size in GB

i did an

ioscan -funC disk | grep for all EMC/hitachi disks.

I also completed a pvdisplay on all rdsks....this left me with a few disks not associated to a VG...which i then did and diskinfo -b on to find the unallocated disks.

Thanks to all...points assigned.