Operating System - HP-UX
1833777 Members
2134 Online
110063 Solutions
New Discussion

Re: remove fs, lv, vg ...

 
Tomas Helsén_1
Occasional Advisor

remove fs, lv, vg ...

Hi,

We are running HPUX 11iv2 on Itanium rx4640, the file system is created with disk from EVA 3000

I'm removing a filesystem that are not in use by performing this steps..

1. sam
remove filesystem

2. from commandline
# lvremove -f /dev/vg11/lvol11

3. from commandline
# vgchange -a n /dev/vg11

4. from commandline
# vgexport /dev/vg11

5. In EVAmgr i unpresent the Vdisk.

6. from commandline
rmsf -H 255/255/0/0.6


Status after this is
disk 9 255/255/0/0.6 sdisk NO_HW DEVICE HSV100 HP

How do I remove this entry? do I have to reboot the system?

BR
Tomas
5 REPLIES 5
SANTOSH S. MHASKAR
Trusted Contributor

Re: remove fs, lv, vg ...

Hi,

If ur intention is to remove the file system
then

# lvremove -f is sufficient,

it will also remove device files for corresponding LVs.

but if u want to get rid of

disk 9 255/255/0/0.6 sdisk NO_HW DEVICE HSV100 HP

this line , then u have to reboot the system,
but is it so important to get rid of that line?


-Santosh
Luk Vandenbussche
Honored Contributor

Re: remove fs, lv, vg ...

Tomas,

Are you running securepath on your servers?

If yes

spmr display (check for device removed lun)

spmgr delete cxtydz

ioscan -fnC disk
insf -e
ioscan -funC disk
Tomas Helsén_1
Occasional Advisor

Re: remove fs, lv, vg ...

OK spmgr display gives this..
TGT/LUN Device WWLUN_ID H/W_Path #_Paths
0/ 6 c22t0d6 6005-08B4-0001-081B-0001-8000-0077-0000 2

Controller Path_Instance HBA Preferred? Path_Status
P66C5D3AAOK00X no
c21t0d7 td1 no ****FAILED

Controller Path_Instance HBA Preferred? Path_Status
P66C5D3AAOK06I YES
c20t0d7 td1 no ****FAILED


What to do?

# spmgr delete ????

tnx
Luk Vandenbussche
Honored Contributor

Re: remove fs, lv, vg ...

spmgr delete c22t0d6
John Guster
Trusted Contributor

Re: remove fs, lv, vg ...

next reboot that entry will be gone.