본문 바로가기

Oracle/10g. Rac Install

RAC를 위한 Vmware 스토리지 추가하기

10GB만 추가해 보자.

첫번째 노드에서 하드디스크를 추가.

 

기존 4개디스크에서 더 추가를해서 5,6번이 생겼다.

그리고 scsi1:5.deviceType = "disk" 를 추가하고

각 4개노드의 vmx 파일에다가 다 추가를 한다.

 

scsi1:5.present = "TRUE"
scsi1:5.fileName = "M:\vm_asmdisk\disk5\asmdisk5.vmdk"
scsi1:5.mode = "independent-persistent"
scsi1:5.deviceType = "disk"


scsi1:6.present = "TRUE"
scsi1:6.fileName = "M:\vm_asmdisk\disk6\asmdisk6.vmdk"
scsi1:6.mode = "independent-persistent"
scsi1:6.deviceType = "disk"

 

부팅하하고

[root@rac1 ~]# fdisk -l

 

첫번째 추가된하드.

Disk /dev/sdg: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

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

 

두번째 추가된하드.

Disk /dev/sdh: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

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

 

FDISK 로 Format 작업.

[root@rac1 ~]# fdisk /dev/sdg
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.

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
First cylinder (1-652, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-652, default 652):
Using default value 652

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@rac1 ~]#

 

[root@rac1 ~]# 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.

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
First cylinder (1-652, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-652, default 652):
Using default value 652

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

[root@rac1 ~]#

 

[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL5 /dev/sdg1
Marking disk "VOL5" as an ASM disk:                        [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL6 /dev/sdh1   
Marking disk "VOL6" as an ASM disk:                        [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm listdisks                
VOL1
VOL2
VOL3
VOL4
VOL5
VOL6
[root@rac1 ~]#