Operating System - HP-UX
1753638 Members
5823 Online
108798 Solutions
New Discussion юеВ

Re: Cleanup unused UX lvols and unpresent from SAN (EVA6000)

 
SOLVED
Go to solution
Beannie
Advisor

Cleanup unused UX lvols and unpresent from SAN (EVA6000)

We have an old L2000 (used primarily for storage). I would like to clean up vg's on this old server that were used back in it's production days:

1. There are old vg's listed under /dev (the ones without *_eva) that are not used. My thought is to reactivate them and then do an lvremove. (NOTE - I just listed a couple examples versus the whole list).


drwxr-x--- 1024 Apr 22 2005 vgapp
drwxr-x--- 1024 Jul 8 2009 vgapp_eva
drwxr-x--- 96 Aug 16 2002 vgar
drwxr-x--- 96 Dec 13 2005 vgar_eva

vgdisplay*** I compacted the output ***
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vgar".

vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vgapp".

VG Name /dev/vgar_eva
VG Write Access read/write
VG Status available

VG Name /dev/vgapp_eva
VG Write Access read/write
VG Status available

2. The next project... some of the [currently active] vg*_eva's listed above can be removed as well because data was moved to other itanium servers long ago. These vg's have space allocated on the SAN which can be freed up to be used elsewhere. My thought on this task is to remove the non-required file system's, lvol's and vg's on the Unix side. Then on the SAN side (via Cmd View Eva) delete the Vdisk Folder. Will the space be put back to our EVA storage pool?

The SAN assigned storage for this host that is is still being used will be left as is.

Another unknown area I am getting into and this forum is nothing short of a great collection of teachers. Appreciate the guidance.
6 REPLIES 6
Tim Nelson
Honored Contributor

Re: Cleanup unused UX lvols and unpresent from SAN (EVA6000)

Simply vgexport the unused vgs.

Anoop Sivan
Frequent Advisor

Re: Cleanup unused UX lvols and unpresent from SAN (EVA6000)

1. Deactivate the vg's
# vgchange -a n /dev/vgar

2.Then export the vg's
# vgexport /dev/vgar


Proceed same procedure to other vg's
Beannie
Advisor

Re: Cleanup unused UX lvols and unpresent from SAN (EVA6000)

Thanks.

What about cleaning up on the SAN side? Is it simply a matter of unpresenting the LUN's, delete the Vdisk and Vdisk folder?
Sagar Sirdesai
Trusted Contributor

Re: Cleanup unused UX lvols and unpresent from SAN (EVA6000)

Hi
Are using autopath as the multipath software.
If yes then there is an autopath delete WWID command.
Once you delete the WWID you can unpresent the Vdisk from the Command Control..
Then do an ioscan on the server.



Sagar
Tim Nelson
Honored Contributor
Solution

Re: Cleanup unused UX lvols and unpresent from SAN (EVA6000)

and once the luns are unpresented cleanup the old device files

ioscan

ioscan -kfnC|awk '/NO_HW/ {print $3}'|while read list
do
rmsf -H $list
done
Beannie
Advisor

Re: Cleanup unused UX lvols and unpresent from SAN (EVA6000)

Thanks all... point assigned.

This should help me accomplish what I need.

Best Regards.