免费注册 查看新帖 |

Chinaunix

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

HPUX中vg00根盘镜像配置方法(二) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-16 00:04 |只看该作者 |倒序浏览

11,   给LABELwen文件写入内容
         
          #lvlnboot –b /dev/vg00/lvol1
          #lvlnboot –r /dev/vg00/lvol3
          #lvlnboot –s /dev/vg00/lvol2
          #lvlnboot –d /dev/vg00/lvol2

     12,   查看给LABEL文件写入内容是否正确

          #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

     13,   将第二块盘设置为从启动路径
         
          #setboot –a 0/0/2/1.6.0

     14,   查看启动路径设置是否正确
         
          #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)


     15,   重新启动机器
         
          #shutdown –r 0

     16,   进入机器的bch,亦即10秒终端
         
          出现To discontinue, press any key within 10 seconds.提示后按任意键

17,   从第二块硬盘启动,看机器是否可以启动正常

      Boot terminated.
---- Main Menu ---------------------------------------------------------------
     Command                           Description
     -------                           -----------
     BOot [PRI|ALT|]             Boot from specified path
     PAth [PRI|ALT] []           Display or modify a path
     SEArch [DIsplay|IPL] []     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 [|]           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).


                                                                           IODC
   Path#  Device Path (dec)  Device Path (mnem)  Device Type               Rev
   -----  -----------------  ------------------  -----------               ----
   P0     0/0/2/0.6          intscsia.6          Random access media       1   
   P1     0/0/2/1.6          intscsib.6          Random access media       1   
   P2     0/4/0/0.0                              Random access media       6   
   P3     1/10/0/0.0                             Random access media       6   


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

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

HARD Booted.
。。。。。。。。。。。。。。。。。。。。

18,  检查vg00的所有lv是否都是synced,即同步,确保都是synced

--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write     
VG Status                   available                 
Max LV                      255   
Cur LV                      10     
Open LV                     10     
Max PV                      16     
Cur PV                      2      
Act PV                      2      
Max PE per PV               4384         
VGDA                        4   
PE Size (Mbytes)            16              
Total PE                    4340   
Alloc PE                    4046   
Free PE                     294     
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                  32        
   Allocated PE                64         
   Used PV                     2      

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

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

   LV Name                     /dev/vg00/lvol4
   LV Status                   available/syncd          
   LV Size (Mbytes)            512            
   Current LE                  32        
   Allocated PE                64         
   Used PV                     2      

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

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

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

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

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

   LV Name                     /dev/vg00/sybase
   LV Status                   available/syncd           
   LV Size (Mbytes)            9008            
   Current LE                  563      
   Allocated PE                1126        
   Used PV                     2      


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

   PV Name                     /dev/dsk/c2t6d0
   PV Status                   available               
   Total PE                    2170   
   Free PE                     147     
   Autoswitch                  On        



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8103/showart_2029010.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP