全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
HP-UX 11i v3 Operating Environments - How to Mirror Root Disk on an Itanium Server in HP-UX 11.311. Use the following commands to determine the size of the EFI, HP-UX, and HPSP partitions in megabytes on the current boot disk: #diskinfo-b/dev/rdisk/root_disk_p1|awkprint$1/(1024)#diskinfo-b/dev/rdisk/root_disk_p2|awkprint$1/(1024)#diskinfo-b/dev/rdisk/root_disk_p3|awkprint$1/(1024)Where boot_ disk is the character device special file of the current boot disk (for example, /dev/rdisk/disk4 ). 2. Identify a disk that is not currently in use to be used as the mirror. This EFI partition should be as large as the EFI partition on the current disk. The HP-UX partition should be large enough to hold all the logical volumes in the clone. Although the HPSP partition is optional, if it is created, it should be the same size as the HPSP on the clone. 3. Create a temporary file, for example /tmp/partitionfile , containing the number of partitions and the size of each partition to be created on the mirror disk. Use the information from steps 1 and 2 to determine partition sizes. Here is a sample command to create the file, indicating three partitions with an EFI partition size of 500 MB, an HPSP partition size of 400 MB, and the remaining space allocated to the HP-UX partition:#print3nEFI500MBnHPUX100%nHPSP400MB/tmp/partitionfileSee idisk(1M) for more information about partitioning disks.4. Use the file created in step 3 to partition the mirror disk with idisk .(The echo will reply to the confirmation request from the idisk command.)#echoyes|idisk-wf/tmp/partitionfile/dev/rdisk/mirror_disk/tmp/partitionfile may be removed if desired.5. Use ioscan fnkC disk to determine the hardware path to the mirror disk.6. Use the insf command to create device files for all the newly-created partitions:#insfe -Hhardware_path_of_mirror_disk7. Run the pvcreate command on the character device file for the HP-UX (second) partition of the mirror disk using the -B option to make the disk bootable and the -f option to overwrite any pre-existing data on the disk: #pvcreate-f-B/dev/rdisk/mirror_disk_p28. Extend the root volume group to the HP-UX partition of the mirror disk using the block device file of the second (HP-UX) partition in the following command: #vgextend/dev/vg00/dev/disk/mirror_disk_p29. Run mkboot to complete the setup of the disk as a boot disk. The -e option tells mkboot to use EFI layout, and the -l option tells mkboot that this volume will be used by a volume manager even if it is not currently used by one. NOTE: No partition number is given to this command; it looks at the whole disk. #mkboot-e-l/dev/disk/mirror_disk10. Create a temporary AUTO file and use the efi_cp command to copy it to the mirror using the block device of the first (EFI) partition. 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. #printbootvmunix-lq/tmp/AUTO#efi_cp-d/dev/rdisk/mirror_disk_p1/tmp/AUTO/EFI/HPUX/AUTO#efi_cp-d/dev/rdisk/root_disk_p1/tmp/AUTO/EFI/HPUX/AUTOuse following command to check#efi_cp -d /dev/rdisk/root_disk_p1 -u /EFI/HPUX/AUTO /tmp/AUTO; cat /tmp/AUTO#efi_cp -d /dev/rdisk/mirror_disk_p1 -u /EFI/HPUX/AUTO /tmp/AUTO; cat /tmp/AUTOFinish with (for either) the following:# rm /tmp/AUTO11. Starting with the boot, swap, and root logical volumes, run lvextend to mirror each logical volume:check logical volume in root_disk# pvdisplay -v /dev/disk/root_disk_p2 | grep current.*0000 $mirror logical volume in mirror_disk#lvextend-m1/dev/vg00/lvol1/dev/disk/mirror_disk_p2#lvextend-m1/dev/vg00/lvol2/dev/disk/mirror_disk_p2#lvextend-m1/dev/vg00/lvol3/dev/disk/mirror_disk_p2#lvextend-m1/dev/vg00/lvol4/dev/disk/mirror_disk_p2#lvextend-m1/dev/vg00/lvol5/dev/disk/mirror_disk_p2. or# for i in 1 2 3 4 5 6 7 8dolvextend -m 1 /dev/vg00/lvol$i /dev/disk/mirror_disk_p2done12. Run the following lvlnboot commands to re-establish LVMs knowledge of the root and boot file systems and primary swap and dump. #lvlnboot-b/dev/vg00/lvol1#lvlnboot-r/dev/vg00/lvol3#lvlnboot-s/dev/vg00/lvol2#lvlnboot-d/dev/vg00/lvol2#lvlnboot-Rv13. Add the block device special file of the HP-UX (second) partition of the mirror to the /stand/bootconf file. The lower case l in the following command indicates that the disk is managed by LVM or VxVM. #echol/dev/disk/mirror_disk_p2/stand/bootconf14. If desired, set the alternate boot path to the mirror_disk , using the hardware address determined in step 5. For HP-UX 11iv3, you can just use the block device special file name. #setboot-a/dev/disk/mirror_diskor# ioscan m lun /dev/disk/mirror_disk# setboot a lun_of_mirror_disk15. If the mirror disk includes an HPSP partition, use the efi_fsinit command on the character device file for the HPSP (third) partition to initialize it with an EFI file system: #efi_fsinit-d/dev/rdisk/mirror_disk_p316. The contents of the HPSPIf the diagnostics have been installed to the original system disk, the dd command can be used to copy them to its mirror. To see if the diagnostics are installed on the original boot dis
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 灌区管理考试题目及答案
- 妊娠合并心脏病产后抗凝治疗的精准医疗策略
- 产品造型基础试题及答案
- 2026普法考试题库及答案
- 妇幼健康服务供给优化策略
- 大数据定量报告优化策略
- 病句考试题及答案
- 工地电工考试及答案
- 口语考试雅思问题及答案
- 多组学数据整合在疾病预测中的价值
- 2023-2024学年北京市海淀区清华附中八年级(上)期末数学试卷(含解析)
- 临终决策中的医患共同决策模式
- 2026年包头轻工职业技术学院高职单招职业适应性测试备考题库及答案详解
- 草原补偿协议书
- 防护网施工专项方案
- 九年级物理 2025-2026学年九年级上学期期末物理试题及答案 2025-2026学年度上学期期末教学质量测查九年级物理试卷
- 2026年及未来5年市场数据中国聚甲醛市场运行态势及行业发展前景预测报告
- 降低住院患者口服药缺陷率教学课件
- 《质量管理与控制技术基础》第一章 质量管理基础知识
- 高一年级主任工作总结(4篇)
- GB/T 12326-2008电能质量电压波动和闪变
评论
0/150
提交评论