Saturday, January 12, 2013

insf, rmsf and ioscan HP UX

Today, we faced a problem in HPVM. we have earlier assigned some LUNs from EMC storage to our rx8640 host. which is installed in our host server.
we were upto on refresh of our staging servers/ guest. for this we have to assign the Luns to our guest. the command to assign luns to guest as a disk is below :-

#hpvmmodify -p "number of the guest" -a scsi:disk::disk:/dev/rdisk/disk**

example

#hpvmmodify -p 6 -a disk:scsi:disk:/dev/rdisk/disk88


this command will assign the disk to the guest which is specified or written.

the issue we faced that we were not able to see the meta number given to us by storage team. Storage team checked at their end, but couldn't find the issue. we also checked initially, there were some meta number, later we removed some offline devices which were coming in IOSCAN -fnc DISK. we removed the offline devices or NO_HW devices.

the command for removing devices from the server is :-

# rmsf -H "device" :- example :-

two paths we have to remove  (first we will get from ioscan -fnC disk)

path type 1

#rmsf -H 0/0/0/0.5.0

path type 2 ( this path we will/can get from ioscan -m lun)

#rmsf -H 64000/0xfa00/0x68

then we have to remove the stale devices also. the stale devices.

the command to remove the stale devices is as :-

#
#rmsf -x
#

this will list all the stale devices also once if you have removed the devices using rmsf -H command.
if already run the command, then next it may not show any output like shown above.

Remove each and all devices which were earlier if given to Guest and not being used by the guest. please check and verify each and every point using

#vgdisplay -v "name of the vg"

it will represent the PV attached to the VG. so never panic before running rmsf -H/rmsf -x. check each and every device.

after that run ioscan -fnC disk and insf -e which is used to install special files. the rmsf is to remove special files adding -x is to remove stale devices with rmsf. insf -e will list the devices installed with installing special files.

combination of these commands are good and need to be run with proper care also.

#ioscan -m lun
#ioscan -fnC disk
#rmsf -H
#vgdisplay -v
#rmsf -x
#

ohh forgot to add about, hpvmstatus and hpvmmodify command.

#hpvmstatus :- this command will only show or list the guest which are there in hosts.

#hpvmstatus -P "name of the guest"

the name of the guest, we can get from hpvmstatus. the ablve command will display the disk assigned, CPU given to hosts, RAM given, network devices and other devices assigned to the guest.

it was some troubleshooting we did.

Thanks for visiting my blog, keep enjoying keep learning and sharing.

Love all. god bless all of us.

Amit Chopra





 

No comments: