Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

999

积分

1

好友

942

主题
1#
发表于 2017-4-16 09:25:48 | 查看: 1809| 回复: 0
今天机房停电了,ups供电能力不足,于是把一个阵列关掉了,当然最后也没撑住,服务器还是挂了。
后来供电正常了,服务器正常了,却发现有关文件系统没找到,原来那个阵列没起来。
于是先运行mount,提示设备不存在。
于是lsvg查看,找出对应得vg
lsvg xxvg提示需要varyon
于是运行varyonvg,提示The volume group cannot be varied on because
        there are no good copies of the descriptor area
查找资料得时候看到有人提示exportvg,然后importvg就好了
于是不知死活的就运行了exportvg
结果运行importvg的时候提示
0516-082 lqueryvg: Unable to access a special device file.
         Execute redefinevg and synclvodm to build correct environment.
0516-082 lqueryvg: Unable to access a special device file.
         Execute redefinevg and synclvodm to build correct environment.
0516-1140 importvg: Unable to read the volume group descriptor area
        on specified physical volume.

试着运行importvg -y vgname hdiskxx
提示0516-024 lqueryvg: Unable to open physical volume.
        Either PV was not configured or could not be opened. Run
        diagnostics.
0516-024 lqueryvg: Unable to open physical volume.
        Either PV was not configured or could not be opened. Run
        diagnostics.
0516-1140 importvg: Unable to read the volume group descriptor area
        on specified physical volume.
傻眼了,再尝试 varyonvg backupvg
0516-008 varyonvg: LVM system call returned an unknown
        error code (3).
根据前面的提示运行redefinevg -d hdisk2 backupvg
0516-024 : Unable to open physical volume.
        Either PV was not configured or could not be opened. Run
        diagnostics.
运行synclvodm -P -v backupvg
0516-306 : Unable to find volume group backupvg in the Device
        Configuration Database.
0516-502 synclvodm: Unable to access volume group backupvg.
# lqueryvg -Atp hdisk2
0516-320 lqueryvg: Physical volume hdisk2 is not assigned to
        a volume group.
0516-024 lqueryvg: Unable to open physical volume.
        Either PV was not configured or could not be opened. Run
        diagnostics.
还是失败。
lsvg发现vg没了
lspv发现pv也没了
这才发现事态的严重性,赶紧查资料找人求助,发现exportvg实际是删除vg,傻了
不敢再做啥了,赶紧找人帮忙,发现有资料说可以恢复
于是赶紧查找硬件信息
odmget -q name=hdisk2 CuAt
高手说只能重建vg。
后来查看lspv发现pv没了,就lsdev -Cc disk
发现
hdiskxx  Defined   11-08-L      SSA Logical Disk Drive
运行cfgmgr
然后lsdev -Cc disk发现硬件正常了。
于是运行importvg backupvg
0516-082 lqueryvg: Unable to access a special device file.
         Execute redefinevg and synclvodm to build correct environment.
0516-082 lqueryvg: Unable to access a special device file.
         Execute redefinevg and synclvodm to build correct environment.
0516-1140 importvg: Unable to read the volume group descriptor area
        on specified physical volume.
于是再运行importvg -y bakcupvg hdisk2
经过忐忑的等待,搞定!
然后mount
哇卡卡,运气真好,资料都在
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
经验教训
1.不熟悉的命令不能乱用
2.exportvg之后pv也被删了,不知道为啥
3.遇事不要慌,吉人自有天相
下载专业ORACLE数据库恢复工具PRM-DUL  For Oracle http://www.parnassusdata.com/

如果自己搞不定可以找诗檀软件专业ORACLE数据库修复团队成员帮您恢复!

诗檀软件专业数据库修复团队

服务热线 : 13764045638  QQ: 47079569     邮箱:service@parnassusdata.com
您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-5-20 00:12 , Processed in 0.050933 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569