Operating System - HP-UX
1753954 Members
7444 Online
108811 Solutions
New Discussion юеВ

knowing which LUNs I can delete after deleting a volume group

 
SOLVED
Go to solution
Tim Killinger
Regular Advisor

knowing which LUNs I can delete after deleting a volume group

After deleteing an old volume group that I no longer need, how can I identify which LUNS on my va7410 can now be deleted (and which ones are still in use)?
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: knowing which LUNs I can delete after deleting a volume group

Using vgdisplay and ioscan find out which LUNs are still in use.

Get the disk special files from vgdisplay -v ...
and compare with "ioscan -fnCdisk".

Now calculate the LUN number from hardware path.

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!   
Tim Killinger
Regular Advisor

Re: knowing which LUNs I can delete after deleting a volume group

I definitely can see the hardware path and it associated device files, but within command view I don't see where there is a andy info to correlate a lun with a hardware path. I must be missing something.

From armdsp -L:

LUN 11:
Redundancy Group:_____________________1
Active:_______________________________True
Data Capacity:________________________10 GB
WWN:__________________________________60060b0000151163000b0000000000bd
Number Of Business Copies:____________0

LUN 12:
Redundancy Group:_____________________2
Active:_______________________________True
Data Capacity:________________________10 GB
WWN:__________________________________60060b0000151163000c0000000000be
Number Of Business Copies:____________0
Steven E. Protter
Exalted Contributor

Re: knowing which LUNs I can delete after deleting a volume group

Shalom,

I'd do a vgdisplay -v and grep for the disk devices you believe are ready for re-use.

Any disks in ioscan but not in volume groups are likely candidates for re-sue.

Then use pvdisplay on them to see if any LV information is on them.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor
Solution

Re: knowing which LUNs I can delete after deleting a volume group

"armtopology" command may help you too.

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!   
Chandrahasa s
Valued Contributor

Re: knowing which LUNs I can delete after deleting a volume group

HI,


strings /etc/lvmconf/vgname.conf

vgname is yours old deleted vgname

here you can find disks which under this vg

powermt display dev=all

and find lunid

if v3 and emc storage

you can use

syminq


Chandra



Torsten.
Acclaimed Contributor

Re: knowing which LUNs I can delete after deleting a volume group

These tools are not related to the VA7410 and are probably not there.


However, I think armtopology will help you.


You also can compare the hardware pathes, e.g. LUN 11 will end with


....0.1.3

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!   
Tim Killinger
Regular Advisor

Re: knowing which LUNs I can delete after deleting a volume group

armtopology... that's the answer! thanks!