How to Create a disk image for the root disk in a HP-UX

Source: Internet
Author: User

Use the following command to determine and record the hardware address of the disk to be an image Disk: ioscan-FNC Disk
In this example, the disk used as an image is/dev/DSK/c1t0d0. Please refer to the help pages of each command used below to better understand these commands.
Create a root volume group image:

1) swlist-l bundle
If the system has been installed, this command displays ephemeral Disk/UX. If snapshot Disk/UX is not found, you need to load it to the system. This product is ** not ** a part of the standard core operating system, required-For details, please contact your local HP sales office.

2) pvcreate-B/dev/rdsk/c1t0d0
-Option B is used to create a bootable physical volume.

3) mkboot/dev/rdsk/c1t0d0
When mkboot is used, ensure that the character device file is used.

4) mkboot-a "HPUX (; 0)/STAND/vmunix"/dev/rdsk/c1t0d0

5) vgextend/dev/vg00/dev/DSK/c1t0d0
This command adds the physical volume to the root volume group.

6) lvextend-M 1/dev/vg00/lvol1/dev/DSK/c1t0d0
This command extends the image to the specified physical volume.
* Note: The lvextend command must be executed on all logical volumes of the primary disk, which means lvextend must be executed on all lvol1-> lvolx, which also includes/dev/vg00/lvol2, by default
It is the primary swap space. Lvol1 must be the first logical volume of the image. If not, it cannot be started from the image.

7) lvlnboot-r/dev/vg00/lvol3

Specify the root logical volume.

* Note: For HP-UX 10.01 & 10.10, the root logical volume is/dev/vg00/lvol1,/dev/vg00/lvol3
(In this example) is the root logical volume under 10.20.

Lvlnboot-S/dev/vg00/lvol2

Specify the switch logical volume.

Use the swapinfo command to determine where the swap logical volume is located.

9) lvlnboot-D/dev/vg00/lvol2

Specifies the logical volume to be dumped.

10) lvlnboot-B/dev/vg00/lvol1

Bootstrap logical volume (applicable only to 10.20)

11) lvlnboot-R

Restore all bdra Information

12) lvlnboot-V

Confirm boot, root, swap, and dump settings.

13) setboot
This command displays the currently configured primary and secondary boot paths.
14) setboot-A pai_disk_hardware_address
Change the alternative boot path to the root image path.

15) shutdown-R now
Shut down the system and start from the image disk.
The system will shut down and restart. When the system starts, find the following information (the system output may be somewhat different ):
To interrupt the boot sequence, press and hold escape (Model 700)
To interrupt the boot sequence, press any key (Model 800)

In this way, the system will go to the boot management monitor. At the boot_admin> prompt, type:
Bo pai_disk_hardware_address, for example,-> Bo 4/8. 10.0. In some systems, if an alternative boot device is configured? Quot; Bo Alt ". The system will prompt to interact with IPL and answer "no". The system will start from the image root disk.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.