因为原先的ASM共享磁盘容量小,无法装下归档日志和备份文件.所以决定增加一块磁盘.

1 在节点1增加一块虚拟磁盘 放在原来的共享目录上 取名为ASM4

选择SCSI 1:5  注意放在SCSI总线1号上面排在其他盘后面,否则容易发生盘符改变

mode=independent->Persistent

2  关闭虚拟机文件,然后用UEDIT打开 Red Hat Enterprise Linux 4.vmx 在文件最后scsi1:5.present = "TRUE"

scsi1:5.fileName = "F:\sharkdisk\asm4.vmdk"

scsi1:5.mode = "independent-persistent"

可以看到成功添加了ASM4

在原来后面的共享磁盘添加一条

disk.locking = "false"

diskLib.dataCacheMaxSize = "0"

diskLib.dataCacheMaxReadAheadSize = "0"

diskLib.DataCacheMinReadAheadSize = "0"

diskLib.dataCachePageSize = "4096"

diskLib.maxUnsyncedWrites = "0"

-- scsi1.sharedBus = "VIRTUAL"  这条其他人添加的共享总线, 本人没有添加这行,也行!

scsi1:0.deviceType = "disk"

scsi1:1.deviceType = "disk"

scsi1:2.deviceType = "disk"

scsi1:3.deviceType = "disk"

scsi1:4.deviceType = "disk"

scsi1:5.deviceType = "disk"

3 节点2 添加已经存在的虚拟磁盘,在编辑机器上,选择磁盘,选择已经存在的磁盘 在共享目录上找到ASM4 并且设置下 SCSI 1:5 和independent=Persistent

4 关闭虚拟机文件,然后用UEDIT打开 Red Hat Enterprise Linux 4.vmx  添加 scsi1:5.deviceType = "disk"

5 启动节点1 切换到ROOT 用户下 fdisk 新磁盘

[root@node1 ~]# fdisk -l

Disk /dev/sdh: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdh doesn't contain a valid partition table

[root@node1 ~]# fdisk /dev/sdh

[root@node1 ~]# fdisk /dev/sdh

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won't be recoverable.

The number of cylinders for this disk is set to 1044.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n                                                                              --新建分区

Command action

e   extended

p   primary partition (1-4)

p                                                                                                                         --主分区

Partition number (1-4): 1                                                                             --分区号 1

First cylinder (1-1044, default 1): 1                                                                  --从柱面1开始

Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044): 1044  --到最后1个柱面

Command (m for help): w                                                                                   --保存分区

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

[root@node1 ~]#

[root@node1 ~]# /etc/init.d/Oracleasm createdisk VOL4 /dev/sdh1

Marking disk "VOL4" as an ASM disk:                        [  OK  ][root@node1 ~]# /etc/init.d/oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

6 启动节点2 分区被发现,同时ASM盘已经被找到了

[root@node2 ~]# fdisk -l

Disk /dev/sdh: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System

/dev/sdh1               1        1044     8385898+  83  Linux[root@node2 ~]# /etc/init.d/oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

