Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
InstallandRunDRSDoctoronCentOS6.5 Pre-requisites: Python2.7 Pyyaml Pymomi ThebiggesthurdletogetDRSDoctorinstalledonaCentOS6.5instanceisgettingthe prerequisitesinstalled.TheyumpackagemanagerusesPython2.6,andit’sconfiguredtobe thesystemdefaultused.ReplacingorupgradingtoPython2.7willbreakyum,soitneedstobe installedside-by-side.ThisshouldhelpyougetPython2.7downloadedandinstalledsoDRS cansuccessfullyrun.PythonisusedtoactuallyrunDRSDoctor,butPIPisusedtoinstallthe PyyamlandPymomibinariesthatDRSDoctoralsorequires.So,we’llneedtoinstallbothPIP andPython2.7. InstalltheEPELRepository FirstthingistoinstalltheExtraPackagesforEnterpriseLinux(EPEL)repository.Thisisa repositorycontainsextrapackagesforEnterpriseLinux.You’regoingtoneedthistoinstallPIP. Thegoodnewsisthiscaneasilybedoneusingyum.Simplyrun: yuminstallepel-release …done. InstallSoftwareCollectionsrepository Nextthingyou’llneedtoinstallistheSoftwareCollectionsrepository.Thisisyetanother repositoryofpre-compiledpackages.You’llneedtotogetPython2.7.Run: yuminstallcentos-release-scl …done. InstallPython2.7 Nowthatyouhavetheextrarepositoriesconfigured,youcanuseyumtoinstallPIPand InstallPython2.7.Run: yuminstallpython27 …done. InstallPIP NowinstallPIP.Run: yuminstallpython-pip …done. UpgradePIP AfterPIPisinstalled,youcanusePIPtoupgradeitself.Simplyrun: pipinstall--upgradepip …done. Easypeezysofar! Nowiswherethingsgetslightlytricky,andyouhavetodothemintheproperdirectories,orit won’twork,sopayattentiontowhatyou’redoing. Update/etc/ld.so.conf YouneedtoappendthepathforthePython2.7librarylocationtothisfile.Ifyouusedthe previousstepstoinstallPython2.7,theyumpackagemanagershouldhaveinstalledPython2.7 toopt/rh/python27/root/.IfyouinstalledPythonmanuallyorbuiltitfromsource,youprobably don’tneedthisinstruction,andyouareonyourown. Now,updatethefile.Simplyadd“/opt/rh/python27/root/usr/lib64”(noquotes)toanewline attheendofthefile.It’sreallythatsimple.IuseVI,butyouarewelcometouseanytext editoryouenjoyusing.Ifyoureallyenjoyusingatexteditor,takeamomenttore-evaluatethis iswhatyoureallywanttobedoingwithyourlife. Nowyouneedtoreloadthelibrarycache,andsearchlocations.Justrun: /sbin/ldconfig …done. Ifyouhavedoneeverythingproperlytothispoint,youshouldbeabletorunPython2.7.A simplecheckistocheckthecurrentversion.Justrun: /opt/rh/python27/root/usr/bin/python–version Inmysystem,itreturned2.7.8.Thisisgoodsincethatistheversioncurrentlystoredinthe repositoryyouaddedearlier. Nowforthelastfewsteps. InstallPyyaml Beforeyouconfinure,navigatetothe/opt/rh/python27/root/usr/bin/directory.Thisisreally important.Ifyouarenotinthisfolder,PyyamlisnotgoingtoinstallintherightplaceandDRS Doctorwillnotrun.Onceyounavigatetothisfolder,run: ./python-mpipinstallPyyaml …done Installpyvmomi Again,confirmyouareinthe/opt/rh/python27/root/usr/bin/directory.Ifnot,thenyou messedupthepreviousstep.Waytogo!Listenbetternexttime. IfusingPython2.7.9,thelatestversionofpymoniwillworkjustfine.Ifusing<2.7.9,youmust install5.5.0.2014.1.1.Toforcetheinstallof5.5.0.2014.1.1,runthefollowingcommand. ./python-mpipinstallpyvmomi==5.5.0.2014.1.1 IfyouarerunningPython>=2.7.9,justomitthe“==5.5.0.2014.1.1”partandPIPwillinstallthe latestversion. Atthispoint,youshouldhavealltheprerequisitesinstalledonyoursystemtorunDRSDoctor. RunningDRSDoctor DownloadthetarfromtheVMwareFlingssite.Onceit’sdownloaded,copytoafolderyou wishtolaunchtheapplication.DRSDoctorcanalsobeusedtomonitormultipleclusters.If youwishtouseDRSDoctortorunagainstmultipleclusters,youmustcopythecontentsinto separatefoldersforeachclusteryouwishtomonitor. Example: /root/cluster1/DrsDoctor/Drm-Diagnostic-Tool/doctor /root/cluster2/DrsDoctor/Drm-Diagnostic-Tool/doctor UnpacktheTARFile Tountarthefilerun: Tarxvf<pathtotar> Itshouldunpackthefilewiththeproperfolderstructure: <currentpath>/DrsDoctor/Drm-Diagnostic-Tool/ Settheconfiguration Theconfigurationfilecanbefoundat/DrsDoctor/Drm-Diagnostic-Tool/conf/testbed.conf. Usingyourfavoritetexteditor,editthefollowingitems: vcip=IPorhostnameoftheVCserver.IfusingSSLcertificateverification,youmustusethe fqdn. vc_usr=SSOuserwithanadministratorroleintheclusteryouwishtomonitor cluster=theclusteryouwishtomonitor.Spacesareallowedbetweenthesinglequotes ca_certs=(Optional)CApemfilelocation.IfusingSSLcertificateverification,youmustcopy therootCAcertificatesfromtheSSOorPSCserver.IfSSLcertificateverificationisnotused,the commentoutthisentireline. RunDRSDoctor YouareabletorunDRSDoctorfromanydirectoryyouwantbyusingthefollowingcommand: /opt/rh/python27/root/usr/bin/python./doctor It’sprettyimportantyoufirstrunthePythonfromthisfolderfirst,andthentheDRSDoctor binary.Otherwise,youwillrunwiththesystemdefaultversion,anditwillrefusetorun. Haveahappyday.