how to fix DCO BADLOG

上一篇 / 下一篇  2008-10-07 11:22:27 / 个人分类:veritas SF

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 <EachVolumeToBeReset> > <VolumeName>.config

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

4. Edit the <VolumeName>.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 <dgname> -d <VolumeName>.config

6. Start recreated Volume

# vxvol -g  <dgname>  start <DclVolumeName>
# vxvol -g  <dgname>  start <VolumeName>

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

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2009-01-09  
    123
45678910
11121314151617
18192021222324
25262728293031

数据统计

  • 访问量: 3575
  • 日志数: 68
  • 建立时间: 2007-12-19
  • 更新时间: 2009-01-09

RSS订阅

Open Toolbar