How I Built Two Failover VIO Servers
Transcript of How I Built Two Failover VIO Servers
-
8/12/2019 How I Built Two Failover VIO Servers
1/53
HowtocreatetwoVIO
Serversand
two
Client
withfailover
Author:SiddharthaSSinha
Rev:1.0
Checkmywebsitewww.sinhass.comformoretechnicalstuffs.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
2/53
TestScenario:
TwoVIO
servers
will
have
these
physical
resources
4GBofmemory,
2CPU(uncappedwithweightof128)
20virtualprocessors
1quadportGigabitEthernetadapter(Networkcableonlyonport0)
FewSASadapterwithlocaldisks
TwoVIOClientswillhavethesephysicalresources
4GBofmemory
4
CPU
VirtualdiskwillbeprovidedbylogicalvolumecreatedineachVIOServer.I
willcreateoneseparateVolumeGroupforthispurposeineachVIOServer.
VGNamewillbeclientsrootvgand lvnameswillbetest1rootlv&test2rootlv
InbothVIOServer
WewillloadthebothVIOserversandtwotestVIOCLPARsfromaNIMServer.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
3/53
Oncecompletedtestvio1willlooklikethis
testvio2willlooklikethis
test1lparwilllooklikethis
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
4/53
andtest2lparwilllooklikethis
Nowwehavetheplansowewillbuildthetestvio1servernow.
STEPSTOBUILDTESTVIO1SERVERIntheHMCIwillclickonthe+signbesideSystemsManagementthenagainI
willclickonServersandthenServerName.Nextscreenwillbelikethis.NowI
willexpandConfiguration>CreateLogicalPartition>VIOServer
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
5/53
IwilltypemyfirstvioPartitionnameastestvio1,leavethepartitionid2alone
andIwillclickNext.
NextIselectedSharedprocessor.ThisServerhas48CPUbutIwanted totry
SharedCPUstuffssoIdecidedtouseit.AndIwillclickNextnow.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
6/53
Here I selected 2 minimum, 4 desired and 6 maximum. Then I selected
minimum 20 virtual Processor (1 CPU=10 Virtual CPU), 40 Desired and 60
Maximum. AndIcheckedtheuncappedWeight128.0,littleBittoomuch.Now
Iwillclicknext
Next screen I will straight select absolute 4GB memory requirement. So my
minimum,DesiredandMaximumMemory requirement is4GB.Nothingmore
orless.
Iwill
click
on
the
Next
button
once
Iam
done.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
7/53
Ok,IwillselectthePhysicalI/OswhateverIplannedbeforeforthisServer.And
then
I
will
click
on
that
little
Add
as
required
button
before
I
click
on
next.
If
I
forgettoclickonAddasrequired Iwillhaveno I/Oatalland Iwillhave to
comebackand dothisagain.AsIdidsoIwillclickonNextButton.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
8/53
Now I always like to add more numbers so I will bump Maximum Virtual
Adaptersto50. 20wouldbesufficientbutIamplanningtocreatesomemore
VIOCLparsto dosomemoretestafterthisfailovertest.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
9/53
IjustclickedNextbuttonhereas Iamnotgoing touseanyof theseLogical
HostEthernetAdaptersformytest.
Samethinghere.IwilljustclickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
10/53
IwillnotchangeanythinghereasIwantNormalModeasdefault.
Looksgoodtome.SoIwillclicktheFinishButton.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
11/53
NowIamgoingtoactivateit.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
12/53
But I want it to boot to SMS Mode for this session so that I can go and
configuretheNetworkto loadfrommyNIMServerand Iwant theconsole to
beopenedsametimeItisactivated.SoIcheckedOpenaTerminalwindowor
consolesessionandthenIwillclickonAdvancedButton.
NowitopenedanotherwindowsandIwillselectSMSandwillclickOK.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
13/53
Now itwillopen the consoleand Iwill setup the interface toboot frommy
NIMServer.InthemeantimeIwillgotomyNIMserverandstageNIMImages
forthisServer.Thisisthe screenshotfrommyNIMServer. SoInstallationtype
ismksysbandmakesysbnameIgaveforthisImageasVIOS2_2_mksysb.AlsoI
needaspot
so
Icreated
one
and
named
it
as
vios_v2_2_spot
and
Icreated
lpp_source to for this VIO Image as well as all the VIO images we have. I
createdthe lpp_sourcetocoveranymissingdriver. Iwillcoverallthosesteps
some other time. Also I have a Customization Script which basically copies
extra drivers, softwares,my scripts etc to the client. Then twoother files,
BOSINST_DATA which I named as No_Prompt picks up some stuffs
automatically so that I dont have to wait for selecting disks etc And then
CustomizationFBscriptInstall_Driversactuallyinstallallsdd/sddpcmdevices
basedon theAIX versionanddoes lotofother stuffsautomatically so that I
donthave
to
be
worry
about
anything
missing.
AnywayIalreadycamebackandstartedtestvio1servertobootfromnetwork
andhereisthescreenshot
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
14/53
Now I can see how and why I needed that lpp_source. ThisVIO 2.2 version
doesmissingsomesoftwareordriversrequiredforthisMMB (latestPower7)
Serveranditisloadingthemnow.
NowIwillgoandbuildtestvio2samewayIdidtestvio1and load itfromNIM
Server.NowbothofmyVIOServersbuilt.Iamgoingtologinaspadminand it
willaskmetoChangethepassword.SoIwillchangeit.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
15/53
FirstthingafterloggingintobothVIOserversIwilldoisrunthiscommand
$licenseaccept
NextthingIwilldoistocreatebothof mytestlpars, 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
-
8/12/2019 How I Built Two Failover VIO Servers
16/53
Iwillnameisastest1lparandclickNextbutton
ProfilenameIwillselectasNormalandwillclicknext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
17/53
IamgoingtousededicatedProcessorforthis lparso IwillclickonDedicated
andthenIwillclickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
18/53
Iwilltype4forallMinimum,DesiredandMaximumprocessorsandthenIwill
clickon Next.
IwilldosamethingforMemoryandclickonnext
AsalltheI/OswillbeprovidedbytheVIOServersIwillselectnothinghereand
willjustClickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
19/53
Iwillbumpupthenos.ofMaximumvirtualadaptersfrom10to20andclickon
Next
IwillselectnothinghereandclickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
20/53
IwillselectnothingheretooandclickonNext
IwontchangeanythinghereandwilljustclickonNext.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
21/53
IwillverifyCPUandMemoryfromthescreenandwillclickonFinish
Hereismynewlpar.Iwillleaveitaloneand willbuildthenextonesameway.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
22/53
Nowallofmylparsbuilt.
NowIwillselecttest1vio and changetheprofiletoadd 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
-
8/12/2019 How I Built Two Failover VIO Servers
23/53
NowIwillclickonNormal.
Sometimes for theolderservers Ihad toclickon thecheckBoxunderSelect
and then had to go toActionsButton and then Edit button to get into Next
screen. IwillclickonVirtualAdaptersButtonhere.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
24/53
NowIaminVirtualAdapterscreen.IwillclickonActions buttonherethen
CreateVirtualAdapterandthenEthernetAdapter
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
25/53
HereIwillchangeVirtualAdapterIDto10,IwillleaveVLANIDto1Iwillcheck
theboxForThisadapter is required forpartitionactivationAnd Iwillselect
checkbox for Accessexternalnetwork and Iwill leave Trunkpriority to1. I
amnotselectingIEEE802.1qcompatibleadapterforthistest. Iwouldselect
thatif
Ihad
few
CISCO
tagged
VLANS.
After
making
all
the
necessary
changes
IwillclickOK.
Iwilldoagaindothesameagainfornextadapter
ActionsCreateVirtualAdapterEthernetAdapter
AndthistimeIwillselectAdapterIDas11andVLAN99andnothingelse.This
willbeusedasControlChannelVirtualEthernet.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
26/53
Now I will add the Virtual SCSI Adapters. So ActionsCreate Virtual
AdapterSCSIAdapter
ThenIwilluse20forVirtualSCSIAdapter.Iwillclickon thecheckboxforThis
Adapter is Required for partition activation and then I will select Only
selectedclient
partition
can
connect
and
from
the
drop
down
menu
Iwill
selecttest1lpar(4)andthenIwilltypeClientAdapterID15andthenIwillclick
OKbutton.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
27/53
Now IwilladdanotherVirtualSCSIadapterusingthesamemethod.Thistime
Iwill use Virtual SCSIAdapter ID 21 Iwill clickon the checkboxon This
adapter is required for partition activation and Then I will click on Only
selected client partition can connect and from the drop down menu I will
selecttest2lpar(5)
and
then
Iwill
type
Client
Adapter
ID
15
and
then
Iwill
click
OKbutton.Finalscreen lookslikethis.
NowIwillclickOK,andthenIwillshutdowntestvio1lpar.
$shutdownforce
OncethislparisdownIwillreactivateitfromHMC.
Now Iwillselect testvio2andwilldo thesamething.For1stVirtualEthernet
adapterid
Iwill
use
12,
VLAN
ID
1,
Iwill
check
on
This
adapter
is
required
for
partition activation. Iwill also select This adapter isRequired forpartition
activationcheck box.Andmostimportantfor thisboxisTrunkPriority will
be2
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
28/53
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
-
8/12/2019 How I Built Two Failover VIO Servers
29/53
NowIwillshutdownthislpartestvio2
$shutdownforce
Andthen
Iwill
activate
it
from
HMC.
Now
Iwill
log
in
to
testvio1
using
padmin
idandpasswordIsetbeforeandwillrunthiscommand
$lsdevvirtual
SoIgotent4and ent5asvirtualEthernetandvhost0andvhost1asvirtualscsi
adapterNow
Iwill
create
shared
Ethernet
adapter
using
ent4
and
ent5.
But
before that Ihavetoremoveexisting IPaddressas I installedthisserverfrom
NIMServer.TodothatIwillrun
rmtcpipallandselectyandenter.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
30/53
-
8/12/2019 How I Built Two Failover VIO Servers
31/53
$lsvglvclientsrootvg
NowIwillstartstartassigningtheselvstotheassociatedvhosts.
$lsdevslots#Slot Description Device(s)
U9117.MMB.102DB3FV2C0 VirtualI/OSlot vsa0
U9117.MMB.102DB3FV2C10 VirtualI/OSlot ent4
U9117.MMB.102DB3FV2C20 VirtualI/OSlot vhost0
U9117.MMB.102DB3FV2C21 VirtualI/OSlot vhost1
Vhost0isonslot20andwewillusethatfortest1lparandvhost1isonslot21
andweassociatedthattotest2lpar.Nowwewillrunthefollowingcommands
$mkvdevvdevtest1lparrootlvvadaptervhost0devtest1lparroottest1lparrootAvailable
$mkvdevvdevtest2lparrootlvvadaptervhost1devtest2lparroottest2lparrootAvailable
Iwill
verify
what
Idid
on
vhost0
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
32/53
Nowonvhost1
Now Iwillgoback totestvio2anddothesamethingstherebefore Istartthe
clientlpars.NowIwilladdtheVirtualAdapterstotest1lpar1andtest2lpar
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
33/53
Iwilladd theVirtual Ethernetand bothvirtual scsiadaptersusing the same
methodIdidforVIOServers.VirtualEthernetAdapterIdidasbelow
For the 1st Virtual SCSI Adapters I did as below whichwill be connected to
testvio1
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
34/53
For the2nd VirtualSCSIAdapters Ididasbelowwhichwillbeconnected totestvio2
Finalsettingwilllooklikethis.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
35/53
Samethingfortest2lpar.SettingsbelowforEthernet
Andfor1stVirtualSCSIAdapterconnectedtotestvio1
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
36/53
HereiswhatIdidforthe2ndVirtualSCSIAdapterconnectedtotestvio2
NowbothofmyVIOC Lparsbuilt. Iwill load them fromNIMServer.Now to
makethingseasierforme Iusedhdisk0 forboth test1lparand test2lparfrom
testvio1Server.LaterIwillmirrorthemwithhdisk1whichcomesfromtestvio2
server.NIM
load
completed
now
and
Iwill
log
in
to
the
console
for
test1lpar
as
rootandnopassword. Iwillchecktheconfiguration now
#lsdevCcdisk
#lscfgvplhdisk0
#lscfgvplhdisk1
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
37/53
Fromtestvio1server
Fromtestvio2
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
38/53
Backtotest1violparandIwillverifydisksizes
NowIwilllogintotest2lparandwilldothesame
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
39/53
Nowbacktotestvio1and
Nowontesvio2
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
40/53
Everythingislookinggood.Backtotest2lparandwillcheckthedisksizes
NextthingIwilldoIwillgobacktotest1lparandmirrortherootvg
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
41/53
SofirstIwillextendtherootvgtohdisk1
#extendvgfrootvghdisk1
#mirrorvgSm rootvghdisk1 ( This commandwill run in thebackground
andwilltakeawhile)Now Iwillgoback totest2lparand dothe samething.
Oncemirroring
completed
in
both
test1lpar
and
test2lpar
Iwill
change
the
bootlist
#bootlistmnormalhdisk0hdisk1
Now Iwill run bootlistmnormal ifbothentriesdoesnt lookexactly the
samethenIwillRunbosbootad /dev/hdisk1andrerunbootlistmnormal
Hopefully this time itwillbeOK.Now Iwill check the rootvg statusonboth
test1lpar
Nowontest2lpar
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
42/53
Iwillshutdownviotest1servernow.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
43/53
WillverifyfromHMCScreen
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
44/53
Nowwewillseeiftheserversstillcanpingoutsideornot.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
45/53
Sonetworkfailoverworking, serverisalsoup.NowIwillcheckwithlsvg
Iwillchecktest2lparnow
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
46/53
Nowlsvgontestvio2
Now,Iwillrebootbothtest1lparandtest2lpartocheckwhetheritcansurvive
arebootwhentest1viofailed.NowIwillcheckhowtest1lparlookslike.
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
47/53
Sohdisk0 isdefinedandnotavailableanymore.And itsurvivedarebootand
networkalsoworking.Nowtest2lpar
Thislpar
also
survived
areboot
though
hdisk0
not
available
and
network
also
working. So we know now that both ofmy VIOC lpars will work evenwhen
testvio1failed.NowIwillrunthesametesttocheckwhetherthesetwolpars
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
test2lparand rerunthosecommands
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
48/53
Looksgood,nowontest2lpar
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
49/53
Thisonealsolooksgood.NowIwillcheckthemirrorstatus.Needsresync
Samethingontest2lpar
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
50/53
I will resync them. hdisk0 may come as removed state. I will use chpv
commandtofixthatandthenIwillrunsyncvgrootvg.Test1lparissynced
test2lparissynced
NowIwillshutdowntestvio2
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
51/53
test1lparrootvgstalestatus
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
52/53
test2lparlvstalestatus
Publishing without permission is prohibited
This document is created by Siddhartha Sinha
-
8/12/2019 How I Built Two Failover VIO Servers
53/53
Networkstillup
FewmorestatusafterIrebootedtest1lpar
Publishing without permission is prohibited