11g r2
"
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) is a new multi-platform, scalable file system and storage management design that extends Oracle Automatic Storage Management (Oracle ASM) technology to support all application data. Oracle ACFS provides dynamic file system resizing, and improved performance using the distribution, balancing and striping technology across all available storage, and provides storage reliability through Oracle ASM's mirroring and parity protection.
"
let's test
note:
you have successully configured ACFS,you can use to store your oracle database binaries in The ACFS.
"
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) is a new multi-platform, scalable file system and storage management design that extends Oracle Automatic Storage Management (Oracle ASM) technology to support all application data. Oracle ACFS provides dynamic file system resizing, and improved performance using the distribution, balancing and striping technology across all available storage, and provides storage reliability through Oracle ASM's mirroring and parity protection.
"
let's test
1,add an physical disk,less disk space large than 6 G
/dev/sdd
2,bind udev
vi /etc/udev/rules.d/60-raw.rules
ACTION=="add", KERNEL=="sdc1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdc2", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdd", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="raw[1-3]", OWNER="oracle", GROUP="oinstall", MODE="640"
3,configure ACFS drivers to load automaticlly on boot
3.1 start acfs as root
<$grid_home>/bin/acfsload start -s
[root@ora11 ~]# lsmod |grep ora
oracleacfs 787460 0
oracleadvm 177792 0
oracleoks 226656 2 oracleacfs,oracleadvm
3.2 create a new file that will be invoked as startup with the ACFS start command included ,as root
[oracle@ora11 ~]$ cat envasm
export ORACLE_SID=+ASM
export ORACLE_HOME=/ora10/app/oracle11/product/11.2.0/grid
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
vi /etc/init.d/acfsload
#!/bin/sh
#
# Control script for tha ACFS,load oracle ACFS drivers at system boot
# Date:2012-7-19 by anbob
#
/ora10/app/oracle11/product/11.2.0/grid/bin/acfsload start -s
chmod +x /etc/init.d/acfsload
chkconfig --add acfsload
chkconfig --level 2345 acfs on
or
vi /etc/rc.d/rc.local
--append
/ora10/app/oracle11/product/11.2.0/grid/bin/acfsload start -s
4,add ASM DISKGROUP use ASMCA utilities
xhost +
[oracle@ora11 ~]$ . envasm
[oracle@ora11 ~]$ export DISPLAY=:0.0
[oracle@ora11 ~]$ asmca
create-->enter group name e.g."acfs"-->chose disks-->ok
don't close the asmca window
click the ASM DISK GROUP NAME OF DISK GROUPS LIST-->right click -->create ACFS for database home-->enter the database home mountpoint path
e.g /u01/app/oracle/acfsmnt/db1
note volume name no logger than 11 characters length
ok,next will output a new window ,let's run a script as root user
open a new terminal
$>/ora11g/app/oracle/cfgtoollogs/asmca/scripts/acfs_script.sh
[root@ora11 scripts]# pwd
/ora11g/app/oracle/cfgtoollogs/asmca/scripts
[root@ora11 scripts]# vi acfs_script.sh
#!/bin/sh
/bin/mount -t acfs /dev/asm/acfs_db1-455 /ora11g/app/oracle/acfsmount
if [ $? = "0" ]; then
chown oracle:oinstall /ora11g/app/oracle/acfsmount
chmod 775 /ora11g/app/oracle/acfsmount
exit 0
fi
run the command ,the asm cluster filesystem automatic created!
finished!
verify acfs
finished!
SQL> select group_number,name,type,voting_files from v$asm_diskgroup;
GROUP_NUMBER NAME TYPE V
------------ ------------------------------ ------ -
1 DATA NORMAL N
2 ACFS EXTERN N
SQL> select name,path,group_number,state from v$asm_disk;
NAME PATH GROUP_NUMBER STATE
------------------------------ -------------------- ------------ -----
ACFS_0000 /dev/raw/raw3 2 NORMAL
DATA_0001 /dev/raw/raw2 1 NORMAL
DATA_0000 /dev/raw/raw1 1 NORMAL
[oracle@ora11 ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 17981340 15907640 1145548 94% /
/dev/sda1 295561 18612 261689 7% /boot
tmpfs 2097152 157532 1939620 8% /dev/shm
/dev/mapper/vgora-lvsoft
14449712 6337872 7377840 47% /ora10
/dev/asm/acfs_db1-455
6291456 49592 6241864 1% /ora11g/app/oracle/acfsmount
note my host file system has general、logical volume、ACFS ,and asm for oracle
[root@ora11 scripts]# ll /dev/asm/*
brwxrwx--- 1 root oinstall 252, 232961 Jul 29 19:52 /dev/asm/acfs_db1-455
[root@ora11 scripts]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw,size=2048m)
/dev/mapper/vgora-lvsoft on /ora10 type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/asm/acfs_db1-455 on /ora11g/app/oracle/acfsmount type acfs (rw)
[root@ora11 scripts]# acfsutil info fs
/ora11g/app/oracle/acfsmount
ACFS Version: 11.2.0.1.0.0
flags: MountPoint,Available
mount time: Sun Jul 29 19:58:28 2012
volumes: 1
total size: 6442450944
total free: 6391668736
primary volume: /dev/asm/acfs_db1-455
label:
flags: Primary,Available,ADVM
on-disk version: 39.0
allocation unit: 4096
major, minor: 252, 232961
size: 6442450944
free: 6391668736
ADVM diskgroup ACFS
ADVM resize increment: 268435456
ADVM redundancy: unprotected
ADVM stripe columns: 4
ADVM stripe width: 131072
number of snapshots: 0
snapshot space usage: 0
[oracle@ora11 ~]$ cd /ora11g/app/oracle/acfsmount
[oracle@ora11 acfsmount]$ ll
total 64
drwx------ 2 root root 65536 Jul 29 19:58 lost+found
[oracle@ora11 acfsmount]$ mkdir rmanbak
[oracle@ora11 acfsmount]$ touch test.txt
[oracle@ora11 acfsmount]$ ll
total 68
drwx------ 2 root root 65536 Jul 29 19:58 lost+found
drwxr-xr-x 2 oracle oinstall 4096 Jul 29 20:00 rmanbak
-rw-r--r-- 1 oracle oinstall 0 Jul 29 20:00 test.txt
note:
you have successully configured ACFS,you can use to store your oracle database binaries in The ACFS.
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。