配置CentOS 5.8上使用ACFS集群文件系统(3)

四:添加ora.registry.acfs到ocr配置中

[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl add type ora.registry.acfs.type \
> -basetype ora.local_resource.type \
> -file /u01/app/11.2.0/grid/crs/template/registry.acfs.type

[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl add resource ora.registry.acfs \
> -attr ACL=\'owner:root:rwx,pgrp:oinstall:r-x,other::r--\' \
> -type ora.registry.acfs.type -f

[root@rac1 ~]# su - grid -c crs_stat | grep acfs
NAME=ora.registry.acfs
TYPE=ora.registry.acfs.type

[root@rac2 ~]# su - grid -c crs_stat | grep acfs
NAME=ora.registry.acfs
TYPE=ora.registry.acfs.type
[root@rac1 ~]# /sbin/acfsutil registry

五:创建卷并格式化成acfs集群文件系统并挂载

SQL> alter diskgroup data add volume acfsvol size 1G;
Diskgroup altered.
 
[root@rac1 ~]# mkdir /sharedisk
[root@rac2 ~]# mkdir /sharedisk
[root@rac1 ~]# /sbin/mkfs -t acfs -n ACFSVOL1 /dev/asm/acfsvol-53
mkfs.acfs: version = 11.2.0.3.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/acfsvol-53
mkfs.acfs: volume size = 1073741824
mkfs.acfs: Format complete.
 
[root@rac1 ~]# /sbin/acfsutil registry -a -f /dev/asm/acfsvol-53 /sharedisk/
acfsutil registry: mount point /sharedisk successfully added to Oracle Registry
 
[root@rac1 ~]# mount.acfs -o all
[root@rac1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
 93G 19G 70G 21% /
/dev/sda1 190M 17M 165M 9% /boot
tmpfs 2.0G 1.2G 807M 60% /dev/shm
/dev/asm/acfsvol-53 1.0G 39M 986M 4% /sharedisk
 
[root@rac2 ~]# mount.acfs -o all
[root@rac2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
 93G 12G 77G 14% /
/dev/sda1 99M 17M 78M 18% /boot
tmpfs 2.0G 1.2G 807M 60% /dev/shm
/dev/asm/acfsvol-53 1.0G 73M 952M 8% /sharedisk
 
[root@rac1 ~]# /sbin/acfsutil info fs
/sharedisk
 ACFS Version: 11.2.0.3.0
 flags: MountPoint,Available
 mount time: Wed Feb 20 12:11:52 2013
 volumes: 1
 total size: 1073741824
 total free: 998002688
 primary volume: /dev/asm/acfsvol-53
 label: ACFSVOL1
 flags: Primary,Available,ADVM
 on-disk version: 39.0
 allocation unit: 4096
 major, minor: 252, 27137
 size: 1073741824
 free: 998002688
 ADVM diskgroup DATA
 ADVM resize increment: 33554432
 ADVM redundancy: unprotected
 ADVM stripe columns: 4
 ADVM stripe width: 131072
 number of snapshots: 0
 snapshot space usage: 0
 replication status: DISABLED

配置CentOS 5.8上使用ACFS集群文件系统

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/807d8338bf3e93f9c39db43c222e5022.html