Vous êtes sur la page 1sur 16

11/7/2016 HPUXtechnicaltipsforsystemadministrators

25thJune2012 HPUXvirtualMachineCheatSheet
HPVMCheatSheet

1)HowtoStartHPVM?

Onahost
a)

#vi/etc/rc.cong.d/hpvmconf
#Setto1(0)toenable(disable)IntegrityVMatbootme.
HPVM_ENABLE=1
#/sbin/init.d/hpvmstart

Note:Whenhostisrebooteditwillstartalltheguestbydefault


b) StarngHPVMontheguest

#hpvmstartPguestname

2)HowtoStopHPVM?

#shutdownhy0(gracefullyshutdown,fromguestOS)
#hpvmstopPguestname(forcedshutdownfromhostnotrecommended)

3)HowtoidenfyIdenfyHostorGuestusinghpvminfocommand?

Examples:Usinghpviminfoonahost

hpvminfo(v,V)(onhost)
#hpvminfo
hpvminfo:RunningonanHPVMhost.
#hpvminfov
VersionB.04.10.00
hpvminfo:RunningonanHPVMhost.
#hpvminfoV
hpvminfo:RunningonanHPVMhost.
#model
ia64hpserverXXXX

Example:UsinghpviminfoonaGuest
#model
ia64hpserverIntegrityVirtualMachine
#hpvminfo(OnguestOS)
hpvminfo:RunninginsideanHPVMguest.

#hpvminfov
VersionB.04.10.0
hpvminfo:RunninginsideanHPVMguest.
#hpvminfoV
hpvminfo:RunninginsideanHPVMguest.
conguredguestname:guest_hostname
Hostchassisinformaon
Hostmodelstring:ia64hpserverxxxxx
Hostserialnumber:xxxxxxxxxxxxxxxxxxxx
Hostparonident:xxxxxxxxxxxxxxxxxxxxxxx
Hostmachineident:bxxxxxxxxxxxx

http://uttamdravidam.blogspot.in/ 1/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
Hostphysicalserialnumber:xxxxxxxxxxx
Hostphysicalident:xxxxxxxxxxxxxxxxx
HostInetinformaon
Hostname:hostname.x.x.x
NumberofhostIPv6Addresses:0
NumberofhostIPv4Addresses:2
IPAddress:X.X.X.X
IPAddress:X.X.X.X
HostSCSIinformaon
Timeout:4000

C
4)Howtoconnecttoguestconsole?

#hpvmconsolePguestname

vMPMAINMENU
CO:Console
CM:CommandMenu
CL:ConsoleLog
SL:ShowEventLogs
VM:VirtualMachineMenu
HE:MainHelpMenu
X:ExitConnecon
[XXXXX]vMP>co

5)HowtocheckstatusofVM's?

#hpvmstatus

6)HowtocreateaVM?

#hpvmcreateP(name)\
O(ostype)\
a(resource/device)\
e(CPUentitlementin%)\
E(CPUentitlementinclockcycles)\
r(memoryallocationinMBorGBdefault:2GB)\
c(#cpusdefault:1)
7)Howtocheckthedevicemanagement
#hpvmdevmgmtlall(Listallentries)
#hpvmdevmgmtdrdev:/dev/vx/rdsk/rootdg/test1vol(todeleteRestricteddevice)
#hpvmdevmgmtlrdev(tocheckrestricteddevices)

8)HowtoaddmemorytoanHPVMguest?

ProcedurestoaddmemorytoanHPVMguest:
a.Displayandnotestatusofguests(onhost)
#hpvmstatus
b.Displayandnotecurrentavailableresources(onhost)
#hpvmstatuss
c.Changememoryofguest(usebelowcommandonhost)
#hpvmmodifyP<guest_name>r<total_amout_of_memory_in_GB>

Example:hpvmmodifyPguesthostnamer10G

Note:Thecommandabovewillgoinasdeferred(pending).
d.Displaydeferredmemoryassignment(onhost)
#hpvmstatusDP<guest_name>
e.Rebootsystem(onguest)
#shutdownry0
f.Displayandnotestatusofgueststoverifychange(onhost)
#hpvmstatus
g.Displayandnoteremainingresourcestoverifychange(onhost)
#hpvmstatuss

9)Howtoremoveaguest?
a)#shutdownry0(onguest)
b)#hpvmstatus(onhost,checkifallguestsare"off"state"
c)#hpvremovePguestname
hpvmremove:Removethevirtualmachine'guestname'?[n/y]:y

Confirmallretiredguestsaregone:

d)#hpvmstatus
hpvmstatus:Noguestscurrentlyconfigured.
hpvmstatus:Unabletocontinue.

http://uttamdravidam.blogspot.in/ 2/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators

HPVMCommands:
hpvmcreate:Createanewvirtualmachine
hpvmremove:Removeavirtualmachine
hpvmstart:Bootavirtualmachine
hpvmstop:Stopavirtualmachine
hpvmconsole:Connecttotheconsoleofavirtualmachine
hpvmstatus:Displayinformationaboutoneormorevirtualmachines
hpvmmodify:Modifytheattributesofavirtualmachine
hpvmnet:CreateandcontrolanIntegrityVirtualMachinesvirtual
networkswitch(vswitch)
hpvmdevmgtm:ManagethedevicesthatareassociatedwiththeVMhostand
theguests
hpvmclone:CreateaVMthatiscopyofanexistingVM
hpvmmigrate(*):MigrateaVMtoadifferenthost
hpvmcollect:Collectcrashdumps,logs,systemstatus,andconfigurationon
theVMhostorguestsforanalysis
hpvminfo:DisplayinformationaboutVMenvironment

