Less Known Solaris features: Jumpstart Enterprise Toolkit - Part 14: Using flash archives
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:
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.
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:
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
Okay, we have to fill the templates with standard settings.
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.
Now we have to create the Jumpstart environment for this client.
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.
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
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:
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.