1) Convert the mksysb image to a bootable dvd using mkdvd command
2) Create a virtual media repository in VIO server
3) Copy/SCP/FTP the dvd file to vio server and add the dvd image into the repository
4) Create a Virtual DVD and load the images
5) Assign that optical device to the new LPAR
6) Make the optical device as first boot
7) Start OS install
From any LPAR,... (having mksysb)... make sure / FS (root FS) has atleast 1.5 times the size of mksysb
Server1:/root # cd /prod
Server1:/prod # ls -l
total 10886912
drwxr-xr-x 2 root system 256 Dec 20 06:52 lost+found
-rw-r--r-- 1 root system 5574092800 Jan 17 03:42 Server1.mksysb
# mkdvd -S -m Server1.mksysb
Initializing mkdvd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Creating temporary file system: /mkcd/cd_fs...
# tail -f /var/adm/ras/mkcd.log
##################################################
Tue Jan 17 03:43:53 MST 2012
cmd: mkdvd -S -m Server1.mksysb
Initializing mkdvd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Creating temporary file system: /mkcd/cd_fs...
Populating the CD or DVD file system...
Server1:/prod # df -g|grep mkcd
/dev/lv00 4.19 3.87 8% 3422 1% /mkcd/cd_fs
Server1:/prod # cd /mkcd/cd_images/
Server1:/mkcd/cd_images # ls -l
total 8304392
-rw-r--r-- 1 root sys 4251783168 Jan 17 03:53 cd_image_9764974.vol1
drwxrwx--- 2 root system 512 Jan 17 03:52 lost+found
Server1:/mkcd/cd_images # tail -f /var/adm/ras/mkcd.log
Initializing mkdvd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Populating the CD or DVD file system...
Building chrp boot image...
Copying backup to the CD or DVD file system...
Creating temporary file system: /mkcd/cd_images...
Creating Rock Ridge format image: /mkcd/cd_images/cd_image_9764974.vol1
Making the CD or DVD image bootable...
Copying the remainder of the backup to the CD or DVD file system...
Creating Rock Ridge format image: /mkcd/cd_images/cd_image_9764974.vol2
Server1:/mkcd/cd_images # ls -l
total 11045640
-rw-r--r-- 1 root sys 4274950144 Jan 17 03:54 cd_image_9764974.vol1
-rw-r--r-- 1 root sys 1380251648 Jan 17 03:54 cd_image_9764974.vol2
drwxrwx--- 2 root system 512 Jan 17 03:52 lost+found
Note : Images Splitted into 2 DVD's
VIO part:
=========
$ lsrep
The DVD repository has not been created yet.
$ lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00c1cbb400004c000000011ffbadf9de
VG STATE: active PP SIZE: 256 megabyte
VG PERMISSION: read/write TOTAL PPs: 1092 (279552 megabytes)
MAX LVs: 256 FREE PPs: 866 (221696 megabytes)
we will use rootvg to create the repository, as it has lot of space
$ /usr/sbin/mklv -y'aixdvd' -t'jfs2' rootvg 24
first we need to create LV in whichever vg
$ lsvg -lv rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 2 4 2 open/syncd N/A
paging00 paging 4 8 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 2 4 2 open/syncd /
hd2 jfs2 27 54 2 open/syncd /usr
hd9var jfs2 3 6 2 open/syncd /var
hd3 jfs2 16 32 2 open/syncd /tmp
hd1 jfs2 40 80 2 open/syncd /home
hd10opt jfs2 11 22 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
lg_dumplv sysdump 4 4 1 open/syncd N/A
aixdumpsec sysdump 4 4 1 open/syncd N/A
aixdvd jfs2 24 24 1 closed/syncd N/A
$ mkrep -sp rootvg -size 6G (creating repository @ 6GB)
Virtual Media Repository Created
Repository created within "VMLibrary" logical volume
$ lsrep
Size(mb) Free(mb) Parent Pool Parent Size Parent Free
6118 6118 rootvg 279552 209408
a new FS is created /var/vio/VMLibrary
$ df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.50 0.25 50% 6829 10% /
/dev/hd2 6.75 2.10 69% 114592 19% /usr
/dev/hd9var 0.75 0.36 52% 11434 12% /var
/dev/hd3 4.00 3.83 5% 406 1% /tmp
/dev/hd1 10.00 7.14 29% 1489 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 2.75 1.66 40% 10320 3% /opt
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/VMLibrary 6.00 5.98 1% 4 1% /var/vio/VMLibrary
Now, ftp the 2 dvd files from Server1 server to VIO server under this FS /var/vio/VMLibrary
or, do oem_setup_env and pull the dvd files from here..
# pwd
/var/vio/VMLibrary
# scp -p Server1:/mkcd/cd_images/cd_image*.* .
# pwd
/var/vio/VMLibrary
# ls -l
total 11045328
-rw-r--r-- 1 root staff 4274950144 Jan 17 02:54 cd_image_9764974.vol1
-rw-r--r-- 1 root staff 1380251648 Jan 17 02:54 cd_image_9764974.vol2
drwxr-xr-x 2 root system 256 Jan 17 03:14 lost+found
$ lsrep
Size(mb) Free(mb) Parent Pool Parent Size Parent Free
16317 10923 rootvg 279552 199168
Name File Size Optical Access
cd_image_9764974.vol1 4077 None rw
cd_image_9764974.vol2 1317 None rw
$ mkvdev -fbo -vadapter vhost1
vtopt0 Available
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost1 U9119.FHA.021CBB4-V2-C65 0x00000000
VTD vtopt0
Status Available
LUN 0x8100000000000000
Backing device
Physloc
Mirrored N/A
Loading the image to vtopt0
$ loadopt -disk cd_image_9764974.vol1 -vtd vtopt0 (Only one image we have to load.. we cannot load 2 images in DVD, 2nd image will be loaded during the time of installation)
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost1 U9119.FHA.021CBB4-V2-C65 0x00000000
VTD vtopt0
Status Available
LUN 0x8100000000000000
Backing device /var/vio/VMLibrary/cd_image_9764974.vol1
Physloc
Mirrored N/A
change to oem_setup_env, to create LV and assign to the new client LPAR
smitty mklv... lvname and give LP count..
# lsvg -l rootvg_clients | grep vq
Client1_lv jfs 270 270 1 closed/syncd N/A
$ mkvdev -vdev Client1_lv -vadapter vhost1 -dev Client1_root
Client1_root Available
nimserver1:/root # ssh hscroot@hmc1
Last login: Tue Jan 17 05:06:00 2012 from cosnim1.cos.agilent.com
hscroot@hmc1:~>
hscroot@hmc1:~>
hscroot@hmc1:~> chsysstate -r lpar -m P59XXD1_SNXXXXB4 -n Client1 -o on -f Client1_normal -b sms (take one more session, run vtmenu and login to new lpar to see the SMS menu screen)
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
1 = SMS Menu 5 = Default Boot List
8 = Open Firmware Prompt 6 = Stored Boot List
Memory Keyboard Network SCSI Speaker
PowerPC Firmware
Version EH350_108
SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
Main Menu
1. Select Language
2. Setup Remote IPL (Initial Program Load)
3. Change SCSI Settings
4. Select Console
5. Select Boot Options
-------------------------------------------------------------------------------
Navigation Keys:
X = eXit System Management Services
-------------------------------------------------------------------------------
Type menu item number and press Enter or select Navigation key:5
PowerPC Firmware
Version EH350_108
SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
Multiboot
1. Select Install/Boot Device
2. Configure Boot Device Order
3. Multiboot Startup <OFF>
-------------------------------------------------------------------------------
Navigation keys:
M = return to Main Menu
ESC key = return to previous screen X = eXit System Management Services
-------------------------------------------------------------------------------
Type menu item number and press Enter or select Navigation key:1
.------------------.
| PLEASE WAIT.... |
`------------------'
PowerPC Firmware
Version EH350_108
SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
Select Device Type
1. Diskette
2. Tape
3. CD/DVD
4. IDE
5. Hard Drive
6. Network
7. List all Devices
-------------------------------------------------------------------------------
Navigation keys:
M = return to Main Menu
ESC key = return to previous screen X = eXit System Management Services
-------------------------------------------------------------------------------
Type menu item number and press Enter or select Navigation key:3
PowerPC Firmware
Version EH350_108
SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
Select Media Type
1. SCSI
2. SSA
3. SAN
4. SAS
5. SATA
6. USB
7. IDE
8. ISA
9. List All Devices
-------------------------------------------------------------------------------
Navigation keys:
M = return to Main Menu
ESC key = return to previous screen X = eXit System Management Services
-------------------------------------------------------------------------------
Type menu item number and press Enter or select Navigation key:1
PowerPC Firmware
Version EH350_108
SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
Select Media Adapter
1. U9119.FHA.021CBB4-V12-C6-T1 /vdevice/v-scsi@30000006
2. List all devices
-------------------------------------------------------------------------------
Navigation keys:
M = return to Main Menu
ESC key = return to previous screen X = eXit System Management Services
-------------------------------------------------------------------------------
Type menu item number and press Enter or select Navigation key:1
.------------------.
| PLEASE WAIT.... |
`------------------'
PowerPC Firmware
Version EH350_108
SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
Select Device
Device Current Device
Number Position Name
1. 1 SCSI CD-ROM
( loc=U9119.FHA.021CBB4-V12-C6-T1-L8100000000000000 )
-------------------------------------------------------------------------------
Navigation keys:
M = return to Main Menu
ESC key = return to previous screen X = eXit System Management Services
-------------------------------------------------------------------------------
Type menu item number and press Enter or select Navigation key:1
PowerPC Firmware
Version EH350_108
SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
Select Task
SCSI CD-ROM
( loc=U9119.FHA.021CBB4-V12-C6-T1-L8100000000000000 )
1. Information
2. Normal Mode Boot
3. Service Mode Boot
-------------------------------------------------------------------------------
Navigation keys:
M = return to Main Menu
ESC key = return to previous screen X = eXit System Management Services
-------------------------------------------------------------------------------
Type menu item number and press Enter or select Navigation key:2
PowerPC Firmware
Version EH350_108
SMS 1.7 (c) Copyright IBM Corp. 2000,2008 All rights reserved.
-------------------------------------------------------------------------------
Are you sure you want to exit System Management Services?
1. Yes
2. No
-------------------------------------------------------------------------------
Navigation Keys:
X = eXit System Management Services
-------------------------------------------------------------------------------
Type menu item number and press Enter or select Navigation key:1
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM STARTING SOFTWARE IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM PLEASE WAIT... IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
|
Elapsed time since release of system processors: 42909 mins 55 secs
|
Elapsed time since release of system processors: 42910 mins 4 secs
-------------------------------------------------------------------------------
Welcome to AIX.
boot image timestamp: 10:50:46 01/17/2012
The current time and date: 11:58:16 01/17/2012
processor count: 2; memory size: 16384MB; kernel size: 28148491
boot device: /vdevice/v-scsi@30000006/disk@8100000000000000:\ppc\chrp\bootfile.exe
-------------------------------------------------------------------------------
******* Please define the System Console. *******
Type a 1 and press Enter to use this terminal as the
system console.
Pour definir ce terminal comme console systeme, appuyez
sur 1 puis sur Entree.
Taste 1 und anschliessend die Eingabetaste druecken, um
diese Datenstation als Systemkonsole zu verwenden.
Premere il tasto 1 ed Invio per usare questo terminal
come console.
Escriba 1 y pulse Intro para utilizar esta terminal como
consola del sistema.
Escriviu 1 1 i premeu Intro per utilitzar aquest
terminal com a consola del sistema.
Digite um 1 e pressione Enter para utilizar este terminal
como console do sistema.
HARDWARE SYSTEM MICROCODE
Licensed Internal Code - Property of IBM
(C) Copyright IBM Corp. 1990, 1994.
All rights reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted
by GSA ADP Schedule Contract with IBM Corp.
>>> 1 Type 1 and press Enter to have English during install.
88 Help ?
>>> Choice [1]:
Installation will Start...., After 46% of installation it will ask for 2nd DVD.... Since we have 2 images..
Like > Please remove volume 1, insert volume 2, and press the ENTER key.
Go to VIO server:
============
$ unloadopt -vtd vtopt0
$ loadopt -disk cd_image_9764974.vol2 -vtd vtopt0
After loading, Check the same in lsmap output..
Go back to Installation screen and hit Enter..
After installtion gets completed, server will be rebooted automatically by setting hdisk as first boot device...
you can login as your id... or if you know the root passwd for the mksysb.
If root passwd is not available, unload the second DVD and put the first DVD.... then go to maintancence mode and reset the passwd.
$ unloadopt -vtd vtopt0
$ loadopt -disk cd_image_9764974.vol1 -vtd vtopt0
Go to HMC session... as hscroot
$ chsysstate -r lpar -m P59XXD1_SNXXXXB4 -n Client1 -o on -f Client1_normal -b sms
Change the boot order.... set the CD as 1st boot device and continue with installation.. choose 3 for "system maintanence and recovery"
There you can reset the root passwd.
.