Posted25thJune2012byHPUXandCloudComputingGeek

1 Viewcomments

25thJune2012 Howtorestoreasinglefileordirectoryfroma
make_net_recoveryarchiveHPUX

Howtorestore[]asingle[]file[]fromamake_net_recoveryarchive

LoginasrootontheIgnite/UXserver

#cd/var/opt/ignite/recovery/archives/mymachine

#ls
20091214,6:02Nameofthearchiveweextractfrom.

#gzcat./20091214,6:02|paxrfetc/rc.config.d/netconf(torecoverynetconffile)

ToRecovervardirectory,usebelowcommand.
#gzcat./20091214,6:02|paxrfvar(torecoveryvarfile)

Posted25thJune2012byHPUXandCloudComputingGeek

0 Addacomment

TroubleshootingparstatusCommandonCellBasedHPUX
25thJune2012
Servers
HowtotroubleshootParstatuscommand,that'snotrunningonHPUXcellbasedservers:

1)checkCIMProcessesrunning
psef|grepcim|grepvgrep

a.ifnot,startthemup

/sbin/init.d/cim_serverstart

2.BouncingCIM

a.stopprocesses

#/sbin/init.d/cim_serverstop

or

#cimservers

http://uttamdravidam.blogspot.in/ 3/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators

b.verifyprocessesaredown.ifnot,killthemall

#psef|grepcim|grepvgrep
#kill9<PID_CIM_PROCESS>

c.startprocesses(cimserverdshouldrespawnautomatically)

/sbin/init.d/cim_serverstart

or

cimserver

d.verifyprocessesareup.

psef|grepcim|grepvgrep

cimproviderls


5.ifyou'reusingicap,followbelowstepsBouncingICAP

a.stopprocess

psef|grepicapd(oricod)|grepvgrep

kill<processid>

(willrespawnautomatically)

b.Verifyit'sbackup

psef|grepicapd(oricod)|grepvgrep

########################################################
Ifparstatusisn'tfixedabovestepsthen"ForceReinstallWBEMServices(sameversion),makeaseparatedepotfrom
OSDVD"

a)Commentout(/etc/inittab)ICAPandCIMSERVERbeforeswinstall
becausetheprocesseswilltrytoautomaticallyrestartandmessuptheswinstall
configurationstep.

b)Reinstallallbelowproductsusingsswinstall:
nParProvider
vParProvider
UtilProvider
WBEMSvcs(couldbeautomaticallyselected)
OpenSSL(couldbeautomaticallyselected)

c).uncommentprocessesin/etc/iniitab,

initq

d).verify&resolvecimprocesses

cimproviderls

Posted25thJune2012byHPUXandCloudComputingGeek

1 Viewcomments

23rdJune2012 Howdoyoumirrorvg00onItaniumsystemsthatarerunning
B.11.23?

Howdoyoumirrorvg00onItaniumsystemsthatarerunningB.11.23?

http://uttamdravidam.blogspot.in/ 4/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
1.FromHPUX,usevgdisplaytoidentifythediskthatisinvg00.

2.Useioscantofindthesparedisk.

#vgdisplayv>vg00ison/dev/dsk/c2t1d0s2inthisexample

#ioscanefunCdisk>Let'sassumec2t0d0forthisexample

2.Createthesystem,OS,andservicepartitions.

#vi/tmp/partitionfile

EFI500MB

HPUX100%

HPSP4000MB

#idiskwf/tmp/partitionfile/dev/rdsk/c2t0d0

idiskversion:1.31

**********************WARNING***********************

Ifyoucontinueyoumaydestroyalldataonthisdisk.

Doyouwishtocontinue(yes/no)?yes<Answer"yes"andnot"y"

3.Createdevicefilesneededforthenewpartitions.

#insfeCdisk

4.Verifythepartitiontable.

#idisk/dev/rdsk/c2t0d0

5.Verifythatthedevicefileswerecreatedproperly.

#ioscanefnCdisk>c2t0d0is0/1/1/1.2.0

6.Populatethe/efi/hpux/directoryinthenewEFIsystempartition.

#mkbootel/dev/rdsk/c2t0d0

7.Changetheautofileforthemirrortobootwithoutquorum.

NOTE:Using"s1"

#echo"bootvmunixlq">/tmp/AUTO.lq

#efi_cpd/dev/rdsk/c2t0d0s1/tmp/AUTO.lq/EFI/HPUX/AUTO

NOTE:Weassumethatifwebootfromtheprimary,themirrorisfully

functionalandthereforewedon'tneedtooverridequorum.Yoursitemight

requirethatbothdisksoverridequorum.

9.Verifythecontentsoftheautofileontheprimaryandthemirror.

NOTE:Using"s1"

