免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3747 | 回复: 7
打印 上一主题 下一主题

hp-ux不能从镜像硬盘启动问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-28 18:00 |只看该作者 |倒序浏览
本帖最后由 zl7507 于 2011-08-28 18:01 编辑

机型:N4000,硬盘信息如下:
citiccs1@:/#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
        /dev/dsk/c1t6d0 (0/0/2/0.6.0) -- Boot Disk
        /dev/dsk/c2t6d0 (0/0/2/1.6.0) -- Boot Disk
Boot: lvol1     on:     /dev/dsk/c1t6d0
                        /dev/dsk/c2t6d0
Root: lvol3     on:     /dev/dsk/c1t6d0
                        /dev/dsk/c2t6d0
Swap: lvol2     on:     /dev/dsk/c1t6d0
                        /dev/dsk/c2t6d0
Dump: lvol2     on:     /dev/dsk/c1t6d0, 0

citiccs1@:/#
citiccs1@:/#
citiccs1@:/#setboot
Primary bootpath : 0/0/2/0.6.0
Alternate bootpath : 0/0/2/1.6.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

citiccs1@:/#diskinfo

citiccs1@:/#vgdisplay -v vg00
--- Volume groups ---
VG Name                     /dev/vg00
VG 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               4350         
VGDA                        4   
PE Size (Mbytes)            8               
Total PE                    8680   
Alloc PE                    6232   
Free PE                     2448   
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0                     

   --- Logical volumes ---
   LV Name                     /dev/vg00/lvol1
   LV Status                   available/syncd           
   LV Size (Mbytes)            512            
   Current LE                  64        
   Allocated PE                128         
   Used PV                     2      

   LV Name                     /dev/vg00/lvol2
   LV Status                   available/syncd           
   LV Size (Mbytes)            4096            
   Current LE                  512      
   Allocated PE                1024        
   Used PV                     2      

   LV Name                     /dev/vg00/lvol3
   LV Status                   available/syncd           
   LV Size (Mbytes)            1024            
   Current LE                  128      
   Allocated PE                256         
   Used PV                     2      

   LV Name                     /dev/vg00/lvol4
   LV Status                   available/syncd           
   LV Size (Mbytes)            4000            
   Current LE                  500      
   Allocated PE                1000        
   Used PV                     2      

   LV Name                     /dev/vg00/lvol5
   LV Status                   available/syncd           
   LV Size (Mbytes)            4096            
   Current LE                  512      
   Allocated PE                1024        
   Used PV                     2      

   LV Name                     /dev/vg00/lvol6
   LV Status                   available/syncd           
   LV Size (Mbytes)            2504            
   Current LE                  313      
   Allocated PE                626         
   Used PV                     2      

   LV Name                     /dev/vg00/lvol7
   LV Status                   available/syncd           
   LV Size (Mbytes)            4096            
   Current LE                  512      
   Allocated PE                1024        
   Used PV                     2      

   LV Name                     /dev/vg00/lvol8
   LV Status                   available/syncd           
   LV Size (Mbytes)            4600            
   Current LE                  575      
   Allocated PE                1150        
   Used PV                     2      


   --- Physical volumes ---
   PV Name                     /dev/dsk/c1t6d0
   PV Status                   available               
   Total PE                    4340   
   Free PE                     1224   
   Autoswitch                  On        

   PV Name                     /dev/dsk/c2t6d0
   PV Status                   available               
   Total PE                    4340   
   Free PE                     1224   
   Autoswitch                  On     

主引导硬盘是/dev/dsk/c1t6d0,现在在 /dev/dsk/c2t6d0上用如下命令产生引导信息:
mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c2t6d0

重启后选择/dev/rdsk/c2t6d0 引导,但是不能成功:
Boot terminated.


---- Main Menu ---------------------------------------------------------------

     Command                           Description
     -------                           -----------
     BOot [PRI|ALT|<path>]             Boot from specified path
     PAth [PRI|ALT] [<path>]           Display or modify a path
     SEArch [DIsplay|IPL] [<path>]     Search for boot devices

     COnfiguration menu                Displays or sets boot values
     INformation menu                  Displays hardware information
     SERvice menu                      Displays service commands

     DIsplay                           Redisplay the current menu
     HElp [<menu>|<command>]           Display help for menu or command
     RESET                             Restart the system
----
Main Menu: Enter command or menu > sea

Searching for potential boot device(s)
This may take several minutes.

