Chinaunix首页 | 论坛 | 博客
  • 博客访问: 369676
  • 博文数量: 49
  • 博客积分: 2709
  • 博客等级: 少校
  • 技术积分: 890
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-01 16:19
文章分类

全部博文(49)

文章存档

2013年(1)

2012年(5)

2011年(5)

2010年(5)

2009年(6)

2008年(27)

我的朋友

分类: Oracle

2009-09-07 22:54:38

文件: RAC.zip
大小: 410KB
下载: 下载
Build Your Own Oracle10g RAC Cluster on Solaris 10 and ASM Raw

How to using Vmware Server

Install Oracle10 RAC on Solaris 10

 

 

you should download   RAC.zip to see those pic.

---------------------------------------------------------------------

 

Soft version:

Host OS:         RHEL4.6 X86_64

Guest OS:              Solaris 10 U7                  sol-10-u7-ga-x86-dvd.iso

Vmware Server:             1.0.8 build-126538 for Linux   VMware-server-1.0.8-126538.i386.rpm

Oracle:                   10.2.0.2                       10202_database_solx86.zip     10202_clusterware_solx86.zip

 

Hardware information

Lenovo R520

CPU:Xeon 5110     

hard driver:146Graid1

Memory:16G

 

GUEST OS:

cpu:1

Memory:3600M

Hard disk:20G

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 = “0”

--------------------------------------------------from VMware Server Tips & Tricks ---Kevin Gehrke

 

download  RAC.zip to see these pic.

 

 

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): 1
selecting 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> partition
Please run fdisk first
format> fdisk
No 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.
y
format> 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' partition
     7      - 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
     quit
partition> print
Current 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)          0
partition> 1
Part      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]: 3
Enter partition size[0b, 0c, 3e, 0.00mb, 0.00gb]: 153c
partition> label
Ready to label disk, continue? y
 
partition> quit
format> disk 2
selecting c2t2d0
[disk formatted]
format> fdisk
No 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.
y
format> partition
partition> print
Current 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)         0
partition> 1
Part      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, 392c, 783e, 3074.94mb, 3.00gb]: 4gb

partition> p

Current partition table (unnamed):

Total disk cylinders available: 1298 + 2 (reserved cylinders)

partition> label
Ready 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

 

 

阅读(1233) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~