#efi_cpd/dev/rdsk/c2t1d0s1u/EFI/HPUX/AUTO/tmp/AUTO.pri

#efi_cpd/dev/rdsk/c2t0d0s1u/EFI/HPUX/AUTO/tmp/AUTO.alt

#cat/tmp/AUTO.pri

#cat/tmp/AUTO.alt

http://uttamdravidam.blogspot.in/ 5/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators

10.Addthenewpartitiontovg00.

NOTE:Using"s2"

#pvcreatefB/dev/rdsk/c2t0d0s2

#vgextendvg00/dev/dsk/c2t0d0s2

11.Mirroralllogicalvolumesinvg00.

NOTE:Using"s2"

#lvextendm1/dev/vg00/lvol1/dev/dsk/c2t0d0s2

#lvextendm1/dev/vg00/lvol2/dev/dsk/c2t0d0s2

Create2ndDump

#lvcreateCysyrn/dev/vg00

#lvextendL4096/dev/vg00/lvol?/dev/dsk/c?t?d?s2(AlternateBootDrive)

#lvextendm1/dev/vg00/lvol4/dev/dsk/c2t0d0s2

#lvextendm1/dev/vg00/lvol8/dev/dsk/c2t0d0s2

12.Addthenewdiskto/stand/bootconf.

NOTE:Using"s2"

#vi/stand/bootconf

l/dev/dsk/c2t1d0s2

l/dev/dsk/c2t0d0s2

13.Verifythatthenewdiskwasaddedtovg00,andthelv'sareinsync.

#vgdisplayvvg00

14.VerifythattheBDRAwasupdatedproperly.TakenoteoftheHWpathsfor

step15.

#lvlnbootv

15.AddEFIprimaryandhighavailabilitybootpathmenuentries.

#setbootp0/1/1/0.1.0<Setprimarydisk

#setbooth0/1/1/1.2.0<Setmirrordisk

#setbootbon<Setautobooton

16.Verifythattheprimaryandmirrorbootpathsareconfiguredproperly.

#setboot

17.Testthenewmirrorbybootingoffofit.

#shutdownry0

18.Select"HPUXHAAlternateBoot"totestthemirror.

http://uttamdravidam.blogspot.in/ 6/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
EFIBootManagerver1.10[14.61]Firmwarever2.21[4334]

Pleaseselectabootoption

HPUXPrimaryBoot:0/1/1/0.1.0

HPUXHAAlternateBoot:0/1/1/1.2.0

EFIShell[Builtin]

20.Verifywhichdisk/kernelyoubootedfrom.

#grep"Bootdevice"/var/adm/syslog/syslog.log

vmunix:Bootdevice'sHPUXHWpathis:0.1.1.1.2.0

21.Removetemporaryfiles.

#rm/tmp/partitionfile/tmp/AUTO*

Done.

Posted23rdJune2012byHPUXandCloudComputingGeek

0 Addacomment

23rdJune2012 HowtocloneaHPUXsystemusingmake_net_recovery?

HowcanI[]clone[]asystemusingmake_net_recovery[]?
Question
HowcanIclone[]asystemusingmake_net_recovery[]?
Answer
Therecoveryconfigurationsandarchivescreatedbymake_net_recovery[]arestoredinaseparatedirectoryontheIgniteUXserverfor
eachclient.Usingtheconfigurationandarchivecreatedbymake_net_recovery[] ononesystemtoinstalladifferentsysteminvolves
manuallycopyingsomeconfigurationfiles,andallowingNFSaccesstothesourcesystem'sarchive.
Details
Thestepstoclone[]asystemusingmake_net_recovery[]are:
Usemake_net_recovery[](ortheigniteGUI)tocreateasystemrecoveryarchiveofthesourcesystem.

LogintotheIgniteUXserver.

Ifthetargetsystemtobeinstalleddoesnotcurrentlyhaveadirectoryin/var/opt/ignite/clientsbutisupandrunning,thenusetheignite
GUItocreatethatdirectoryusingthe'AddNewClientforRecovery'action.Ifthesystemisnotrunning,youwilleitherneedtobootthe
clientfromtheIgniteUXserver(orforatapemadewithmake_boot_tape)inorderforthisdirectorytobecreated.
Copy the CINDEX [] and recovery directory from the source client to the target client directory. Note that if the target client has
previouslyusedmake_net_recovery [] then it will already have a CINDEX [] file. If the CINDEX [] file for the target system exists
already,youmaywanttosaveacopy,and/orhandeditthefiletoaddthedesiredentriesfromthesourceclient.Thecommandsbelow
willcopytherequiredfiles,youmayspecifysrcclientandtargetclientusingeithertheLANaddresses(e.g.,0x0060B04AAB30),orby
usingtheclient'shostname(whichisasymlinktotheLANaddress).

#vi/etc/hosts[Keepthenewhostnamein/etc/hostsfileonIgniteserver]
#cd/var/opt/ignite/clients/srcclient
#findCINDEX[]recovery|cpiopdvma../targetclient

GivethetargetclientNFSaccesstothearchiveofthesourcesystem.Todothis,logintotheserverthatholdsthearchive(normallythe
IgniteUXserver).
Typicallyeachclienthasitsowndirectoryforstoringthearchives,andthedirectoryisexportedonlytotheindividualclient.Inthiscase,
youwillneedtoeditthe/etc/exportsfiletoallowaccesstoboththesourceandtargetclients:
#vi/etc/exports
(append:targetclienttotheendofthesourceclient'sline)
#exportfsav
NowyoucanbootthetargetclientfromtheIgniteUXserver(usinganymethodyouwish).Thenwhenyouinstallthesystem,youcan
selectfromtherecoveryconfigurationsofthesourcesystem.

Posted23rdJune2012byHPUXandCloudComputingGeek

0 Addacomment

http://uttamdravidam.blogspot.in/ 7/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators

23rdJune2012 HowtoConfigureDynamicRootDisk(DRD)onHPUX

ConfigureDynamicRootDisk(DRD)onHPUX:

1)Makesurevg00everythingismirrored.IncludingDUMP.MirrorDUMPifyouhaveto.

Step2)Findoutdiskstoclone.EveninIA/PAsamesyntax:

/opt/drd/bin/drdclonevxoverwrite=falset/dev/dsk/c0t2d0xmirror_disk=/dev/dsk/c2t2d0

Or
/opt/drd/bin/drdclonevxoverwrite=truet/dev/dsk/c0t2d0xmirror_disk=/dev/dsk/c2t2d0
(Overwite=trueforces)

Step3)/opt/drd/bin/drdstatus

Step4)/opt/drd/bin/drdmount(dobdf,Youwillseeclonedimagefiles./var/opt/drd/mnts/sysimage_000)

Step5)Notelvlnbootv/dev/vg00&setboot

Step6)/opt/drd/bin/drdactivate(Nexttimewhensystembooted,itwillcomeuponcloneddisks)

Step7)shutdownry0

Nowsee#lvlnbootv/dev/vg00,andsetbootbotharechanged.

Topatchclonedsystem:

#/opt/drd/bin/drdruncmdswinstallxpatch_match_target=trues10.148.76.4:/depot/patch/TEST11.23\*

#/opt/drd/bin/drdactivate

#shutdownry0

Tobackoutpatching

#/opt/drd/bin/drddeactivate

References:

http://docs.hp.com/en/59924098/59924098.pdf
Posted23rdJune2012byHPUXandCloudComputingGeek

0 Addacomment

23rdJune2012 HowtogetWorldWidename(wwns)onHPUXusingfcmsutil
UseioscancommandtoSeeHBA'sandusetofcmustiltoHBA'sonline

#ioscankfnCfc
ClassIH/WPathDriverS/WStateH/WTypeDescription
=================================================================
fc00/0/10/1/0tdCLAIMEDINTERFACEHPTachyonXL2FibreChannelMassStorageAdapter
/dev/td0
fc10/0/12/1/0tdCLAIMEDINTERFACEHPTachyonXL2FibreChannelMassStorageAdapter
/dev/td1
fc21/0/2/1/0tdCLAIMEDINTERFACEHPTachyonXL2FibreChannelMassStorageAdapter
/dev/td2
fc31/0/4/1/0tdCLAIMEDINTERFACEHPTachyonXL2FibreChannelMassStorageAdapter
/dev/td3
#/opt/fcms/bin/fcmsutil/dev/td1|grepe"PTTOPT_FABRIC"e"HardwarePath"e"N_PortPort"
Topology=PTTOPT_FABRIC
N_PortPortWorldWideName=0x50060b0000301XXX

http://uttamdravidam.blogspot.in/ 8/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
HardwarePathis=0/0/X/1/0
ifTopologyis"PTTOPT_FABRIC"thatmeansHBAconnectionsareonline.

#Scripttopullwwns,

foriin`/sbin/ioscanknfCfc|grep/dev`
do
TOPOLOGY=`/opt/fcms/bin/fcmsutil$i|grepTopolo|awk'{print$NF}'`
if[$TOPOLOGY="PTTOPT_FABRIC"]then
HBAwwns=`/opt/fcms/bin/fcmsutil$i|grepe"HardwarePath"e"N_PortPort"|pasted""`
print$i$HBAwwns|awk'{print$1,"WWN="$8,"HW_PATH="$13}'
fi
done

Posted23rdJune2012byHPUXandCloudComputingGeek

0 Addacomment

23rdJune2012 HPUX11iv3HowtoReplaceaMirroredBootDisk

HPUX11iv3HowtoReplaceaMirroredBootDisk
Thetwofollowingadditionaloperationsmustbeperformedwhenreplacingamirroredbootdisk:
Bootinformationmustbeinitializedonthereplacementdisk.
Ifthereplacementrequiresrebootingthesystem,andtheprimarybootdiskisbeingreplaced,bootfromthealternateboot

disk.
Inthefollowingexample,thedisktobereplacedisatlunpathhardwarepath0/1/1/1.0x3.0x0,withdevicespecialfiles
named/dev/disk/disk14and/dev/rdisk/disk14.ThesystemisanHPIntegrityserver,sothephysicalvolumenames
mustspecifytheHPUXpartitiononthebootdisk(/dev/disk/disk14_p2and/dev/disk/disk14_p2).
Example:
1.Savethehardwarepathstothedisk.Runtheioscancommandandnotethehardwarepathsofthefaileddisk
asfollows:

#ioscanmlun/dev/disk/disk14
ClassILunH/WPathDriverS/WStateH/WTypeHealthDescription
========================================================================
disk1464000/0xfa00/0x0esdiskCLAIMEDDEVICEofflineHPMSAVol
0/1/1/1.0x3.0x0
/dev/disk/disk14/dev/rdisk/disk14
/dev/disk/disk14_p1/dev/rdisk/disk14_p1
/dev/disk/disk14_p2/dev/rdisk/disk14_p2
/dev/disk/disk14_p3/dev/rdisk/disk14_p3

Inthisexample,theLUNinstancenumberis14,theLUNhardwarepathis64000/0xfa00/0x0,andthelunpath
hardwarepathis0/1/1/1.0x3.0x0.Whenthefaileddiskisreplaced,anewLUNinstanceandLUNhardware
patharecreated.Toidentifythediskafteritisreplaced,usethelunpathhardwarepath(0/1/1/1.0x3.0x0).
2.HaltLVMaccesstothedisk.Ifthediskisnothotswappable,poweroffthesystemtoreplaceit.Byshutting
downthesystem,LVMaccesstothediskishalted,sothisstepcanbeskipped.Ifthediskishotswappable,
detachthedeviceusingtheaoptionofthepvchangecommandasfollows:

#pvchangeaN/dev/disk/disk14_p2

NOTE:OnanHP9000server,thebootdiskisnotpartitionedsothephysicalvolumereferstothe
entiredisk,nottheHPUXpartition.Usethefollowingcommand:

#pvchangeaN/dev/disk/disk14

3.Replacethedisk.Forthehardwaredetailsonhowtoreplacethedisk,seethehardwareadministratorsguide
forthesystemordiskarray.Ifthediskishotswappable,replaceit.Ifthediskisnothotswappable,shutdown
thesystem,turnoffthepower,andreplacethedisk.Rebootthesystem.Thefollowingtwoproblemscanoccur:

http://uttamdravidam.blogspot.in/ 9/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
Ifthediskfromwhichthebootisnormallydonewasreplaced,thereplacementdiskdoesnotcontaintheinformation
neededbythebootloader.Inthiscase,interruptthebootprocessandbootfromthemirrorbootdisk,whichis
configuredasthealternatebootpath.
Ifthereareonlytwodisksintherootvolumegroup,thesystemprobablyfailsitsquorumcheckas
describedinVolumeGroupActivationFailures(page123).Itcanpanicearlyinthebootprocesswith
thefollowingmessage:
panic:LVM:Configurationfailure
Inthissituation,thequorummustbeoverriddentobootsuccessfully.Dothisbyinterruptingtheboot
processandaddingthelqoptiontothebootcommand.Forinformationonthebootprocessandhow
toselectbootoptions,seetheHPUXSystemAdministrator'sGuide:ConfigurationManagement.
4.Notifythemassstoragesubsystemthatthediskhasbeenreplaced.Ifthesystemwasnotrebootedtoreplace
thefaileddisk,thenrunscsimgrbeforeusingthenewdiskasareplacementfortheolddisk.Forexample:

#scsimgrreplace_wwidD/dev/rdisk/disk14

ThiscommandallowsthestoragesubsystemtoreplacetheolddisksLUNWorldWideIdentifier(WWID)with
thenewdisksLUNWWID.ThestoragesubsystemcreatesanewLUNinstanceandnewdevicespecialfiles
forthereplacementdisk.
5.DeterminethenewLUNinstancenumberforthereplacementdisk.Forexample:

#ioscanmlun
ClassILunH/WPathDriverS/WStateH/WTypeHealthDescription
========================================================================
disk1464000/0xfa00/0x0esdiskNO_HWDEVICEofflineHPMSAVol
/dev/disk/disk14/dev/rdisk/disk14
/dev/disk/disk14_p1/dev/rdisk/disk14_p1
/dev/disk/disk14_p2/dev/rdisk/disk14_p2
/dev/disk/disk14_p3/dev/rdisk/disk14_p3
...
disk2864000/0xfa00/0x1cesdiskCLAIMEDDEVICEonlineHPMSAVol
0/1/1/1.0x3.0x0
/dev/disk/disk28/dev/rdisk/disk28

Inthisexample,LUNinstance28wascreatedforthenewdisk,withLUNhardwarepath64000/0xfa00/0x1c,
devicespecialfiles/dev/disk/disk28and/dev/rdisk/disk28,atthesamelunpathhardwarepathastheolddisk,
0/1/1/1.0x3.0x0.TheoldLUNinstance14fortheolddisknowhasnolunpathassociatedwithit.
NOTE:Ifthesystemwasrebootedtoreplacethefaileddisk,thenioscanmlundoesnotdisplay
theolddisk.
6.(HPIntegrityserversonly)Partitionthereplacementdiskasfollows:
a.Createapartitiondescriptionfile.Forexample:

#vi/tmp/idf

Inthisexample,thepartitiondescriptionfilecontainsthefollowinginformation:

3
EFI500MB
HPUX100%
HPSP400MB

