Bare-Metal Recovery with Flash Archive
Now that we’ve created a flash archive image, let’s use it to perform an interactive
restore of a Solaris system. To do this, perform the following steps:
-
First, ensure that the system is powered on and that it is at the ok>
prompt.
-
If you are unsure whether your boot and recovery devices are available, you can
ensure they are by performing a probe:
-
ok> probe-scsi-all
-
A list of locally attached devices should be displayed. Ensure that at the
minimum, the local boot disk, a CD/DVD drive (if applicable), and the correct SCSI
tape drives are listed.
-
If you plan to restore from tape, insert the tape into a local tape
drive.
-
Boot the system:
-
If you are booting from CD, insert the Solaris Installation CD into the
appropriate device on the system you want to restore and enter boot
cdrom
at the ok>
prompt.
-
If you have a network boot server configured, you may also boot from the
network using the boot
net
–
install
command.
-
The system then boots, and you are taken through the standard Solaris
installation prompts. Once you reach the Specify Media prompt, select 5
to restore from local tape, or 2
to restore from an NFS mount.
-
If you select tape, you are prompted for the tape device name and the tape
file in which the image is located. Remember that 0
is the first file on the tape.
-
If you select NFS, you are prompted for the name of the NFS server and share
where your flash archive images are located. You will then need to select an
image from the images it finds there.
-
You are then prompted for the name of the disk you wish to restore to and asked
how you would like it partitioned. Answer the prompts according to your
environment.
-
Once those steps are done, the recovery should complete automatically, followed
by a reboot.
An interactive recovery example
The following example restores an image from tape. If your images are on disk, you
would select option 2
instead of option 5
.
Please specify the media from which you will install the Solaris Operating
Environment.
Media:
1. CD/DVD
2. Network File System
3. HTTP (Flash archive only)
4. FTP (Flash archive only)
5. Local Tape (Flash archive only)
Media [1]: 5
Please specify the local tape device and the position on the tape where the
Flash archive is located.
To select a different media, enter B to go Back.
Tape Device or B [/dev/rmt/0] /dev/rmt/0n
Tape Position or B [1] 0
You selected the following Flash archives for initial install:
Tape /dev/rmt/0n 0
Press Return to continue or enter D to deselect all archives: <enter>
To select additional Flash archives, please specify the media where the
archives are located.
Media:
1. CD/DVD
2. Network File System
3. HTTP
4. FTP
5. Local Tape
6. None - Archive Selection Complete
If there are archives that contain additional filesystems, you can specify them here.
Media [6]: <enter>
The system is being initialized, please wait... -
Select which disks you want to lay out the file systems on.
Available Disks:
Disk Size
c0t0d0 4000 MB
Enter 'y' to layout file systems on the specified disk. This will erase all
existing data on the disk. Enter 'n' to leave the disk unmodified. Enter 'e'
to leave the remaining disks unmodified and continue with install.
Layout file systems on disk c0t0d0 (bootdisk) (y/n) [y]? y
At least one of the disks selected for installing Solaris software has file
systems or unnamed slices that you can choose to preserve. Do you want to
preserve existing data?
Enter y to preserve data or n to skip data preservation. [n] <enter>
The Solaris Installer is determining size requirements based on your choices,
please wait... \
File System operations:
1. Print the current partition table
2. Modify a disk's partition table
3. Return to beginning
4. Done
Select the number corresponding to a file system operation, 'Return to
beginning' to change selections, or 'Done' to proceed with the install [4]: 1
Disk Name Slice Name Size(Mb)
c0t0d0
/ 2000
swap 514
File System operations:
1. Print the current partition table
2. Modify a disk's partition table
3. Return to beginning
4. Done
Select the number corresponding to a file system operation, 'Return to
beginning' to change selections, or 'Done' to proceed with the install [4]: 4
The following items will be installed:
Tape /dev/rmt/0n 0
Root Device: c0t0d0
File Systems:
c0t0d0s0 / 2000 MB
c0t0d0s1 swap 514 MB
Enter 'y' to accept these values and start the installation, or 'n' to
return to disk selection to make changes (y/n): y
Installing...
Extracting archive(s)
Enter 'y' to accept these values and start the installation, or 'n' to
return to disk selection to make changes (y/n): y
Installing... (Note: The progress meter may not move during the extraction.)
Extracting archive(s)
|-1%--------------25%-----------------50%-----------------75%--------------100%|
...lines deleted...
Feb 18 09:19:45 rpcbind: rpcbind terminating on signal.
syncing file systems... done
rebooting...
Resetting ...
The flash recovery is now complete. Once the system reboots, you may have to
configure system information such as the node name and network information.