VD的添加

1. 查看当前用户

$ whoami
oracle

2. 查看当前VD

$ crsctl query css votedisk                                                                  
0.     0    /dev/vg02/rora_vote

located 1 votedisk(s).

3. 查看CRS的状态

$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

4. 初始化raw分区

$ dd if=/dev/zero of=/dev/vg01/rora_vote bs=8192 count=2560

5. 切换到root用户

$ su - root

6. 强制在线追加VD

# crsctl add css votedisk /dev/vg01/rora_vote -force
Now formatting voting disk: /dev/vg01/rora_vote
successful addition of votedisk /dev/vg01/rora_vote.

7. 退出root登陆

# exit
logout

8. 再次查看当前VD

$ crsctl query css votedisk                                                                  
0.     0    /dev/vg02/rora_vote
1.     0    /dev/vg01/rora_vote

located 2 votedisk(s).

9. 再次查看CRS状态

$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

VD的删除

10. 删除VD同样可以在线完成,命令如下,方式同上,也要root用户操作

crsctl delete css votedisk /dev/vg01/rora_vote -force

VD的备份

11. 平时备份VD,可直接dd完成

$ dd if=/dev/vg01/rora_vote of=/orabackup/rora_vote_1 bs=8192 
Trackback

no comment untill now

Add your comment now

切换到手机版