eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« 帮朋友发招聘启事:数据挖掘高级工程师 | Blog首页 | Tom新作《Oracle9i&10g编程艺术》 »

在VCS下如何手工加载磁盘组

在VCS环境中,有时候由于故障会导致VCS无法加载磁盘组,此时可以通过手工方式挂接磁盘。

以下是一个可供参考的步骤.
如果可以,先停止HA:

bash-2.05# hastop -all -force
bash-2.05# hastatus
^Ctempting to connect....not available; will retry
bash-2.05#

确认DG是否加载,如果未加载需要手工挂接:

bash-2.05# vxdg list
NAME STATE ID
datadg enabled 1160473016.27.db210-1.hurray.com.cn

尝试手工mount卷组:

bash-2.05# mount -F vxfs /dev/vx/dsk/datadg/datadgvol /data1
UX:vxfs mount: ERROR: V-3-20003: Cannot open /dev/vx/dsk/datadg/datadgvol: No such device or address
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version

错误提示表明Volume未启动,使用以下命令启动:

bash-2.05# vxvol -g datadg startall

bash-2.05# vxprint
Disk group: datadg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg datadg datadg - - - - - -

dm emclun1 emcpower3c - 41938416 - - - -

v datadgvol fsgen ENABLED 41936896 - ACTIVE - -
pl datadgvol-01 datadgvol ENABLED 41936896 - ACTIVE - -
sd emclun1-01 datadgvol-01 ENABLED 41936896 0 - - -

如果此时Mount,可能还会遇到错误:

bash-2.05# mount -F vxfs /dev/vx/dsk/datadg/datadgvol /data1
UX:vxfs mount: ERROR: V-3-21268: /dev/vx/dsk/datadg/datadgvol is corrupted. needs checking

VCS需要对磁盘进行检查:

bash-2.05# fsck -F vxfs /dev/vx/dsk/datadg/datadgvol
log replay in progress
replay complete - marking super-block as CLEAN

此时磁盘可以被正常挂接:

bash-2.05# mount -F vxfs /dev/vx/dsk/datadg/datadgvol /data1
bash-2.05$ df -k /data1
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/datadg/datadgvol
20968448 730217 18973346 4% /data1

几个错误属于常见类型,记录一下!

-The End-


历史上的今天...
    >> 2015-10-12文章:
    >> 2009-10-12文章:
    >> 2008-10-12文章:
    >> 2005-10-12文章:
    >> 2004-10-12文章:
           Use RMAN to Manage BackupSet

无觅

By eygle on 2006-10-12 11:33 | Comments (0) | System | 929 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com