Welcome 微信登录

首页 / 操作系统 / Linux / VirtualBox搭建RAC共享存储划分

使用VirtualBox工具在个人电脑上搭建RAC测试环境,共享存储设计方法如下:
1.利用VirtualBox中的VBoxManage工具创建磁盘,此工具在VirtualBox安装目录中可以找到
VBoxManage createhd --filename D:VirOSsharediskscrs.vdi --size 1048 --format VDI --variant Fixed
VBoxManage createhd --filename D:VirOSsharedisksasm1.vdi --size 5120 --format VDI --variant Fixed
VBoxManage createhd --filename D:VirOSsharedisksasm2.vdi --size 5120 --format VDI --variant Fixed
VBoxManage createhd --filename D:VirOSsharedisksasm3.vdi --size 5120 --format VDI --variant Fixed
VBoxManage createhd --filename D:VirOSsharedisksasm4.vdi --size 5120 --format VDI --variant Fixed  2.将创建完的磁盘连接至虚拟机上,注意中文部分“SATA 控制器”,这是一串标识符,如果你的VirtualBox使用英文界面,这里要调成英文对的控制器名
VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 1 --device 0 --type hdd --medium D:VirOSsharediskscrs.vdi --mtype shareable
VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 2 --device 0 --type hdd --medium D:VirOSsharedisksasm1.vdi --mtype shareable
VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 3 --device 0 --type hdd --medium D:VirOSsharedisksasm2.vdi --mtype shareable
VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 4 --device 0 --type hdd --medium D:VirOSsharedisksasm3.vdi --mtype shareable
VBoxManage storageattach rac1 --storagectl "SATA 控制器" --port 5 --device 0 --type hdd --medium D:VirOSsharedisksasm4.vdi --mtype shareable 3.让这些磁盘能够共享,此信息将被记入到每个虚拟磁盘文件的文件头中,故其他其他再使用的时候就无需再设置成共享了
VBoxManage modifyhd D:VirOSsharediskscrs.vdi --type shareable
VBoxManage modifyhd D:VirOSsharedisksasm1.vdi --type shareable
VBoxManage modifyhd D:VirOSsharedisksasm2.vdi --type shareable
VBoxManage modifyhd D:VirOSsharedisksasm3.vdi --type shareable
VBoxManage modifyhd D:VirOSsharedisksasm4.vdi --type shareable 4.将这些磁盘用如下命令加入到其他节点,同样的注意中文部分“SATA 控制器”标识名
VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 1 --device 0 --type hdd --medium D:VirOSsharediskscrs.vdi --mtype shareable
VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 2 --device 0 --type hdd --medium D:VirOSsharedisksasm1.vdi --mtype shareable
VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 3 --device 0 --type hdd --medium D:VirOSsharedisksasm2.vdi --mtype shareable
VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 4 --device 0 --type hdd --medium D:VirOSsharedisksasm3.vdi --mtype shareable
VBoxManage storageattach rac2 --storagectl "SATA 控制器" --port 5 --device 0 --type hdd --medium D:VirOSsharedisksasm4.vdi --mtype shareableLinux设备模型之mmc,sd子系统<一>Ubuntu 10.04 网络已禁用的解决相关资讯      VirtualBox 
  • VirtualBox 5.1.6发布:支持Linux   (今 14:41)
  • VirtualBox 5.0.12 发布下载,开源  (12/19/2015 20:54:03)
  • VirtualBox的快照功能  (08/30/2015 08:33:41)
  • VirtualBox 5.0.14 发布下载,开源  (01月27日)
  • VirtualBox 5.0.10 发布下载,开源  (11/12/2015 08:24:53)
  • Windows 更新导致 VirtualBox 4.3.  (04/22/2015 06:35:15)
本文评论 查看全部评论 (0)
表情: 姓名: 字数


评论声明
  • 尊重网上道德,遵守中华人民