You are here

Configure Jumpstart server and backup/restore/clone a server

GENERAL SETUP OF THE JUMPSTART SERVER:

First we create our directory structure:
zfs create rootPool/jumpstart
zfs set mountpoint=/jumpstart
mkdir /jumpstart/config ----------> all the jumpstart config
mkdir /jumpstart/install ----------> all the install media from the OS DVDs
mkdir /jumpstart/images ----------> backup flar images from the clients

Install media:
mkdir /jumpstart/install/sol10_update9
# cd /cdrom/cdrom0/s0/Solaris_10/Tools
# ./setup_install_server /jumpstart/install/sol10_update9

Copy config/rules examples and the check script:
# cp -r /cdrom/cdrom0/s0/Solaris_10/Misc/jumpstart_sample/* /jumpstart/config

Check that you have tftp and rarp running:
root@JumPServeR # svcs -a | grep tftp
online 10:57:10 svc:/network/tftp/udp6:default
root@JumPServeR # svcs -a | grep rarp
online Mar_08 svc:/network/rarp:default

NFS export our jumpstart dirs:
root@JumPServeR # cat /etc/dfs/dfstab | grep jump
share -F nfs -o ro,anon=0 -d "install" /jumpstart/install
share -F nfs -o ro,anon=0 -d "config" /jumpstart/config
share -F nfs -o rw,anon=0 -d "images" /jumpstart/images
root@JumPServeR # shareall

Now we want to have a basic configuration in place, we need to configure the rules file and the sysidcfg first:

In the rules file we just added a basic line, that tells us if the networks is 19.0.0.0 and architecture sparc use the sparc-default profile

root@JumPServeR # cat rules | egrep -v "^#"

network 19.0.0.0 && arch sparc - sparc-default -

On the sparc-default profile just and example of profile, with initial install and the SUNWCall software cluster:

root@JumPServeR # cat sparc-default
Install_type initial_install
Cluster SUNWCall
system_type standalone
partitioning explicit
filesys c2t1d0s0 5240 /
filesys c2t1d0s1 2048 swap
filesys c2t1d0s3 4240 /var
filesys c2t1d0s4 10240 /usr
filesys c2t1d0s5 4240 /opt

And finally a sysidcfg file, with some basic info:

root@JumPServeR # cat sysidcfg
security_policy=NONE
system_locale=C
terminal=vt100
timezone=MET
timeserver=localhost
name_service=NONE
#network_interface=PRIMARY {hostname=${VAR_Host} ip_address=${VAR_HostIp} netmask=${VAR_HostNetMask} protocol_ipv6=no default_route=${VAR_HostDefaultRouter}}
#root_password=${VAR_RootShadow}
security_policy=NONE
auto_reg=disable

Thats a very basic JUMPSTART server configuration.

BACKUP THE CLIENT SERVER:

On the client server we wan't to backup we have to create a flar archive and store-it via NFS on the jumpstart server:

bash-3.00# mount -F nfs 19.132.168.53:/jumpstart/images /mnt

The options used are -c compress the flas archive -x exclude /mnt -n name of the flar.

bash-3.00# flar create -c -n TaTBoX-09032012 -x /mnt /mnt/TaTBoX-09032012.flar
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
The archive will be approximately 2.77GB.
Creating the archive...

RESTORE THE FLASH ARCHIVE ON OUR CLIENT SERVER:

First we have to configure the jumpstart server so we can lan boot our client server and start restoring the flar archive.To do this we need 2 things, the mac adress of the NIC that has conectivity and also an IP address.

In our case:
hostname:TaTBoX
ip:19.70.1.11
mac:0:21:28:14:77:12

With this info we need to modify the /etc/hosts and /etc/ethers on the jumpstart server, we add:

root@JumPServeR # cat /etc/hosts | grep TaT
19.70.1.11 TaTBoX
root@JumPServeR # cat /etc/ethers | grep TaT
0:21:28:14:77:12 TaTBoX

And finally we use the add_install_client command:

root@JumPServeR # pwd
/jumpstart/install/sol10_update9/Solaris_10/Tools
root@JumPServeR # ls
Boot Installers add_install_client dial rm_install_client setup_install_server

Here we have the options -e MAC, -s install dir with media, -c custom configure dir, -p dir with the sysidcfg file, TaTBoX the hostname , and sun4v the platform(you have sun4u for older sparc servers)
root@JumPServeR # ./add_install_client -e 0:21:28:14:77:12 -s 19.132.168.53:/jumpstart/install/sol10_update9 -c 19.132.168.53:/jumpstart/config -p 19.132.168.53:/jumpstart/config TaTBoX sun4v
updating /etc/bootparams
copying boot file to /tftpboot/inetboot.SUN4V.Solaris_10-1
root@JumPServeR #

This command does 2 things, adds the entry to the /etc/bootparams:

