HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

h
hpux(1M) hpux(1M)
drwxr-xr-x 17 0 0 1024 ../
-rw-r--r-- 1 0 3 191 bootconf
drwxr-xr-x 2 0 0 1024 build/
-rw-r--r-- 1 0 0 632 ioconfig
-rw-r--r-- 1 0 3 82 kernrel
-r--r--r-- 1 0 3 426 system
-rw-r--r-- 1 0 3 437 system.prev
-rwxr-xr-x 1 0 3 7771408 vmunix*
-rwxr-xr-x 1 0 3 7771408 vmunix.prev*
Getting The Version
The -v option is used to get the version numbers of
hpux.
ISL> hpux -v
Release: 10.00
Release Version:
@(#) X10.20.B HP-UX() #1: Dec 4 1995 16:55:08
DEPENDENCIES
Series 700 Only
The restore operation is provided as a recovery mechanism in the event that a disk becomes totally cor-
rupted. It copies data from a properly formatted bootable tape to disk. When this tape contains a backup
image of the disk, the entire disk is restored. To create a properly formatted tape (DDS ONLY), the follow-
ing commands should be executed:
dd if=/usr/lib/uxbootlf of=/dev/rmt/0mn bs=2k
dd if=/dev/rdsk/1ss of=/dev/rmt/0m bs=64k
The first dd puts a boot area on the tape, making it a bootable image (see dd(1)). Once the boot image is
on tape, the tape is not rewound. The next
dd appends an image of the disk to the tape. The entire pro-
cess takes about one hour for a 660 MB HP2213 disk. To avoid later problems with
fsck after the disk is
restored, bring the system to single user mode and type
sync a few times before doing the second
dd (see
fsck(1M)). Once created, the tape can be used to completely restore the disk:
1. Insert the tape into the tape drive.
2. Instruct the machine to boot to ISL from the tape. This is usually done by specifying
scsi.3 as
the boot path.
3. Enter the following in response to the ISL prompt:
ISL> hpux restore disk(scsi.1;0)
This restores the disk image from the tape to the actual disk at scsi.1. Any existing data on the disk
will be lost. This command destroys the contents of the device specified by devicefile. The restoration pro-
cess takes about one hour for a 660 MB drive.
NOTE: There is a 2 GB limit on the amount of data that can be restored. The tape and disk must be on
the boot device interface.
Also, this command may be replaced in the future by superior installation and recovery mechanisms. At
that time, this command will be removed.
SEE ALSO
boot(1M), fsck(1M), init(1M), isl(1M), pdc(1M), errno(2), a.out(4), inittab(4), magic(4).
HP-UX 11i Version 1: September 2005 9 Hewlett-Packard Company Section 1M329