四)创建文件系统快照保护。
其实创建快照就是类似cp的过程。eg:
root@oracle-one acfsvol0]# dd if=/dev/zero of=./test.log bs=100M count=1; 1+0 records in 1+0 records out 104857600 bytes (105 MB) copied, 0.28981 s, 362 MB/s [root@oracle-one acfsvol0]# ls -l total 107584 drwx------ 2 root root 65536 Mar 13 15:15 lost+found -rw-r--r-- 1 root root 104857600 Mar 13 15:35 test.log [root@oracle-one acfsvol0]# pwd /ginf/grid/acfssystem/acfsvol0 [root@oracle-one acfsvol0]# acfsutil snap create acfsvol0_bak /ginf/grid/acfssystem/acfsvol0 acfsutil snap create: Snapshot operation is complete. [root@oracle-one acfsvol0]# cd .ACFS [root@oracle-one .ACFS]# ls repl snaps [root@oracle-one .ACFS]# cd snaps/ [root@oracle-one snaps]# pwd /ginf/grid/acfssystem/acfsvol0/.ACFS/snaps [root@oracle-one snaps]# ls -l total 4 drwxr-xr-x 4 root root 4096 Mar 13 15:36 acfsvol0_bak [root@oracle-one snaps]# cd acfsvol0_bak/ [root@oracle-one acfsvol0_bak]# ls -l ls: cannot access lost+found: Permission denied total 107520 d lost+found -rw-r--r-- 1 root root 104857600 Mar 13 15:35 test.log [root@oracle-one acfsvol0_bak]# pwd /ginf/grid/acfssystem/acfsvol0/.ACFS/snaps/acfsvol0_bak [root@oracle-one acfsvol0_bak]# ls -h ls: cannot access lost+found: Permission denied lost+found test.log [root@oracle-one acfsvol0_bak]#
删除acfs文件系统快照
eg:
[root@oracle-one snaps]# ls acfsvol0_bak [root@oracle-one snaps]# acfsutil snap delete acfsvol0_bak /ginf/grid/acfssystem/acfsvol0 acfsutil snap delete: Snapshot operation is complete. [root@oracle-one snaps]# ls [root@oracle-one snaps]#
五)卸载acfs文件系统:
1、取消acfs文件系统的注册
[root@oracle-one snaps]# acfsutil registry -d /ginf/grid/acfssystem/acfsvol0 acfsutil registry: successfully removed ACFS mount point /ginf/grid/acfssystem/acfsvol0 from Oracle Registry [root@oracle-one snaps]# acfsutil registry -d /ginf/grid/acfssystem/acfsvol1 acfsutil registry: successfully removed ACFS mount point /ginf/grid/acfssystem/acfsvol1 from Oracle Registry [root@oracle-one snaps]#
2、卸载acfs卷
[root@oracle-one ~]# umount -t acfs -a
[root@oracle-one ~]#
如果卸载单个卷umount -t acfs /directory
3、删除acfs
eg:
[root@oracle-one ~]# acfsutil rmfs /dev/asm/acfsvol0-142
[root@o