- 论坛徽章:
- 0
|
n1405机器,cluster 3.0 ,vxvm 3.2 ,根盘c0t0d0故障,更换步骤:
c0t0d0s2和c0t1d0s2做的根盘镜像,现在c0t0d0s2现在故障,已经失败,下面是还盘的步骤:
先移除失败的盘c0t0d0s2
root@smcp1#vxdiskadm
Select an operation to perform: 4
# vxdctl enable
#vxdisksetup -i c0t0d0
# vxdiskadm
Select an operation to perform: 5
Select a removed or failed disk [<disk>,list,q,?]
listDisk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATEdm
rootdisk_1 - - - - REMOVED
Select a removed or failed disk [<disk>,list,q,?] rootdisk_1
Select disk device to initialize [<address>,list,q,?] c0t0d0
The following disk device has a valid VTOC, but does not appear to have
been initialized for the Volume Manager. If there is data on the disk
that should NOT be destroyed you should encapsulate the existing disk
partitions as volumes instead of adding the disk as a new disk.
Output format: [Device_Name] c0t0d0
Encapsulate this device? [y,n,q,?] (default: y) n
c0t0d0 Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
The requested operation is to initialize disk device c0t0d0 and
to then use that device to replace the removed or failed disk
rootdisk_1 in disk group rootdg.
Continue with operation? [y,n,q,?] (default: y)
Use a default private region length for the disk?[y,n,q,?] (default: y)
Replacement of disk rootdisk_1 in group rootdg with device c0t0d0
failed.
vxvm:vxdg: ERROR: associating disk-media rootdisk_1 with c0t0d0s2:
Disk public region is too smallReplace a different disk? [y,n,q,?] (default: n)
重新vxdiskadm ----> 5
root@smcp1 # vxdiskadm
Select an operation to perform: 5
Replace a failed or removed disk
Menu: VolumeManager/Disk/ReplaceDisk
Use this menu operation to specify a replacement disk for a disk
that you removed with the "Remove a disk for replacement" menu
operation, or that failed during use. You will be prompted for
a disk name to replace and a disk device to use as a replacement.
You can choose an uninitialized disk, in which case the disk will
be initialized, or you can choose a disk that you have already
initialized using the Add or initialize a disk menu operation.
Select a removed or failed disk [<disk>,list,q,?] list
Disk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
dm rootdisk01 - - - - REMOVED
Select a removed or failed disk [<disk>,list,q,?] rootdisk01
The following devices are available as replacements:
c0t1d0s2
You can choose one of these disks to replace rootdisk01.
Choose "none" to initialize another disk to replace rootdisk01.
Choose a device, or select "none"
[<device>,none,q,?] (default: c0t0d0s2) none 这是改动,选none,不直接回车
Select disk device to initialize [<address>,list,q,?] list
DEVICE DISK GROUP STATUS
c0t0d0 - - online
c0t1d0 rootmirr_1 rootdg online
Select disk device to initialize [<address>,list,q,?] c0t0d0
The following disk device appears to have been initialized already.
The disk is currently available as a replacement disk.
Output format: [Device_Name]
c0t0d0
Use this device? [y,n,q,?] (default: y) y
The following disk you selected for use appears to already have
been initialized for the Volume Manager. If you are certain the
disk has already been initialized for the Volume Manager, then you
do not need to reinitialize the disk device.
Output format: [Device_Name]
c0t0d0
Reinitialize this device? [y,n,q,?] (default: y)
The requested operation is to initialize disk device c0t1d0 and
to then use that device to replace the removed or failed disk
rootdisk01 in disk group rootdg.
Continue with operation? [y,n,q,?] (default: y)
Use a default private region length for the disk?
[y,n,q,?] (default: y)
Replacement of disk rootdisk01 in group rootdg with disk device
c0t1d0 completed successfully.
Replace another disk? [y,n,q,?] (default: n)
# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
161 PARENT/R 0.00% 5/0(1) VXRECOVER rootdisk_1
162 162 ATCOPY/R 01.08% 0/28731105/311240 PLXATT home home-01
同步完成!
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced rootdisk_1 rootdg online
c0t1d0s2 sliced rootmirr_1 rootdg online
# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
# format
Specify disk (enter its number): 0 换完的硬盘,分区表还是封装格式的,和镜像盘分区表不一样。
selecting c0t0d0
[disk formatted]
format> ve
Primary label contents:Volume name = < >
ascii name = <SUN36G cyl 24620 alt 2 hd 27 sec 107>
pcyl = 24622
ncyl = 24620
acyl = 2
nhead = 27
nsect = 107
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 24619 33.92GB (24620/0/0) 71127180
3 - wu 24619 - 24619 1.41MB (1/0/0) 2889
4 - wu 0 - 24619 33.92GB (24620/0/0) 71127180
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
format> q
# format
Searching for disks...doneSpecify disk (enter its number): 1 原来的镜像盘,分区表和刚替换完的c0t0d0s2不一样
selecting c0t1d0
[disk formatted]
FORMAT MENU:
AVAILABLE DISK SELECTIONS:format> vePrimary label contents:Volume name = < >
ascii name = <SUN36G cyl 24620 alt 2 hd 27 sec 107>
pcyl = 24622
ncyl = 24620
acyl = 2
nhead = 27
nsect = 107
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 5808 8.00GB (5808/0/0) 16779312
1 swap wu 5809 - 8712 4.00GB (2904/0/0) 8389656
2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180
3 - wu 0 - 0 1.41MB (1/0/0) 2889
4 - wu 1 - 24619 33.91GB (24619/0/0) 71124291
5 unassigned wm 18800 - 24607 8.00GB (5808/0/0) 16779312
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0f
ormat> q
# vxprint -ht
Disk group: rootdgDG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCOdg rootdg all default 50 1080450321.1025.smcp1
dm rootdisk_1 c0t0d0s2 sliced 2888 71124291 -
dm rootmirr_1 c0t1d0s2 sliced 2888 71124291 -v home - ENABLED ACTIVE 28731105 ROUND - gen
pl home-01 home ENABLED ACTIVE 28731105 CONCAT - RW
sd rootdisk_1-04 home-01 rootdisk_1 41948279 28731105 0 c0t0d0 ENA
pl home-02 home ENABLED ACTIVE 28731105 CONCAT - RW
sd rootmirr_1-04 home-02 rootmirr_1 25579206 28731105 0 c0t1d0 ENAv opt - ENABLED ACTIVE 16779312 ROUND - gen
pl opt-01 opt ENABLED ACTIVE 16779312 CONCAT - RW
sd rootdisk_1-05 opt-01 rootdisk_1 25168967 16779312 0 c0t0d0 ENA
pl opt-02 opt ENABLED ACTIVE 16779312 CONCAT - RW
sd rootmirr_1-05 opt-02 rootmirr_1 54310311 16779312 0 c0t1d0 ENAv rootdisk_17vol - ENABLED ACTIVE 410238 ROUND - gen
pl rootdisk_17vol-01 rootdisk_17vol ENABLED ACTIVE 410238 CONCAT - RW
sd rootdisk_1-03 rootdisk_17vol-01 rootdisk_1 70679384 410238 0 c0t0d0 ENA
pl rootdisk_17vol-02 rootdisk_17vol ENABLED ACTIVE 410238 CONCAT - RW
sd rootmirr_1-03 rootdisk_17vol-02 rootmirr_1 25168968 410238 0 c0t1d0 ENAv rootvol - ENABLED ACTIVE 16779312 ROUND - root
pl rootvol-01 rootvol ENABLED ACTIVE 16779312 CONCAT - RW
sd rootdisk_1-B0 rootvol-01 rootdisk_1 71124290 1 0 c0t0d0 ENA
sd rootdisk_1-02 rootvol-01 rootdisk_1 0 16779311 1 c0t0d0 ENA
pl rootvol-02 rootvol ENABLED ACTIVE 16779312 CONCAT - RW
sd rootmirr_1-01 rootvol-02 rootmirr_1 0 16779312 0 c0t1d0 ENAv swapvol - ENABLED ACTIVE 8389656 ROUND - swap
pl swapvol-01 swapvol ENABLED ACTIVE 8389656 CONCAT - RW
sd rootdisk_1-01 swapvol-01 rootdisk_1 16779311 8389656 0 c0t0d0 ENA
pl swapvol-02 swapvol ENABLED ACTIVE 8389656 CONCAT - RW
sd rootmirr_1-02 swapvol-02 rootmirr_1 16779312 8389656 0 c0t1d0 ENA
卷状态正常
新盘分区表和镜像盘的分区表不一样,并且不能引导,不知到是什么原因?请各位指点!
分区表不一样,换完盘是否应该能引导那? |
|