两个主备环境之间oracle数据如何恢复
数据恢复时,通过B存储可恢复指定时间点的Oracle数据、文件数据。
请
坏一个无影响,但是要考虑的一个问题是, 你原来盘上的操作,会同步会被更改到镜像盘。 所以 源盘 数据删除了,镜像盘也会跟着删除的。
# rm test1.txt
rm: 0653-609 Cannot remove test1.txt.
Invalid file system control data detected.
如果你确信没有其他机器正在 使用这些磁盘,并且varyon在这个机器上使用不会造成问题,那么,你可以使用 varyon -b , break the reserve(man varyon), 然后 varyoff 后就可以正常的 varyon 了 。
Tinasz,
It sounds like you've got some disk locking going on. If you're
absolutely sure that the varyoffvg is completely done on Node1 and
it's taking >2 minutes to read the disks on node2.
You can try turning off reservation locking on the hdiskpowers on both
nodes, which tells the LUNs to not allow a node to take exclusive
ownership of the LUN. You still can only write to the LUN from 1 node
at a time due to AIX LVM limitations. This is a fairly common issue
with Dual VIO and HACMP setups.
Anyway, the command is:
chdev -dev $Disk -a reserve_lock=no
chdev -dev $Disk -a reserve_lock=no -perm
-perm will set the LUN to unlock at the first available opportunity.
HDISK中丢失VGDA的恢复办法
1台主机hdisk2的VGDA信息丢失,恢复的步骤:
datavg包含hdisk1 hdisk4 hdisk2,
hdisk2的VGDA信息丢失,(判断方法:lqueryvg -Atp hdisk2,无法得到结果)
导致hdisk2中的LV全部不能MOUNT。
#lsvg -p datavg
hdisk1 active datavg
hdisk2 missing datavg
hdisk4 active datavg
exportvg 以后,rmdev -dl hdisk2,此时hdisk2的PVID也没有了
lspv
hdisk2 none None
要恢复hdisk2中的LV信息,首先要把hdisk2想办法加入到datavg中。
# chdev -l hdisk2 -a pv=yes
此时,hdisk2又恢复了以前的PVID了。
# synclvodm datavg
将把hdisk2加入到datavg中,(因为系统的ODM库中,知道PVID=hdisk2是DATAVG
的PV)
# lspv
hdisk2 0002039490ef datavg
# exportvg datavg (从ODM库中删除VGDA的信息)
# importvg -y datavg hdisk4 (不要HDISK2,因为此时HDISK2的VGDA是坏的
)
importvg 的时候,系统会再次做synclvodm,这次将会把系统ODM中VGDA的信息同
步到hdisk2上。
# lsvg -p datavg
hdisk1 active datavg
hdisk2 active datavg
hdisk4 active datavg
此时,HDISK2上的VGDA信息又恢复了。里面的LV可以读写了。不过对于HDISK2上
的文件系统,需要做
个fsck。
# chdev -l hdisk15 -a reassign_to=10
Method error (/usr/lib/methods/chgdisk):
0514-018 The values specified for the following attributes
are not valid:
reassign_to REASSIGN time out value
# chdev -l hdisk15 -a reassign_to=30
Method error (/usr/lib/methods/chgdisk):
0514-062 Cannot perform the requested function because the
specified device is busy.
# chdev -l hdisk15 -a rw_timeout=10
Method error (/usr/lib/methods/chgdisk):
0514-018 The values specified for the following attributes
are not valid:
rw_timeout READ/WRITE time out value
# chdev -l hdisk15 -a rw_timeout=50
Method error (/usr/lib/methods/chgdisk):
0514-062 Cannot perform the requested function because the
specified device is busy.
# chdev -l hdisk2 -a rw_timeout=10
Method error (/usr/lib/methods/chgdisk):
0514-018 The values specified for the following attributes
are not valid:
rw_timeout READ/WRITE time out value
# chdev -l hdisk2 -a rw_timeout=40
Method error (/usr/lib/methods/chgdisk):
0514-062 Cannot perform the requested function because the
specified device is busy.
页:
[1]