在虚拟机上VM 添加一块共享磁盘方法 支持Oracle 10g RAC
因为原先的ASM共享磁盘容量小,无法装下归档日志和备份文件.所以决定增加一块磁盘.1 在节点1增加一块虚拟磁盘 放在原来的共享目录
因为原先的ASM共享磁盘容量小,无法装下归档日志和备份文件.所以决定增加一块磁盘.
1 在节点1增加一块虚拟磁盘 放在原来的共享目录上 取名为ASM4
选择SCSI 1:5 注意放在SCSI总线1号上面排在其他盘后面,否则容易发生盘符改变
mode=independent->Persistent
2 关闭虚拟机文件,然后用UEDIT打开 Red Hat Enterprise Linux 4.vmx 在文件最后
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 ]
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
VOL1
VOL2
VOL3
VOL4

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

本文探讨了Docker中的优化MySQL内存使用量。 它讨论了监视技术(Docker统计,性能架构,外部工具)和配置策略。 其中包括Docker内存限制,交换和cgroups

本文介绍了MySQL的“无法打开共享库”错误。 该问题源于MySQL无法找到必要的共享库(.SO/.DLL文件)。解决方案涉及通过系统软件包M验证库安装

本文讨论了使用MySQL的Alter Table语句修改表,包括添加/删除列,重命名表/列以及更改列数据类型。

本文比较使用/不使用PhpMyAdmin的Podman容器直接在Linux上安装MySQL。 它详细介绍了每种方法的安装步骤,强调了Podman在孤立,可移植性和可重复性方面的优势,还

本文提供了SQLite的全面概述,SQLite是一个独立的,无服务器的关系数据库。 它详细介绍了SQLite的优势(简单,可移植性,易用性)和缺点(并发限制,可伸缩性挑战)。 c

本指南展示了使用自制在MacOS上安装和管理多个MySQL版本。 它强调使用自制装置隔离安装,以防止冲突。 本文详细详细介绍了安装,起始/停止服务和最佳PRA

文章讨论了为MySQL配置SSL/TLS加密,包括证书生成和验证。主要问题是使用自签名证书的安全含义。[角色计数:159]

文章讨论了流行的MySQL GUI工具,例如MySQL Workbench和PhpMyAdmin,比较了它们对初学者和高级用户的功能和适合性。[159个字符]
