Asset ID: |
1-71-1006004.1 |
Update Date: | 2011-04-28 |
Keywords: | |
Solution Type
Technical Instruction Sure
Solution
1006004.1
:
Reinstalling a System From a Local Device using a Flash Archive File.
Related Items |
- Solaris SPARC Operating System
- SPARC T3-1
|
Related Categories |
- GCS>Sun Microsystems>Operating Systems>Solaris Operating System
|
PreviouslyPublishedAs
208378
Applies to:
Solaris SPARC Operating System - Version: 8.0 and later [Release: 8.0 and later ]
SPARC T3-1 - Version: Not Applicable and later [Release: N/A and later]
All Platforms
Goal
This procedure describes the process necessary to reinstall a system from a Flash Archive that is local to the system.
Flash archive and newer systems:Specifically, SPARC T3 servers which are being flash archived with UFS may encounter errors such as "ereport.fs.zfs.checksum".
This is a result of the factory default installation of Solaris 10 Update 9 which by default includes the zfs root pool. Reference the below CRs for additional information.
70154246893282
Solution
This document is divided into the following sections:
Section 1) Create the archive.
Section 2) Deploy the archive onto the original root disk. (Interactive)
Section 3) Deploy the archive onto the original root disk. (Hands Off)
(Note! this step requires use of a "floppy" disk)
Section 1: Create the Flash Archive
In this example we will be creating an archive of the root disk (c0t2d0s0). This scenerio uses a "flat file system" setup, but you could have multiple file systems configured as well. Here we will create an archive of the root file system and place it onto another disk within the system. I have also included information regarding the process of copying it to a tape drive.
System Configuration information:
System Type Ultra 1
Operating System Solaris[TM] 9 Update 4 (4/03)
OS Cluster Entire distribution plus OEM
Root file sysytem /dev/dsk/c0t2d0s0
Archive location (disk) /dev/dsk/c0t0d0s0 (/Flash)
Archive location (tape) /dev/rmt/0
A) Creating the archive onto a second disk.
This will require you to create a directory for the second disk to mount. For this example we will be mounting the device "/dev/dsk/c0t0d0s0" to the mount point "/Flash" which we created in the root directory.
# /usr/bin/mkdir /Flash
# /usr/sbin/mount /dev/dsk/c0t0d0s0 /Flash
# /usr/sbin/flarcreate -n Local_Device_Restore -c /Flash/archive_U1
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
2353344 blocks
The archive will be approximately 632.06MB.
Creating the archive...
2353344 blocks
Archive creation complete.
B) Creating the archive onto a local tape device.
# /usr/sbin/flarcreate -n Local_tape_archive -c -t /dev/rmt/0
WARNING: hash generation disabled when using tape (-t)
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
2353559 blocks
The archive will be approximately 631.01MB.
Creating the archive...
2353559 blocks
Archive creation complete.
NOTE! "flarcreate" command explanation:
-n This option is required if you are using flarcreate
for archive identification.
-c Compress the archive using compress.
-t Create an archive on a tape device.
/Flash Directory where the archive is located (c0t0d0s0).
archive_U1 Name of the archive.
Section 2: Deploy the archive onto the original root disk.
(Interactive Method)
Here we will boot the system to cdrom and reinstall the OS using the compressed archive (archive_U1) using an interactive installation.
Insert the Solaris[TM] 9 4/03 Software 1 of 2 CD in the CD-ROM drive.
ok boot cdrom - nowin ("- nowin" = ascii/tty console device output)
Resetting ...
Sun Ultra 1 UPA/SBus (UltraSPARC(R) 200MHz), No Keyboard
OpenBoot 3.25, 256 MB memory installed, Serial #9429409.
Ethernet address 8:0:20:8f:e1:a1, Host ID: 808fe1a1.
Rebooting with command: boot cdrom - nowin
Boot device: /sbus/SUNW,fas@e,8800000/sd@6,0:f File and args: - nowin
?
NOTICE: 64-bit OS installed, but the 32-bit OS is the default
for the processor(s) on this system.
See boot(1M) for more information.
Booting the 32-bit OS ...
SunOS[TM] Release 5.9 Version Generic_112233-05 32-bit
Copyright 1983-2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
/
Configuring /dev and /devices
Using RPC Bootparams for network configuration information.
Configured interface hme0
Searching for configuration file(s)...
Search complete.
Select a Language
0. English
1. French
2. German
3. Italian
4. Japanese
5. Korean
6. Simplified Chinese
7. Spanish
8. Swedish
9. Traditional Chinese
Please make a choice (0 - 9), or press h or ? for help: 0
Select a Locale
0. English (C - 7-bit ASCII)
1. Albania (ISO8859-2)
2. Australia (ISO8859-1)
3. Belgium-Flemish (ISO8859-1)
4. Belgium-Flemish (ISO8859-15 - Euro)
5. Bosnia (ISO8859-2)
6. Brazil (ISO8859-1)
7. Brazil (UTF-8)
8. Bulgaria (ISO8859-5)
9. Canada-English (ISO8859-1)
10. Catalan, Spain (ISO8859-1)
11. Catalan, Spain (ISO8859-15 - Euro)
12. Croatia (ISO8859-2)
13. Czech Republic (ISO8859-2)
14. Denmark (ISO8859-1)
15. Denmark (ISO8859-15 - Euro)
16. Egypt (ISO8859-6)
17. Egypt (UTF-8)
18. Estonia (ISO8859-15)
Press Return to show more choices.
Please make a choice (0 - 59), or press h or ? for help: 0
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return: 13
The system is coming up. Please wait.
Begin system identification...
The Solaris[TM] Installation Program
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 can 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.
F2_Continue F5_Exit F6_Help
(F2)
** Here the system will prompt you to provide the System Identification
** and network configuration information...
System identification is completed.
System identification complete.
Generating software table of contents [this may take a few minutes...]
Table of contents complete.
Starting Solaris installation program...
Executing JumpStart[TM] 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.
This system is upgradable, so there are two ways to install the
Solaris software.
The Upgrade option updates the Solaris software to the new release,
saving as many modifications to the previous version of Solaris software
as possible. Back up the system before using the Upgrade option.
The Initial option overwrites the system disks with the new version
of Solaris software. This option allows you to preserve any existing
file systems. Back up any modifications made to the previous version of
Solaris software before starting the Initial option.
After you select an option and complete the tasks that follow, a summary
of your actions will be displayed. If you want to install the system
with a Flash archive, select Initial.
F2_Upgrade F3_Go Back F4_Initial F5_Exit F6_Help
(F4)
Solaris Interactive Installation
You'll be using the initial option for installing Solaris software on
the system. The initial option overwrites the system disks when the new
Solaris software is installed.
On the following screens, you can accept the defaults or you can
customize how Solaris software will be installed by:
- Selecting the type of Solaris software to install
- Selecting disks to hold software you've selected
- Specifying how file systems are laid out on the disks
After completing these tasks, a summary of your selections (called a
profile) will be displayed.
There are two ways to install your Solaris software:
- "Standard" installs your system from a standard Solaris
Distribution.
- "Flash" installs your system from one or more Flash Archives.
F2_Standard F3_Go Back F4_Flash F5_Exit F6_Help
(F4)
Flash Archive Retrieval Method
On this screen you must select a method to retrieve the Flash archive.
The retrieval method depends on where the archive is stored. For
example, if the archive is stored on a tape, select "Local Tape".
Available Retrieval Method
=========================================
[ ] HTTP
[ ] FTP
[ ] NFS
[ ] Local File
[ ] Local Tape
[ X ] Local Device
(Choose "Local Device for Disk or Local Tape for the Tape Drive")
NOTE!
In this example we will be extracting it from the disk "Local Device"
F2_Continue F5_Cancel F6_Help
(F2)
Flash Archive Addition
Please specify the local device, the path to the Flash Archive, and the
type of filesystem on which the Flash archive is located. For example:
Device: /dev/dsk/c0t6d0s0
Path: /path/to/archive.flar
Filesystem Type: hsfs
======================================================
Device: /dev/dsk/c0t0s0s0
Path: /archive_U1
Filesystem Type: ufs
F2_Continue F5_Cancel F6_Help
(F2)
Flash Archive Selection
You selected the following Flash archives to use to install this system.
If you want to add another archive to install select "New".
Retrieval Method Name
======================================================
ufs local device Local_File_Restore
F2_Continue F3_Go Back F4_Edit F5_New F6_Help
(F2)
Select Disks
On this screen you must select the disks for installing Solaris
software.Start by looking at the Suggested Minimum field; this value is
the approximate space needed to install the software you've selected.
Keep selecting disks until the Total Selected value exceeds the Suggested
Minimum value.
Disk Device (Size) Available Space
=====================================================
[ ] c0t0d0 (2028 MB) 2028 MB
[ ] c0t1d0 (2028 MB) 2028 MB
[ X ] c0t2d0 (4092 MB) boot disk 4092 MB
Total Selected: 4092 MB
Suggested Minimum: 821 MB
F2_Continue F3_Go Back F4_Edit F5_Exit F6_Help
(F2)
** Here you will be prompted to partition the disk.
Solaris Flash Install
MBytes Installed: 15.00
MBytes Remaining: 617.01
Installing: Extracting Archive:
ufs local device
Local_Device_Restore
| | | | | |
0 20 40 60 80 100
Customizing system files
- Mount points table (/etc/vfstab)
- Unselected disk mount points
(/var/sadm/system/data/vfstab.unselected)
- Network host addresses (/etc/hosts)
Cleaning devices
Customizing system devices
- Physical devices (/devices)
- Logical devices (/dev)
Installing boot information
- Installing boot blocks (c0t2d0s0)
Installation log location
- /a/var/sadm/system/logs/install_log (before reboot)
- /var/sadm/system/logs/install_log (after reboot)
Flash installation complete
Executing JumpStart postinstall phase...
The begin script log 'begin.log'
is located in /var/sadm/system/logs after reboot.
May 7 08:40:19 rpcbind: rpcbind terminating on signal.
syncing file systems... done
rebooting...
Resetting ...
Sun Ultra 1 UPA/SBus (UltraSPARC 200MHz), No Keyboard
OpenBoot 3.25, 256 MB memory installed, Serial #9429409.
Ethernet address 8:0:20:8f:e1:a1, Host ID: 808fe1a1.
Rebooting with command: boot
Boot device: disk2:a File and args:
|
NOTICE: 64-bit OS installed, but the 32-bit OS is the default
for the processor(s) on this system.
See boot(1M) for more information.
Booting the 32-bit OS ...
SunOS Release 5.9 Version Generic_112233-05 32-bit
Copyright 1983-2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
configuring IPv4 interfaces: hme0.
Hostname: client
Configuring /dev and /devices
Configuring the /dev directory (compatibility devices)
The system is coming up. Please wait.
Configuring network interface addresses: hme0.
** Add password at this point...
System identification is completed.
Setting netmask of hme0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net ...
syslog service starting.
FLASH REBOOT PROCESSING
volume management starting.
Creating new RSA public/private host key pair
Creating new DSA public/private host key pair
The system is ready.
console login:
** This completes this portion of the installation. **
Section 3: Deploy the archive onto the original root disk.
(Hands Off Installation)
This is a Procedure for doing a re-install from a flash archive via floppy for a hands off installation.
NOTE! These steps are assuming that the archive (archive_U1) already
exists on the second disk (c0t0d0s0) as per section 1.
NOTE! vold must be stopped during steps 1 and 2 below. To stop vold,
as root, type "/etc/init.d/volmgt stop". To restart vold, type
"/etc/init.d/volmgt start".
1) Create the floppy
# /usr/bin/fdformat
# /usr/sbin/newfs /dev/diskette
# /usr/sbin/mount /dev/diskette /floppy ("/floppy" may need to be
created)
# /usr/bin/cd /floppy
2) Create the following files on the floppy. The following are just examples that were created with this example in mind. You will have to configure your files according to your particular setup.
# /usr/bin/vi rules.ok
hostname client - profile-9 -
# version=2 checksum=3822
# /usr/bin/vi sysidcfg
system_locale=C
timezone=US/Eastern
timeserver=129.148.194.69
network_interface=primary \
{protocol_ipv6=no netmask=255.255.255.0 \
default_route=NONE}
terminal=dtterm
root_password='4RVWFu1PHWckY'
name_service=NONE
security_policy=NONE
# /usr/bin/vi profile-9
install_type flash_install
archive_location local_device /dev/dsk/c0t0d0s0 /archive_U1
partitioning explicit
filesys c0t2d0s0 free /
filesys c0t2d0s1 400 swap
3) Boot the Client.
ok boot cdrom - install
Resetting ...
Sun Ultra 1 UPA/SBus (UltraSPARC 200MHz), No Keyboard
OpenBoot 3.25, 256 MB memory installed, Serial #9429409.
Ethernet address 8:0:20:8f:e1:a1, Host ID: 808fe1a1.
Rebooting with command: boot cdrom - install
Boot device: /sbus/SUNW,fas@e,8800000/sd@6,0:f File and args: - install
NOTICE: 64-bit OS installed, but the 32-bit OS is the default
for the processor(s) on this system.
See boot(1M) for more information.
Booting the 32-bit OS ...
SunOS Release 5.9 Version Generic_112233-05 32-bit
Copyright 1983-2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Configuring /dev and /devices
Using RPC Bootparams for network configuration information.
Configured interface hme0
Searching for configuration file(s)...
Using sysid configuration file from local floppy
Search complete.
The system is coming up. Please wait.
Begin system identification...
Starting remote procedure call (RPC) services: sysidns done.
System identification complete.
Generating software table of contents [this may take a few minutes...]
Table of contents complete.
Starting Solaris installation program...
Searching for JumpStart directory...
rules.ok found on floppy.
Copying information to disk...
Using rules.ok from floppy.
Checking rules.ok file...
Using profile: profile-9
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
- Opening Flash archive
- Validating Flash archive
- Selecting all disks
- Configuring boot device
- Configuring swap (c0t2d0s1)
- Configuring / (c0t2d0s0)
- Deselecting unmodified disk (c0t0d0)
- Deselecting unmodified disk (c0t1d0)
Verifying disk configuration
Verifying space allocation
NOTE: 1 archives did not include size information
Preparing system for Flash install
Configuring disk (c0t2d0)
- Creating Solaris disk label (VTOC)
Creating and checking UFS file systems
- Creating / (c0t2d0s0)
Beginning Flash archive processing
Predeployment processing
16 blocks
16 blocks
16 blocks
No local customization defined
Extracting archive: Local_Device_Restore
Extracted 0.00 MB ( 0% of 632.01 MB archive)
Extracted 1.00 MB ( 0% of 632.01 MB archive)
Extracted 2.00 MB ( 0% of 632.01 MB archive)
Extracted 3.00 MB ( 0% of 632.01 MB archive)
Extracted 4.00 MB ( 0% of 632.01 MB archive)
Extracted .........
.........
Extracted 625.00 MB ( 98% of 632.01 MB archive)
Extracted 626.00 MB ( 99% of 632.01 MB archive)
Extracted 627.00 MB ( 99% of 632.01 MB archive)
Extracted 628.00 MB ( 99% of 632.01 MB archive)
Extracted 629.00 MB ( 99% of 632.01 MB archive)
Extracted 630.00 MB ( 99% of 632.01 MB archive)
Extracted 631.00 MB ( 99% of 632.01 MB archive)
Extracted 632.00 MB ( 99% of 632.01 MB archive)
Extracted 632.01 MB (100% of 632.01 MB archive)
Extraction complete
Postdeployment processing
No local customization defined
Customizing system files
- Mount points table (/etc/vfstab)
- Unselected disk mount points
(/var/sadm/system/data/vfstab.unselected)
- Network host addresses (/etc/hosts)
Cleaning devices
Customizing system devices
- Physical devices (/devices)
- Logical devices (/dev)
Installing boot information
- Installing boot blocks (c0t2d0s0)
Installation log location
- /a/var/sadm/system/logs/install_log (before reboot)
- /var/sadm/system/logs/install_log (after reboot)
Flash installation complete
Executing JumpStart[TM] postinstall phase...
The begin script log 'begin.log'
is located in /var/sadm/system/logs after reboot.
syncing file systems... done
rebooting...
Resetting ...
Sun Ultra 1 UPA/SBus (UltraSPARC 200MHz), No Keyboard
OpenBoot 3.25, 256 MB memory installed, Serial #9429409.
Ethernet address 8:0:20:8f:e1:a1, Host ID: 808fe1a1.
Rebooting with command: boot
Boot device: disk2:a File and args:
|
NOTICE: 64-bit OS installed, but the 32-bit OS is the default
for the processor(s) on this system.
See boot(1M) for more information.
Booting the 32-bit OS ...
SunOS Release 5.9 Version Generic_112233-05 32-bit
Copyright 1983-2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
configuring IPv4 interfaces: hme0.
Hostname: rockette
Configuring /dev and /devices
Configuring the /dev directory (compatibility devices)
The system is coming up. Please wait.
Configuring network interface addresses: hme0.
starting rpc services: rpcbind keyserv done.
Setting netmask of hme0 to 255.255.255.0
Setting default IPv4 interface for multicast: ......
syslog service starting.
FLASH REBOOT PROCESSING
Creating new RSA public/private host key pair
Creating new DSA public/private host key pair
The system is ready.
console login:
** This completes this portion of the installation. **
ProductSolaris 8 Operating System
Solaris 9 Operating System
Solaris 10 Operating System
Flash, Installation
Previously Published As
70380
Attachments
This solution has no attachment