- 论坛徽章:
- 0
|
装的HP小型机型号 HP4440, 进行操作时, 发现第二磁盘的启动区一直未作成功,请高手帮忙解答, 谢谢!
本地硬盘共两块,分别是c2t1d0, c3t0d0 , 默认操作系统和启动区装在c3t0d0上, 所以将c2t1d0作为新盘加入vg00
操作步骤如下:
pvcreate -f -B /dev/rdsk/c2t1d0
#add to vg00
vgextend /dev/vg00 /dev/dsk/c2t1d0
#make second disk bootable
mkboot /dev/rdsk/c2t1d0
#make boot area
mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c2t1d0
#extend lv image to second disk
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c2t1d0
#set boot
lvlnboot -b /dev/vg00/lvol1
#set swap
lvlnboot -s /dev/vg00/lvol2
#set dump
lvlnboot -d /dev/vg00/lvol2
#set root
lvlnboot -r /dev/vg00/lvol3
最后一步操作命令有一提示信息:
lvlnboot: Physical Volume "/dev/dsk/c2t1d0" on which Logical
Volume "/dev/vg00/lvol3" resides is not a Boot Physical Volume.
操作完毕之后, 用lvlnboot -Rv 检查结果:
# lvlnboot -Rv
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t0d0 (0/1/1/1.0.0) -- Boot Disk
/dev/dsk/c2t1d0 (0/1/1/0.1.0)
Boot: lvol1 on: /dev/dsk/c3t0d0
/dev/dsk/c2t1d0
Root: lvol3 on: /dev/dsk/c3t0d0
/dev/dsk/c2t1d0
Swap: lvol2 on: /dev/dsk/c3t0d0
/dev/dsk/c2t1d0
Dump: lvol2 on: /dev/dsk/c3t0d0, 0
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
而正确结果应该是 : /dev/dsk/c3t0d0 (0/1/1/1.0.0) -- Boot Disk
/dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk |
|