Wednesday, August 15, 2012

Custom JumpStart framework setup

My Custom JumpStart installation requires an ISC-DHCP server.
The reason is that I believe this is more up-to-date, flexible and offers better scaling.

If necessary to get started with ISC-DHCP consider the following topcis:
 

Take a snapshot of the system before beginning (just in case).
It may be wise to take more, even partials, along with each later steps.

# zfs snapshot -r rpool@backup
# zfs destroy rpool/swap@backup
# zfs destroy rpool/dump@backup

Mount the Solaris 10 optical media on the Custom JumpStart server:

# ll /cdrom
total 9
lrwxrwxrwx   1 root     nobody ... cdrom0 -> ./sol_10_811_x86
dr-xr-xr-x   2 root     sys    ... sol_10_811_x86

Change directories to Tools subdirectory:

# cd /cdrom/sol_10_811_x86/Solaris_10/Tools 
# ll
total 210
-r-xr-xr-x   1 root     root  ... add_install_client
dr-xr-xr-x   3 root     root  ... Boot
-r-xr-xr-x   1 root     root  ... dial
dr-xr-xr-x   3 root     root  ... Installers
-r-xr-xr-x   1 root     root  ... rm_install_client
-r-xr-xr-x   1 root     root  ... setup_install_server


Create ZFS a dataset hierarchy and start putting installation stuff onto them:
 
# zfs create -o mountpoint=/install rpool/export/install

# ./setup_install_server /install
Verifying target directory...
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk...
Copying Install Boot Image hierarchy...
Copying /boot netboot hierarchy...
Install Server setup complete

# ll /boot /install
/boot:
total 1310
drwxr-xr-x   3 root     sys   ... acpi
drwxr-xr-x   2 root     sys   ... amd64
drwxr-xr-x   3 root     sys   ... grub
-rwxr-xr-x   1 root     sys   ... multiboot
drwxr-xr-x   3 root     root  ... platform
drwxr-xr-x   2 root     sys   ... rc.d
drwxr-xr-x   6 root     sys   ... solaris
-rw-r--r--   1 root     sys   ... solaris.xpm
-rw-r--r--   1 root     sys   ... x86.miniroot-safe

install:
total 29
dr-xr-xr-x   5 root     root  ... boot
-r--r--r--   1 root     root  ... Copyright
-r-xr-xr-x   1 root     root  ... installer
-r--r--r--   1 root     root  ... Offer_to_...
dr-xr-xr-x   7 root     root  ... Solaris_10

# zfs create -o mountpoint=/jumpstart rpool/export/jumpstart
# zfs create -o mountpoint=/package rpool/export/package
# zfs create -o mountpoint=/patch rpool/export/patch
# zfs create -o mountpoint=/config rpool/export/config

# zfs list -t fs -S creation -r -d 1 /export
NAME                     USED  AVAIL  REFER  MOUNTPOINT
rpool/export/config       31K  9.05G    31K  /config
rpool/export/patch        31K  9.05G    31K  /patch
rpool/export/package      31K  9.05G    31K  /package
rpool/export/jumpstart    31K  9.05G    31K  /jumpstart
rpool/export/install    2.12G  9.05G  2.12G  /install
...

 Now it's necessary to set up certain shares:
 
# zfs set sharenfs='anon=0,sec=sys,ro' rpool/export/install
# zfs set sharenfs='anon=0,sec=sys,ro' rpool/export/jumpstart

# zfs set sharenfs='ro' rpool/export/package
# zfs set sharenfs='ro' rpool/export/patch
# zfs set sharenfs='ro' rpool/export/config
 
# zfs get -s local -d 1 sharenfs rpool/export 
NAME                    PROPERTY  VALUE              SOURCE
rpool/export/install    sharenfs  anon=0,sec=sys,ro  local
rpool/export/jumpstart  sharenfs  anon=0,sec=sys,ro  local
rpool/export/package    sharenfs  ro                 local
rpool/export/patch      sharenfs  ro                 local
rpool/export/config     sharenfs  ro                 local

 

# share
-               /install    anon=0,sec=sys,ro   "" 
-               /jumpstart  anon=0,sec=sys,ro   "" 
-               /patch      sec=sys,ro   "" 
-               /package    sec=sys,ro   "" 
-               /config     sec=sys,ro   "" 
  
IMPORTANT
Remember to exit from  /cdrom/sol_10_811_x86/Solaris_10/Tools
Otherwise one may get trouble related to optical media dependencies.
 
# cd
# eject
# ll /cdrom 
total 0
  
If the intent is to apply ZFS Flash Archives (flash install), patch the boot miniroot.
As next steps, configure rules & profiles and associate the clients.