1837208 Members
3521 Online
110115 Solutions
New Discussion

How to Find Unused Luns

 
Eric Jacklin
Regular Advisor

How to Find Unused Luns

Hi team,

Can anybody let me know how do i check my HP VA7410 for unused Lun.

This storage is connected with Two Host and it is containing the FS of both storage.

I would appriciate if anybody can help me out in this

3 REPLIES 3
AwadheshPandey
Honored Contributor

Re: How to Find Unused Luns

you can go to command view adm and see unused/ungrouped luns.
on OS side,
ioscan -funCdisk > /tmp/disk.used
ioscan -fnCdisk
insf -C disk
ioscan -funCdisk > /tmp/disk.all
diff /tmp/disk.used /tmp/disk.all

if disks are assigned and drives installed,
use vgdisplay -v |grep "PV N"

Regards,
It's kind of fun to do the impossible
Torsten.
Acclaimed Contributor

Re: How to Find Unused Luns

Best solution:

Refer to your documentation!
You should document what LUNs are assigned to which host and used for what application.

If you don't have, it could be hard.
Look at every system what disks are under LVM control.
Disks not used for a filesystem could even be used as "raw" space for a database for example - be careful!


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pankaj Rudrawar
Occasional Advisor

Re: How to Find Unused Luns

Hello,

Simple way.

ioscan -f (Reason:- It will detect all the disk forcefully which are not having permission and specifically required from storage perspective)

insf -evd sdisk

dv -dv 2>&1(this will give you the details of LUN's which are not assigned to any VG)

Output:-

C#t#d# lone disk(not in any vg): at