Oracle 11g ASM:如何在ASMCMD命令行工具中创建Oracle ACFS文件系统(二)
ac1 ~]$ mkdir -p /home/oracle/ggs
[root@rac2 ~]# su - oracle
[oracle@rac2 ~]$ mkdir -p /home/oracle/ggs
在集群 mount registery 中注册刚刚创建的 ACFS 文件系统,也可以不注册,直接手动挂载。
注册 ACFS 文件系统的好处是在集群每隔30秒检查 mount registery 时会在每个节点自动挂载该文件系统,同时当集群软件或系统重启后也会自动挂载该文件系统。
[root@rac1 ~]# /sbin/acfsutil registry -a /dev/asm/goldengate-257 /home/oracle/ggs
acfsutil registry: mount point /home/oracle/ggs successfully added to Oracle Registry
手动挂载命令如下:
[root@rac1 ~]# /bin/mount -t acfs /dev/asm/goldengate-257 /home/oracle/ggs
执行注册命令后等待30秒,然后在各节点查看ACFS文件系统是否挂载
[root@rac1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 30G 20G 7.7G 73% /
/dev/sda3 1003M 39M 914M 5% /tmp
tmpfs 1.3G 454M 814M 36% /dev/shm
/dev/asm/goldengate-257
1.9G 73M 1.9G 4% /home/oracle/ggs
[oracle@rac2 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 30G 21G 7.3G 74% /
/dev/sda3 1003M 39M 914M 5% /tmp
tmpfs 1.3G 450M 818M 36% /dev/shm
/dev/asm/goldengate-257
1.9G 137M 1.8G 8% /home/oracle/ggs
4、测试文件系统
[root@rac1 ~]# chown -R oracle:oinstall /home/oracle/ggs
第一节点
[oracle@rac1 ~]$ echo "Oracle ACFS File System" > /home/oracle/ggs/acfs.log
[oracle@rac1 ggs]$ more /home/oracle/ggs/acfs.log
Oracle ACFS File System
第二节点
[oracle@rac2 ~]$ more /home/oracle/ggs/acfs.log
Oracle ACFS File System