- 论坛徽章:
- 0
|
請問誰有做系統盤mirror的步聚?
Solution
The following is the step by step instructions for mirroring
both the root volume group and non-root logical volumes.
This information can also be found in the HP-UX System
Administration Tasks Manual.
Determine and record the hardware address of the disk that
will become the mirror disk with the command:
ioscan -fnC disk
In this example, the disk to be used as the mirror will
be /dev/dsk/c1t0d0. Please reference the manpage for each command
used below for a better explanation of the commands.
Mirroring the root volume group:
1) swlist -l bundle
This will display MirrorDisk/UX if installed on the
system. If MirrorDisk/UX isn't found, then
it will need to be loaded. This product **is not**
part of the standard Core-OS. It must be purchased -
contact your local HP Sales Office for more information.
2) pvcreate -B /dev/rdsk/c1t0d0
The -B option is used to create a bootable
Physical Volume.
3) mkboot /dev/rdsk/c1t0d0
Make sure to use the character device file
when using mkboot.
4) mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c1t0d0
5) vgextend /dev/vg00 /dev/dsk/c1t0d0
This adds the Physical Volume to the root volume group
6) lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
This command extends the mirror to the specified
Physical Volume.
*NOTE: The lvextend command has to be done on all
logical volumes on the primary disk. This means that
lvextend has to be done on lvol1 ->; lvolX. This also
includes /dev/vg00/lvol2, which by default is primary swap.
lvol1 must be the first logical volume mirrored; if it is
not, then you will not be able to boot from the mirror.
7) lvlnboot -r /dev/vg00/lvol3
Specifies the root logical volume.
* Note: The root logical volume is /dev/vg00/lvol1
for HP-UX 10.01 & 10.10, and /dev/vg00/lvol3
(as in this example) is the root logical volume in 10.20.
lvlnboot -s /dev/vg00/lvol2
Specifies the swap logical volume
To determine where the swap logical volume is located
use the swapinfo command.
9) lvlnboot -d /dev/vg00/lvol2
Specifies the dump logical volume
10) lvlnboot -b /dev/vg00/lvol1
Specifies the boot logical volume (for 10.20 only)
11) lvlnboot -R
Recovers any BDRA info
12) lvlnboot -v
Verify boot, root, swap and dump settings.
13) setboot
This will display the Primary and Alternate
boot paths that are currently set.
14) setboot -a mirror_disk_hardware_address
Changes the Alternate Boot Path to the
path of the Root Mirror.
15) shutdown -r now
Shut down the system and boot from the mirror disk.
The system will shut down and reboot, as the system starts to
come back up, look for the message (system's output may vary):
TO INTERRUPT THE BOOT SEQUENCE, PRESS AND HOLD ESCAPE (MODEL 700)
TO INTERRUPT THE BOOT SEQUENCE, PRESS ANY KEY (MODEL 800)
This will display the Boot Admin display.
At the boot_admin>; prompt type: bo Mirror_disk_hardware_address
For example ->; bo 4/8.10.0 On some systems, "bo alt" will work
if the alternate boot device is configured.
The system will prompt to interact with IPL, answer "no", and
the system will boot from the mirror root disk.
Mirroring on non-root logical volumes:
Reference the above steps to determine if MirrorDisk/UX
is installed before continuing. For this example, /dev/vg01
will be the volume group and /dev/dsk/c0t5d0 will be the mirror
disk.
1) pvcreate /dev/rdsk/c0t5d0
2) vgextend /dev/vg01 /dev/dsk/c0t5d0
3) lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c0t5d0
4) lvextend -m 1 /dev/vg01/lvol2 /dev/dsk/c0t5d0
Continue for the remaining logical volumes... |
|