Comprehensive Document For The Creation of LPAR
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
Actions
Create virtual adapter
Scsi adapter
Adapter:220
Client partition: aix_test7
Client adapter:220
Ok
$ cfgdev
Lsmap –all | more
Vhost25 vtopt-27 (look previous one)
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 do mapping
volume
AIX_TEST7 (click it then choose )
Map to host
Select host
AIX_TEST7 OR T24MQTEST
Add
Close
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
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