root@JumPServeR # cat /etc/bootparams | grep t200
TaTBoX root=JumPServeR:/jumpstart/install/sol10_update9/Solaris_10/Tools/Boot install=19.132.168.53:/jumpstart/install/sol10_update9 boottype=:in sysid_config=19.132.168.53:/jumpstart/config install_config=19.132.168.53:/jumpstart/config rootopts=:rsize=8192

And also adds a inetboot image to the /tftpboot dir , and creates softlinks with the IP address of the cliente server in HEX to the inetboot image:

root@JumPServeR # ls -ltr | tail -4
-rwxr-xr-x 1 root root 220784 Mar 9 11:13 inetboot.SUN4V.Solaris_10-1
lrwxrwxrwx 1 root root 27 Mar 9 11:13 1346010B.SUN4V -> inetboot.SUN4V.Solaris_10-1
lrwxrwxrwx 1 root root 27 Mar 9 11:13 1346010B -> inetboot.SUN4V.Solaris_10-1
-rw-r--r-- 1 root root 318 Mar 9 11:13 rm.19.70.1.11

With this config we are ready to boot the server via network using ok>boot net from the OBP.

CONFIGURE THE CLIENT IN THE JUMPSTARTSERVER FOR UNATTENDED RESTORE OF THE FLASH ARCHIVE

We are going to create a directory structure for the client profiles, so we could have several hosts configured for restore if needed.

We create the /jumpstart/config/profiles dir and inside another dir with our client hostname:
root@JumPServeR # pwd
/jumpstart/config/profiles
root@JumPServeR # mkdir TaTBoX

Inside the dir we are going to create 2 files, profile and sysidcfg:

root@JumPServeR # cat profile
install_type flash_install
archive_location nfs 19.132.168.53:/jumpstart/images/TaTBoX-09032012.flar
partitioning explicit

filesys c2t1d0s0 5240 /
filesys c2t1d0s1 2048 swap
filesys c2t1d0s3 7240 /var
filesys c2t1d0s4 8240 /usr
filesys c2t1d0s5 4240 /opt

root@JumPServeR # cat sysidcfg
security_policy=NONE
system_locale=C
terminal=vt100
timezone=MET
timeserver=localhost
name_service=NONE
network_interface=primary {hostname=TaTBoX ip_address=19.70.1.11 netmask=255.0.0.0 protocol_ipv6=no default_route=19.132.168.1}
root_password=Blxoq
auto_reg=disable
nfs4_domain=dynamic

And the final step is to modify the rules file, to point it to the profile dir of the client:
root@JumPServeR # pwd
/jumpstart/config
root@JumPServeR # cat rules | grep TaTBoX
hostname TaTBoX - profiles/TaTBoX/profile -

We check the files with the check script and we are ready:
root@JumPServeR # ./check
Validating rules...
Validating profile profiles/loling/profile...
Validating profile profiles/TaTBoX/profile...
Validating profile sparc-default...
The custom JumpStart configuration is ok.

Now we can boot the client from the OBP:

{0} ok boot net - install (you can also boot in verbose mode with: boot net -v - install)
Boot device: /pci@780/pci@0/pci@1/network@0 File and args: - install
100 Mbps full duplex Link up
Requesting Internet Address for 0:21:28:14:77:12
Requesting Internet Address for 0:21:28:14:77:12
Requesting Internet Address for 0:21:28:14:77:12
100 Mbps full duplex Link up
Requesting Internet address for 0:21:28:14:77:12
SunOS Release 5.10 Version Generic_142909-17 64-bit
Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
/

Some common errors:

The following are a few of the common errors encountered in jumpstart.

Error : unknown client “client host name”
Source : add_install_client
Cause : host name can’t be resolved . check host entry is there in /etc/ethers or in nis/nis+ maps .

File just loaded does not appear to be executable .
Source : Solaris booting process
Cause : Improper media . Make sure proper media is available through disk image or CD in the install server . Also see
that the rules point to valid media type.

Warning : getfile:RPC failed : error 5 (RPC timed out)
Source: Client boot requests
Cause : Muliple entries for a client in different servers. There should not be multiple entries in different install server’s /etc/bootparams , /tftpboot or /rplboot . These causes a hang situation when all of them try to answer.

No network boot server .Unable to install the system. See installation instructions
Source : Client boot request.
Cause : Installation is not proper. Check the boot server installation again for any error in command or file .

Timeout waiting for ARP/RARP packet …
Source : Client boot request .
Cause : No server is answering its request for booting .Probably they don’t know about this client . See the proper entries are there in /etc/bootparams or nis maps with proper entries in nsswitch.conf . add_install_client is responsible for adding client information in jumpstart server so check the command and its option.

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://hpuxtips.es/?q=content/configure-jumpstart-server-and-backuprestoreclone-server [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.92.142.198 [:db_insert_placeholder_9] => 1502962202 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.