利用dd+快照准备RAC环境

ORACLE VIRTUAL BOX有快照功能,可以恢复到之前备份的某个点,爱死这个功能了。
可以恢复到想要的任何一个点,将某个SESSION反复练习。
不过在装RAC的时候,发现快照恢复后,共享存储并不能完全恢复。


其实也不难,先将快照恢复,然后将共享存储都dd清空一下就可以了。


[root@rac5 ~]# ls -l /dev/raw
total 0
crw-rw---- 1 oracle oinstall 162, 1 Dec 13 13:38 raw1
crw-rw---- 1 oracle oinstall 162, 2 Dec 13 13:38 raw2
crw-rw---- 1 oracle oinstall 162, 3 Dec 13 13:38 raw3
crw-rw---- 1 oracle oinstall 162, 4 Dec 13 13:38 raw4
crw-rw---- 1 oracle oinstall 162, 5 Dec 13 13:38 raw5
crw-rw---- 1 oracle oinstall 162, 6 Dec 13 13:38 raw6


[root@rac5 ~]# dd if=/dev/zero of=/dev/raw/raw1 bs=1024
dd: writing `/dev/raw/raw1': No space left on device
1044194+0 records in
1044193+0 records out
1069254144 bytes (1.1 GB) copied, 104.375 seconds, 10.2 MB/s
[root@rac5 ~]# dd if=/dev/zero of=/dev/raw/raw2 bs=1024
dd: writing `/dev/raw/raw2': No space left on device
1044194+0 records in
1044193+0 records out
1069254144 bytes (1.1 GB) copied, 96.4312 seconds, 11.1 MB/s
[root@rac5 ~]# dd if=/dev/zero of=/dev/raw/raw3 bs=1024
dd: writing `/dev/raw/raw3': No space left on device
5237159+0 records in
5237158+0 records out
5362850304 bytes (5.4 GB) copied, 508.819 seconds, 10.5 MB/s
[root@rac5 ~]# dd if=/dev/zero of=/dev/raw/raw4 bs=1024
dd: writing `/dev/raw/raw4': No space left on device
5237159+0 records in
5237158+0 records out
5362850304 bytes (5.4 GB) copied, 539.492 seconds, 9.9 MB/s
[root@rac5 ~]# dd if=/dev/zero of=/dev/raw/raw5 bs=1024
dd: writing `/dev/raw/raw5': No space left on device
3140677+0 records in
3140676+0 records out
3216052224 bytes (3.2 GB) copied, 310.761 seconds, 10.3 MB/s
[root@rac5 ~]# dd if=/dev/zero of=/dev/raw/raw6 bs=1024
dd: writing `/dev/raw/raw6': No space left on device
3140677+0 records in
3140676+0 records out
3216052224 bytes (3.2 GB) copied, 314.812 seconds, 10.2 MB/s


这样,共享存储就清理干净了。就可以重新开始装RAC了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26084062/viewspace-1063695/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26084062/viewspace-1063695/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值