As i stated before, the installation mechanism of Jumpstart Flash is quite different from a normal installation. So i will start with a new template on a new server to demonstrate Jumpstart Flash.
Creating a flash archive
The first step to do a flash based install is the creation of a a flash archive. Obviously you need an already installed system to create such an archive. To do so, i create a a directory for the flar image at first:
bash-3.00# mkdir /flardir
bash-3.00# flarcreate -S -n "togusa" -x /flardir -R / /flardir/togusa.flar
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Creating the archive...
5144848 blocks
Archive creation complete.
Running postcreation scripts...
Postcreation scripts done.
Running pre-exit scripts...
Pre-exit scripts done.
bash-3.00#
The second command generates the flar image itself. With this command, i generate the flash archive
togusa.flar in the directory
/flar. The
-x option excludes the directory
/flardir from the flasharchive. The \verb-R= specifies that the flash archive should contain all filesystems descending to
/. The
-S flag omits the size checks.
# scp togusa.flar jmoekamp@192.168.10.1:/export/flar/togusa/togusa.flar
After the creation of the flash archive, you have to transmit it to a server. It doesn´t have to be the jumpstart server. it doesn´t even have to be an NFS server. It just have to be reachable with HTTP or NFS by the server you plan to install. In this example we will use the Jumpstart Server for this task, thus we will use a share on this system.
Don´t forget to share this directory via NFS:
# echo "share -F nfs -o anon=0,sec=sys,ro -d \"Installation Images\" /export/install" >> /etc/dfs/dfstab
# shareall
Preparing the template
Okay, we want to install our node
ishikawa with the flash image of
togusa. At first like with all jet installation we add a hostname to our
/etc/hosts
# echo "192.168.10.11 ishikawa" >> /etc/hosts
Now we generate the template. We need only a small template for the basic installation.
# make_template ishikawa flash
Adding product configuration information for
+ base_config
+ flash
Updating base_config template specifics
Client template created in /opt/SUNWjet/Templates
Okay, we have to fill the templates with standard settings.
base_config_ClientArch=i86pc
base_config_ClientEther=08:00:27:DE:91:AB
base_config_ClientOS=sol10u5
The use operating system here isn´t important. You will not install this operating system. You will install the operating system contained in the flash archive.
Fill out the
sysidsection of the system like with a normal system, you just need to fill the data to prevent the system from going interactive.
Now we get to the configuration of the flash install. You just define one or more locations of flash archives. When the installatiion in your flash archive contains all recommended patches you can save some time at the installation and skip the installation by usig
yes for the
flash_skip_recommended_patches parameter.
flash_archive_locations="nfs://192.168.10.1/export/flar/togusa/togusa.flar"
flash_skip_recommended_patches="yes"
Now we have to create the Jumpstart environment for this client.
# /opt/SUNWjet/bin/make_client -f ishikawa
Gathering network information..
Client: 192.168.10.11 (192.168.10.0/255.255.255.0)
Server: 192.168.10.1 (192.168.10.0/255.255.255.0, SunOS)
Solaris: client_prevalidate
Creating Client directory for ishikawa
Solaris: client_build
Creating sysidcfg
Creating profile
Adding base_config specifics to client configuration
Adding flash specifics to client configuration
FLASH: Modifying client profile for flash install
FLASH: Removing package/cluster/usedisk entries from profile
Solaris: Configuring JumpStart boot for ishikawa
Starting SMF services for JumpStart
Solaris: Configure PXE/grub build
Adding install client
Doing a TEXT based install
Leaving the graphical device as the primary console
Configuring ishikawa macro
Using local dhcp server
PXE/grub configuration complete
Running '/opt/SUNWjet/bin/check_client ishikawa'
Client: 192.168.10.11 (192.168.10.0/255.255.255.0)
Server: 192.168.10.1 (192.168.10.0/255.255.255.0, SunOS)
Checking product base_config/solaris
Checking product flash
FLASH: Checking nfs://192.168.10.1/export/flar/togusa/togusa.flar
--------------------------------------------------------------
Check of client ishikawa
-> Passed....
Please note the single line with
FLASH: at the beginning. The JET framework checks for the availability of the flash archive. This prevents one of the most occurring problems with flash... a unaccessible flash archive at the installation.
When we look into the
profile for
ishikawa you will recognize, that all statements regarding cluster to install or similar stuff is removed. But there is a new statement.
archive_location specifies the location of the flar image and
install_type tells the system to do a flash install.
# cat profile
#
# This is an automatically generated profile. Please modify the template.
#
# Created: Sat May 24 12:50:20 CEST 2008
#
install_type flash_install
archive_location nfs://192.168.10.1/export/flar/togusa/togusa.flar
partitioning explicit
#
# Disk layouts
#
filesys rootdisk.s0 free /
filesys rootdisk.s1 256 swap
# pwd
/opt/SUNWjet/Clients/ishikawa
#
While Jumpstarting
When you look into the logfiles of your system, you will notice a big change. You won´t see a large amout of messages from the package installation. Instead of this you will just see the progress notifications of the extraction of the flar archive.
You will find this information in the middle of:
/var/sadm/system/logs/install_log[...]
Beginning Flash archive processing
Extracting archive: togusa
Extracted 0.00 MB ( 0% of 2512.13 MB archive)
[...]
Extracted 2512.13 MB (100% of 2512.13 MB archive)
Extraction complete
[...]
The JET framework auguments this with some housekeeping tasks like deleting the Solaris Volume Manager configuration. As ususal you can look into the
/var/opt/sun/jet/finish.log logfile to find the related messages:
FLASH: Installing flash....
FLASH: Disabling /a/etc/lvm/mddb.cf -> /a/etc/lvm/mddb.cf.disabled
FLASH: Purging entries from /a/etc/lvm/md.tab
FLASH: Disabling mirrored_root_flag in /etc/system
FLASH: Cleanout crash dump area
FLASH: Clear out devfsadm files
After this you have a clone of your old system, but without the instance-specific configuration like ip addresses, hostnames and the volume manager configuration.
I forgot to post the conclusion and the table of content when i published the JET tutorial some weeks ago. Okay ... here they are. This is a real long tutorial. 16 Parts in total. Part 1: Introduction Part 2: Basic Jumpstart Part 3: Files controlling
Tracked: Aug 19, 18:09