命令创建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 |