Operating System - HP-UX
1753297 Members
7130 Online
108792 Solutions
New Discussion юеВ

Re: removal of filesystem, LV, VG and vdisk

 
SOLVED
Go to solution
S.S.
Super Advisor

removal of filesystem, LV, VG and vdisk

Dear All,

Due to internal request, i need to delete the existing filesystem, LV, VG and the vdisk. In the below example Please find my steps and if anything wrong please provide your recommendations.

Example:

1. umount /data #unmount filesystem
2. lvremove /dev/vg01/lvsap #removing an LV
3. vgreduce vg01 /dev/dsk/c5t0d0 #removing a PV
we have alternate links also. Suggest me what we do for alternate links?
4. vgchange -a n vg01 #de-activating a vg
5. vgexport vg01 [Which option i opt whether vgexport or vgremove to remove the volume group. The existing volume group we won't use in future]

I would like to delete the vdisk at EVA also which is pointing to the corresponding vg. We are using EVA8000. Can i directly delete the vdisk after performing the above steps? or else i need to follow any more?

Thanks!
9 REPLIES 9
Kapil Jha
Honored Contributor

Re: removal of filesystem, LV, VG and vdisk

1. umount /data #unmount filesystem
2. lvremove /dev/vg01/lvsap #removing an LV
3. vgreduce vg01 /dev/dsk/c5t0d0 #removing a PV
we have alternate links also. Suggest me what we do for alternate links?

>> Make sure you do not have any other LV.and reduce alternate disk as well.

4. vgchange -a n vg01 #de-activating a vg
5. vgexport vg01

UNIX part is good!!
EVA part m not sure :(

BR,
Kapil

I am in this small bowl, I wane see the real world......
VVS
Regular Advisor

Re: removal of filesystem, LV, VG and vdisk

1. umount /data #unmount filesystem
2. lvremove /dev/vg01/lvsap #removing an LV
3. vgchange -a n vg01 #de-activating a vg
4. vgreduce vg01 /dev/dsk/c5t0d0
5. vgremove vg01
Work is life, you know, and without it, there's nothing but fear and insecurity.
Johnson Punniyalingam
Honored Contributor

Re: removal of filesystem, LV, VG and vdisk

>>>>5. vgexport vg01 [Which option i opt whether vgexport or vgremove to remove the volume group.<<<<<<

vgexport /dev/vgXX
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor
Solution

Re: removal of filesystem, LV, VG and vdisk

- Be sure the VDISK you want to delete is not in use. From LVM point of view but also applications if you use raw devices as it is possible with Oracle

- Connect yourself with a browser to the Command View EVA system. The URL is something like https://<2372>
- Unpresent the Vdisk.

- If active/passive :

-- From HP-UX :

--- spmgr delete WWNLUNID (for example : spmgr delete 6005-08B4-0010-2499-0002-3000-00F9-0000) or spmgr delete (for example : spmgr delete c2t10d3)

- If active/active and autopath installed :

-- From HP-UX :

--- autopath delete WWNLUNID (for example : spmgr delete 6005-08B4-0010-2499-0002-3000-00F9-0000) then ioscan.

ioscan -fn
ioscan -fnC -> show NO_HW (once disk has been unpresented from Storage to host)

look for NO_HW ->path of the vdisk

rmsf -H

Example :-

# ioscan -fnC disk |grep NO_HW

disk 58 0/2/1/0/4/0.30.0.4.0.1.3 sdisk NO_HW DEVICE HP HSV210
disk 66 0/2/1/0/4/0.30.0.4.0.1.4 sdisk NO_HW DEVICE HP HSV210


remove device file from the HPUX Server side

# rmsf -H 0/2/1/0/4/0.30.0.4.0.1.3
# rmsf -H 0/2/1/0/4/0.30.0.4.0.1.4


--- autopath display -u --> You should see the WWNLUNID in the unattached list

--- If so, autopath add 6005-08B4-0010-2499-0002-3000-00F9-0000. You sould see no more the WWNLUNID, nor in "autopath display", nor in "autopath display -u".

Hope This Helps,

Regards
Johnson
Problems are common to all, but attitude makes the difference
S.S.
Super Advisor

Re: removal of filesystem, LV, VG and vdisk

Hi Johnson,

Thanks for your steps. I have followed your steps and i removed LUNS from the system.
Now, i would like to know Can i delete the vdisk at EVA?

Also, please find the output of #autopath display -u. When i checked at autopath display that WWNLUN is not visible ie., removed.

# autopath display -u

==================================================================
HPswsp Version : A.3.0F.02F.02F
------------------------------------------------------------------
Excluded Array Types : No array type excluded
------------------------------------------------------------------

==================================================================
Deleted Arrays
==================================================================
Array ID Array Type
------------------------------------------------------------------

------------------------------------------------------------------

==================================================================

==================================================================
Array Type : EVA-AA
Array ID : 5000-1FE1-500C-DB80

------------------------------------------------------------------
Deleted Luns
------------------------------------------------------------------
6005-08B4-0007-0FCC-0001-2000-0051-0000
6005-08B4-0007-0FCC-0001-2000-004B-0000
6005-08B4-0007-0FCC-0001-2000-0045-0000
6005-08B4-0007-0FCC-0001-2000-003F-0000
6005-08B4-0007-0FCC-0001-2000-0009-0000
6005-08B4-0007-0FCC-0001-1000-0163-0000
6005-08B4-0007-0FCC-0001-1000-0172-0000
6005-08B4-0007-0FCC-0001-1000-016B-0000
6005-08B4-0007-0FCC-0001-3000-011C-0000
6005-08B4-0007-0FCC-0001-3000-0120-0000
6005-08B4-0007-0FCC-0001-3000-0124-0000
6005-08B4-0007-0FCC-0001-3000-0128-0000
6005-08B4-0007-0FCC-0001-3000-012C-0000
6005-08B4-0007-1007-0001-5000-022D-0000
6005-08B4-0007-1007-0001-5000-0231-0000
6005-08B4-0007-1007-0001-5000-0235-0000
6005-08B4-0007-1007-0001-5000-0239-0000
6005-08B4-0007-1007-0001-5000-023D-0000
6005-08B4-0007-1007-0001-5000-0241-0000
6005-08B4-0007-1007-0001-5000-0245-0000

==================================================================
Johnson Punniyalingam
Honored Contributor

Re: removal of filesystem, LV, VG and vdisk

>>Now, i would like to know Can i delete the vdisk at EVA? <<<

above Question ? is it ?? like this ??

would like to know how can i delete the vdisk at EVA ?

or

Can i delete the vdisk at EVA ?
Problems are common to all, but attitude makes the difference
S.S.
Super Advisor

Re: removal of filesystem, LV, VG and vdisk

Johnson,

My question is:
Can i delete the corresponding vdisk at EVA which i removed LUNS from system?
Johnson Punniyalingam
Honored Contributor

Re: removal of filesystem, LV, VG and vdisk

Yes, Please, so that you can "re-present" LUNS for further needs.
Problems are common to all, but attitude makes the difference
S.S.
Super Advisor

Re: removal of filesystem, LV, VG and vdisk

Thank you All.

Thank you Johnson, i have followed your steps and completly removed the LUNS from machine and as we don't need the vdisk so after unpresenting the luns i have deleted the vdisk from EVA.