分类: Oracle
2009-09-07 22:54:38
|
How to using Vmware Server
Install Oracle10 RAC on Solaris 10
Soft version:
Host OS: RHEL4.6 X86_64
Guest OS: Solaris 10 U7 sol-10-u7-ga-x86-dvd.iso
Vmware Server:
Oracle: 10.2.0.2 10202_database_solx86.zip 10202_clusterware_solx86.zip
Hardware information:
Lenovo R520
CPU:Xeon 5110
hard driver:
Memory:
GUEST OS:
cpu:1
Memory:
Hard disk:
netcard1:nat public
netcard2:host-only private
Configure Vmware Shared DIsk
Tips to remember clustering two or more virtual machines on the same VMware Server host.
VMware recommends you set up any shared disks on the same SCSI bus, which is a different bus from the one the guest operating system uses. For example, if your guest operating system is on the scsi0 bus,
you should set up disks to share on the next available bus, typically the scsi1 bus. ( scsi1:0.filename = quorumdisk.vmdk )
Configure shared disks as preallocated virtual disks.
To enable SCSI reservation for devices on the scsi1 bus, add the following line to the virtual machine.s configuration file:
scsi1.sharedBus = "virtual“
In addition to enabling SCSI reservation on the bus, you need to allow virtual machines to access the shared disk concurrently. Add the following line to the virtual machines configuration file:
disk.locking = "false"
When you use VMware Server virtual machines in a cluster, you must turn off disk caching for each virtual machine that is a member of the
cluster. If you do not turn off data on the shared drive might become corrupted. To turn off disk caching open the configuration .vmx file of each virtual machine in a text editor and add the following line:
diskLib.dataCacheMaxSize = “
--------------------------------------------------from 《VMware Server Tips & Tricks》 ---Kevin Gehrke
Then save it!
Reboot the node.
Login as root,
#format
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
Specify disk (enter its number):
Now you can not see the new add disk,you should:
# touch /reconfigure
# init 0
Then system will reboot.
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c3t0d0
/pci@0,0/pci1000,30@11/sd@0,0
2. c3t1d0
/pci@0,0/pci1000,30@11/sd@1,0
Specify disk (enter its number):
bash-3.00# format
Searching for disks...done
Specify disk (enter its number): 1selecting c2t1d0[disk formatted] FORMAT MENU disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk fdisk - run the fdisk program repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name ! - execute , then return format> partitionPlease run fdisk firstformat> fdiskNo fdisk table exists. The default partition for the disk is: a 100% "SOLARIS system" partition Type "y" to accept the default partition, otherwise type "n" to edit the partition table.yformat> partition PARTITION MENU:0 - change '0' partition
1 - change '1' partition 2 - change '2' partition 3 - change '3' partition 4 - change '4' partition 5 - change '5' partition 6 - change '6' partition7 - change '7' partition
select - select a predefined table modify - modify a predefined partition table name - name the current table print - display the current table label - write the partition map and label to the disk ! - execute , then return quitpartition> printCurrent partition table (original):Total disk cylinders available: 156 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 unassigned wm 1 - 50 100.00MB (50/0/0) 204800 1 unassigned wm 51 - 100 100.00MB (50/0/0) 204800 ocr1 2 backup wu 0 - 2043 3.99GB (2044/0/0) 8372224 3 unassigned wm 101 - 150 100.00MB (50/0/0) 204800 ocr2 4 unassigned wm 151 - 200 100.00MB (50/0/0) 204800 votedisk1 5 unassigned wm 201 - 300 200.00MB (100/0/0) 409600 votedisk2 6 unassigned wm 301 - 1943 3.21GB (1643/0/0) 6729728 7 unassigned wm 1944 - 2043 200.00MB (100/0/0) 409600 votedisk3 8 boot wu 0 - 0 2.00MB (1/0/0) 4096 9 unassigned wm 0 0 (0/0/0) 0partition> 1Part Tag Flag Cylinders Size Blocks 1 unassigned wm 0 0 (0/0/0) 0 Enter partition id tag[unassigned]:Enter partition permission flags[wm]:Enter new starting cyl[0]: 3Enter partition size[0b, 0c , 3e, 0.00mb, 0.00gb]: 153c partition> labelReady to label disk, continue? y partition> quitformat> disk 2selecting c2t2d0[disk formatted]format> fdiskNo fdisk table exists. The default partition for the disk is: a 100% "SOLARIS System" partition Type "y" to accept the default partition, otherwise type "n" to edit thepartition table.
yformat> partitionpartition> printCurrent partition table (original):Total disk cylinders available: 60 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 unassigned wm 0 - 522 4.01GB (523/0/0) 8401995 data1 1 unassigned wm 523 - 914 3.00GB (392/0/0) 6297480 data2 2 unassigned wu 914 - 1270 2.73GB (357/0/0) 5735205 data3 3 unassigned wm 1271 - 1283 101.98MB (13/0/0) 208845 asm_spfile 4 unassigned wm 1283 - 1295 101.98MB (13/0/0) 208845 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 7.84MB (1/0/0) 16065 9 unassigned wm 0 0 (0/0/0) 0partition> 1Part Tag Flag Cylinders Size Blocks 1 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 522
Enter partition size[6297480b,
partition> p
Current partition table (unnamed):
Total disk cylinders available: 1298 + 2 (reserved cylinders)
partition> labelReady to label disk, continue? y partition> quit
From here on in, its quite easy to follow Jeff Hunter’s . Obviously, you wont be using ASM. The only differences between what to do now and what he has documented is file locations.
Build Your Own Oracle RAC Cluster on Solaris 10 and iSCSI
Oracle 10gR2 RAC with Solaris 10 and NFS
《VMware Server Tips & Tricks》 Kevin Gehrke