AIX 非rootvg的 lv 主备超级块都损坏,无法挂载!如何恢复lv中的数据。求解!急!

参与16

6同行回答

stoneheadstonehead系统工程师中信
主备superblock都坏的话,一般没啥好方法了,数据重要的话找数据恢复公司试试吧显示全部

主备superblock都坏的话,一般没啥好方法了,数据重要的话找数据恢复公司试试吧

收起
银行 · 2017-04-12
浏览4942
wangxutongwangxutong系统运维工程师oo
fsck检查lv分区:# # fsck /dev/db2_testThe current volume is: /dev/db2_testfsck: 0507-020 Invalid magic number in the primary superblock.fsck: 0507-013 Invalid magic number in the secondary superblock.Primary superblock is corrupt.Secondary superblock i...显示全部

fsck检查lv分区:

#

# fsck /dev/db2_test

The current volume is: /dev/db2_test

fsck: 0507-020 Invalid magic number in the primary superblock.

fsck: 0507-013 Invalid magic number in the secondary superblock.

Primary superblock is corrupt.

Secondary superblock is corrupt.

fsck: 0507-018 Superblock is corrupt and cannot be repaired.

        Both primary and secondary copies are corrupt. Cannot continue.

收起
互联网服务 · 2017-04-12
浏览4826
wangxutongwangxutong系统运维工程师oo
用dd 命令把第二个超级块修复第一个超级块,不成功 如下:# dd count=1 bs=4k skip=31 seek=1 if=/dev/db2_test of=/dev/db2_test1+0 records in.1+0 records out.# # fsck /dev/db2_test 2>&1 |tee /tmp/fsck.errsThe current volume is: /dev/db2_testfsck: 0507-020 Inva...显示全部

用dd 命令把第二个超级块修复第一个超级块,不成功 如下:

# dd count=1 bs=4k skip=31 seek=1 if=/dev/db2_test of=/dev/db2_test

1+0 records in.

1+0 records out.

#

# fsck /dev/db2_test 2>&1 |tee /tmp/fsck.errs

The current volume is: /dev/db2_test

fsck: 0507-020 Invalid magic number in the primary superblock.

fsck: 0507-013 Invalid magic number in the secondary superblock.

Primary superblock is corrupt.

Secondary superblock is corrupt.

fsck: 0507-018 Superblock is corrupt and cannot be repaired.

        Both primary and secondary copies are corrupt. Cannot continue.



没有成功 看起来是没救了,用dd导出lv再进行数据恢可以吗?具体怎么操作?没弄过?

收起
互联网服务 · 2017-04-12
浏览4950
simenliangsimenliang软件开发工程师chinawuyue
代群友回复:我是把hdisk的数据全部dd出来然后做的数据恢复显示全部

代群友回复:

我是把hdisk的数据全部dd出来然后做的数据恢复

收起
互联网服务 · 2017-04-12
浏览4571
cuizengshuncuizengshun系统运维工程师民生银行
之前有过什么操作?这个文件系统是否重要?如果fsck不好用的话,基本就够呛了显示全部

之前有过什么操作?这个文件系统是否重要?如果fsck不好用的话,基本就够呛了

收起
银行 · 2017-04-12
浏览4705
  • 之前从存储上划分了2个LUN映射到了这台机器上,然后DBA进行DB2的全备份操作,系统卡死,重启系统后VG状态为varyoff状态,exportvg 剃掉2块新加的盘,然后顺便把PVID清了,最终这个VG应该只剩下原来的2T数据盘,但是,我exportvg后,原来的hdisk2盘也掉了,查看磁盘大小为0 ,查看存储发现为脱机状态,进行修正后,机器可以识别磁盘,但是无法importvg,最后通过很厉害的一个朋友帮助导入了VG信息,但是无法挂载,经过FSCK检查,dd修复,发现两个超级块损坏。现在盘中还有开发用的应用和db2数据库。挺重要的!
    2017-04-12
wangxutongwangxutong系统运维工程师oo
修复没成功 查看了下超级块的magic number:# od -x -N 64 /dev/db2_test +0x10000001000  0000 2000 0000 0000 0000 0000 0001 60000001010  0000 0100 0000 0008 0000 0055 0000 00040001020  05ff ffff ffff ffff ffff ffff ffff ffff0...显示全部

修复没成功 查看了下超级块的magic number:

# od -x -N 64 /dev/db2_test +0x1000

0001000  0000 2000 0000 0000 0000 0000 0001 6000

0001010  0000 0100 0000 0008 0000 0055 0000 0004

0001020  05ff ffff ffff ffff ffff ffff ffff ffff

0001030  ffff ffff ffff ffff ffff ffff ffff ffff

0001040

# od -x -N 64 /dev/db2_test +0x1f000

001f000  0000 2000 0000 0000 0000 0000 0001 6000

001f010  0000 0100 0000 0008 0000 0055 0000 0004

001f020  05ff ffff ffff ffff ffff ffff ffff ffff

001f030  ffff ffff ffff ffff ffff ffff ffff ffff

001f040

#

收起
互联网服务 · 2017-04-12
浏览4546

提问者

wangxutong
系统运维工程师oo
擅长领域: 存储数据恢复

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2017-04-12
  • 关注会员:4 人
  • 问题浏览:10320
  • 最近回答:2017-04-12
  • X社区推广