HP-UX DRD测试.docx_第1页
HP-UX DRD测试.docx_第2页
HP-UX DRD测试.docx_第3页
HP-UX DRD测试.docx_第4页
HP-UX DRD测试.docx_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

杨剑平 20111022整理HP-UX DRD指南l DRD介绍:DRD,系统映像克隆,用于操作系统的历史备份.当前OS出现故障,可以快速DRD恢复作业环境.l 测试环境:HP-UX 11.23, IA ,RX6600当前系统存在一个镜像,镜像盘为c2t1d0,c2t3d0,用于DRD盘为c2t0d0.l 未升级时DRD版本:1. 查看DRD版本信息及磁盘信息-bash-4.2# swlist -l product |grep -i drd DRD A.3.0.0.1027 Dynamic Root Disk-bash-4.2# ioscan -fnCdisk Class I H/W Path Driver S/W State H/W TypeDescription=disk 5 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV /dev/dsk/c0t0d0 /dev/rdsk/c0t0d0disk 2 0/4/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP EG0146FARTR 刚插新盘 /dev/dsk/c2t0d0 /dev/rdsk/c2t0d0 /dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3disk 3 0/4/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP EG0146FARTR 主镜像盘 /dev/dsk/c2t1d0 /dev/rdsk/c2t1d0 /dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3disk 7 0/4/1/0.0.0.3.0 sdisk CLAIMED DEVICE HPDG0146FAMWL 备镜像盘 /dev/dsk/c2t3d0 /dev/rdsk/c2t3d0 /dev/dsk/c2t3d0s1 /dev/rdsk/c2t3d0s1 /dev/dsk/c2t3d0s2 /dev/rdsk/c2t3d0s2 /dev/dsk/c2t3d0s3 /dev/rdsk/c2t3d0s32. 执行DRD克隆但失败-bash-4.2# drd clone -v -x overwrite=true -t /dev/dsk/c2t0d0= 10/19/11 11:48:36 EAT BEGIN Clone System Image (user=root) (jobid=rx6600a) * Reading Current System Information * Selecting System Image To Clone * Selecting Target Disk * The disk /dev/dsk/c2t0d0 contains data which will be overwritten. * Selecting Volume Manager For New System Image * Analyzing For System Image Cloning * Creating New File Systems * Copying File Systems To New System Image * Making New System Image BootableERROR: Making the file system bootable on clone fails. - Mounting the file system fails. - Validating the DRD registry fails. - The device special file /dev/dsk/c2t2d0 cannot be identified in the system configuration information. * Making New System Image Bootable failed with 1 error. * Unmounting New System Image Clone * System image: sysimage_001 on disk /dev/dsk/c2t0d0ERROR: Unmounting the file system fails. - Unmounting the clone image fails. - The umount command returned 1. The sync command returned 0. The error messages produced are the following: umount:cannot unmount /dev/drd00/lvol3 : Invalid argument umount: return error 1. * Unmounting New System Image Clone failed with 1 error. * Cleaning up after clone errors.= 10/19/11 12:19:10 EAT END Clone System Image failed with 2 errors. (user=root) (jobid=rx6600a)-bash-4.2# 3、没有成功,怀疑是新盘系统识别后没有创建设备文件,执行insf -e -bash-4.2# insf -e insf: Installing special files for asio0 instance 2 address 0/0/1/2insf: Installing special files for sdisk instance 5 address 0/0/2/1.0.16.0.0insf: Installing special files for sctl instance 3 address 0/0/2/1.0.16.7.0insf: Installing special files for sdisk instance 2 address 0/4/1/0.0.0.0.0insf: Installing special files for sdisk instance 3 address 0/4/1/0.0.0.1.0insf: Installing special files for sdisk instance 7 address 0/4/1/0.0.0.3.0insf: Installing special files for ipmi instance 0 address 250/04、再次执行DRD克隆-bash-4.2# drd clone -v -x overwrite=true -t /dev/dsk/c2t0d0= 10/20/11 09:09:00 EAT BEGIN Clone System Image (user=root) (jobid=rx6600a) * Reading Current System Information * Selecting System Image To Clone * Selecting Target DiskERROR: Selection of the target disk fails. - Selecting the target disk fails. - Validation of the disk /dev/dsk/c2t0d0 fails with the following error(s): - The disk /dev/dsk/c2t0d0 is in use by a volume group on the system. * Selecting Target Disk failed with 1 error.= 10/20/11 09:09:25 EAT END Clone System Image failed with 1 error. (user=root) (jobid=rx6600a)5. 由于刚才的操作没有成功,但是创建了一个新与DRD相关的VG,需要删除.-bash-4.2# vgchange -a n /dev/drd00 去激活此VGVolume group /dev/drd00 has been successfully changed.-bash-4.2# vgexport /dev/drd00-bash-4.2# pvcreate -f /dev/rdsk/c2t0d0Physical volume /dev/rdsk/c2t0d0 has been successfully created.-bash-4.2# drd clone -v -x overwrite=true -t /dev/dsk/c2t0d0= 10/20/11 10:49:29 EAT BEGIN Clone System Image (user=root) (jobid=rx6600a) * Reading Current System Information * Selecting System Image To Clone * Selecting Target Disk * The disk /dev/dsk/c2t0d0 contains data which will be overwritten. * Selecting Volume Manager For New System Image * Analyzing For System Image Cloning * Creating New File Systems * Copying File Systems To New System Image * Making New System Image BootableERROR: Making the file system bootable on clone fails. - Mounting the file system fails. - Validating the DRD registry fails. - The device special file /dev/dsk/c2t2d0 cannot be identified in the system configuration information. * Making New System Image Bootable failed with 1 error. * Unmounting New System Image Clone * System image: sysimage_001 on disk /dev/dsk/c2t0d0ERROR: Unmounting the file system fails. - Unmounting the clone image fails. - The umount command returned 1. The sync command returned 0. The error messages produced are the following: umount:cannot unmount /dev/drd00/lvol3 : Invalid argument umount: return error 1. * Unmounting New System Image Clone failed with 1 error. * Cleaning up after clone errors.= 10/20/11 11:19:54 EAT ENDClone System Image failed with 2 errors. (user=root) (jobid=rx6600a)怀疑是DRD版本太低引起.于是到HP网站一个最新版本,大约30M,需要注册帐号,免费下载l DRD升级后:1. 升级DRD#swinstall s /tmp/DRD_1123_WEB1107.depot x autoboot=true *.-bash-4.2# swlist -l product |grep -i drd DRD B.1123.A.3.9.432 Dynamic Root Disk -bash-4.2# pvcreate -f /dev/rdsk/c2t0d0 Physical volume /dev/rdsk/c2t0d0 has been successfully created.-bash-4.2# drd clone -v -x overwrite=true -t /dev/dsk/c2t0d0= 10/22/11 13:48:42 EAT BEGIN Clone System Image (user=root) (jobid=rx6600a) * Reading Current System Information * Selecting System Image To Clone * Selecting Target DiskNOTE: There may be LVM 2 volumes configured that will not be recognized.ERROR: Selection of the target disk fails. - Selecting the target disk fails. - Validation of the disk /dev/dsk/c2t0d0 fails with the following error(s): - The disk /dev/dsk/c2t0d0 is in use on the system. * Selecting Target Disk failed with 1 error. * DRD operation failed, contents of /var/opt/drd/tmp copied to /var/opt/drd/save.= 10/22/11 13:48:51 EAT END Clone System Image failed with 1 error. (user=root) (jobid=rx6600a)-bash-4.2# vgdisplay - Volume groups -VG Name /dev/vg00VG Write Access read/write VG Status available Max LV 255 Cur LV 8 Open LV 8 Max PV 16 Cur PV 2 Act PV 2 Max PE per PV 4356 VGDA 4 PE Size (Mbytes) 32 Total PE 8692 Alloc PE 2208 Free PE 6484 Total PVG 0 Total Spare PVs 0 Total Spare PVs in use 0 VG Name /dev/drd00VG Write Access read/write VG Status available Max LV 255 Cur LV 8 Open LV 8 Max PV 16 Cur PV 1 Act PV 1 Max PE per PV 4356 VGDA 2 PE Size (Mbytes) 32 Total PE 4346 Alloc PE 1104 Free PE 3242 Total PVG 0 Total Spare PVs 0 Total Spare PVs in use 0 去激活DRD VG-bash-4.2# vgchange -a n /dev/drd00Volume group /dev/drd00 has been successfully changed.= PS:如果你有没去激活此VG那么会提示如下错误:-bash-4.2# vgexport /dev/drd00vgexport: Volume group /dev/drd00 is still active.vgexport: Couldnt export volume group /dev/drd00.=删除上面的DRD VG信息-bash-4.2# vgexport /dev/drd00 -bash-4.2# drd clone -v -x overwrite=true -,t /dev/dsk/c2t0d0= 10/22/11 15:19:55 EAT BEGIN Clone System Image (user=root) (jobid=rx6600a) * Reading Current System Information * Selecting System Image To Clone * Selecting Target DiskNOTE: There may be LVM 2 volumes configured that will not be recognized. * The disk /dev/dsk/c2t0d0 contains data which will be overwritten. * Selecting Volume Manager For New System Image * Analyzing For System Image Cloning * Creating New File Systems * Copying File Systems To New System Image * Making New System Image Bootable * Unmounting New System Image Clone * System image: sysimage_001 on disk /dev/dsk/c2t0d0= 10/22/11 15:52:04 EAT END Clone System Image succeeded. (user=root) (jobid=rx6600a)l 设置下次启动路径:查看当前启动路径:-bash-4.2# lvlnboot -vBoot Definitions for Volume Group /dev/vg00:Physical Volumes belonging in Root Volume Group: /dev/dsk/c2t1d0s2 (0/4/1/0.0.0.1.0) - Boot Disk /dev/dsk/c2t3d0s2 (0/4/1/0.0.0.3.0) - Boot DiskBoot: lvol1 on: /dev/dsk/c2t1d0s2 /dev/dsk/c2t3d0s2Root: lvol3 on: /dev/dsk/c2t1d0s2 /dev/dsk/c2t3d0s2Swap: lvol2 on: /dev/dsk/c2t1d0s2 /dev/dsk/c2t3d0s2Dump: lvol2 on: /dev/dsk/c2t3d0s2, 0-bash-4.2# setbootPrimary bootpath : 0/4/1/0.0.0.1.0HA Alternate bootpath : 0/4/1/0.0.0.3.0Alternate bootpath : 0/4/2/0Autoboot is ON (enabled)-bash-4.2# drd activate -x alternate_bootdisk=/dev/dsk/c2t0d0= 10/22/11 15:59:10 EAT BEGIN Activate Inactive System Image (user=root) (jobid=rx6600a) * Checking for Valid Inactive System Image * Reading Current System Information * Locating Inactive System Image * Determining Bootpath Status * Primary bootpath : /dev/dsk/c2t1d0 before activate. * Primary bootpath : /dev/dsk/c2t0d0 after activate. * Alternate bootpath : unknown before activate. * Alternate bootpath : /dev/dsk/c2t0d0 after activate. * HA Alternate bootpath : /dev/dsk/c2t3d0 before activate. * HA Alternate bootpath : /dev/dsk/c2t3d0 after activate. * Activating Inactive System Image= 10/22/11 15:59:50 EAT END Activate Inactive System Image succeeded. (user=root) (jobid=rx6600a)-bash-4.2#-bash-4.2# setboot Primary bootpath : 0/4/1/0.0.0.0.0HA Alternate bootpath : 0/4/1/0.0.0.3.0Alternate bootpath : 0/4/1/0.0.0.0.0 新增加Autoboot is ON (enabled)-bash-4.2# 查看DRD状态-bash-4.2# drd status= 10/24/11 13:56:18 EAT BEGIN Displaying DRD Clone Image Information (user=root) (jobid=rx6600a) * Clone Disk: /dev/dsk/c2t0d0 * Clone EFI Partition: AUTO file present, Boot loader present * Clone Rehost Status: SYSINFO.TXT not present * Clone Creation Date: 10/22/11 15:20:07 EAT * Last Sync Date: None * Clone Mirror Disk: None * Mirror EFI Partition: None * Original Disk: /dev/dsk/c2t1d0 * Original EFI Partition: AUTO file present, Boot loader present * Original Rehost Status: SYSINFO.TXT not present * Booted Disk: Clone Disk (/dev/dsk/c2t0d0) * Activated Disk: Clone Disk (/dev/dsk/c2t0d0)= 10/24/11 13:56:34 EAT END Displaying DRD Clone Image Information succeeded. (user=root) (jobid=rx6600a)l 通过DRD盘引导成功:-bash-4.2# shutdown -ry 0Shutdown cannot be run from a mounted file system - exiting shutdown.Change directories to the root volume (/ will work) and try again.-bash-4.2# pwd/tmp-bash-4.2# cd /-bash-4.2# shutdown -ry 0SHUTDOWN PROGRAM10/22/11 16:02:34 EATBroadcast Message from root (console) Sat Oct 22 16:02:34.SYSTEM BEING BROUGHT DOWN NOW ! ! !/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log) Loading.: HP-UX Alternate Boot: 0/4/1/0.0.0.0.0Starting: HP-UX Alternate Boot: 0/4/1/0.0.0.0.0(C) Copyright 1999-2006,2009 Hewlett-Packard Development Company, L.P.All rights reservedHP-UX Boot Loader for IPF - Revision 2.030Press Any Key to interrupt AutobootEFIHPUXAUTO = boot vmunix -lqSeconds left till autoboot - 0AUTOBOOTING. System Memory = 16353 MBloading section 0. (complete)loading section 1. (complete)loading symbol tableloading System Directory (boot.sys) to MFS.loading MFSFILES directory (bootfs) to MFS.Launching /stand/vmunixSIZE: Text:31143K + Data:7903K + BSS:7897K = Total:46944KConsole is on a Serial DeviceBooting kernel. l 去激活DRD-bash-4.2# drd deactivate = 10/24/11 14:00:39 EAT BEGIN Deactivate Inactive System Image (user=root) (jobid=rx6600a) * Checking for Valid Inactive System Image * Reading Current System Information * Locating Inactive System Image * Determining Bootpath Status * Primary bootpath : /dev/dsk/c2t0d0 before deactivate. * Primary bootpath : /dev/dsk/c2t0d0 after deactivate. * Alternate bootpath : /dev/dsk/c2t0d0 before deactivate. * Alternate bootpath : /dev/dsk/c2t0d0 after deactivate. * HA Alternate bootpath : /dev/dsk/c2t3d0 before deactivate. * HA Alternate bootpath : /dev/dsk/c2t3d0 after deactivate. * Deactivating Inactive System Image= 10/24/11 14:01:01 EAT END Deactivate Inactive System Image succeeded. (user=root) (jobid=rx6600a)-bash-4.2#-bash-4.2# display vg-bash: display: command not found-bash-4.2# vgdisplay- Volume groups -VG Name /dev/vg00VG Write Access read/write VG Status available Max LV 255 Cur LV 8 Open LV 8 Max PV 16 Cur PV 1 Act PV 1 Max PE per PV 4384 VGDA 2 PE Size (Mbytes) 32 Total PE 4346 Alloc PE 1104 Free PE 3242 Total PVG 0 Total Spare PVs 0 Total Spare PVs in use 0 再次激活DRD时,克隆映射很快, -bash-4.2# drd activate= 10/24/11 14:03:24 EAT BEGIN Activate Inactive System Image (user=root) (jobid=rx6600a) * Checking for Valid Inactive System Image * Reading Current System Information * Locating Inactive System Image * Determining Bootpath Status * Primary bootpath : /dev/dsk/c2t0d0 before activate. * Primary bootpath : /dev/dsk/c2t1d0 after activate. * Alternate bootpath : /dev/dsk/c2t0d0 before activate. * Alternate bootpath : /dev/dsk/c2t0d0 after activate. * HA Alternate bootpath : /dev/dsk/c2t3d0 before activate. * HA Alternate bootpath : /dev/dsk/c2t3d0 after activate. * Activating Inactive System Image= 10/24/11 14:03:41 EAT END Activate Inactive System Image succeeded. (user=root) (jobid=rx6600a)-bash-4.2# l DRD命令指南:drd activate -x alternate_bootdisk=/dev/disk/disk1drd deactivate -x alternate_bootdisk=/dev/dsk/c1t1d0drd deactivate -x alternate_bootdisk=/dev/disk/disk1drd runcmd swinstall -s patchsvr:/var/opt/patches PHCO_0001To set the inactive system image as the primary boot disk: drd activatedrd activate -x reboot=true-bash-4.2# man drd drd(1M) drd(1M) NAME drd - manage an inactive system image SYNOPSIS drd -? -x -? drd clone -? -p -v -t tar

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论