镜像步骤
1. Create a physical volume using pvcreate with the –B option
1。创建一个物理卷使用pvcreate与—b选项
Pvcreate –B /dev/rdsk/c0t3d0
2. Add the physical volume to your existing root volume group with
2。物理卷添加到现有的根卷组与使用vgextend代码:
vgextend:
Vgextend /dev/vg00 /dev/dsk/c0t3d0
3. use mkboot to place boot utilities in the boot area;
3。使用mkboot将启动公用事业在引导区域;
mkboot /dev/rdsk/c0t3d0
4. Use mkboot –a to add an AUTO file in boot LIF area:
使用mkboot——添加一个汽车文件在引导生活区域:
Mkboot –a “hpux (52.3.0;0)/stand/vmunix” /dev/rdsk/c0t3d0
5. Mirror the root logical volume to the above disk
5。镜像根逻辑卷到上面的磁盘
Lvextend –m 1 /dev/vg00/lvol1 /dev/dsk/c0t3d0
6. Mirror the primary swap logical volume:
6。镜子主交换逻辑卷:
Lvextend –m 1 /dev/vg00/prswaplv /dev/dsk/c0t3d0
7. Verify that the boot information contained in the BDRA of the boot disks in the
7。验证引导信息包含在BDRA引导磁盘
root volume group has been automatically updated by lvlnboot with the
locations of the mirror copies of root and primary swap:
Lvlnboot –v
How to replace a disk while mirrored
In the event you need to replace a non-functional mirrored disk, you should
perform the following steps to ensure that the data on the replacement disk are
both synchronized and valid:
1. Run vgcfgbackup to save the volume group configuration information, if
necessary.
2. Remove the disk from the volume group using vgreduce
3. Physically disconnect the bad disk and connect the replacement
4. Run vgcfgrestore to restore LVM configuration information to the added disk.
5. Run vgchange –a y to reactivate the volume group to which the disk belongs.
Since the volume group is already currently active, no automatic
synchronization occurs.
6. Now run vgsync to manually synchronize all extents in the volume group.
根卷组已通过lvlnboot自动更新的
镜像副本的位置的根和主交换:
Lvlnboot - v
如何取代一个磁盘而镜像
如果你需要更换一个非功能性的镜像磁盘,您应该
执行以下步骤来确保替代磁盘上的数据是
两个同步的和有效的:
1。运行vgcfgbackup拯救卷组配置信息,如果
必要的。
2。删除磁盘从卷组使用vgreduce
3。身体上断开坏磁盘和连接替换
4。运行vgcfgrestore恢复LVM配置信息添加的磁盘。
5。运行vgchange - y重新激活卷组的磁盘属于。
自从卷组已经是目前活跃,没有自动
同步发生。
6。现在运行vgsync手动同步卷组中所有的分区。
mirror disk 详细步骤
1、建立将被用做镜像的可启动LVM盘
# pvcreate -B /dev/rdsk/c2t2d0
2、 将这个硬盘添加到当前卷组中
# vgextend vg00 /dev/dsk/c2t2d0
3、 设置为启动盘
# mkboot /dev/rdsk/c2t2d0
4、 将正确的AUTO 文件考倍到新