Thevaluesintheexamplerepresentabootdiskwiththreepartitions:anEFIpartition,anHPUX
partition,andanHPSP.BootdisksofearlierHPIntegrityserversmighthaveanEFIpartitionofonly100
MBandmightnotcontaintheHPSPpartition.
b.Partitionthediskusingidiskandyourpartitiondescriptionfileasfollows:

#idiskf/tmp/idfw/dev/rdisk/disk28

c.Toverifythatyourpartitionsarecorrectlylaidout,enterthefollowingcommand:

#idisk/dev/rdisk/disk28

d.Createthedevicefilesforallthepartitions.Forexample:

#insfeH64000/0xfa00/0x1c(hardwareaddressfromioscancommandabove)

7.Assigntheoldinstancenumbertothereplacementdisk.Forexample:

#io_redirect_dsfd/dev/disk/disk14n/dev/disk/disk28

ThisassignstheoldLUNinstancenumber(14)tothereplacementdisk.Inaddition,thedevicespecialfilesfor
thenewdiskarerenamedtobeconsistentwiththeoldLUNinstancenumber.Thefollowingioscanmlun
outputshowstheresult:

#ioscanmlun/dev/disk/disk14
ClassILunH/WPathDriverS/WStateH/WTypeHealthDescription
========================================================================
disk1464000/0xfa00/0x1cesdiskCLAIMEDDEVICEonlineHPMSAVol
0/1/1/1.0x3.0x0

http://uttamdravidam.blogspot.in/ 10/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
/dev/disk/disk14/dev/rdisk/disk14
/dev/disk/disk14_p1/dev/rdisk/disk14_p1
/dev/disk/disk14_p2/dev/rdisk/disk14_p2
/dev/disk/disk14_p3/dev/rdisk/disk14_p3

TheLUNrepresentationoftheolddiskwithLUNhardwarepath64000/0xfa00/0x0wasremoved.TheLUN
representationofthenewdiskwithLUNhardwarepath64000/0xfa00/0x1cwasreassignedfromLUNinstance
28toLUNinstance14anditsdevicespecialfileswererenamedas/dev/disk/disk14and/dev/rdisk/disk14.
8.RestoreLVMconfigurationinformationtothenewdisk.Forexample:

#vgcfgrestoren/dev/vg00/dev/rdisk/disk14_p2

NOTE:OnanHP9000server,thebootdiskisnotpartitioned,sothephysicalvolumereferstothe
entiredisk,nottheHPUXpartition.Usethefollowingcommand:

#vgcfgrestoren/dev/vg00/dev/rdisk/disk14

9.(HPIntegrityserversonly)Placebootutilitiesinthebootarea.CopyEFIutilitiestotheEFIpartition,andusethe
devicespecialfilefortheentirediskasfollows:

#mkbootel/dev/rdisk/disk14

Addanautobootfiletothediskbootareaasfollows:

#mkboota"hpuxlq"/dev/rdisk/disk14

(HP9000serversonly)Placebootutilitiesinthebootareaasfollows:

#mkboot/dev/rdisk/disk14

Addanautobootfiletothediskbootareaasfollows:

#mkboota"hpuxlq"/dev/rdisk/disk14

10.RestoreLVMaccesstothedisk.IfthesystemwasnotrebootedinStep2,reattachthediskasfollows:

#pvchangeay/dev/disk/disk14_p2

OnanHP9000server,usethiscommand:

#pvchangeay/dev/disk/disk14

Ifthesystemwasrebooted,reattachthediskbyreactivatingthevolumegroupasfollows:

#vgchangeay/dev/vg00

NOTE:Thevgchangecommandwiththeayoptioncanberunonavolumegroupthatisdeactivatedor
alreadyactivated.Itattachesallpathsforalldisksinthevolumegroupandresumesautomatically
recoveringanydisksinthevolumegroupthathadbeenofflineorany


Posted23rdJune2012byHPUXandCloudComputingGeek

0 Addacomment

23rdJune2012 HowtoreigniteHPUXOSfromaunbootablesystemfromEFI
Shell:

HowtoRecoverHPUXUnbootableSystemUsingigniteServer.(FromEFIshell)

#LogintoHPUXConsole:

MPMAINMENU:

CO:Consoles
VFP:VirtualFrontPanel

http://uttamdravidam.blogspot.in/ 11/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
CM:CommandMenu
CL:ConsoleLogs
SL:ShowEventLogs
FW:FirmwareUpdate
HE:Help
X:ExitConnection

[hostmgmt]MP>
[hostmgmt]MP>co

Partitionsavailable:

#Name

0)host2
1)test
2)Host_Recovery
Q)Quit

Pleaseselectpartitionnumber:2
Selectnumber2.

