Total Pageviews

Friday, 14 March 2014

Configuring a Jumpstart Server !!!

Today we are going to learn how to configure a jumpstart server.

Jumpstart server is useful to Install OS on multiple servers through a single OS image
in a network.

One important thing while configuring a Jumpstart server is,
your jumpstart server and the upgradation activity server should have same defaultrouter and netmask then only U can perform Installation through JUMPSTART.

It is so easy to configure a jumpstart server, now I will give you a clear explanation.

Usually we will maintain jumpstart in a separate slice so that we can share that particular filesystems to different servers. So I created a slice with 7GB -c1t0d0s5.

I will mount this slice on mount point /Jumpstart/S10U10 so that separate filesystem is ready.
/dev/dsk/c1t0d0s5      6.9G   7.0M   6.8G     1%    /Jumpstart/S10U10

root@mysrv1 #
You have new mail.
Sourcing /root/.profile-EIS.....
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # df -kh
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10         20G    13G   6.4G    68%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   3.2G   1.8M   3.2G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        20G    13G   6.4G    68%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        20G    13G   6.4G    68%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   7.4G   4.2G   3.2G    57%    /tmp
swap                   3.2G    88K   3.2G     1%    /var/run
swap                   3.2G     0K   3.2G     0%    /dev/vx/dmp
swap                   3.2G     0K   3.2G     0%    /dev/vx/rdmp
/dev/dsk/c1t0d0s4      4.9G   4.9G     0K   100%    /Jumpstart
/dev/dsk/c1t0d0s5      6.9G   7.0M   6.8G     1%    /Jumpstart/S10U10
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # bash
root@mysrv1 #
root@mysrv1 # cd /Jumpstart
root@mysrv1 # ls -lrht
total 4602388
drwx------   2 root     root        8.0K Jun  1  2011 lost+found
drwxr-xr-x   5 root     root         512 Jul 20  2012 S10U6
drwxr-xr-x   3 root     root         512 Oct 19  2012 S10U10
-rw-r--r--   1 root     root        2.2G Mar 20 12:40 sol-11-1111-repo-full.iso-a.filepart
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd S10U10
root@mysrv1 # ls
lost+found
root@mysrv1 # pwd
/Jumpstart/S10U10
root@mysrv1 # cd /Jumpstart
root@mysrv1 # ls
S10U10                                S10U6                                 lost+found                            sol-11-1
root@mysrv1 # cd /Jumpstart/S10U10
root@mysrv1 # ls
lost+found
root@mysrv1 #
root@mysrv1 #                 Either you can configure from a CD or ISO image or from an server which contains config files. Here I am configuring from another server.

root@mysrv1 # showmount -e 10.20.10.21              
export list for 10.20.10.21:
/jumpstart/S10_ISO (everyone)
/jumpstart/S10U10  (everyone)
root@mysrv1 # mount 10.20.10.21:/jumpstart/S10U10 /mnt
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd /mnt
root@mysrv1 #
root@mysrv1 # ls -lrth
total 34
-r--r--r--   1 root     root        1.7K Jun  1  2011 Offer_to_Provide_Source_Code.txt
-r--r--r--   1 root     root        7.1K Jun  2  2011 Copyright
-rwxr-xr-x   1 root     root         257 Aug 24  2011 installer
drwxr-xr-x   7 root     root         512 Aug 24  2011 Solaris_10
drwxr-xr-x   5 root     root         512 Aug 24  2011 platform
drwxr-xr-x   2 root     root         512 Jul 21  2012 boot
drwxr-xr-x   2 root     root         512 Feb 19 23:28 config_200213_bkp
-rw-r--r--   1 root     root         310 Mar 26 11:22 sysidcfg
drwxr-xr-x   2 root     root         512 Mar 26 11:23 config
root@mysrv1 #
root@mysrv1 # pwd
/mnt
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cp -rp config /Jumpstart/S10U10      (Here I am simply copying rather than creating new directory and its contents)
root@mysrv1 #
root@mysrv1 # cd /Jumpstart/S10U10
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ls -l
total 18
drwxr-xr-x   2 root     root         512 Mar 26 11:23 config
drwx------   2 root     root        8192 Oct 19  2012 lost+found
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # pwd
/Jumpstart/S10U10
root@mysrv1 #
root@mysrv1 # cd /mnt
root@mysrv1 #
root@mysrv1 # ls -lrth
total 34
-r--r--r--   1 root     root        1.7K Jun  1  2011 Offer_to_Provide_Source_Code.txt
-r--r--r--   1 root     root        7.1K Jun  2  2011 Copyright
-rwxr-xr-x   1 root     root         257 Aug 24  2011 installer
drwxr-xr-x   7 root     root         512 Aug 24  2011 Solaris_10
drwxr-xr-x   5 root     root         512 Aug 24  2011 platform
drwxr-xr-x   2 root     root         512 Jul 21  2012 boot
drwxr-xr-x   2 root     root         512 Feb 19 23:28 config_200213_bkp
-rw-r--r--   1 root     root         310 Mar 26 11:22 sysidcfg
drwxr-xr-x   2 root     root         512 Mar 26 11:23 config
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # mkdir -p /Jumpstart/S10U10/boot    --- file which contains boot image
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # mkdir -p /Jumpstart/S10U10/install   --- file which contains installation related
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd Solaris_10
root@mysrv1 # ls -lrth
total 102
drwxr-xr-x   2 root     bin          512 Aug 24  2011 Patches
drwxr-xr-x   2 root     bin          512 Aug 24  2011 Docs
drwxr-xr-x   5 root     bin          512 Aug 24  2011 Misc
drwxr-xr-x 2072 root     bin          47K Aug 24  2011 Product
drwxr-xr-x   4 root     bin          512 Jul 21  2012 Tools
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd Tools/
root@mysrv1 #
root@mysrv1 # ls -lrth
total 208
-rwxr-xr-x   1 root     bin          63K Mar 31  2011 add_install_client
-rwxr-xr-x   1 root     bin          18K Mar 31  2011 setup_install_server
-rwxr-xr-x   1 root     bin          18K Mar 31  2011 rm_install_client
-rwxr-xr-x   1 root     sys         1.3K Mar 31  2011 dial
drwxr-xr-x   3 root     staff        512 Aug 24  2011 Installers
drwxr-xr-x   3 root     root         512 Jul 21  2012 Boot
root@mysrv1 #
root@mysrv1 # pwd
/mnt/Solaris_10/Tools/
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ./setup_install_server -b /Jumpstart/S10U10/boot/
Verifying target directory...
Calculating space required for the installation boot image
Copying Solaris_10 Tools hierarchy...
Copying Install Boot Image hierarchy...
Copying /boot netboot hierarchy...
Install Server setup complete
root@mysrv1 #
root@mysrv1 #      By this 2 steps we can say that configuration of Jumpstart is almost DONE.
root@mysrv1 #
root@mysrv1 # ./setup_install_server /Jumpstart/S10U10/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
root@mysrv1 #
root@mysrv1 # pwd
/mnt/Solaris_10/Tools
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd /Jumpstart/S10U10/
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ls -lrth
total 22
drwx------   2 root     root        8.0K Oct 19  2012 lost+found
drwxr-xr-x   2 root     root         512 Mar 26 11:23 config    ----- since we already copied
drwxr-xr-x   5 root     root         512 Jul  5 20:27 boot
drwxr-xr-x   8 root     root         512 Jul  5 20:41 install
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd config/
root@mysrv1 #
root@mysrv1 # ls -lrth        ----- since we already copied
total 138
-rwxr-xr-x   1 root     root         63K Jul 21  2012 check
-rw-r--r--   1 root     root          27 Jul 21  2012 rules
-rw-r--r--   1 root     root         158 Mar 26 11:13 any_machine
-rw-r--r--   1 root     root          53 Mar 26 11:23 rules.ok
-rw-r--r--   1 root     root         310 Mar 30 00:41 sysidcfg
root@mysrv1 #
root@mysrv1 # rm rules.ok      ----- This will be created when we perform the check fr now I am removing since we copied
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ls -lrth
total 136
-rwxr-xr-x   1 root     root         63K Jul 21  2012 check
-rw-r--r--   1 root     root          27 Jul 21  2012 rules
-rw-r--r--   1 root     root         158 Mar 26 11:13 any_machine
-rw-r--r--   1 root     root         310 Mar 30 00:41 sysidcfg
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cat any_machine     ----- Previous server's (10.20.10.21) , since we copied config 
install_type    initial_install
partitioning    explicit
cluster         SUNWCXall
filesys         c1t0d0s0 20480 /
filesys         c1t0d0s1 82944 swap
filesys         c1t0d0s3 34816 /usr/sap
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ls -lrth
total 136
-rwxr-xr-x   1 root     root         63K Jul 21  2012 check
-rw-r--r--   1 root     root          27 Jul 21  2012 rules
-rw-r--r--   1 root     root         158 Mar 26 11:13 any_machine
-rw-r--r--   1 root     root         310 Mar 30 00:41 sysidcfg
root@mysrv1 #
root@mysrv1 # cp any_machine bkp_any_machine_05july13
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cp sysidcfg bkp_sysidcfg_05july13
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # vi any_machine          ----- now I will edit this according to my requirement, either 
"any_machine" 6 lines, 158 characters         u can give / and swap size as above , or u can give
install_type    upgrade                                        give at the time of installation.
cluster         SUNWCXall
~                               Here install_type    upgrade since my server is for OS upgradation,
~                                                otherwise for fresh installation u need to give install
"any_machine" 2 lines, 43 characters
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # vi sysidcfg
"sysidcfg" 14 lines, 310 characters
keyboard=US-English
system_locale=en_US.ISO8859-15
install_locale=en_US
timezone=Asia/Calcutta
terminal=vt100
timeserver=localhost
name_service=none
security_policy=NONE
auto_reg=disable
network_interface=ce0 {hostname=sairam
protocol_ipv6=no
netmask=255.255.255.192
default_route=10.20.10.29}
nfs4_domain=dynamic
~                                                     This is system identification , important note : your jumpstart server and the upgradation activity server should be with same defaultrouter and netmask.
"sysidcfg" 14 lines, 315 characters
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ls -lrth
total 140
-rwxr-xr-x   1 root     root         63K Jul 21  2012 check
-rw-r--r--   1 root     root          27 Jul 21  2012 rules
-rw-r--r--   1 root     root         158 Jul  5 21:02 bkp_any_machine_05july13
-rw-r--r--   1 root     root         310 Jul  5 21:02 bkp_sysidcfg_05july13
-rw-r--r--   1 root     root          43 Jul  5 21:03 any_machine
-rw-r--r--   1 root     root         315 Jul  5 21:05 sysidcfg
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ./check                  ---- now perform this to check given jumpstart configuration
Validating rules...
Validating profile any_machine...
The custom JumpStart configuration is ok.
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ls -lrth
total 142
-rwxr-xr-x   1 root     root         63K Jul 21  2012 check
-rw-r--r--   1 root     root          27 Jul 21  2012 rules
-rw-r--r--   1 root     root         158 Jul  5 21:02 bkp_any_machine_05july13
-rw-r--r--   1 root     root         310 Jul  5 21:02 bkp_sysidcfg_05july13
-rw-r--r--   1 root     root          43 Jul  5 21:03 any_machine
-rw-r--r--   1 root     root         315 Jul  5 21:05 sysidcfg
-rw-r--r--   1 root     root          53 Jul  5 21:05 rules.ok     --- after performing check rules.ok got created automatically......
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # pwd
/Jumpstart/S10U10/config
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd ../
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ls -lrth
total 22
drwx------   2 root     root        8.0K Oct 19  2012 lost+found
drwxr-xr-x   5 root     root         512 Jul  5 20:27 boot
drwxr-xr-x   8 root     root         512 Jul  5 20:41 install
drwxr-xr-x   2 root     root         512 Jul  5 21:05 config
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd install/
root@mysrv1 #
root@mysrv1 # ls -rth
Offer_to_Provide_Source_Code.txt  Solaris_10                        sysidcfg
Copyright                         platform                          config
installer                         config_200213_bkp                 boot
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd Solaris_10/
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cd Tools/
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # pwd
/Jumpstart/S10U10/install/Solaris_10/Tools
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ls -lrth
total 208
-rwxr-xr-x   1 root     bin          63K Mar 31  2011 add_install_client
-rwxr-xr-x   1 root     bin          18K Mar 31  2011 setup_install_server
-rwxr-xr-x   1 root     bin          18K Mar 31  2011 rm_install_client
-rwxr-xr-x   1 root     sys         1.3K Mar 31  2011 dial
drwxr-xr-x   3 root     staff        512 Aug 24  2011 Installers
drwxr-xr-x   3 root     root         512 Jul  5 20:41 Boot
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #      NOW the main and final task , configuring client server on which OS upgrade
root@mysrv1 #       to be performed, check client server entry in hosts file.
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # cat /etc/hosts|grep sairam
10.20.10.29 sairam
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # pwd
/Jumpstart/S10U10/install/Solaris_10/Tools
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ./add_install_client              -check below options for any help
Usage: ./add_install_client [-i ipaddr] [-e ethernetid] [-s server:path]
                [-c server:path] [-p server:path]
                [-n [name_server]:name_service[(netmask)]]
                [-t [server:]install boot image path |
                 -t server:[install boot image path] ]
                client_name platform_group


root@mysrv1 # ./add_install_client -e 0:3:ba:ef:dc:35 -s mysrv1:/Jumpstart/S10U10/install -c mysrv1:/Jumpstart/S10U10/config -p mysrv1:/Jumpstart/S10U10/config -i  sairam  sun4u
mal-formed IP address: sairam    ----remember ip need to be provided not the hostname
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # ./add_install_client -e 0:3:ba:ef:dc:35 -s mysrv1:/Jumpstart/S10U10/install -c mysrv1:/Jumpstart/S10U10/config -p mysrv1:/Jumpstart/S10U10/config -i  10.20.10.29 sairam  sun4u
Adding Ethernet number for sairam to /etc/ethers
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
Adding "share -F nfs -o ro,anon=0 /Jumpstart/S10U10/install" to /etc/dfs/dfstab
updating /etc/bootparams
copying boot file to /tftpboot/inetboot.SUN4U.Solaris_10-2
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # share
-               /Jumpstart   ro,anon=0   ""
-               /Jumpstart/S10U10/install   ro,anon=0   ""
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # unshare /Jumpstart/S10U10/install
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # share -F nfs -o ro,anon=0 /Jumpstart/S10U10
root@mysrv1 #
root@mysrv1 #
root@mysrv1 # vi /etc/dfs/dfstab         --- to share the jumpstart filesystem
"/etc/dfs/dfstab" 14 lines, 486 characters

#       Place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       Issue the command 'svcadm enable network/nfs/server' to
#       run the NFS daemon processes and the share commands, after adding
#       the very first entry to this file.
#
#       share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
#share -F nfs -o ro,anon=0 /Jumpstart
share -F nfs -o ro,anon=0 /Jumpstart/S10U10
~
"/etc/dfs/dfstab" 14 lines, 479 characters
root@mysrv1 #
root@mysrv1 #       With this Jumpstart server and client server configuration is COMPLETED

Now Login to client server 10.20.10.29 and do necessary pre-checks before proceeding to 
OS upgradation and got to OK prompt and give boot -net -install   ..........

###############################################################################







No comments:

Post a Comment