0% found this document useful (0 votes)
95 views16 pages

Comprehensive Document For The Creation of LPAR

The document provides instructions for creating an LPAR with AIX or Linux, including: 1. Creating partitions and profiles, assigning memory, and creating virtual adapters for Ethernet, Fibre Channel, and SCSI. 2. Configuring the VIOS to communicate with the LPAR by creating virtual adapters and mapping storage. 3. Activating the LPAR, installing an operating system, and configuring networking.

Uploaded by

Syed F Badar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views16 pages

Comprehensive Document For The Creation of LPAR

The document provides instructions for creating an LPAR with AIX or Linux, including: 1. Creating partitions and profiles, assigning memory, and creating virtual adapters for Ethernet, Fibre Channel, and SCSI. 2. Configuring the VIOS to communicate with the LPAR by creating virtual adapters and mapping storage. 3. Activating the LPAR, installing an operating system, and configuring networking.

Uploaded by

Syed F Badar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Comprehensive document for the creation of LPAR

CREATE PARTITION
AIX or LNUX

Partition name
Profile name

DEDICATED
Memory

VIRTUAL ADAPTER
Upper option max virtual adapters 500

Actions
Ethernet adapter id :2 vlan id :5

Actions
Create virtual adapter
Fiber channel adapter adapter:206 server adapter id:206 ok

Actions
Create virtual adapter
SCSI adapter
Adapter:220
normal
Next

To communicate LPAR with VIOS


 VIOS 1
 Dynamic partioning
 Virtual adapters
 Actions
Create virtual adapter
Fibre channel adapter
Adapter:206
Client partition: AIX_TEST7 (choose from list which u make )
Client adapter id: 206
Ok
(if adding 2 fibre cards repeat the same thing but check it one at hmc vios list then add the
fibre card number)

Actions
Create virtual adapter
Scsi adapter
Adapter:220
Client partition: aix_test7
Client adapter:220
Ok

Go to VIOS 10.1.5.71 IF we are on any other IP for 10.1.5.11 we can


use telenet 10.1.5.71
Padmin
Padmin
R oem
Oem _setup_env
# telnet 10.1.5.71
Padmin
Padmin

$ cfgdev
Lsmap –all | more
Vhost25 vtopt-27 (look previous one)

mkvdev -fbo -vadapter vhost25 -dev vtopt27


lsmap -all | more
lsmap -all -npiv
vfcmap -vadapter vfchost40 -fcp fcs2
lsmap -all -npiv

then go to HMC graphical


~ AIX-TEST7
configuration
managed profile
~ aixtest7
Virtual adapter
List of Fibre channel (click hand at it)
WWPNs: c050760idfe00a8 (copy it on notepad and put colon in between number for e.g
c0:50:76:09:d1:fe:00:a8
When we add 2 fibre cards copy that wwpn too
Go to SAN SWITCH 10.1.5.48
Admin
Password: password
We have to make zone now

zonecreate “AIX_TEST7_DR”,”c0:50:76:09:d1:fe:00:a8”
zone show |more
then add zones
zoneadd ”AIX_TEST7_DR”,”50:05:07:68:0b:23:76:06”
zoneadd “AIX_TEST7_DR”,”50:05:07:68:0b:24:76:06”
zoneadd “AIX_TEST7_DR”,”50:05:07:68:0b:23:76:07
zoneadd “AIX_TEST7_DR”,”50:05:07:68:0b:24:76:07”
cgdadd “SilkDR_Fabric3”,”AIX_TEST7-DR”
cfgsave
cfgenable “SilkDR_Fabric3”
(its for one fibre card for second fibre card)
zonecreate “AIX_TEST7_DR_Port2”,”c0:50:76:09:d1:fe:00:a9”
zone show |more
then add zones
zoneadd ”AIX_TEST7_DR_port2”,”50:05:07:68:0b:23:76:06”
zoneadd “AIX_TEST7_DR_Port2”,”50:05:07:68:0b:24:76:06”
zoneadd “AIX_TEST7_DR_Port2”,”50:05:07:68:0b:23:76:07
zoneadd “AIX_TEST7_DR_Port2”,”50:05:07:68:0b:24:76:07”
cgdadd “SilkDR_Fabric3”,”AIX_TEST7_DR_Port2”
cfgsave
cfgenable “SilkDR_Fabric3”

Then go to Storage and make a volume


Volume
Create volume
Basic
Pool
100GB Name:AIX_TEST7_rvg
Create
THEN GO TO HOST
Add host
ADD name: AIX_TEST7
WWPN: that number which we use in creating zone put that number without colon for e.g
c0507609d1fe00a8 (ctrl v) (add)
for 2nd fibre card again go to host
which we make new click it port definitions --add--fibre channel port add that 2nd port
number ----- add port to list ok

then do mapping
volume
AIX_TEST7 (click it then choose )
Map to host
Select host
AIX_TEST7 OR T24MQTEST
Add
Close

Then go to hmc putty 10.1.5.101


Hscroot
Pasword: root123
Vtmenu
Press 2 in which the name of lpar we create (choose)
Write 5

Now go to hmc graphical (to map the image of AIX)


Below option
Virtual resources
Virtual storage management
VIOS/SSP Query (click it) {it will take time}
Then go to option
Optical devices
AIX_TL4_SP4_DVD1
Select action
Modify assignment partition {it will take time}
~ AIX_TEST7(25) vtopt27
Ok
Then wait for a while

Or use command for mapping mage of AIX command usage is


more better then to do on hmc
Lsrep (this command tells us AIX71_TL4_SP4_DVD1)
Loadopt _disk AIX71_TL4_SP4DVD1 –vtd vtopt28
{ if it give read-only error and don’t do image of AIX use this
command for permission
chvopt -name AIX_TL4_SP4_DVD1 –access ro }
Then go to vios putty 10.1.5.71
Cfgdev
Lsmap –all
See image
Then go to hmc graphical to activate the lpar
First open putty then activate it 10.1.5.101
Hscroot root123 vtmenu
AIX_TEST7
Operation
Activate
Profile
Advance
Bootmode:SMS
Ok
Ok
Go to HMC putty
Vtmenu
Main menu:
write 5: (select boot option)
write 1 : (select install/boot device)
write 5 : (list all devices)
write 2 : (1 SCSI CD-ROM)
write 2: (normal boot mode)
write 1 : (yes)
write 1
write 2 : (choice)
disk where you want to install hdisk0 (it means u get the disk )
write 5 (express)
write 5 (standard)
write 5 (enterprise) …. This is we want
choice [o] : 99 (previous menu)
write 1
continue with install (1) write 1
installing base operating system
wait …
set terminal type
choice (7) : write vt100

show installed license agreement


software names all
esc 3
esc 3
accept license agreement
accept installed lcense agreement ….press tab (yes)
esc 3
esc 3
esc 3
esc3
esc 3
if we skip it use smitty system command
set date and time
change/show date n time
year (20)
date (09)
day (1)
hour (02)
minutes
seconds

esc 3
esc 3
change time using system defined value

asia/Karachi
esc 3
change time zone user inputted value
PKST
6
Cdt
Esc 3
Esc 3
Esc 3
Set root password
Password :silk123
Smitty tcpip
Configure network communication
TCP/IP start up
Eno 0 standard Ethernet network interface
TCP/IP start up
Hostname AIX_TEST7
Internt Address 10.1.5.200 { check it first its available at network or not
otherwise it will conflict }
Network mode 255.255.255.0
Default gateway Address (dotted decimal or symbolic name ) 10.1.5.1
Do active dead gateway detection no
Start now yes
Esc 0
Make a new connection of this newly made lpar
Root
Silk123
Ping 10.1.5.175
64 byte from ………
64 byte from ………
(it means its ommunicating with other ips)
Ctrl c

Smitty system
Change /show characteristics of OS
Max no.processors allowed per use 16000
Esc 3
Change/show no. licensed users
Floating license (press tab ) on
Esc 0

Smitty installp
Install software
Input device /directory for software
Esc 4
/dev/cd0
Esc 4
Esc 7 for chosing the package (@ means already have tht software + means you to install it
so choose with esc 7 )
Detailed output? Yes
Accept new license agreement yes
{openssh will only be set by smitty installp esc 7 to choose it n for finding esc /openssh [it
will show the package select it] }
Smitty chps
(this command is used for paging space )
Hd6
Number of additional logical partitions 150 (means 20 GB)
Lsps -s
(this command is used for checking paging space)
bosboot -ad /dev/hdisk0
(this command set boot image )
Bosboot: boot image is 48036 512 byte blocks
(after this command we don’t have to use SMS we can use on normal boot on HMC)
lsattr –El hdisk0
chdev –l hdisk0 –a queue_depth=64 –P
bootlist -om normal hdisk0
smitty fs
add/change /delete file system
enhanced journal file system
change/show characteristics of an enhanced journal file system
/
Unit size 2
Enter
Esc 0
/home

Unit size 10
Enter
Esc 0
For increasing GB we can use this command instead of going again n again in smitty
Chfs –a size=2G /
Chfs –a size=2G /home
Chfs –a size=10G /var
For installing software use this command
Installp –acX –d /dev/cd0 bos.adt bos.compat bos.cifs_fs bos.content_list bos.data
bos.dosutil bos.perf.gtools
Installp –acX –d /dev/cd0 X11.adt X11.compat X11.help.EN_US X11.help.en_US
X11.man.en_US
Installp –acX –d /dev/cd0 openssh.base
(after installation do shutdown –Fr is must to make it effective)
{choose cd only for installation after doing shutdown n activate LPAR always if we choose
harddisk it will format or loss of data }
[ errpt –a |more
If any error comes for eg sysplanner put
Snap –a
(this command makes file of all logs info will be in it.its hardware error. We will give this file
to IBM for resolving the issue]
Vi /etc/security/limits
Default:
Fsize= -1
Core = -1
Cpu = -1
Data = -1
Rss = 65536
Stack = -1
Nofiles = -1

:wq

Vi /etc/hosts
(this command has all domains)( put ips new n old in it )
Smitty tuning
Tuning network option parametres
Change /show parametres for next boot
Rfc1323 1
tcp - recvspace 262144
tcp - sendspace 262144
udp – recvspace 655360
udp – sendspace 65536
ipqmaxlen 512
(it will make effect after reboot)

Esc 3
Esc 3
Esc 3
Tuning IO parametres
Change /show parametres for next boot
J2 dynamic buffer pearl location 256
Esc 0

We can also use command for it


no –a |more-
no –p -o rfc1323=1
no –p –o ipqmaxlen=512

smitty vg
add a volume group
add a big volume group
volume group name TEST1_VG
physical partition size in mb esc 4 256
phusical volume name esc 4 hdisk1
force creation of volume group (press tab) yes
enter
smitty fs
add/change/show delete file system
enhanced journal file system
add an enhanced journal file system test1_vg
unit size GB
no of units 49
mount point /test2
mount automatically at system restart yes
df –g
mount /test1
df -g

You might also like