灌溉梦想,记录脚步
« »
2015 年 01 月 11 日技术合集

命令创建ACFS

创建挂载点

mkdir -p /u01/app/oracle/acfsmounts/data_acfsvol3
chown oracle:oinstall /u01/app/oracle/acfsmounts/data_acfsvol3

连接到ASM创建Volume

su - oracle
[oracle@rac1 ~]$ . oraenv
ORACLE_SID = [RAC1] ? +ASM1
The Oracle base for ORACLE_HOME=/u01/app/11.2.0/grid is /u01/app/oracle
[oracle@rac1 ~]$ dbhome
/u01/app/11.2.0/grid
[oracle@rac1 ~]$ sqlplus / as sysasm
Issue to the following command to create a new volume.
 
SQL> ALTER DISKGROUP DATA ADD VOLUME ACFSVOL3 SIZE 10G;
 
Diskgroup altered.
 
SQL>
Exit the SQL*Plus session, then create a file system on the volume.

格式化Volume

[oracle@rac1 ~]$ /sbin/mkfs -t acfs -b 4k /dev/asm/acfsvol3-301 -n "ASMVOL3"
mkfs.acfs: version                   = 11.2.0.1.0.0
mkfs.acfs: on-disk version           = 39.0
mkfs.acfs: volume                    = /dev/asm/acfsvol3-301
mkfs.acfs: volume size               = 10737412340
mkfs.acfs: Format complete.
[oracle@rac1 ~]$

注册文件系统并挂载

[oracle@rac1 ~]$ /sbin/acfsutil registry -f -a /dev/asm/acfsvol3-301 /u01/app/oracle/acfsmounts/data_acfsvol3
acfsutil registry: mount point /u01/app/oracle/acfsmounts/data_acfsvol3 successfully added to Oracle Registry
[oracle@rac1 ~]$
 
# 执行完命令后,通常情况下文件系统会在所有节点上挂载,如有问题可以通过命令操作
 
/bin/mount -t acfs /dev/asm/acfsvol3-301 /u01/app/oracle/acfsmounts/data_acfsvol3

umount和mount命令

/bin/umount -t acfs -a
/sbin/mount.acfs -o all

日志信息 »

该日志于2015-01-11 15:41由 kevin 发表在技术合集分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

没有评论

发表评论 »