В версии red hat 6.3 не поддерживается asmlib.
Инструкция сделана на основе документа во вложении Configure
RAW on ASM.docx
On first
node
1) #
fdisk /dev/sdb
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-522, default 1):
Using
default value 1
Last cylinder
or +size or +sizeM or +sizeK (1-522, default 522):
Using
default value 522
Command (m
for help): w
The
partition table has been altered!
Calling
ioctl() to re-read partition table.
Syncing
disks.
2) # cat
/proc/partitions -- проверяем создание партиции
major
minor #blocks name
8 0 104857600 sda
8 1 512000
sda1
8 2 74984448 sda2
8 16 524288000 sdb
8 17 524281243 sdb1
253
0 35745792 dm-0
253
1 16777216 dm-1
253
2 22458368 dm-2
3) Open /etc/udev/rules.d/60-raw.rules
and put these lines there for all disks
ACTION=="add",
KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add",
KERNEL=="raw*", OWNER=="oracle",
GROUP=="oinstall", MODE=="0660"
3) Run
following commands to bound raw disks:
# /bin/raw
/dev/raw/raw1 /dev/sdb1
4) Starting
udev
#
start_udev
ON
second node
1) #
/sbin/partprobe --обновляет /proc/partitions
2) Run
following commands to bound raw disks:
# /bin/raw
/dev/raw/raw1 /dev/sdb1
3) Starting udev
# start_udev
Недостатки:
К сожалению, при такой конфигурации не работает часть функционала ASM, например ACFS:
ASMCMD> volcreate -G data -s 1G volume_test
ORA-15032: not all alterations performed
ORA-15490: not all instances could add/drop the volume (DBD ERROR: OCIStmtExecute)
Комментариев нет:
Отправить комментарий