a.SelectEFIShell[ [file:///C:/Users/uk4686/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg]
Builtin]

[http://2.bp.blogspot.com/kW4ZyemsSIY/TTKHEhhcpI/AAAAAAAAc2U/7fnGvexWd2w/s1600/Efi_shell.jpg]

[http://1.bp.blogspot.com/KFVGbLuwsss/T
TKiZfFTbI/AAAAAAAAc2c/GUtJb_7V69U/s1600/Efi_shell.jpg]


a.AtthepromptShell>Createadbprofile.
i.Note:dbprofilesometimesneedsBoothelpertobesetupinthesamesubnetboxesinthereal
world.SettingupBootHelperdocumentationwillbeproviderseparately.

Shell>dbprofilednbootignsipX.X.X.XcipY.Y.Y.YgipY.Y.Y.1m255.255.X.Xb
"/opt/ignite/boot/nbp.efi"

Sip:igniteServerIP
CIP:serverIP
GIP:gateoftheServer
missubnetmaskofserver.

Shell>lanbootselectdnbootign
01Acpi(HWP0002,400)/Pci(1|0)/Mac(XXXX)
02Acpi(HWP0002,43F)/Pci(1|0)/Mac(XXXXX)
03Acpi(HWP0002,454)/Pci(1|0)/Mac(XXX)

SelectDesiredLAN:02(MACaddressofthelancard,ifyoudontknowtheMacaddress,try
alltheMacAdddress:HitandTrialMethod)

b.ChooseanOperatingSystemtoRecover:

[http://4.bp.blogspot.com/Ac0_WSK2WEQ/T
TOENszufI/AAAAAAAAc2o/IrMWVgMhEkc/s1600/efi_shell2.jpg]

c.HostwillbeatInstallHPUXscreen,selectInstallHPUX,typeenter

http://uttamdravidam.blogspot.in/ 12/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators

[http://1.bp.blogspot.com/mn7Kh2rr2EA/T
TOPr9BgZI/AAAAAAAAc2w/Tva90cTWQcA/s1600/efi_shell3.jpg]
d.SelectAdvancedInstallation,clickOK.

[http://1.bp.blogspot.com/Edn89zPqM/T
TOYm0GERI/AAAAAAAAc24/vwrRISRpotc/s1600/efi_shell4.jpg]
e.SelectHW,lan5,NextScreenVerifytheIgniteIP/ServerIPdetails.ClickOK

[http://1.bp.blogspot.com/bSL4IaTReU/T
TOm01aokI/AAAAAAAAc3A/1cogsNFNdFs/s1600/efi_shell5.jpg]
f.IntheBasicTab:ChecktheConfigurationsdropdownmenu,selectthelatestRecoverArchive.Verify
SystemTabforIP/Gateway.

[http://1.bp.blogspot.com/yOgOvTGfjRA/T
TO9EKgrbI/AAAAAAAAc3I/M5NBPDpqjYI/s1600/efi_shell6.jpg]

gSelectGo,Within30minstoanhr:HPUX11.31willberecoverd.
Note:Intherealworld:timeframemaydeferdependingonigniteserverlocation
Posted23rdJune2012byHPUXandCloudComputingGeek

0 Addacomment

23rdJune2012 HowtoUseioconfig_dumputilityonHPUXifext_buslimit
exceedslimit255

http://uttamdravidam.blogspot.in/ 13/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
utilityioconfig_dump

1)Obtaintheexpertcenterutilityioconfig_dump.Thisutilityis

notofficiallysupportedorshippedwithHPUX.ioconfig_dumpcanbe

obtainedbycontactingtheresponsecenter.

2)Createanew"cleaned"ioconfig [] filecalledioconfig.new.

#ioconfig_dumpwo/tmp/ioconfig.new

NOTE:Thewflagwillremoveentriesnolongerinuse,basedonalocal

ioscanf.Alldevicesthatexistandareinuseshouldnotchange

instancenumbers.

3)Verifytheinstancemappingsofthenewlycreatedioconfig [] filefromstep

#2.

#ioconfig_dumprf/tmp/ioconfig.new>/tmp/io.new

#ioconfig_dumpr>/tmp/io.old

NOTE:Therflagwillreadtheprintthecontentsofthegiveioconfig [] file.

Whencomparingoldtonewverifythatanyinstancesthatarenolongerinuse

getremovedandanyhardwarestillattachedremainsatthesameinstance

number.

4)Backup/stand/ioconfigand/etc/ioconfigandcopyioconfig.newintoboth

locations.

#cp/stand/ioconfig/tmp/ioconfig.stand

#cp/etc/ioconfig/tmp/ioconfig.etc

#cp/tmp/ioconfig.new/stand/ioconfig

#cp/tmp/ioconfig.new/etc/ioconfig

5)Reboot

NOTE:Ifanyproblemsoccur,movetheoriginalioconfig [] files,

/tmp/ioconfig.standand/tmp/ioconfig.etcbackintoplaceand

reboot.

Posted23rdJune2012byHPUXandCloudComputingGeek

0 Addacomment

http://uttamdravidam.blogspot.in/ 14/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators

23rdJune2012 HowtoConfigureAutoPortAggregation(APA)SoftwareonHP
UX

APAconfiguration

1.Preparesystemforloadingsoftwareandpatches(iebringdownDB,checkNFSmounts,etc.)Note:The
driversformostnetworkcardsarealreadyinstalledwiththeO.S.in11.11(11i).
2.LoadAPAsoftwareandallpatchesindepot
1.J4240AAAutoportAggregationSoftware
2.PHNE_25833APACumulativepatch
3.Systemwillgenerateanewkernelandreboot.
AddinformationfornewIPandgateway.Usethedevicefileofyourprimarylink(Justpickoneofyournew
devices).Similartobelow
4.Identifythelancardwhereprimary/secondarycablesconnected,Networkmustbeinsamesubnet/vlan.
#UseLinkloopcommandtoTestPrimary/Secondarynetworkcablescommuciatingtoeachotherornot.
#linkloopi0MAC_ADDRESS_of_SECONDARY_CONNECTION
(Assumelan0isprimary,FindoutMAC_ADDRESS_of_SECONDARY_CONNECTIONuselanscan)

