分类:
2009-08-16 00:04:39
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/
/dev/dsk/c2t6d0 (0/
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/
14, 查看启动路径设置是否正确
#setboot
Primary bootpath : 0/0/2/
Alternate bootpath : 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|
PAth [PRI|ALT] [
SEArch [DIsplay|IPL] [
COnfiguration menu Displays or sets boot values
INformation menu Displays hardware information
SERvice menu Displays service commands
DIsplay Redisplay the current menu
HElp [
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/
P2 0/4/0/0.0 Random access media 6
P3
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
Cur
Open
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 4340
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
Current LE 32
Allocated PE 64
Used PV 2
LV Name /dev/vg00/lvol2
LV Status available/syncd
Current LE 128
Allocated PE 256
Used PV 2
LV Name /dev/vg00/lvol3
LV Status available/syncd
Current LE 64
Allocated PE 128
Used PV 2
LV Name /dev/vg00/lvol4
LV Status available/syncd
Current LE 32
Allocated PE 64
Used PV 2
LV Name /dev/vg00/lvol5
LV Status available/syncd
Current LE 64
Allocated PE 128
Used PV 2
LV Name /dev/vg00/lvol6
LV Status available/syncd
Current LE 256
Allocated PE 512
Used PV 2
LV Name /dev/vg00/lvol7
LV Status available/syncd
Current LE 128
Allocated PE 256
Used PV 2
LV Name /dev/vg00/lvol8
LV Status available/syncd
Current LE 256
Allocated PE 512
Used PV 2
LV Name /dev/vg00/oracle
LV Status available/syncd
Current LE 500
Allocated PE 1000
Used PV 2
LV Name /dev/vg00/sybase
LV Status available/syncd
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