- Préparer une LPAR en AIX V7.3
- Vérifier que les IP affectées à la WPAR sont bien résolues et les insérer dans /etc/hosts.
- Créer un mksysb de votre LPAR source : 'mksysb -ie /mksysb_images/maLPAR.mksysb'.
Versioned WPAR creation
Question & Answer
Question
How do I create versioned wpar?
Answer
1- Make sure the required filesets in the Global environment:
# oslevel -s
7100-03-00-0000
# lslpp -la | grep wpar
bos.wpars 7.1.3.0 COMMITTED AIX Workload Partitions vwpar.images.53 1.1.2.0 COMMITTED Versioned WPAR 5.3 Support
vwpar.images.base 1.1.2.0 COMMITTED Versioned WPAR Base Support
vwpar.sysmgt 1.1.2.0 COMMITTED Versioned WPAR Management
bos.wpars 7.1.3.0 COMMITTED AIX Workload Partitions
2- Ensure the AIX 5.3 mksysb validity:
# ls -l /opt/53.mksysb
-rw-r----- 1 root system 1682892800 Apr 04 08:05 /opt/53.mksysb
# file /opt/53.mksysb
/opt/53.mksysb: backup/restore format file
# lsmksysb -lf /opt/53.mksysb
VOLUME GROUP: rootvg
BACKUP DATE/TIME: Tue Apr 4 04:19:53 CDT 2017
UNAME INFO: AIX lpar7 3 5 00F825C04C00
BACKUP OSLEVEL: 5.3.12.1
MAINTENANCE LEVEL: 5300-12
BACKUP SIZE (MB): 3296
SHRINK SIZE (MB): 2734
VG DATA ONLY: no
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 16 16 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 3 3 1 open/syncd /
hd2 jfs2 53 53 1 open/syncd /usr
hd9var jfs2 12 12 1 open/syncd /var
hd3 jfs2 4 4 1 open/syncd /tmp
hd1 jfs2 1 1 1 open/syncd /home
hd10opt jfs2 12 12 1 open/syncd /opt
3- Provide a "None" disk to give it to the vwpar
# lspv
hdisk2 00f825c0f8eb3c6c rootvg active
hdisk3 00f825c0f9187c0c None
# bootinfo -s hdisk3
15360
4- Create the vwpar:
# mkwpar -l -C -B /opt/53.mksysb -n 53wpar -D devname=hdisk3 rootvg=yes
# lswpar
Name State Type Hostname Directory RootVG WPAR
----------------------------------------------------------
53wpar D S 53wpar /wpars/53wpar yes
# lswpar -D 53wpar
Name Device Name Type Virtual Device RootVG Status
-------------------------------------------------------------------
53wpar /dev/null pseudo ALLOCATED
53wpar /dev/tty pseudo ALLOCATED
53wpar /dev/console pseudo ALLOCATED
53wpar /dev/zero pseudo ALLOCATED
53wpar /dev/clone pseudo ALLOCATED
53wpar /dev/sad clone ALLOCATED
53wpar /dev/xti/tcp clone ALLOCATED
53wpar /dev/xti/tcp6 clone ALLOCATED
53wpar /dev/xti/udp clone ALLOCATED
53wpar /dev/xti/udp6 clone ALLOCATED
53wpar /dev/xti/unixdg clone ALLOCATED
53wpar /dev/xti/unixst clone ALLOCATED
53wpar /dev/error pseudo ALLOCATED
53wpar /dev/errorctl pseudo ALLOCATED
53wpar /dev/audit pseudo ALLOCATED
53wpar /dev/nvram pseudo ALLOCATED
53wpar /dev/kmem pseudo ALLOCATED
53wpar hdisk3 disk yes ALLOCATED
5- Start the vwpar:
# startwpar -v 53wpar
Starting workload partition 53wpar.
Mounting all workload partition file systems.
Mounting /wpars/53wpar
Mounting /wpars/53wpar/etc/objrepos/wboot
Mounting /wpars/53wpar/opt
Mounting /wpars/53wpar/usr
Loading workload partition.
Exporting workload partition devices.
hdisk3 Defined
Exporting workload partition kernel extensions.
Starting workload partition subsystem cor_53wpar.
0513-059 The cor_53wpar Subsystem has been started. Subsystem PID is 12517432.
Verifying workload partition startup.
Return Status = SUCCESS.
# lswpar
Name State Type Hostname Directory RootVG WPAR
----------------------------------------------------------
53wpar A S 53wpar /wpars/53wpar yes
# lswpar -D 53wpar | grep hdisk
53wpar hdisk3 disk hdisk0 yes EXPORTED
6- Login into the vwpar:
# clogin 53wpar
**************************************************************************
* *
* Welcome to AIX Version 5.3! *
* Please see the README file in /usr/lpp/bos for information *
* Pertinent to this release of the AIX Operating System. *
* *
**************************************************************************
Last login: Tue Apr 4 07:58:50 CDT 2017 on /dev/pts/0 from egypt.vwpar.ibm.com
# hostname
53wpar
# oslevel -s
5300-12-05-1140
# df
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
Global 196608 51088 75% 3823 38% /
/dev/hd4 196608 51088 75% 3823 38% /
Global 4456448 374112 92% 42725 48% /nre/usr
Global 20971520 17336560 18% 7974 1% /nre/opt
Global 524288 142744 73% 10077 37% /nre/sbin
/dev/hd2 3473408 255488 93% 37532 55% /usr
/dev/hd10opt 786432 374136 53% 8587 17% /opt
/dev/hd1 65536 63808 3% 5 1% /home
/dev/hd3 262144 249224 5% 24 1% /tmp
/dev/hd9var 786432 72 100% 6977 84% /var
Global 65536 63560 4% 86 2% /etc/objrepos/wboot
Global - - - - - /proc
# lsdev -Cc disk
hdisk0 Available Virtual SCSI Disk Drive
# lspv
hdisk0 00f825c0f9187c0c rootvg active