Create flash archive (flar) and jump under jet
April 1, 2008 3:20 pm Solaris JumpstartNow that the JET install creates the server exactly how we like it let’s look at turning it into a flash archive (flar) image to use with jet. This will speed up even more the install process.
grolsch:/work # flarcreate -n “sb100 flar” -S -R / -x /work -x /export/home /work/sb100-snapshot.080318.flar
Full Flash
Checking integrity…
Integrity OK.
Running precreation scripts…
Precreation scripts done.
Creating the archive…
6080747 blocks
Archive creation complete.
Running postcreation scripts…
Postcreation scripts done.
Running pre-exit scripts…
Pre-exit scripts done.
grolsch:/work # ls -la
total 6083780
drwxr-xr-x 3 root root 512 Mar 18 09:51 .
drwxr-xr-x 23 root root 512 Mar 17 17:34 ..
-rw-r–r– 1 root root 3113352215 Mar 18 10:10 sb100-snapshot.080318.flar
We have to add the flash module to our template:
heineken:/opt/SUNWjet/bin # ./make_template -f -T grolsch grolsch flash
./make_template[119]: hostname
Adding product configuration information for
+ flash
./make_template[427]: hostname
Updating base_config template specifics
Client template created in /opt/SUNWjet/Templates
And we have to edit the template to include information on the flar:
flash_archive_locations=”nfs://10.0.0.10/work/jumpstart/flash/sb100-snapshot.080318.flar”
There, that template can now be used to quickly jump any sun4u system very quickly. It will be fully patched, include all extra packages we like and even be fully configured thanks to JET. Bear in mind the flar is used as a guide only and on its own does not contain all configuration settings. For example, if the flar was put into a blank template the hosts file, /etc/vfstab, defaultrouter, etc would not be set.