ExpectedResultMustbeOK

#vi/etc/rc.config.d/hp_apaportconfAddthefollowinglines

HP_APAPORT_INTERFACE_NAME[0]=lanXSetdevicefileof1st newcard)
HP_APAPORT_CONFIG_MODE[0]=LAN_MONITOR
#
HP_APAPORT_INTERFACE_NAME[1]=lanX(Setdevicefileof2ndnewcard)
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR

Executethefollowingcommands

#cd/sbin/init.d
#/sbin/init.d/hplmstop
HPUXtechnicaltipsforsystemadministrators
#/sbin/init.d/hpapastop search
#/sbin/init.d/hpapastart
#/sbin/init.d/hplmstart
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
#cd/etc/lanmon
#lanqueryconfs>Thiswillcreateafilecalled/etc/lanmon/lanconfig.ascii
#lanapplyconfthiswillcopytheAsciifileintoabinarycopyandstartAPA

#ifconfiglan900ThisshouldnowshowyourIPaddressyouaddedearlier.
#lanscanq>Thiswilshowyouraggregatedeviceandthedevicesitconsistsof.
Posted23rdJune2012byHPUXandCloudComputingGeek

0 Addacomment

HowtocheckMultipathingin11iv3andScripttoCheck
23rdJune2012
MultipathingonHPv3
InHP11iv3Massstoragestackprovidesnativemultipathingandagilenaming.Itsoftenachallengetocheck
SANdisksarepresentedonDualPaths(ifMultipleHBA'sareusedforredundancypurpose).ToCheckHealth
ofDevicesusebelowioscancommand.YoucandownloadmyPerlScriptthatcheckifdisksarepresentedon
bothHBA'sforredundancy.

#ioscanPhealthCdisk
ClassIH/WPathhealth
===============================
disk564000/0xfa00/0x0online
disk664000/0xfa00/0x1online
disk764000/0xfa00/0x2online
disk864000/0xfa00/0x3online
disk964000/0xfa00/0x4online
disk5464000/0xfa00/0x13online
disk5564000/0xfa00/0x14online
disk5664000/0xfa00/0x15online
disk5764000/0xfa00/0x16online
disk5864000/0xfa00/0x17online
disk5964000/0xfa00/0x18online
disk6064000/0xfa00/0x19online

http://uttamdravidam.blogspot.in/ 15/16
11/7/2016 HPUXtechnicaltipsforsystemadministrators
disk6164000/0xfa00/0x1aonline
disk6264000/0xfa00/0x1bonline
disk6364000/0xfa00/0x1conline
disk6464000/0xfa00/0x1donline
[]

UseScsimgrCommandtoSeeifdisksarezonedtodifferentpaths.

#scsimgrlun_mapD/dev/rdisk/disk62

LUNPATHINFORMATIONFORLUN:/dev/rdisk/disk62

TotalnumberofLUNpaths=2
WorldWideIdentifier(WWID)=0x600009700001926xxxxxxxxxxxxx

LUNpath:lunpath38
Class=lunpath
Instance=38
Hardwarepath=0/0/4/1/0.0x50000xxxxxxxx.0x4004000000000000
SCSItransportprotocol=fibre_channel
State=ACTIVE
LastOpenorClosestate=ACTIVE

LUNpath:lunpath45
Class=lunpath
Instance=45
Hardwarepath=1/0/4/1/0.0x50000xxxxxx.0x4004000000000000
SCSItransportprotocol=fibre_channel
State=ACTIVE
LastOpenorClosestate=ACTIVE

DownloadmytooltocheckMultipathingonHP11iv3,runasshownbelow
DynamicViewstemplate.PoweredbyBlogger.

HPUXtechnicaltipsforsystemadministrators
https://docs.google.com/open?id=0B4XHuLTbOVt3WEpHU1I1X0dnR0k search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
#shcheck_Multipath.pl

Posted23rdJune2012byHPUXandCloudComputingGeek

1 Viewcomments

22ndJune2012 HowtoUpdateKernelParametersonHP11iv3(Manually)

HowtoUpdate/ChangekernelParametersonHP11iv3
#kconfigC"SavedconfigforJan2011"sbackup
#kconfige/tmp/system.temp
#vi/tmp/system.temp(Changeyourkernelparametersinthefile)
#kconfigih/tmp/system.temp
mostoftheparameterscanbeupdateddynamicallywithoutreboot.

Tomanuallyincreaseoneparameter,usebelowcommand

#kctuneBtunable=value
example:toincreaseshmmnito4192,#kctuneBshmmni=4192

Posted22ndJune2012byHPUXandCloudComputingGeek

0 Addacomment

http://uttamdravidam.blogspot.in/ 16/16

Vous aimerez peut-être aussi