1,检查OCR/VOTING DISK状态
GDSZ-DCS-SV03C-RAC01:~ # /opt/oracrs/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 524040
Used space (kbytes) : 2852
Available space (kbytes) : 521188
ID : 1820684053
Device/File Name : /dev/raw/raw1
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
GDSZ-DCS-SV01C-RAC01:~ # /opt/oracrs/bin/crsctl query css votedisk
0. 0 /dev/raw/raw2
Located 1 voting disk(s).
2,起停CRS
2.1 启动与停止CLUSTER
使用root用户登录,分别在各节点执行以下命令:
启动CLUSTER
方 法1:
# /etc/init.d/init.crs start
方法2:
# /opt/oracrs/bin/crsctl start crs
关闭CLUSTER
方法1:
# /etc/init.d/init.crs stop
方法2:
# /opt/oracrs/bin/crsctl stop crs
2.2 观察CLUSTER状态
# /opt/oracrs/bin/crs_stat -t
3,VOTING DISK的备份与恢复方法
这里,以SUSE上使用raw2作为VOTING DISK为例:
备份命令如 下:
# dd if=/dev/raw/raw2 of=/opt/orabak/voting.bak
备份时间会比较长,备份文件与 VOTING DISK盘的大小接近。
恢复命令如下:
# dd if=/opt/orabak/voting.bak of=/dev/raw/raw2
恢复前不需要先关闭RAC。
4,OCR的备份恢复方法
备份OCR的方法如下:
默认地,OCR会被自动备份,使用如下命令查看OCR进行的自动备份:
# $ORA_CRS_HOME/bin/ocrconfig -showbackup
如果要手工备份,可执行下面的命令(不需要关闭RAC):
# $ORA_CRS_HOME/bin/ocrconfig -export /opt/orabak/ocrbak.ocr
恢复OCR的方法如下:
先关闭所有节点上的RAC,分别执行以下命令:
# /etc/init.d/init.crs stop
然 后执行恢复:
# $ORA_CRS_HOME/bin/ocrconfig -import /opt/orabak/ocrbak.ocr
建议对ocr也做物理备份
dd if=/dev/raw/raw1 of=/opt/orabak/ocr.bak
操作实例:
备份ocr/voting disk:
GDSZ-DCS-SV01C-RAC01:~ # dd if=/dev/raw/raw2 of=/opt/orabak/voting.bak
1048576+0 records in
1048576+0 records out
536870912 bytes (537 MB) copied, 127.594 seconds, 4.2 MB/s
GDSZ-DCS-SV01C-RAC01:~ # dd if=/dev/raw/raw1 of=/opt/orabak/ocr.bak
1048576+0 records in
1048576+0 records out
536870912 bytes (537 MB) copied, 129.245 seconds, 4.2 MB/s
GDSZ-DCS-SV01C-RAC01:~ # /opt/oracrs/bin/ocrconfig -export /opt/orabak/ocrbak.ocr
恢复ocr/voting disk:
先关闭所有节点上的RAC,分别执行以下命令:
# /etc/init.d/init.crs stop
然后执行恢复:
# /opt/oracrs/bin/ocrconfig -import /opt/orabak/ocrbak.ocr
voting disk恢复命令如下:
# dd if=/opt/orabak/voting.bak of=/dev/raw/raw2
恢复前不需要先关闭RAC。
GDSZ-DCS-SV01C-RAC01:~ # dd if=/opt/orabak/voting.bak of=/dev/raw/raw2
1048576+0 records in
1048576+0 records out
536870912 bytes (537 MB) copied, 2387.62 seconds, 225 kB/s
可见,恢复速度慢多了!
5,stop and drop asm instance
#!/bin/ksh
nl=`olsnodes`
for n in $nl
do
srvctl stop asm -n $n
srvctl remove asm -n $n
done
echo “stop and remove asm done”
srvctl stop asm -n gdsz-dcs-sv01c-rac01
srvctl remove asm -n gdsz-dcs-sv01c-rac01
srvctl stop asm -n gdsz-dcs-sv02c-rac01
srvctl remove asm -n gdsz-dcs-sv02c-rac01
srvctl stop asm -n gdsz-dcs-sv03c-rac01
srvctl remove asm -n gdsz-dcs-sv03c-rac01
执行过程如下:
oracle@GDSZ-DCS-SV01C-RAC01:~> srvctl stop asm -n gdsz-dcs-sv01c-rac01
oracle@GDSZ-DCS-SV01C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....SM1.asm application OFFLINE OFFLINE
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM2.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM3.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
oracle@GDSZ-DCS-SV01C-RAC01:~> srvctl remove asm -n gdsz-dcs-sv01c-rac01
oracle@GDSZ-DCS-SV01C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM2.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM3.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
oracle@GDSZ-DCS-SV02C-RAC01:~> srvctl stop asm -n gdsz-dcs-sv02c-rac01
oracle@GDSZ-DCS-SV02C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM2.asm application OFFLINE OFFLINE
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM3.asm application OFFLINE OFFLINE
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
oracle@GDSZ-DCS-SV02C-RAC01:~> srvctl remove asm -n gdsz-dcs-sv02c-rac01
oracle@GDSZ-DCS-SV02C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM3.asm application OFFLINE OFFLINE
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
oracle@GDSZ-DCS-SV03C-RAC01:~> srvctl stop asm -n gdsz-dcs-sv03c-rac01
oracle@GDSZ-DCS-SV03C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM3.asm application OFFLINE OFFLINE
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
oracle@GDSZ-DCS-SV03C-RAC01:~> srvctl remove asm -n gdsz-dcs-sv03c-rac01
oracle@GDSZ-DCS-SV03C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
6,stop and drop listener
lsnr=`crs_stat |grep lsnr | cut -d= -f2`
for l in $lsnr
do
crs_stop $l
crs_unregister $l
done
echo “stop and remove listener done”
oracle@GDSZ-DCS-SV01C-RAC01:~> crs_stat |grep lsnr | cut -d= -f2
ora.gdsz-dcs-sv01c-rac01.LISTENER_GDSZ-DCS-SV01C-RAC01.lsnr
ora.gdsz-dcs-sv02c-rac01.LISTENER_GDSZ-DCS-SV02C-RAC01.lsnr
ora.gdsz-dcs-sv03c-rac01.LISTENER_GDSZ-DCS-SV03C-RAC01.lsnr
crs_stop ora.gdsz-dcs-sv01c-rac01.LISTENER_GDSZ-DCS-SV01C-RAC01.lsnr
crs_stop ora.gdsz-dcs-sv02c-rac01.LISTENER_GDSZ-DCS-SV02C-RAC01.lsnr
crs_stop ora.gdsz-dcs-sv03c-rac01.LISTENER_GDSZ-DCS-SV03C-RAC01.lsnr
crs_unregister ora.gdsz-dcs-sv01c-rac01.LISTENER_GDSZ-DCS-SV01C-RAC01.lsnr
crs_unregister ora.gdsz-dcs-sv02c-rac01.LISTENER_GDSZ-DCS-SV02C-RAC01.lsnr
crs_unregister ora.gdsz-dcs-sv03c-rac01.LISTENER_GDSZ-DCS-SV03C-RAC01.lsnr
过程信息:
oracle@GDSZ-DCS-SV01C-RAC01:~> crs_unregister ora.gdsz-dcs-sv01c-rac01.LISTENER_GDSZ-DCS-SV01C-RAC01.lsnr
oracle@GDSZ-DCS-SV01C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
oracle@GDSZ-DCS-SV02C-RAC01:~> crs_unregister ora.gdsz-dcs-sv02c-rac01.LISTENER_GDSZ-DCS-SV02C-RAC01.lsnr
oracle@GDSZ-DCS-SV02C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE OFFLINE
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
oracle@GDSZ-DCS-SV03C-RAC01:~> crs_unregister ora.gdsz-dcs-sv03c-rac01.LISTENER_GDSZ-DCS-SV03C-RAC01.lsnr
oracle@GDSZ-DCS-SV03C-RAC01:~> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
7,重新用DBCA建库时选择ASM做为存储方案时,报错说ASM是单实例环境,不是RAC环境,这样就无法继续建库下来,出错信息如下:
The ASM instance configured on the local node is a single-instance ASM.To create a single-instance database using this ASM instance ,restart DBCA and select the single-instance database option ,to create a RAC database using this ASM instance,convert it to RAC ASM first.
这个错误一般是发生在重装clusterware和database后,这样无论怎么样重启DBCA运行都会报同样的错。具体的解决办 法便是在/etc/oratab里面的关于ASM的记录:+ASM1:/u01/app/oracle/product/10.2.0/db_1:N这么 一行删除掉,再接着建库就可以了。碰到过多次这个错误,记录在这里备忘一下。
8,如何修改spfile 的存放路径
rac1执行
SQL> show parameter spfile;
NAME TYPE
------------------------------------ ---------------------------------
VALUE
------------------------------
spfile string
+DG_DATA/ora0/spfileora0.ora
需要修改spfile 的存放到DG_ORA中,方法如下:
SQL> create pfile ='/opt/oracle/initORA0.ora' from spfile;
File created.
SQL> create spfile = '+DG_ORA/ORA0/spfileORA0.ora' from pfile = '/opt/oracle/initORA0.ora';
File created.
在RAC中所有节点上执行:
$ srvctl stop database -d ORA0
oracle@GDSZ-DCS-SV02C-RAC01:/opt/oracle> srvctl stop database -d ORA0
oracle@GDSZ-DCS-SV02C-RAC01:/opt/oracle> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....01.inst application OFFLINE OFFLINE
ora....02.inst application OFFLINE OFFLINE
ora....03.inst application OFFLINE OFFLINE
ora.ORA0.db application OFFLINE OFFLINE
ora....SM1.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM2.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM3.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
分别登陆rac1,rac2,rac3,修改$ORACLE_HOME/dbs目录下的initORA01.ora /initORA02.ora/initORA03.ora。
$ cd $ORACLE_HOME/dbs
$ vi initORA01.ora
SPFILE='+DG_ORA/ORA0/spfileORA0.ora'(主要是将DG_DATA修改为 DG_ORA)
--保存退出
--在rac1上执行:
$ srvctl modify database -d ORA0 -p +DG_ORA/ORA0/spfileORA0.ora
--在rac1上重新启动实例
$ srvctl start database -d ORA0
oracle@GDSZ-DCS-SV01C-RAC01:/opt/oracle/product/11g/db/dbs> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....01.inst application ONLINE ONLINE gdsz...ac01
ora....02.inst application ONLINE ONLINE gdsz...ac01
ora....03.inst application ONLINE ONLINE gdsz...ac01
ora.ORA0.db application ONLINE ONLINE gdsz...ac01
ora....SM1.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM2.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
ora....SM3.asm application ONLINE ONLINE gdsz...ac01
ora....01.lsnr application ONLINE ONLINE gdsz...ac01
ora....c01.gsd application ONLINE ONLINE gdsz...ac01
ora....c01.ons application ONLINE ONLINE gdsz...ac01
ora....c01.vip application ONLINE ONLINE gdsz...ac01
rac1上执行:
SQL> show parameter spfile ;
NAME TYPE
------------------------------------ ---------------------------------
VALUE
------------------------------
spfile string
+DG_ORA/ora0/spfileora0.ora
如果出现以上结果,就说明spfile的路径修改成功了。
9,ASM磁盘头信息的备份与恢复方法(未检验)
备份磁盘头(DH)的信息:
备份方法1:
Root # dd if=/dev/raw/raw204 bs=4096 count=1 of=/oracle/db/raw204_bak_dh
这里,bs固定为4096。Count=1表示只备份一个块(默认从第一个块开始备份)。
备份方法2:
以oracle用 户登录,执行如下命令:
Oracle $ kfed read /dev/raw/raw204 > /oracle/db/raw204au0
恢复DH的信息:
如果用了方法1,则用以下命令恢复:
Root # dd if=/oracle/db/raw204_bak_dh bs=4096 count=1 of=/dev/raw/raw204
要将备份的文件保存好,也可转移到其他存储设备上。当磁盘头损坏导致DG不能MOUNT时,可用备份的信息进行恢复。
如果用了方法2,则在oracle用户下使用以下命令恢复:
Oracle $ kfed merge /dev/raw/raw204 text=/oracle/db/raw204au0
【重要说明】
当DG中增加、删除一个disk的时候,应把此DG中所有的disk的头信息重新备份一次。备份时不需要关闭ASM实例。建议 根据两种备份方法分别做好备份,为将来恢复提供充足的选择。
现网执行:
dd if=/dev/raw/raw204 bs=4096 count=1 of=/oracle/db/raw204_bak_dh
10,asm磁盘头操作命令
oracle@GDSZ-DCS-SV01C-RAC01:~> kfod
--------------------------------------------------------------------------------
Disk Size Path User Group
================================================================================
1: 964 Mb /dev/raw/raw1 root oinstall
--------------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME
================================================================================
+ASM1 /opt/oracle/product/11g/db
+ASM2 /opt/oracle/product/11g/db
+ASM3 /opt/oracle/product/11g/db
oracle@GDSZ-DCS-SV01C-RAC01:~> kfed
as/mlib ASM Library [asmlib='lib']
aun/um AU number to examine or update [AUNUM=number]
aus/z Allocation Unit size in bytes [AUSZ=number]
blkn/um Block number to examine or update [BLKNUM=number]
blks/z Metadata block size in bytes [BLKSZ=number]
ch/ksum Update checksum before each write [CHKSUM=YES/NO]
cn/t Count of AUs to process [CNT=number]
d/ev ASM device to examine or update [DEV=string]
o/p KFED operation type [OP=READ/WRITE/MERGE/REPAIR/NEW/FORM/FIND/STRUCT]
p/rovnm Name for provisioning purposes [PROVNM=string]
s/eek AU number to seek to [SEEK=number]
te/xt File name for translated block text [TEXT=string]
ty/pe ASM metadata block type number [TYPE=number]
物理备份:
GDSZ-DCS-SV01C-RAC01:/dev/raw # dd if=/dev/raw/raw3 bs=4096 count=1 of=/opt/orabak/raw3_bak_dh
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.00034 seconds, 12.0 MB/s
GDSZ-DCS-SV01C-RAC01:/dev/raw # dd if=/dev/raw/raw4 bs=4096 count=1 of=/opt/orabak/raw4_bak_dh
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.000307 seconds, 13.3 MB/s
GDSZ-DCS-SV01C-RAC01:/dev/raw # dd if=/dev/raw/raw5 bs=4096 count=1 of=/opt/orabak/raw5_bak_dh
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.000242 seconds, 16.9 MB/s
GDSZ-DCS-SV01C-RAC01:/dev/raw # dd if=/dev/raw/raw2 bs=4096 count=1 of=/opt/orabak/raw2_bak_dh
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.000322 seconds, 12.7 MB/s
GDSZ-DCS-SV01C-RAC01:/dev/raw # dd if=/dev/raw/raw1 bs=4096 count=1 of=/opt/orabak/raw1_bak_dh
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.000265 seconds, 15.5 MB/s
由于ocr/voting disk做了全备,实际只用备dg中的那些raw!!!
逻辑备份:
kfed read /dev/raw/raw4 > /home/oracle/raw4_bak
11,检查裸设备是否读写正常
# dd if=/dev/zero of=/dev/raw/raw1 count=2000
2000+0 records in
2000+0 records out
1024000 bytes (1.0 MB) copied, 0.798751 seconds, 1.3 MB/s
# dd of=/dev/null if=/dev/raw/raw1 count=2000
2000+0 records in
2000+0 records out
1024000 bytes (1.0 MB) copied, 0.635695 seconds, 1.6 MB/s
--所有绑定的裸设备检查后如果都能读写说明OK