Академический Документы
Профессиональный Документы
Культура Документы
ServersandtwoClient
withfailover
Author:SiddharthaSSinha
Rev:1.0
Checkmywebsitewww.sinhass.comformoretechnicalstuffs.
TestScenario:
TwoVIOserverswillhavethesephysicalresources
4GBofmemory,
2CPU(uncappedwithweightof128)
20virtualprocessors
1quadportGigabitEthernetadapter(Networkcableonlyonport0)
FewSASadapterwithlocaldisks
TwoVIOClientswillhavethesephysicalresources
4GBofmemory
4CPU
VirtualdiskwillbeprovidedbylogicalvolumecreatedineachVIOServer.I
willcreateoneseparateVolumeGroupforthispurposeineachVIOServer.
VGNamewillbeclientsrootvgandlvnameswillbetest1rootlv&test2rootlv
InbothVIOServer
WewillloadthebothVIOserversandtwotestVIOCLPARsfromaNIMServer.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Oncecompletedtestvio1willlooklikethis
testvio2willlooklikethis
test1lparwilllooklikethis
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
andtest2lparwilllooklikethis
Nowwehavetheplansowewillbuildthetestvio1servernow.
STEPSTOBUILDTESTVIO1SERVER
In the HMC I will click on the + sign beside Systems Management then again I
will click on Servers and then ServerName. Next screen will be like this. Now I
willexpandConfiguration>CreateLogicalPartition>VIOServer
NextIselectedSharedprocessor.ThisServerhas48CPUbutIwantedtotry
SharedCPUstuffssoIdecidedtouseit.AndIwillclickNextnow.
Ok,IwillselectthePhysicalI/OswhateverIplannedbeforeforthisServer.And
thenIwillclickonthatlittleAddasrequiredbuttonbeforeIclickonnext.IfI
forget to click on Add as required I will have no I/O at all and I will have to
comebackanddothisagain.AsIdidsoIwillclickonNextButton.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Now I always like to add more numbers so I will bump Maximum Virtual
Adapters to50.20wouldbesufficient butIam planning tocreatesome more
VIOCLparstodosomemoretestafterthisfailovertest.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
I just clicked Next button here as I am not going to use any of these Logical
HostEthernetAdaptersformytest.
Samethinghere.IwilljustclickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
IwillnotchangeanythinghereasIwantNormalModeasdefault.
Looksgoodtome.SoIwillclicktheFinishButton.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
NowIamgoingtoactivateit.
NowitopenedanotherwindowsandIwillselectSMSandwillclickOK.
Anyway I already came back and started testvio1 server to boot from network
andhereisthescreenshot
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Now I can see how and why I needed that lpp_source. This VIO 2.2 version
doesmissingsomesoftwareordrivers requiredfor thisMMB(latestPower7)
Serveranditisloadingthemnow.
Now I will go and build testvio2 same way I did testvio1 and load it from NIM
Server. Now bothof myVIOServers built.Iamgoing tologinas padminandit
willaskmetoChangethepassword.SoIwillchangeit.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
FirstthingafterloggingintobothVIOserversIwilldoisrunthiscommand
$licenseaccept
NextthingIwilldoistocreatebothofmytestlpars,test1lparandtest2lpar.
I will go to Configuration> Create Logical Partition and will click on AIX or
Linux.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Iwillnameisastest1lparandclickNextbutton
ProfilenameIwillselectasNormalandwillclicknext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
I am going to use dedicated Processor for this lpar so I will click on Dedicated
andthenIwillclickonNext.
IwilldosamethingforMemoryandclickonnext
AsalltheI/OswillbeprovidedbytheVIOServersIwillselectnothinghereand
willjustClickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Iwillbumpupthenos.ofMaximumvirtualadaptersfrom10to20andclickon
Next
IwillselectnothinghereandclickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
IwillselectnothingheretooandclickonNext
IwontchangeanythinghereandwilljustclickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
IwillverifyCPUandMemoryfromthescreenandwillclickonFinish
Hereismynewlpar.Iwillleaveitaloneandwillbuildthenextonesameway.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Nowallofmylparsbuilt.
Now I will select test1vio and change the profile to add the virtualadapters. I
will select The lpar and click on Manage Profiles under Configuration
menu.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
NowIwillclickonNormal.
Sometimes for the older servers I had to click on the check Box under Select
and then had to go to Actions Button and then Edit button to get into Next
screen.IwillclickonVirtualAdaptersButtonhere.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
NowIaminVirtualAdapterscreen.IwillclickonActionsbuttonherethen
CreateVirtualAdapterandthenEthernetAdapter
Iwilldoagaindothesameagainfornextadapter
ActionsCreateVirtualAdapterEthernetAdapter
And thistimeIwillselectAdapterIDas11andVLAN 99andnothingelse.This
willbeusedasControlChannelVirtualEthernet.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
NowIwillclickOK,andthenIwillshutdowntestvio1lpar.
$shutdownforce
OncethislparisdownIwillreactivateitfromHMC.
Now I will select testvio2 and will do the same thing. For 1st Virtual Ethernet
adapter idI willuse 12,VLANID1,I will checkonThisadapterisrequiredfor
partition activation. I will also select This adapter is Required for partition
activationcheckbox.AndmostimportantforthisboxisTrunkPrioritywill
be2
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Next adapter ID will be 13, VLAN ID 99 and I will select This adapter is
requiredforpartitionactivation
NowIwilladdtheVirtualSCSIAdapters.Finalscreenwillbelikethis.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
NowIwillshutdownthislpartestvio2
$shutdownforce
AndthenIwillactivateitfromHMC.NowIwilllogintotestvio1usingpadmin
idandpasswordIsetbeforeandwillrunthiscommand
$lsdevvirtual
SoIgotent4andent5asvirtualEthernetandvhost0andvhost1asvirtualscsi
adapter Now I will create shared Ethernet adapter using ent4 and ent5. But
before that I have to remove existing IP address as I installed this server from
NIMServer.TodothatIwillrun
rmtcpipallandselectyandenter.
Now I will go back to testvio2 and do the same things there before I start the
clientlpars.NowIwilladdtheVirtualAdapterstotest1lpar1andtest2lpar
I will add the Virtual Ethernet and both virtual scsi adapters using the same
methodIdidforVIOServers.VirtualEthernetAdapterIdidasbelow
For the 1st Virtual SCSI Adapters I did as below which will be connected to
testvio1
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
For the 2nd Virtual SCSI Adapters I did as below which will be connected to
testvio2
Finalsettingwilllooklikethis.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Samethingfortest2lpar.SettingsbelowforEthernet
Andfor1stVirtualSCSIAdapterconnectedtotestvio1
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
HereiswhatIdidforthe2ndVirtualSCSIAdapterconnectedtotestvio2
Now both of my VIOC Lpars built. I will load them from NIM Server. Now to
make things easier for me I used hdisk0 for both test1lpar and test2lpar from
testvio1Server.LaterIwillmirrorthemwithhdisk1whichcomesfromtestvio2
server.NIMloadcompletednowandIwilllogintotheconsolefortest1lparas
rootandnopassword.Iwillchecktheconfigurationnow
#lsdevCcdisk
#lscfgvplhdisk0
#lscfgvplhdisk1
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Fromtestvio1server
Fromtestvio2
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Backtotest1violparandIwillverifydisksizes
NowIwilllogintotest2lparandwilldothesame
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Nowbacktotestvio1and
Nowontesvio2
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Everythingislookinggood.Backtotest2lparandwillcheckthedisksizes
NextthingIwilldoIwillgobacktotest1lparandmirrortherootvg
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
SofirstIwillextendtherootvgtohdisk1
#extendvgfrootvghdisk1
# mirrorvg S m rootvg hdisk1 ( This command will run in the background
and will take a while) Now I will go back to test2lpar and do the same thing.
Once mirroring completed in both test1lpar and test2lpar I will change the
bootlist
#bootlistmnormalhdisk0hdisk1
Now I will run bootlist m normal if both entries doesnt look exactly the
samethenIwillRunbosbootad/dev/hdisk1andrerunbootlistmnormal
Hopefully this time it will be OK. Now I will check the rootvg status on both
test1lpar
Nowontest2lpar
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Iwillshutdownviotest1servernow.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
WillverifyfromHMCScreen
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Nowwewillseeiftheserversstillcanpingoutsideornot.
Iwillchecktest2lparnow
This lpar also survived a reboot though hdisk0 not available and network also
working. So we know now that both of my VIOC lpars will work even when
testvio1 failed.NowI will run the same test to check whether these two lpars
can survive a reboot when testvio2 fails. But before that I need to bring
testvio1 online, resync the mirror and then I will test. So I am activating
testvio1 now. Once testvio1 is up I will run cfgmgr on both test1lpar and
test2lparandrerunthosecommands
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
Looksgood,nowontest2lpar
Samethingontest2lpar
test2lparissynced
NowIwillshutdowntestvio2
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
test1lparrootvgstalestatus
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
test2lparlvstalestatus
FewmorestatusafterIrebootedtest1lpar
Conclusion:SofinallyIcouldtesttheVIOfailoversuccessfully.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha