u盘启动linux hp服务器,在HP 9000系列服务器上镜像启动盘(11iv3)

Mirroring the Boot Disk on HP 9000 Servers:

前提条件:

确保安装mirrordisk软件(需要codeword):

# swlist -l fileset | grep -i mirror

# LVM-MirrorDisk                        B.11.31        MirrorDisk/UX

LVM-MirrorDisk.LVM-MIRROR             B.11.31        HP-UX support for the MirrorDisk/UX

使用下列命令查看本地磁盘及它们的路径

# ioscan -m lun

确定当前启动盘可以查看/stand/bootconf文件

# cat /stand/bootconf

l  /dev/disk/disk10

本文环境:操作系统已经安装在组成vg00卷组的disk10上,要将disk9设置成disk10的镜像盘。

步骤:

1、确保存在disk设备文件:

# insf -e -H 0/1/1/0.0x1.0x0

2、创建物理卷:

# pvcreate -f -B /dev/rdisk/disk9

3、添加该物理卷到已经存在的根卷组vg00

# vgextend /dev/vg00 /dev/disk/disk9

4、将boot utilities放到启动区域:

# mkboot /dev/rdisk/disk9

5、添加自启动文件到启动区域:

The–lq option ensures that the system will boot without quorum. In the event of the primary boot disk failing this will allow the mirror disk to boot.

# mkboot -a "hpux -lq" /dev/rdisk/disk9

6、The logical volumes on the mirror boot disk must be extended in the same order that they are configured on the original boot disk. Determine the list of logical

volumes in the root volume group and their order.

# pvdisplay -v /dev/disk/disk10 | grep 'current.*0000 $'

00000 current  /dev/vg00/lvol1         00000

00112 current  /dev/vg00/lvol2         00000

00624 current  /dev/vg00/lvol3         00000

00752 current  /dev/vg00/lvol4         00000

00880 current  /dev/vg00/lvol5         00000

01520 current  /dev/vg00/lvol6         00000

01840 current  /dev/vg00/lvol7         00000

02480 current  /dev/vg00/lvol8         00000

03120 current  /dev/vg00/lvol9         00000

7、Mirror each logical volume in vg00 (the root volume group) onto the specified physical volume.

# lvextend -m 1 /dev/vg00/lvol1 /dev/disk/disk9

# lvextend -m 1 /dev/vg00/lvol2 /dev/disk/disk9

# lvextend -m 1 /dev/vg00/lvol3 /dev/disk/disk9

# lvextend -m 1 /dev/vg00/lvol4 /dev/disk/disk9

# lvextend -m 1 /dev/vg00/lvol5 /dev/disk/disk9

# lvextend -m 1 /dev/vg00/lvol6 /dev/disk/disk9

# lvextend -m 1 /dev/vg00/lvol7 /dev/disk/disk9

# lvextend -m 1 /dev/vg00/lvol8 /dev/disk/disk9

# lvextend -m 1 /dev/vg00/lvol9 /dev/disk/disk9

或者可以采用更快的方法: 【Linux公社 http://www.linuxidc.com 】

TIP: To shorten the time required to synchronize the mirror copies, use the lvextend and lvsync command options introduced in the September 2007 release of HP-UX 11i

Version

# lvextend -s -m 1 /dev/vg00/lvol1 /dev/disk/disk9

# lvextend -s -m 1 /dev/vg00/lvol2 /dev/disk/disk9

# lvextend -s -m 1 /dev/vg00/lvol3 /dev/disk/disk9

# lvextend -s -m 1 /dev/vg00/lvol4 /dev/disk/disk9

# lvextend -s -m 1 /dev/vg00/lvol5 /dev/disk/disk9

# lvextend -s -m 1 /dev/vg00/lvol6 /dev/disk/disk9

# lvextend -s -m 1 /dev/vg00/lvol7 /dev/disk/disk9

# lvextend -s -m 1 /dev/vg00/lvol8 /dev/disk/disk9

# lvextend -s -m 1 /dev/vg00/lvol9 /dev/disk/disk9

# lvsync -T /dev/vg00/lvol*

8、更新根卷组的信息:

# lvlnboot -R /dev/vg00

9. Verify that the mirrored disk is displayed as a boot disk and that the boot, root, and swap logical volumes appear to be on both disks as follows:

# lvlnboot -v

Boot Definitions for Volume Group /dev/vg00:

Physical Volumes belonging in Root Volume Group:

/dev/disk/disk10 -- Boot Disk

/dev/disk/disk9 -- Boot Disk

Boot: lvol1     on:     /dev/disk/disk10

/dev/disk/disk9

Root: lvol3     on:     /dev/disk/disk10

/dev/disk/disk9

Swap: lvol2     on:     /dev/disk/disk10

/dev/disk/disk9

Dump: lvol2     on:     /dev/disk/disk10, 0

10. Specify the mirror disk as the alternate boot path in nonvolatile memory as follows:

# setboot -a 0/1/1/0.0x1.0x0

11. Add a line to /stand/bootconf for the new boot disk using vi or another text editor as follows:

# vi /stand/bootconf

l /dev/disk/disk9

Where the literal “l” (lower case L) represents LVM.

该文件最终内容:

# cat /stand/bootconf

l  /dev/disk/disk10

l  /dev/disk/disk9

至此,镜像启动盘操作全部完成。0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值