oracle虚拟机磁盘共享,在虚拟机上VM 添加一块共享磁盘方法 支持Oracle 10g RAC相关推荐

  1. oracle vm virtualbox打不开,如何在虚拟机上打开游戏,我用的是Oracle VM VirtualBox虚拟机,我不会用会用的教我...

    点击查看如何在虚拟机上打开游戏,我用的是Oracle VM VirtualBox虚拟机,我不会用会用的教我具体信息 答:如果是开3D游戏等,就算了吧,虚拟机为了保证兼容性,虚拟的显卡都是集成的,开个w ...

  2. Android虚拟机运行不了程序,Android程序在Android9.0手机或者虚拟机上运行不了的解决方法...

    1.在虚拟机上我使用的是Android5.0版本,当前manifests的application标签配置如下,正确运行没问题. android:allowBackup="true" ...

  3. linux的虚拟机部署项目,在虚拟机上部署Web项目

    8种机械键盘轴体对比 本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选? 目录获取虚拟机的IP地址 使用putty连接Linux 在Linux上安装JDK 在Linuxs上安装Mysql 在Li ...

  4. 解决Parallels Desktop Windows11虚拟机上传网速变慢方法

    1.背景 使用Parallels Desktop里windows11虚拟机的用户经常会遇到windows的上行速度变成10KB/s,尤其在发QQ附件或Foxmail的时候,尤为明显,一般重启无法解决该 ...

  5. 关于本人T43虚拟机上Solaris10安装MySQL5.0的方法及注意点:

    root密码:admin 数据库实例为mysql Solaris 10上安装MySQL的方法 MySQL是开源软件中一款非常流行的数据库系统,然而按照MySQL网站上给出的安装手册在Solaris上安 ...

  6. 中标麒麟共享win7打印机_Win7系统添加网络共享打印机

    (注:以下几种方法连接适用于打印机通过USB连接局域网中某台电脑安装好,电脑开放打印机共享.网络打印机通过网线口连接方法下篇介绍) 如今我们在工作和学习之中,经常会用到打印机,现在我们一般做一些文件的 ...

  7. XP虚拟机Oracle复制粘贴,Oracle VM VirtualBox我想问怎样在虚拟机上拖动复制或运行主机上的文件...

    点击查看Oracle VM VirtualBox我想问怎样在虚拟机上拖动复制或运行主机上的文件具体信息 答:Oracle VM VirtualBox安装增强功能好像也不能直接复制拖动文件,只能使用共享 ...

  8. 在虚拟机上搭建云平台环境(1)Controller和Computer虚拟机的安装

    在虚拟机上搭建云平台环境(1)Controller和Computer虚拟机的安装 Controller和Computer虚拟机的安装 需要准备的软件有VM Ware.Centos7的iso镜像.Xia ...

  9. 在虚拟机上搭建云平台环境(2)Controller和Computer系统安装

    在虚拟机上搭建云平台环境(2)Controller和Computer系统安装 Controller和Computer系统的安装 安装Controller,开启Controller虚拟机 来到安装主界面 ...

  10. linux添加硬盘配置内核pci,Linux系统入门学习:在虚拟机上配置PCI直通

    提问:我想要分配一块物理网卡到用KVM创建的虚拟机上.我打算为这台虚拟机启用网卡的PCI直通.请问,我如何才能在virt-manager里面通过PCI直通方式来增加一个PCI设备到虚拟机上? 如今的h ...

最新文章

  1. python hibernate_将Java/MVC/Hibernate webapp移植到Python
  2. 20_Android中apk安装器,通过WebView来load进一个页面,Android通知,程序退出自动杀死进程,通过输入包名的方式杀死进程
  3. 设计撑百万并发的数据库架构
  4. Linux 系统版本信息
  5. 【Vegas原创】导入结构一致表的SQL语句
  6. mysql查询连续次数_Mysql如何查询连续的时间次数
  7. 路由器工作模式Classless与Classful实验分析
  8. 解决 gcc/g++ 编译动态库通过却无法运行的问题
  9. MySQL 官网下载各版本连接驱动
  10. UWB定位技术原理图解
  11. [sig19]寒霜引擎中strand-based(基于线)的头发渲染
  12. 食品加工企业自营商城小程序开发,帮助企业增加销售渠道,提高销量
  13. 传大疆北美裁员1/3,离职高管透露内部斗争严重
  14. RestTemplete
  15. php utf8生僻字,支持生僻字且自动识别utf-8编码的php汉字转拼音类_php技巧
  16. 国内MEMS企业、研究所以及科研院校
  17. 拍照应用竞争升级,坐拥15亿用户的美图如何打好防御战?
  18. Vs Code配置前端环境及运行
  19. 爬虫入门之最好大学网--专项学科全国排名爬虫
  20. 2015山东毕业生如何进行网上报道(报到证)?

热门文章

  1. linux安装并行geant4,Ubuntu下安装Geant4精选.pdf
  2. 高可用Redis(四):列表,集合与有序集合
  3. android-常用部件
  4. 基于CSS class的事件监听管理机制 (转)
  5. 如何显示mac的隐藏文件夹
  6. C#开源爬虫NCrawler源代码解读以及将其移植到python3.2(4)
  7. Compiz Check测试Linux桌面3D兼容性
  8. wow中国正式商业化收费运营 level 31达成
  9. java多线程Thread.sleep方法用法详解
  10. String类源码阅读