• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

一篇关于Itanium2 Mirror Root Disk文章!!!

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 30次 | 进入软件测试论坛讨论

领测软件测试网
c3t2d0 be the existing primary disk and c3t1d0 the new mirror boot disk

1) Setup the disk partitions
Create a partition description file
# vi /tmp/partitionfile
2
EFI 100MB
HPUX 100%

Use idisk command to partition the disk according to this file
# idisk -wf /tmp/partitionfile /dev/rdsk/c3t1d0
idisk version: 1.2
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes
...

2) Create the new device files for the new partitions (c3t1d0s1 and c3t1d0s2)
# insf -e –Cdisk

3) Use mkboot to format the EFI partition (s1) and populate it with the EFI files below
/usr/lib/efi/ and to format the LIF volume (s2) and populate it with the LIF
files (ISL, AUTO, HPUX, LABEL) below /usr/lib/uxbootlf
# mkboot -e -l /dev/rdsk/c3t1d0 (e:EFI l:LIF)
# efi_ls -d /dev/rdsk/c3t1d0s1 (to check EFI)
File Name Last Modified Size
EFI/ 5/19/2003 0
STARTUP.NSH 5/19/2003 336
total space 103215616 bytes, free space 100076032 bytes
# lifls -l /dev/rdsk/c3t1d0s2 (to check LIF)

4) Write content of AUTO file to EFI partition:
# mkboot -a "boot vmunix" /dev/rdsk/c3t1d0
# efi_cp -d /dev/rdsk/c3t1d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x
(to check it)
NOTE: Specify -a “boot vmunix -lq” if prefer that your system boots up without interruption
in case of a disk failure.

5) Initialize the LVM partition (s2) and add it to vg00
# pvcreate [-f] –B /dev/rdsk/c3t1d0s2 
# vgextend vg00 /dev/dsk/c3t1d0s2
 Mirror the LVs to the s2 partition
# for i in lvol1 lvol ... lvol8
> do lvextend -m 1 /dev/vg00/$i /dev/dsk/c3t1d0s2
> done
 Write content of LABEL file, i.e. set root, boot, swap and dump device:
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t2d0s2 (0/1/1/1.2.0) -- Boot Disk
/dev/dsk/c3t1d0s2 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t2d0s2
/dev/dsk/c3t1d0s2
Root: lvol3 on: /dev/dsk/c3t2d0s2
/dev/dsk/c3t1d0s2
Swap: lvol2 on: /dev/dsk/c3t2d0s2
/dev/dsk/c3t1d0s2
Dump: lvol2 on: /dev/dsk/c3t2d0s2, 0

 cuixn 回复于:2003-11-13 16:37:24
4) Write content of AUTO file to EFI partition: 
# mkboot -a "boot vmunix" /dev/rdsk/c3t1d0 
[b:1c5a3a3971]# efi_cp -d /dev/rdsk/c3t1d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x[/b:1c5a3a3971] (to check it) 

这部我没有看明白什么意思?我觉得只要将第一块盘的AUTO文件考过来就行了,然后再EFI-shell中直接增加启动选项就行了,不知这了/tmp/x是做什么的?讨论讨论!!!

 IT中不算精英的我 回复于:2003-11-13 17:11:17
是HP-UX 11i v2吗?没用过。

 pcpcpc888 回复于:2004-04-29 10:49:54
这里得/tmp/x文件只是查看一下AUTO文件得的内容,并没有其他意思

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网