Operating System - HP-UX
1825766 Members
2131 Online
109687 Solutions
New Discussion

LUN device file management

 
SOLVED
Go to solution
Lonny Balderston
Frequent Advisor

LUN device file management

Greetings. What is the proper way to?: a) install newly created Virtual Array LUN device files; I think it is 1) insf -e 2) ioscan -fnC disk, and b) remove deleted Virtual Array LUN device files. I ask because, on HP 4440 running HP-UX 11.11 and connected EVA5000 running vcs 4.007, I recently removed all EVA LUNs (no, 4440 is not production) using Command View, and device files are still present on 4440 when issuing "ioscan -fnC disk". Thank you.
3 REPLIES 3
Jaime Bolanos Rojas.
Honored Contributor
Solution

Re: LUN device file management

Lonny,

Once all work of Lun creation is done at the EVA, the SAN should be able to present that as a single drive to HP-UX.

Doing an insf -e should make it visible, and to remove it an rmsf should get rid of the device.

Regards,

Jaime.
Work hard when the need comes out.
A. Clay Stephenson
Acclaimed Contributor

Re: LUN device file management

It depends. Consider the case where a device fails and then you install a new device in a different slot. Later you replace the failed device. You would like the replacement drive to be just that : a replacement with the same device node assignments. The system has a file where this data are stored. If you actually want to remove a device and make the system completely forget about the devices then simply rm'ing /dev/xxx won't work because the iotable remains. You use rmsf to remove device files and the corresponding iotable entry.

Now to answer your question about brand, spanking new devices:
ioscan -fn
insf
You should then be ready to use the LUN's as raw devices or as VxVM or LVM disks.
If it ain't broke, I can fix that.
Sumit Ghosal
Frequent Advisor

Re: LUN device file management

a)To Install disk devices, do - ioscan -fnC disk; insf -C disk

b) For removing the Disk Device Files, use the below script. -

for i in `ioscan -funC disk | grep -i no_hw |awk '{print $3}'`;do rmsf -H $i;done

thanks