欢迎来到天天文库
浏览记录
ID:10900888
大小:138.50 KB
页数:31页
时间:2018-07-08
《hp-ux下做磁盘镜像》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、环境:系统现有两块磁盘,一块作为主盘,一块作为镜像盘用ioscan-nfCdisk可以查看到两个磁盘/dev/dsk/c0t0d0 //此盘为主盘/dev/dsk/c0t2d0 //此盘将作为镜像盘用swinstall–lbundle查看系统是否安装MirrorDisk/UX镜像的步骤:1、pvcreate -f -B /dev/rdsk/c0t2d0//使用参数“-B”创建一个用于镜像的可引导的LVM磁盘:2、vgextend/dev/vg00/dev/dsk/c0t2d0//将上一步的LVM磁盘添加到根卷组中3、mkboot/dev/c0t2d0
2、 //将新磁盘制作成为可引导的磁盘4、lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c0t2d0 lvextend -m 1 /
3、dev/vg00/lvol6 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c0t2d0 //将VG00中的所有设备都镜像到镜像盘,-m1表示拷贝一份镜像,如果文件系统较大,等待时间可能会长一点,如下:#lvextend-m1/dev/vg00/lvol1 Thenewlyallocatedmirrorsarenowbeingsynchronized.Thisoperationwillt
4、akesometime.Pleasewait....Logicalvolume"/dev/vg00/lvol1"hasbeensuccessfullyextended.VolumeGroupconfigurationfor/dev/vg00hasbeensavedin/etc/lvmconf/vg00.conf#lvextend-m1/dev/vg00/lvol2Thenewlyallocatedmirrorsarenowbeingsynchronized.Thisoperationwilltakesometime.Pleasewait....Logicalvolume"/dev
5、/vg00/lvol2"hasbeensuccessfullyextended.VolumeGroupconfigurationfor/dev/vg00hasbeensavedin/etc/lvmconf/vg00.conf第5步:拷贝正确的AUTO文件到新的LIF区#mkboot-a"hpux-lq(;0)/stand/vmunix"/dev/dsk/c0t0d0#mkboot-a"hpux-lq(;0)/stand/vmunix"/dev/dsk/c0t2d0 第6步:指定引导逻辑卷、根逻辑卷、主交换逻辑卷(用swapinfo确定交换逻辑卷在什么地方)、转储逻辑卷,为根和交换
6、镜像拷贝更新包含在BDRA中等启动信息:#lvlnboot-b/dev/vg00/lvol1VolumeGroupconfigurationfor/dev/vg00hasbeensavedin/etc/lvmconf/vg00.conf#lvlnboot-r/dev/vg00/lvol3VolumeGroupconfigurationfor/dev/vg00hasbeensavedin/etc/lvmconf/vg00.conf#lvlnboot-s/dev/vg00/lvol2VolumeGroupconfigurationfor/dev/vg00hasbeensavedin/
7、etc/lvmconf/vg00.conf#lvlnboot-d/dev/vg00/lvol2VolumeGroupconfigurationfor/dev/vg00hasbeensavedin/etc/lvmconf/vg00.conf第7步:恢复所有的BDRA信息#lvlnboot-R VolumeGroupconfigurationfor/dev/vg00hasbeensavedin/etc/lvmconf/vg00.conf第8步:确定引导逻辑卷、根逻辑卷、主交换逻辑卷以
此文档下载收益归作者所有