To discontinue search, press any key (termination may not be immediate).


   Path#  Device Path (dec)  Device Path (mnem)  Device Type
   -----  -----------------  ------------------  -----------
   P0     0/0/2/0.6          intscsia.6          Random access media      
   P1     0/0/2/1.6          intscsib.6          Random access media      


Main Menu: Enter command or menu >
Main Menu: Enter command or menu > BO p1
Interact with IPL (Y, N, or Cancel)?> n

Booting...
Boot IO Dependent Code (IODC) revision 1

IPL error:
************* SYSTEM ALERT **************
SYSTEM NAME: test
DATE: 08/28/2011 TIME: 06:56:56
ALERT LEVEL: 6 = Boot possible, pending failure - action required

REASON FOR ALERT
SOURCE: 8 = I/O
SOURCE DETAIL: 6 = disk   SOURCE ID: 0
PROBLEM DETAIL: 0 = no problem detail

LEDs:  RUN      ATTENTION     FAULT     REMOTE     POWER
       FLASH    FLASH         OFF       ON         ON
LED State: Running non-OS code.  Non-critical error detected.
Check Chassis and Console Logs for error messages.

0x0000106086001030 00000000 00000000 - type  0 = Data Field Unused
0x5800186086001030 00006F07 1C063838 - type 11 = Timestamp 08/28/2011 06:56:56
A: ack read of this entry - X: Disable all future alert messages
Anything else skip redisplay the log entry
->Choice:
*****************************************


*****************************************

Main Menu: Enter command or menu > BO
Interact with IPL (Y, N, or Cancel)?> n

Booting...
Boot IO Dependent Code (IODC) revision 1




想验证下镜像硬盘是否有效

论坛徽章:
0
2 [报告]
发表于 2011-08-29 14:22 |只看该作者
做镜像的步骤没有贴全 还是没做全

论坛徽章:
0
3 [报告]
发表于 2011-08-29 15:19 |只看该作者
镜像做了,以下是镜像步骤:
#pvcreate -B /dev/rdsk/c2t6d0
#vgextend /dev/vg00 /dev/dsk/c2t6d0
##lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t6d0
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t6d0
#lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t6d0
#lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t6d0
#lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t6d0
#lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t6d0
#lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t6d0
#mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c2t6d0

论坛徽章:
0
4 [报告]
发表于 2011-08-29 16:07 |只看该作者
本帖最后由 fengshen518 于 2011-08-29 17:46 编辑

lllllllllllllll

论坛徽章:
0
5 [报告]
发表于 2011-08-29 16:08 |只看该作者
本帖最后由 fengshen518 于 2011-08-29 17:47 编辑

ooooooooooooooo

论坛徽章:
0
6 [报告]
发表于 2011-08-29 16:09 |只看该作者
2:创建LIF区
#mkboot /dev/rdsk/c2t2d2  (确认自己的操作只能用lifls 例子:#lifls /dev/rdsk/c2t2d2)
3:加入仲裁 要在2块盘上
#mkboot -a "hpux lq" /dev/rdsk/c1t1d1
#mkboot -a "hpux lq" /dev/rdsk/c2t2d2
4:初始化盘并加入VG00中
#pvcreate -f -B /dev/rdsk/c2t2d2
#vgextend vg00 /dev/dsk/c2t2d2   (查看PV是否加入VG中#vgdisplay -v /dev/vg00)
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d2
           ....
           ....
           ....
#lvlnboot -R  
5:
#vi /stand/bootconf
1  /dev/dsk/c1t1d1
1  /dev/dsk/c2t2d2
6:添加新镜像到 NVRAM中
#setboot -p  1/1/1/1.1.1
#setboot -h  2/2/2/2.2.2
(有的firmware revisions不支持HAA 如果setboot -h 命令失败 可以使用#setboot -a 2/2/2/2.2.2)

论坛徽章:
0
7 [报告]
发表于 2011-08-29 16:09 |只看该作者
3:加入仲裁 要在2块盘上
#mkboot -a "hpux lq" /dev/rdsk/c1t1d1
#mkboot -a "hpux lq" /dev/rdsk/c2t2d2

论坛徽章:
0
8 [报告]
发表于 2011-08-29 18:49 |只看该作者
谢谢7楼风兄,解答得很详细,我明天就去做实验试下。
另外,我现在已经做了镜像现在再做:
2:创建LIF区
3:加入仲裁 要在2块盘上
是否可行?还是需要删除镜像重新做一遍?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP