Adding a shared disk to a VM supports ORACLE 10G RAC

Source: Internet
Author: User

Because the original ASM shared disk capacity is small, archive logs and backup files cannot be installed. Therefore, we decided to add a disk.

1. Add a virtual disk to node 1 and place it in the original shared directory named asm4.

Select SCSI and place it on SCSI bus 1 after other disks. Otherwise, the drive letter may change.

Mode = independent-> persistent

2. Close the VM file and use uedit to open Red Hat Enterprise Linux 4.vmx at the end of the file.

Scsi1: 5. Present = "true"
Scsi1: 5. filename = "F: \ sharkdisk \ asm4.vmdk"

Scsi1: 5. mode = "independent-persistent"

We can see that asm4 is successfully added.

Add a shared Disk

Disk. Locking = "false"
Disklib. datacachemaxsize = "0"
Disklib. datachemaxreadaheadsize = "0"
Disklib. datacacheminreadaheadsize = "0"
Disklib. datacachepagesize = "4096"
Disklib. maxunsyncedwrites = "0"
-- Scsi1.sharedbus = "virtual"This is the shared bus added by others. I have not added this line!
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. Node 2: add an existing virtual disk. On the editing machine, select a disk, select an existing disk, locate asm4 in the shared directory, and set SCSI and independent = persistent.

4. Close the VM file and use uedit to open Red Hat Enterprise Linux 4.vmx.Scsi1: 5. devicetype = "disk"

5. Start Node 1 and switch to the new fdisk under the root user.

[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 coshould in certain setups cause problems:
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-- Create a partition
Command action
E extended
P primary partition (1-4)
P-- Primary Partition
Partition Number (1-4 ):1-- Partition Number 1
First cylinder (1-1044, default 1 ):1-- Start with cylinder 1
Last cylinder or + size or + sizem or + sizek (1-1044, default 1044 ):1044-- To the last cylinder
Command (M for help ):W-- Save the partition
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. Start Node 2 partition is found, and the ASM disk has been found

[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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.