ITPub博客

首页 > Linux操作系统 > Linux操作系统 > how to fix DCO BADLOG

how to fix DCO BADLOG

原创 Linux操作系统 作者:cqubityj 时间:2008-10-07 11:22:27 0 删除 编辑
There are situations when a hardware failure will cause a Veritas Volume Manager volume where logging is utilized to set its 'badlog' flag to 'on'.  Even after the hardware is repaired and the associated log is re-created this 'badlog=on' will persist.  This condition will prevent the volume log from functioning correctly.

To reset the configuration flag from 'badlog=on' to 'badlog=off' perform. the following procedure.

1. Preserve a vxprint -ht and a vxdisk -o alldgs list.

2. Preserve the following for each volume to be reset:
# vxprint -g rootdg -rhmvps > .config

3. Umount the VXFS file system and delete the volume to be re-created.
# umount /
# vxedit -g -rf rm

4. Edit the .config file to reset the desire flag using any text editor.
       active=off
       forceminor=off
       badlog=on     <=====  This flag should be edited to 'badlog=off'.
       recover=off
       krecover=off
       invalid=off
       recover_checkpoint=0
       cdsrecover_seqno=0
       cdsrecover_active=0
       lasterr_tid=0.0
       sd_num=0
       sdnum=0
       nvollayer=1

5. Recreate the volume configuration using the edited configuration file.
# vxmake -g -d .config

6. Start recreated Volume

# vxvol -g    start
# vxvol -g    start

7. Mount File system

Note:  it is better to dump volume config before follow the procedure.
EG:
/etc/vx/diag.d/vxprivutil dumpconfig /dev/dsk/c4t50060E80102A00F0d8s3 > /tmp/OLS_TDS_DG05.config
/etc/vx/diag.d/vxprivutil dumpconfig /dev/dsk/c3t50060E80102A0082d3s3 > /tmp/OLS_TDS_DG02.config

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/228190/viewspace-468167/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-19

  • 博文量
    133
  • 访问量
    454946