JumpStart: Create a profile/install server on the network

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

JumpStart: Create a profile/install server on the network

Post by cah »

Oracle Solaris 10 9/10 Installation Guide: Custom JumpStart and Advanced Installations
http://docs.oracle.com/cd/E18752_01/html/821-1911/

1. Create an install source directory

Code: Select all

% mkdir -p /JumpStart/install/sparc_solaris10_u10
2. Create an install server

Code: Select all

% cd /cdrom/cdrom0/Solaris_10/Tools
% ./setup_install_server /JumpStart/install/sparc_solaris10_u10
3. Create a boot directory

Code: Select all

% mkdir -p /JumpStart/boot/sparc_solaris10_u10
4. Create a Boot server

Code: Select all

% /cdrom/cdrom0/Solaris_10/Tools/setup_install_server -b /JumpStart/boot/sparc_solaris10_u10
5. Create a jumpstart pool (jspool) and mount to /JumpStart

Code: Select all

%zpool create -m /JumpStart -f jspool mirror c1t2d0 c1t3d0
6. Add the following entry in /etc/dfs/dfs

Code: Select all

share -F nfs -o ro,anon=0 /JumpStart
7. Run the following command to share NFS mount

Code: Select all

% shareall
8. Copy the example custom JumpStart files into /JumpStart directory on the profile server

Code: Select all

% cp -rp /cdrom/cdrom0/Solaris_10/Misc/jumpstart_sample/* /JumpStart
9. Create a profile (modify from sample file)

10. Create a rules file (modify from sample file)

11. Validate the rules file

Code: Select all

% cd /JumpStart
% ./check

Validating rules...
Validating profile zfsroot_profile...
The custom JumpStart configuration is ok.
12. Create a sysidcfg file in /JumpStart/sysidcfg/bldint02

Code: Select all

system_locale=C
terminal=vt100
nfs4_domain=dynamic
name_service=DNS {
        domain_name=ols.minimed.com
        name_server=10.0.20.18,10.48.246.170,172.24.120.170
        search=ols.minimed.com,corp.medtronic.com
}
network_interface=bge0 {
        hostname=bldint02
        ip_address=10.0.32.154
        default_route=10.0.32.1
        netmask=255.255.254.0
        protocol_ipv6=no
}
security_policy=NONE
root_password=v.Ht9UnFKcioQ
timezone=US/Pacific
timeserver=144.15.157.92
13. Set up new system to install from the network

Code: Select all

% cd /JumpStart/install/sparc_solaris10_u10/Solaris_10/Tools
% ./add_install_client -i 10.0.32.154 -e 0:3:ba:48:e8:57 -p jumpstart:/JumpStart/sysidcfg/bldint02 -c jumpstart:/JumpStart bldint02 sun4u

Adding IP address for bldint02.ols.minimed.com to /etc/hosts
Adding Ethernet number for bldint02.ols.minimed.com to /etc/ethers
making /tftpboot
enabling tftp in /etc/inetd.conf
Converting /etc/inetd.conf
enabling network/tftp/udp6 service
enabling network/rarp service
enabling network/rpc/bootparams service
updating /etc/bootparams
copying boot file to /tftpboot/inetboot.SUN4U.Solaris_10-1
Jumpstart server is ready to jumpstart new systems!
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Jumpstart new system - bldint02

Post by cah »

Boot from new system (SPARC in this example)

Code: Select all

{1} ok boot net - install


SC Alert: Host System has Reset
Probing system devices
Probing memory
Probing I/O buses

Sun Fire V240, No Keyboard
Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.18.10, 8192 MB memory installed, Serial #55109719.
Ethernet address 0:3:ba:48:e8:57, Host ID: 8348e857.



Rebooting with command: boot net - install                            
Boot device: /pci@1f,700000/network@2  File and args: - install
1000 Mbps FDX Link up
Requesting Internet Address for 0:3:ba:48:e8:57
Requesting Internet Address for 0:3:ba:48:e8:57
1000 Mbps FDX Link up
SunOS Release 5.10 Version Generic_147440-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Hardware watchdog enabled
SC unretrieved msg DEC 07 00:44:58 2012 UTC [Host System has Reset]
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface bge3...
Skipped interface bge3
Attempting to configure interface bge2...
Skipped interface bge2
Attempting to configure interface bge1...
Skipped interface bge1
Attempting to configure interface bge0...
Configured interface bge0
Setting up Java. Please wait...
Serial console, reverting to text install
Beginning system identification...
Searching for configuration file(s)...
Using sysid configuration file 10.0.33.6:/JumpStart/sysidcfg/bldint02/sysidcfg
Search complete.
Discovering additional network configuration...
Completing system identification...
Starting remote procedure call (RPC) services: done.
q The Solaris Installation Program qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  The Solaris installation program is divided into a series of short sections
  where you'll be prompted to provide information for the installation. At
  the end of each section, you'll be able to change the selections you've
  made before continuing.

  About navigation...
        - The mouse cannot be used
        - If your keyboard does not have function keys, or they do not
          respond, press ESC; the legend at the bottom of the screen
          will change to show the ESC keys to use for navigation.










qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    F2_Continue    F6_Help
q Identify This System qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  On the next screens, you must identify this system as networked or
  non-networked, and set the default time zone and date/time.

  If this system is networked, the software will try to find the information
  it needs to identify your system; you will be prompted to supply any
  information it cannot find.

  > To begin identifying this system, press F2.












qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help
q Date and Time qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  > Accept the default date and time or enter
    new values.

  Date and time: 2012-12-06 17:23

                 Year   (4 digits) : 2012
                 Month  (1-12)     : 12
                 Day    (1-31)     : 06
                 Hour   (0-23)     : 17
                 Minute (0-59)     : 23










qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help
q Provide Solaris Auto Registration Info: qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  To improve products and services, Oracle Solaris communicates configuration
  data to Oracle after rebooting.

  You can register your version of Oracle Solaris to capture this data for
  your use, or the data is sent anonymously.

  For information about what configuration data is communicated and how to
  control this facility, see the Release Notes or
  www.oracle.com/goto/solarisautoreg.

  > Use the arrow keys to select the option and press Return to
     mark it [X].



      qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
      [ ] I would like to register using My Oracle Support information.



qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help
q Provide Solaris Auto Registration Info: qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  To send the configuration data anonymously, complete the following fields.
  If using a proxy server, provide the proxy settings.

  For information about what configuration data is communicated and how to
  control this facility, see the Release Notes or
  www.oracle.com/goto/solarisautoreg.



             Proxy Server Host Name:                                          
           Proxy Server Port Number:
               HTTP Proxy User Name:
                HTTP Proxy Password:







qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help






















System identification is completed.
System identification complete.
Starting Solaris installation program...
Searching for JumpStart directory...
Using rules.ok from 10.0.33.6:/JumpStart.
Checking rules.ok file...
Using profile: zfsroot_profile
Executing JumpStart preinstall phase...
Searching for SolStart directory...
Checking rules.ok file...
Using begin script: install_begin
Using finish script: patch_finish
Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.

Processing profile
        - Saving Boot Environment Configuration
        - Selecting cluster (SUNWCall)
        - Selecting all disks
        - Configuring boot device
        - Configuring / (c0t0d0s0)
        - Configuring  (c0t1d0s0)
        - Automatically configuring disks for Solaris operating system
        - Deselecting unmodified disk (c0t2d0)
        - Deselecting unmodified disk (c0t3d0)

Verifying disk configuration

Verifying space allocation
        - Total software size:  4322.97 Mbytes

Preparing system for Solaris install

Configuring disk (c0t0d0)
        - Creating Solaris disk label (VTOC)

Configuring disk (c0t1d0)
        - Creating Solaris disk label (VTOC)
        - Creating pool rpool
        - Creating swap zvol for pool rpool
        - Creating dump zvol for pool rpool

Creating and checking file systems
        - Creating rpool/ROOT/solaris10_u10 dataset

Beginning Solaris software installation

Starting software installation
        SUNWcsu..........................done.  4306.74 Mbytes remaining.
        SUNWcsr..........................done.  4302.33 Mbytes remaining.
        SUNWcsl..........................done.  4285.45 Mbytes remaining.
        SUNWdefault-java.................done.  4285.43 Mbytes remaining.
        SUNWcar.u........................done.  4284.77 Mbytes remaining.
        SUNWocfd.........................done.  4284.42 Mbytes remaining.
        SUNWjdmk-base....................done.  4283.17 Mbytes remaining.
        SUNWlucfg........................done.  4283.09 Mbytes remaining.
        SUNWcakr.u.......................done.  4257.57 Mbytes remaining.
        SUNWcnetr........................done.  4257.50 Mbytes remaining.
        SUNWkvm.u........................done.  4255.10 Mbytes remaining.
...
It should be very straightforward.

Each new system installation requires a new entry in /etc/bootparam. That means `add_install_client ` needs to be run each time and sysidcfg needs to be created each time.
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Jumpstart appzone02

Post by cah »

First, some work has to be done on jumpstart server:

1. Add sysidcfg in /JumpStart/sysidcfg/appzone02

Code: Select all

system_locale=C
terminal=vt100
nfs4_domain=dynamic
name_service=DNS {
        domain_name=ols.minimed.com
        name_server=10.0.20.18,10.48.246.170,172.24.120.170
        search=ols.minimed.com,corp.medtronic.com
}
network_interface=ixgbe0 {
        hostname=appzone02
        ip_address=10.0.33.8
        default_route=10.0.32.1
        netmask=255.255.254.0
        protocol_ipv6=no
}
security_policy=NONE
root_password=v.Ht9UnFKcioQ
timezone=US/Pacific
timeserver=144.15.157.92
auto_reg=disable
2. Modify /JumpStart/rules to include the following line at the bottom:

Code: Select all

hostname appzone02       -       appzone02_profile    -
3. Create a appzone02_profile in /JumpStart

Code: Select all

Install_type initial_install
Cluster SUNWCall
root_device c2t338670488B799130d0
pool rpool auto auto auto c2t338670488B799130d0
pool zonepool auto auto auto c0t3A326F3C118FEC2Ed0
bootenv installbe bename solaris10_u11
P.S. "root_device" should be able to specify which disk to install

4. Run check program

Code: Select all

jumpstart:/JumpStart%check
Validating rules...
Validating profile appzone02_profile...
The custom JumpStart configuration is ok.
5. Set up new system to install from the network

Code: Select all

cd /JumpStart/install/sparc_solaris10_u11/Solaris_10/Tools
./add_install_client -i 10.0.33.8 -e 0:10:e0:35:86:8a -p jumpstart:/JumpStart/sysidcfg/appzone02 -c jumpstart:/JumpStart appzone02 sun4v
Adding IP address for appzone02.ols.minimed.com to /etc/hosts
Adding Ethernet number for appzone02.ols.minimed.com to /etc/ethers
updating /etc/bootparams
copying boot file to /tftpboot/inetboot.SUN4V.Solaris_10-1
5. Verify these files:

Code: Select all

/etc/hosts
/etc/ethers
/etc/bootparams
7. Boot from appzone02 ok prompt

Code: Select all

{0} ok boot net - install
Boot device: /pci@300/pci@1/pci@0/pci@1/network@0  File and args: - install
1000 Mbps full duplex Link up
Requesting Internet Address for 0:10:e0:35:86:8a
1000 Mbps full duplex Link up
SunOS Release 5.10 Version Generic_147147-26 64-bit
Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
WARNING: /pci@3c0/pci@1/pci@0/pci@2/scsi@0/iport@v0/disk@w338670488b799130,0 (sd4):
        Corrupt label; wrong magic number

WARNING: /pci@300/pci@1/pci@0/pci@2/scsi@0/iport@v0/disk@w3a326f3c118fec2e,0 (sd5):
        Corrupt label; wrong magic number

Using RPC Bootparams for network configuration information.
Attempting to configure interface ixgbe3...
Skipped interface ixgbe3
Attempting to configure interface ixgbe2...
Skipped interface ixgbe2
Attempting to configure interface ixgbe1...
Skipped interface ixgbe1
Attempting to configure interface ixgbe0...
Configured interface ixgbe0
svc:/system/filesystem/local:default: WARNING: /usr/sbin/zfs mount -a failed: one or more file systems failed to mount
Setting up Java. Please wait...
Serial console, reverting to text install
Beginning system identification...
Searching for configuration file(s)...
Using sysid configuration file 10.0.33.6:/JumpStart/sysidcfg/appzone02/sysidcfg
Search complete.
Discovering additional network configuration...
Completing system identification...
Starting remote procedure call (RPC) services: done.
For some reason, the system asked interaction from admin regarding the system time. sysidcfg is supposed to take care of this.....

Some issues regarding the disks.

Code: Select all

System identification complete.
Starting Solaris installation program...
Searching for JumpStart directory...
Using rules.ok from 10.0.33.6:/JumpStart.
Checking rules.ok file...
Using profile: appzone02_profile
Executing JumpStart preinstall phase...
Searching for SolStart directory...
Checking rules.ok file...
Using begin script: install_begin
Using finish script: patch_finish
Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.

ERROR: One or more disks are found, but one of the following problems exists:
        - Hardware failure
        - The disk(s) available on this system cannot be used to install Solaris Software. They do not have a valid label. If you want to use the disk(s) for the install, use format(1M) to label the disk and restart the installation.
Solaris installation program exited.
Then, I had to use format to label the disks:

Code: Select all

# format
Searching for disks...done

c0t3A326F3C118FEC2Ed0: configured with capacity of 1115.67GB
c2t338670488B799130d0: configured with capacity of 556.97GB


AVAILABLE DISK SELECTIONS:
       0. c0t3A326F3C118FEC2Ed0 <LSI-LogicalVolume-3000 cyl 48547 alt 2 hd 255 sec 189>
          /pci@300/pci@1/pci@0/pci@2/scsi@0/iport@v0/disk@w3a326f3c118fec2e,0
       1. c2t338670488B799130d0 <LSI-LogicalVolume-3000 cyl 65533 alt 2 hd 32 sec 557>
          /pci@3c0/pci@1/pci@0/pci@2/scsi@0/iport@v0/disk@w338670488b799130,0
Specify disk (enter its number): 0
selecting c0t3A326F3C118FEC2Ed0
[disk formatted]
Disk not labeled.  Label it now? y


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> disk 1
selecting c2t338670488B799130d0
[disk formatted]
Disk not labeled.  Label it now? y
After the disks are labeled, I tried to install again from net.

Code: Select all

# reboot -- net - install
syncing file systems... done
rebooting...
Resetting...
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.


SPARC T5-2, No Keyboard
Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.35.0.a, 255.0000 GB memory available, Serial #104171146.
Ethernet address 0:10:e0:35:86:8a, Host ID: 8635868a.



Boot device: /pci@300/pci@1/pci@0/pci@1/network@0  File and args: - install
1000 Mbps full duplex Link up
Requesting Internet Address for 0:10:e0:35:86:8a
1000 Mbps full duplex Link up
SunOS Release 5.10 Version Generic_147147-26 64-bit
Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface ixgbe3...
Skipped interface ixgbe3
Attempting to configure interface ixgbe2...
Skipped interface ixgbe2
Attempting to configure interface ixgbe1...
Skipped interface ixgbe1
Attempting to configure interface ixgbe0...
Configured interface ixgbe0
svc:/system/filesystem/local:default: WARNING: /usr/sbin/zfs mount -a failed: one or more file systems failed to mount
Setting up Java. Please wait...
Serial console, reverting to text install
Beginning system identification...
Searching for configuration file(s)...
Using sysid configuration file 10.0.33.6:/JumpStart/sysidcfg/appzone02/sysidcfg
Search complete.
Discovering additional network configuration...
Completing system identification...
Starting remote procedure call (RPC) services: done.
q The Oracle Solaris Installation Program qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  The Solaris installation program is divided into a series of short sections
  where you'll be prompted to provide information for the installation. At
  the end of each section, you'll be able to change the selections you've
  made before continuing.

  About navigation...
        - The mouse cannot be used
        - If your keyboard does not have function keys, or they do not
          respond, press ESC; the legend at the bottom of the screen
          will change to show the ESC keys to use for navigation.










qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help
q Identify This System qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  On the next screens, you must identify this system as networked or
  non-networked, and set the default time zone and date/time.

  If this system is networked, the software will try to find the information
  it needs to identify your system; you will be prompted to supply any
  information it cannot find.

  > To begin identifying this system, press F2.












qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help
q Date and Time qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  > Accept the default date and time or enter
    new values.

  Date and time: 2013-08-16 11:42

                 Year   (4 digits) : 2013
                 Month  (1-12)     : 08
                 Day    (1-31)     : 16
                 Hour   (0-23)     : 11
                 Minute (0-59)     : 42








  
  
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help























System identification complete.
Starting Solaris installation program...
Searching for JumpStart directory...
Using rules.ok from 10.0.33.6:/JumpStart.
Checking rules.ok file...
Using profile: appzone02_profile
Executing JumpStart preinstall phase...
Searching for SolStart directory...
Checking rules.ok file...
Using begin script: install_begin
Using finish script: patch_finish
Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.

Processing profile
        - Saving Boot Environment Configuration
        - Selecting cluster (SUNWCall)
        - Selecting all disks
        - Configuring boot device
        - Automatically configuring disks for Solaris operating system
        - Deselecting unmodified disk (c2t338670488B799130d0)

Verifying disk configuration
        - WARNING: Changing the system's default boot device in the EEPROM

Verifying space allocation
        - Total software size:  4434.47 Mbytes

Preparing system for Solaris install

Configuring disk (c0t3A326F3C118FEC2Ed0)
        - Creating Solaris disk label (VTOC)

Creating and checking file systems
        - Creating / (c0t3A326F3C118FEC2Ed0s0)
        - Creating /export/home (c0t3A326F3C118FEC2Ed0s7)
Beginning Solaris software installation

Starting software installation
        SUNWocfd.........................done.  4434.12 Mbytes remaining.
        SUNWcnetr........................done.  4434.06 Mbytes remaining.
        SUNWkvmt200.v....................done.  4433.71 Mbytes remaining.
        SUNWlucfg........................done.  4433.63 Mbytes remaining.
        SUNWcart200.v....................done.  4433.52 Mbytes remaining.
        SUNWdefault-java.................done.  4433.49 Mbytes remaining.
        SUNWcsu..........................done.  4417.13 Mbytes remaining.
        SUNWjdmk-base....................done.  4415.88 Mbytes remaining.
.....
        SUNWgnome-project-devel-share....done.  397.65 Mbytes remaining.
        SUNWuium.........................done.  397.53 Mbytes remaining.
        SUNWgnome-media-player-share.....done.  397.17 Mbytes remaining.

Completed software installation

Solaris 10 software installation succeeded

Customizing system files
        - Mount points table (/etc/vfstab)
        - Unselected disk mount points (/var/sadm/system/data/vfstab.unselected)
        - Network host addresses (/etc/hosts)
        - Environment variables (/etc/default/init)

Cleaning devices

Customizing system devices
        - Physical devices (/devices)
        - Logical devices (/dev)

Installing boot information
        - Installing boot blocks (c0t3A326F3C118FEC2Ed0s0)
        - Installing boot blocks (/dev/rdsk/c0t3A326F3C118FEC2Ed0s0)
        - Updating system firmware for automatic rebooting
        - Given Disk (/dev/dsk/c0t3A326F3C118FEC2Ed0s0) is not a iSCSI Disk


Installation log location
        - /a/var/sadm/system/logs/install_log (before reboot)
        - /var/sadm/system/logs/install_log (after reboot)

Installation complete
Executing SolStart postinstall phase...
Executing finish script "patch_finish"...


Finish script patch_finish execution completed.
Executing JumpStart postinstall phase...

The begin script log 'begin.log'
is located in /var/sadm/system/logs after reboot.

The finish script log 'finish.log'
is located in /var/sadm/system/logs after reboot.

Creating boot_archive for /a
updating /a/platform/sun4v/boot_archive
syncing file systems... done
rebooting...
Resetting...
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Jumpstart profile

Post by cah »

I was trying to use "root_device" to specify which disk to be used as boot disk.

I had the following in the profile:

Code: Select all

root_device c2t338670488B799130d0
No matter what device I specified, it always came back with the following error:

Code: Select all

ERROR: Field 2 - Invalid device name (c2t338670488B799130d0s0) (c2t3d0) (c2t143d0)
Solaris installation program exited.
I gave up and commented it out in profile.
I had 2 pool settings in the profile:

Code: Select all

pool rpool auto auto auto c2t338670488B799130d0s0
pool zonepool auto auto auto c0t3A326F3C118FEC2Ed0s0
It didn't like it either:

Code: Select all

ERROR: Field 1 - Multiple root pool keywords not allowed
Solaris installation program exited.
So I commented out the second pool to see if it works...
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Jumpstart profile - II

Post by cah »

I just tried it again and it actually picked up the right disk and installed the OS on it.

Here is the appzone02_profile (boot_device line didn't work):

Code: Select all

Install_type initial_install
Cluster SUNWCall
#boot_device c2t338670488B799130d0s0 update
root_device c2t338670488B799130d0s0 
pool rpool auto auto auto c2t338670488B799130d0s0
Notice: root_device has trailing s0 that is different from the failed attempt above that did not have s0 at the end.
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Jumpstart appzone02 - II

Post by cah »

Finally it picked up the disk I specified in profile.

appzone02_profile (boot_device line didn't work):

Code: Select all

    Install_type initial_install
    Cluster SUNWCall
    #boot_device c2t338670488B799130d0s0 update
    root_device c2t338670488B799130d0s0
    pool rpool auto auto auto c2t338670488B799130d0s0
Jumpstart screen output:

Code: Select all

# reboot -- net - install
syncing file systems... done
rebooting...
Resetting...
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.


SPARC T5-2, No Keyboard
Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.35.3, 255.0000 GB memory available, Serial #104171146.
Ethernet address 0:10:e0:35:86:8a, Host ID: 8635868a.



Boot device: /pci@300/pci@1/pci@0/pci@1/network@0  File and args: - install
1000 Mbps full duplex Link up
Requesting Internet Address for 0:10:e0:35:86:8a
1000 Mbps full duplex Link up
SunOS Release 5.10 Version Generic_147147-26 64-bit
Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface ixgbe3...
Skipped interface ixgbe3
Attempting to configure interface ixgbe2...
Skipped interface ixgbe2
Attempting to configure interface ixgbe1...
Skipped interface ixgbe1
Attempting to configure interface ixgbe0...
Configured interface ixgbe0
USB keyboard
svc:/system/filesystem/local:default: WARNING: /usr/sbin/zfs mount -a failed: one or more file systems failed to mount
Setting up Java. Please wait...
Serial console, reverting to text install
Beginning system identification...
Searching for configuration file(s)...
Using sysid configuration file 10.0.33.6:/JumpStart/sysidcfg/appzone02/sysidcfg
Search complete.
Discovering additional network configuration...
Completing system identification...
Starting remote procedure call (RPC) services: done.
q The Oracle Solaris Installation Program qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  The Solaris installation program is divided into a series of short sections
  where you'll be prompted to provide information for the installation. At
  the end of each section, you'll be able to change the selections you've
  made before continuing.

  About navigation...
        - The mouse cannot be used
        - If your keyboard does not have function keys, or they do not
          respond, press ESC; the legend at the bottom of the screen
          will change to show the ESC keys to use for navigation.










qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help
q Identify This System qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  On the next screens, you must identify this system as networked or
  non-networked, and set the default time zone and date/time.

  If this system is networked, the software will try to find the information
  it needs to identify your system; you will be prompted to supply any
  information it cannot find.

  > To begin identifying this system, press F2.












qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help
q Date and Time qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

  > Accept the default date and time or enter
    new values.

  Date and time: 2013-09-19 13:21

                 Year   (4 digits) : 2013
                 Month  (1-12)     : 09
                 Day    (1-31)     : 19
                 Hour   (0-23)     : 13
                 Minute (0-59)     : 21








  
  
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Continue    Esc-6_Help























System identification complete.
Starting Solaris installation program...
Searching for JumpStart directory...
Using rules.ok from 10.0.33.6:/JumpStart.
Checking rules.ok file...
Using profile: appzone02_profile
Executing JumpStart preinstall phase...
Searching for SolStart directory...
Checking rules.ok file...
Using begin script: install_begin
Using finish script: patch_finish
Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.

Processing profile
        - Saving Boot Environment Configuration
        - Selecting cluster (SUNWCall)
        - Selecting all disks
        - Configuring boot device
        - Configuring / (c2t338670488B799130d0s0)
        - Automatically configuring disks for Solaris operating system
        - Deselecting unmodified disk (c0t3A326F3C118FEC2Ed0)

Verifying disk configuration
        - WARNING: Changing the system's default boot device in the EEPROM

Verifying space allocation
        - Total software size:  4434.47 Mbytes

Preparing system for Solaris install

Configuring disk (c2t338670488B799130d0)
        - Creating Solaris disk label (VTOC)
        - Creating pool rpool
        - Creating swap zvol for pool rpool
        - Creating dump zvol for pool rpool

Creating and checking file systems
        - Creating rpool/ROOT/solaris10_u11 dataset

Beginning Solaris software installation

Starting software installation
        SUNWocfd.........................done.  4434.12 Mbytes remaining.
        SUNWcnetr........................done.  4434.06 Mbytes remaining.
        SUNWkvmt200.v....................done.  4433.71 Mbytes remaining.
        SUNWlucfg........................done.  4433.63 Mbytes remaining.
        SUNWcart200.v....................done.  4433.52 Mbytes remaining.
        SUNWdefault-java.................done.  4433.49 Mbytes remaining.
        SUNWcsu..........................done.  4417.13 Mbytes remaining.
        SUNWjdmk-base....................done.  4415.88 Mbytes remaining.
        SUNWcakr.v.......................done.  4404.49 Mbytes remaining.
        SUNWcsl..........................done.  4387.23 Mbytes remaining.
        SUNWcar.v........................done.  4386.90 Mbytes remaining.
        SUNWcsr..........................done.  4382.45 Mbytes remaining.
        SUNWkvm.v........................done.  4381.55 Mbytes remaining.
        SUNWcsd..........................done.  4381.24 Mbytes remaining.
        SUNWproduct-registry-root........done.  4381.21 Mbytes remaining.
        SUNWwsr2.........................done.  4380.87 Mbytes remaining.
        SUNWwsrv.........................done.  4380.60 Mbytes remaining.
        SUNWdtcor........................done.  4380.57 Mbytes remaining.
        SUNWctpls........................done.  4380.49 Mbytes remaining.
        SUNWmfrun........................done.  4370.38 Mbytes remaining.
        SUNWxwrtl........................done.  4370.20 Mbytes remaining.
        SUNWxwice........................done.  4369.92 Mbytes remaining.
        SUNWckr..........................done.  4356.47 Mbytes remaining.
.............
        SUNWgnome-utility-applets........done.  399.46 Mbytes remaining.
        SUNWgnome-vfs-devel-share........done.  398.55 Mbytes remaining.
        SUNWpppdt........................done.  398.39 Mbytes remaining.
        SUNWTiff-devel...................done.  398.29 Mbytes remaining.
        SUNWgnome-project-devel-share....done.  397.65 Mbytes remaining.
        SUNWuium.........................done.  397.53 Mbytes remaining.
        SUNWgnome-media-player-share.....done.  397.17 Mbytes remaining.

Completed software installation

Solaris 10 software installation succeeded

Customizing system files
        - Mount points table (/etc/vfstab)
        - Unselected disk mount points (/var/sadm/system/data/vfstab.unselected)
        - Network host addresses (/etc/hosts)
        - Environment variables (/etc/default/init)

Cleaning devices

Customizing system devices
        - Physical devices (/devices)
        - Logical devices (/dev)

Installing boot information
        - Installing boot blocks (c2t338670488B799130d0s0)
        - Installing boot blocks (/dev/rdsk/c2t338670488B799130d0s0)
        - Updating system firmware for automatic rebooting
        - Given Disk (/dev/dsk/c2t338670488B799130d0s0) is not a iSCSI Disk


Installation log location
        - /a/var/sadm/system/logs/install_log (before reboot)
        - /var/sadm/system/logs/install_log (after reboot)

Installation complete
Executing SolStart postinstall phase...
Executing finish script "patch_finish"...


Finish script patch_finish execution completed.
Executing JumpStart postinstall phase...

The begin script log 'begin.log'
is located in /var/sadm/system/logs after reboot.

The finish script log 'finish.log'
is located in /var/sadm/system/logs after reboot.

Creating boot_archive for /a
updating /a/platform/sun4v/boot_archive
syncing file systems... done
rebooting...
Resetting...
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.


SPARC T5-2, No Keyboard
Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.35.3, 255.0000 GB memory available, Serial #104171146.
Ethernet address 0:10:e0:35:86:8a, Host ID: 8635868a.



Boot device: /pci@3c0/pci@1/pci@0/pci@2/scsi@0/disk@w338670488b799130,0:a  File and args: 
SunOS Release 5.10 Version Generic_147147-26 64-bit
Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
Hostname: appzone02
Configuring devices.
Loading smf(5) service descriptions: 184/184
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair

appzone02 console login: 
Logged into OS and verified rpool was created on disk 1 (c2t338670488B799130d0s0 ):

Code: Select all

# zpool status
  pool: rpool
 state: ONLINE
 scan: none requested
config:

        NAME                       STATE     READ WRITE CKSUM
        rpool                      ONLINE       0     0     0
          c2t338670488B799130d0s0  ONLINE       0     0     0

errors: No known data errors
Format of disk 1 also changed from

Code: Select all

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    14      130.55MB    (15/0/0)        267360
  1       swap    wu      15 -    29      130.55MB    (15/0/0)        267360
  2     backup    wu       0 - 65532      556.97GB    (65533/0/0) 1168060192
  3 unassigned    wm       0                0         (0/0/0)              0
  4 unassigned    wm       0                0         (0/0/0)              0
  5 unassigned    wm       0                0         (0/0/0)              0
  6        usr    wm      30 - 65532      556.72GB    (65503/0/0) 1167525472
  7 unassigned    wm       0                0         (0/0/0)              0
To

Code: Select all

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 - 65532      556.97GB    (65533/0/0) 1168060192
  1 unassigned    wm       0                0         (0/0/0)              0
  2     backup    wm       0 - 65532      556.97GB    (65533/0/0) 1168060192
  3 unassigned    wm       0                0         (0/0/0)              0
  4 unassigned    wm       0                0         (0/0/0)              0
  5 unassigned    wm       0                0         (0/0/0)              0
  6 unassigned    wm       0                0         (0/0/0)              0
  7 unassigned    wm       0                0         (0/0/0)              0
Network interface has also been set up from profile:

Code: Select all

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
ixgbe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.0.33.8 netmask fffffe00 broadcast 10.0.33.255
        ether 0:10:e0:35:86:8a 
usbecm0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 169.254.182.77 netmask ffffff00 broadcast 169.254.255.255
        ether 2:21:28:57:47:17 
Some other configurations need to be done but the hardest part should be resolved.
CAH, The Great
Post Reply