Oracle数据库集群管理-RAC 安装19.1OGG之配置ACFS

一:ADVM与ACFS简单介绍

ADVM: ACFS文件系统使用的一种卷格式.

ACFS: Oracle提供的基于ASM的共享文件系统,其扩展了Oracle ASM的功能.可以存放更多类型的文件.

Oracle ACFS通过Oracle ADVM接口与Oracle ASM通信。

1 创建磁盘组 或者使用已有的磁盘组。

2 创建vol

3 创建ACFS并且挂载

因为要安装RAC的ogg,这里先安装ACFS

RAC版本为19c
OGG版本为19.1
平台为VMware
操作系统为 Red Hat Enterprise Linux Server release 7.2

查看内核是否加载ACFS模块
[eoms@orcldb2 ~]$ lsmod|grep acfs
oracleacfs           5921415  2 
oracleoks             750688  2 oracleacfs,oracleadvm

查看内核是否加载ADVM模块
[eoms@orcldb2 ~]$ lsmod|grep advm
oracleadvm           1236257  8 
oracleoks             750688  2 oracleacfs,oracleadvm

Purpose
acfsload loads or unloads Oracle ACFS, Oracle ADVM, and Oracle Kernel Services
Driver (OKS) drivers.
Syntax
acfsload { start | stop } [ -s ]

1、首先创建共享盘

 2、分别添加到RAC的两个节点中

 添加如下几行

3、使用udev绑定

查看新添加的磁盘

or i in e;
do
echo "KERNEL==\"sd*\",ENV{DEVTYPE}==\"disk\",SUBSYSTEM==\"block\",PROGRAM==\"/usr/lib/udev/scsi_id -g -u -d \$devnode\",RESULT==\"`/usr/lib/udev/scsi_id -g -u /dev/sd$i`\", RUN+=\"/bin/sh -c 'mknod /dev/asmdisk$i b  \$major \$minor; chown grid:asmadmin /dev/asmdisk$i; chmod 0660 /dev/asmdisk$i'\""
done
绑定前记录/etc/udev/rules.d/99-oracle-asmdevices.rules 文件内容

[root@dm01 ~]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules 
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c29646b3175cadf174105bf96e66", RUN+="/bin/sh -c 'mknod /dev/asmdiskb b  $major $minor; chown grid:asmadmin /dev/asmdiskb; chmod 0660 /dev/asmdiskb'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c293fd50d60d996a53338f6815a2", RUN+="/bin/sh -c 'mknod /dev/asmdiskc b  $major $minor; chown grid:asmadmin /dev/asmdiskc; chmod 0660 /dev/asmdiskc'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c299f93b7eeabbbcf10d45aca528", RUN+="/bin/sh -c 'mknod /dev/asmdiskd b  $major $minor; chown grid:asmadmin /dev/asmdiskd; chmod 0660 /dev/asmdiskd'"
[root@dm01 ~]# 

绑定(RAC的两个节点都要执行),把得到记录追加到/etc/udev/rules.d/99-oracle-asmdevices.rules

[root@dm01 ~]# for i in e;
> do
> echo "KERNEL==\"sd*\",ENV{DEVTYPE}==\"disk\",SUBSYSTEM==\"block\",PROGRAM==\"/usr/lib/udev/scsi_id -g -u -d \$devnode\",RESULT==\"`/usr/lib/udev/scsi_id -g -u /dev/sd$i`\", RUN+=\"/bin/sh -c 'mknod /dev/asmdisk$i b  \$major \$minor; chown grid:asmadmin /dev/asmdisk$i; chmod 0660 /dev/asmdisk$i'\""
> done
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c2902e3b82180d7f85215bddab06", RUN+="/bin/sh -c 'mknod /dev/asmdiske b  $major $minor; chown grid:asmadmin /dev/asmdiske; chmod 0660 /dev/asmdiske'"

[root@dm01 ~]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules 
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c29646b3175cadf174105bf96e66", RUN+="/bin/sh -c 'mknod /dev/asmdiskb b  $major $minor; chown grid:asmadmin /dev/asmdiskb; chmod 0660 /dev/asmdiskb'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c293fd50d60d996a53338f6815a2", RUN+="/bin/sh -c 'mknod /dev/asmdiskc b  $major $minor; chown grid:asmadmin /dev/asmdiskc; chmod 0660 /dev/asmdiskc'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c299f93b7eeabbbcf10d45aca528", RUN+="/bin/sh -c 'mknod /dev/asmdiskd b  $major $minor; chown grid:asmadmin /dev/asmdiskd; chmod 0660 /dev/asmdiskd'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c2902e3b82180d7f85215bddab06", RUN+="/bin/sh -c 'mknod /dev/asmdiske b  $major $minor; chown grid:asmadmin /dev/asmdiske; chmod 0660 /dev/asmdiske'"
[root@dm01 ~]# 

但是发现并没有生成期望的asmdiske

[root@dm01 dev]# cd /dev/
[root@dm01 dev]# ls -ltr asm*
brw-rw---- 1 grid asmadmin 8, 48 Jan  5 15:00 asmdiskd
brw-rw---- 1 grid asmadmin 8, 16 Jan  5 15:48 asmdiskb
brw-rw---- 1 grid asmadmin 8, 32 Jan  5 15:48 asmdiskc
 
asm:
total 0
[root@dm01 dev]# 

重新加载udev

[root@dm01 dev]# /sbin/udevadm trigger --type=devices --action=change
[root@dm01 dev]# /sbin/udevadm control --reload
[root@dm01 dev]# ls -ltr asm*
brw-rw---- 1 grid asmadmin 8, 48 Jan  5 15:00 asmdiskd
brw-rw---- 1 grid asmadmin 8, 32 Jan  5 15:50 asmdiskc
brw-rw---- 1 grid asmadmin 8, 16 Jan  5 15:50 asmdiskb
 
asm:
total 0
[root@dm01 dev]# 

还是看不到,重启节点之后还是不行,最后决定手动创建了(RAC的2个节点都执行)

[root@dm01 dev]# ls -ltr /dev/sd*
brw-rw---- 1 root disk 8,  2 Jan  5 15:55 /dev/sda2
brw-rw---- 1 root disk 8,  1 Jan  5 15:55 /dev/sda1
brw-rw---- 1 root disk 8,  0 Jan  5 15:55 /dev/sda
brw-rw---- 1 root disk 8, 16 Jan  5 15:55 /dev/sdb
brw-rw---- 1 root disk 8, 64 Jan  5 15:55 /dev/sde
brw-rw---- 1 root disk 8, 48 Jan  5 15:55 /dev/sdd
brw-rw---- 1 root disk 8, 32 Jan  5 15:55 /dev/sdc
[root@dm01 dev]# mknod /dev/asmdiske b  8 64
[root@dm01 dev]# ls -ltr asm*
brw-rw---- 1 grid asmadmin 8, 48 Jan  5 15:51 asmdiskd
brw-r--r-- 1 root root     8, 64 Jan  5 15:58 asmdiske
brw-rw---- 1 grid asmadmin 8, 32 Jan  5 15:58 asmdiskc
brw-rw---- 1 grid asmadmin 8, 16 Jan  5 15:58 asmdiskb
 
asm:
total 0
[root@dm01 dev]# chown grid:asmadmin /dev/asmdiske
[root@dm01 dev]# chmod 0660 /dev/asmdiske
[root@dm01 dev]# ls -ltr asm*
brw-rw---- 1 grid asmadmin 8, 48 Jan  5 15:51 asmdiskd
brw-rw---- 1 grid asmadmin 8, 64 Jan  5 15:58 asmdiske
brw-rw---- 1 grid asmadmin 8, 32 Jan  5 15:58 asmdiskc
brw-rw---- 1 grid asmadmin 8, 16 Jan  5 15:58 asmdiskb
 
asm:
total 0
[root@dm01 dev]# 

4、使用asmca创建磁盘组

首先要创建ASM磁盘组,然后在此基础上创建ASM卷,最后才能创建ACFS

首先创建磁盘组

4.1)选中Disk Groups,点击左下角的create

 4.2)选项External,磁盘组名字为OGG,选择刚创建的/dev/asmdiske磁盘

 4.3)点击OK,开始创建磁盘组

 4.4)OGG磁盘组创建成功

 4.5)使用crsctl命令检查crsctl stat res -t

5、使用asmca创建acfs

5.1)grid用户调用asmca(RAC的任意一个节点)

 5.2) 选中Volumes

 5.3) 输入volume名字,选择磁盘组OGG,大小给4G,点击OK

 5.4)volumes创建成功

 5.5)创建ACFS,选中ACFS File Systems,点击create

5.6) 两节点首先创建好/ogg目录,然后勾选自动运行配置命令,点击OK

[root@dm01 dev]# mkdir -p /ogg
[root@dm01 dev]# chown -R oracle:oinstall /ogg

 遇到DBT-30145 You need to enter the root credentials in 'Settings' for ASMCA

 把自动运行勾选去掉,先show command显示如下:

 

 5.7)运行acfs_script.sh脚本

 [grid@dm02 ~]$ /u01/app/grid/cfgtoollogs/asmca/scripts/acfs_script.sh 
PRCN-2018 : Current user grid is not a privileged user
[grid@dm02 ~]$ su - root
Password: 
Last login: Tue Jan  5 16:23:06 CST 2021 on pts/1
[root@dm02 ~]# /u01/app/grid/cfgtoollogs/asmca/scripts/acfs_script.sh
ACFS file system /ogg is mounted on nodes dm01,dm02

[root@dm02 ~]# 

5.8)查看acfs文件系统是否能够正常显示

[root@dm01 dev]# df
Filesystem            1K-blocks     Used Available Use% Mounted on
/dev/mapper/rhel-root  73364480 52885196  20479284  73% /
devtmpfs                1723752        0   1723752   0% /dev
tmpfs                   1739424  1127488    611936  65% /dev/shm
tmpfs                   1739424     9556   1729868   1% /run
tmpfs                   1739424        0   1739424   0% /sys/fs/cgroup
/dev/sda1                201388   129364     72024  65% /boot
tmpfs                    347888       16    347872   1% /run/user/42
tmpfs                    347888        0    347888   0% /run/user/0
/dev/asm/ogg_lv-356     4194304   570312   3623992  14% /ogg
[root@dm01 dev]# 

[root@dm02 dev]# df
Filesystem            1K-blocks     Used Available Use% Mounted on
/dev/mapper/rhel-root  73364480 58461216  14903264  80% /
devtmpfs                1723748        0   1723748   0% /dev
tmpfs                   1739424  1127500    611924  65% /dev/shm
tmpfs                   1739424     9596   1729828   1% /run
tmpfs                   1739424        0   1739424   0% /sys/fs/cgroup
/dev/sda1                201388   129364     72024  65% /boot
tmpfs                    347888        0    347888   0% /run/user/0
tmpfs                    347888       12    347876   1% /run/user/54322
/dev/asm/ogg_lv-356     4194304   570312   3623992  14% /ogg
[root@dm02 dev]# 

2 实战案例脚本安装
 

2.1 19C集群对应的资源如下:


[grid@orcldb2 ~]$ crsctl status res -t|grep acfs
ora.ogg.vologg.acfs
[grid@orcldb2 ~]$ crsctl status res -t|grep advm
ora.OGG.VOLOGG.advm
ora.proxy_advm
[grid@orcldb2 ~]$ 

2.2 使用ASMCMD创建

官方文档:

Creating an Oracle ACFS File System

You can create an Oracle ACFS file system using the steps in this topic.

To create and verify a file system, perform the following steps:

  1. Create an Oracle ADVM volume in a mounted disk group with the ASMCMD volcreate command.

    The compatibility parameters COMPATIBLE.ASM and COMPATIBLE.ADVM must be set to 11.2 or higher for the disk group to contain an Oracle ADVM volume. To use Oracle ACFS encryption, replication, security, or tagging, the disk group on which the volume is created for the file system must have compatibility attributes for ASM and ADVM set to 11.2.0.2 or higher.

    Start ASMCMD connected to the Oracle ASM instance. You must be a user in the OSASM operating system group.

    When configuring Oracle ADVM volume devices within a disk group, Oracle recommends assigning the Oracle Grid Infrastructure user and Oracle ASM administrator roles to users who have root privileges.

    To create a volume:

    Copy

    ASMCMD [+] > volcreate -G data -s 10G volume1

    When creating an Oracle ADVM volume, a volume device name is created that includes a unique Oracle ADVM persistent disk group number. The volume device file functions in the same manner as any other disk or logical volume to mount file systems or for applications to use directly.

    The format of the volume name is platform-specific.

  2. Determine the device name of the volume that was created.

    You can determine the volume device name with the ASMCMD volinfo command or from the VOLUME_DEVICE column in the V$ASM_VOLUME view.

    For example:

    Copy

    ASMCMD [+] > volinfo -G data volume1

  3. Diskgroup Name: DATA Volume Name: VOLUME1 Volume Device: /dev/asm/volume1-123 State: ENABLED ...

  4. SQL> SELECT volume_name, volume_device FROM V$ASM_VOLUME WHERE volume_name ='VOLUME1'; VOLUME_NAME VOLUME_DEVICE ----------------- -------------------------------------- VOLUME1 /dev/asm/volume1-123

  5. Create a file system with the Oracle ACFS mkfs command.

    Create a file system using an existing volume device.

    For example:

    $ /sbin/mkfs -t acfs /dev/asm/volume1-123

  6. mkfs.acfs: version = 19.0.0.0.0 mkfs.acfs: on-disk version = 46.0 mkfs.acfs: volume = /dev/asm/volume1-123 mkfs.acfs: volume size = 10737418240 ( 10.00 GB ) mkfs.acfs: Format complete.

    The root privilege is not required to run mkfs. The ownership of the volume device file dictates who can run this command.

  7. Register the file system.

    In an Oracle Grid Infrastructure Clusterware configuration, you can run the srvctl add filesystem command to register and automount a file system. For example:

    Copy

    # srvctl add filesystem -device /dev/asm/volume1-123 -path /acfsmounts/acfs1
           -user user1,user2,user3 -mtowner sysowner -mtgroup sysgrp -mtperm 755

    You can also register a file system with the acfsutil registry command. For example:

    Copy

    $ /sbin/acfsutil registry -a /dev/asm/volume1-123 /acfsmounts/acfs1

    After registering an Oracle ACFS file system in the cluster mount registry, the file system is mounted automatically on each cluster member listed in the registry entry during the next registry check action. This automatic process runs every 30 seconds and eliminates the requirement to manually mount the file system on each member of the cluster. Registering an Oracle ACFS file system also causes the file system to be mounted automatically whenever Oracle Clusterware or the system is restarted.

    Note:

    • The srvctl add filesystem command is required when an Oracle Database home is installed on an Oracle ACFS file system. In this case, the file system should not be explicitly added to the registry with the Oracle ACFS registration command (acfsutil registry).
    • Oracle ACFS registration is not supported in an Oracle Restart (standalone) configuration, which is a single-instance (non-clustered) environment.
    • The root or asmadmin privileges are required to modify the registry. The Windows Administrator privilege is equivalent to the root privilege on Linux.
  8. Mount or start the file system.

    If you have previously registered the file system, then start the file system with SRVCTL. For example:

    Copy

    $ srvctl start filesystem -device /dev/asm/volume1-123

    If you have not previously registered the file system, then mount the file system with the Oracle ACFS mount command. For example:

    Copy

    # /bin/mount -t acfs /dev/asm/volume1-123 /acfsmounts/acf1

    After an unregistered file system has been mounted, ensure that the permissions are set to allow access to the file system for the appropriate users. For example:

    Copy

    # chown -R oracle:dba /acfsmounts/acfs1

    The root privilege is required to run the mount command and the Windows Administrator privilege is required to run the acfsmountvol command.

  9. Create a test file in the file system.

    The user that creates the test file should be a user that is intended to access the file system. This test ensures that the appropriate user can write to the file system.

    For example:

    Copy

    $ echo "Oracle ACFS File System" > /acfsmounts/acfs1/myfile

  10. List the contents of the test file that was created in the file system.

    For example:

    $ cat /acfsmounts/acfs1/myfile Oracle ACFS File System

2.3 查看对应资源的状态


[grid@orcldb1 ogg]$ crsctl status res "ora.OGG.VOLOGG.advm" -p
NAME=ora.OGG.VOLOGG.advm
TYPE=ora.volume.type
ACL=owner:root:rwx,pgrp:oinstall:r-x,other::r--,user:grid:rwx
ACTIONS=
ACTION_SCRIPT=
ACTION_TIMEOUT=60
AGENT_FILENAME=%CRS_HOME%/bin/orarootagent%CRS_EXE_SUFFIX%
AUTO_START=restore
CANONICAL_VOLUME_DEVICE=/dev/asm/vologg-198
CHECK_INTERVAL=60
CHECK_TIMEOUT=0
CLEAN_TIMEOUT=60
CSS_CRITICAL=no
DELETE_TIMEOUT=60
DESCRIPTION=CRS resource type for ASM Volume Device
DEVICE_DETAILS=<vnum>1</vnum><dgnum>198</dgnum>
ENABLED=1
GH_CREATED=0
IGNORE_TARGET_ON_FAILURE=no
INSTANCE_FAILOVER=1
INTERMEDIATE_TIMEOUT=0
LOAD=1
LOGGING_LEVEL=1
MODIFY_TIMEOUT=60
NLS_LANG=
OFFLINE_CHECK_INTERVAL=30
RESOURCE_GROUP=
RESTART_ATTEMPTS=5
RESTART_DELAY=0
SCRIPT_TIMEOUT=60
SERVER_CATEGORY=ora.hub.category
START_CONCURRENCY=0
START_DEPENDENCIES=hard(global:uniform:ora.OGG.dg,ora.proxy_advm) pullup(global:ora.OGG.dg,ora.proxy_advm)
START_DEPENDENCIES_RTE_INTERNAL=
START_DEPENDENCIES_TEMPLATE=<xml><If cond="ASMmode" value="flex"> <Then>hard(<Res>uniform:global:{dg}</Res>, <Res>{proxyASM}</Res>)pullup(<Res>global:{dg}</Res>, <Res>{proxyASM}</Res>)</Then> <Else>hard(<Res>{dg}</Res>)pullup(<Res>{dg}</Res>)</Else> </If></xml>
START_TIMEOUT=60
STOP_CONCURRENCY=0
STOP_DEPENDENCIES=hard(global:intermediate:ora.OGG.dg,ora.proxy_advm)
STOP_DEPENDENCIES_RTE_INTERNAL=
STOP_DEPENDENCIES_TEMPLATE=<xml><If cond="ASMmode" value="flex"> <Then>hard(<Res>global:intermediate:{dg}</Res>, <Res>{proxyASM}</Res>)</Then> <Else>hard(<Res>intermediate:{dg}</Res>)</Else> </If></xml>
STOP_TIMEOUT=30
TARGET_DEFAULT=default
TYPE_VERSION=1.1
UPTIME_THRESHOLD=1d
USER_WORKLOAD=no
USR_ORA_ENV=
USR_ORA_OPI=
VOLUME_DEVICE=/dev/asm/vologg-198
WORKLOAD_CPU=0
WORKLOAD_CPU_CAP=0
WORKLOAD_MEMORY_MAX=0
WORKLOAD_MEMORY_TARGET=0

[grid@orcldb1 ogg]$ 

2.4 创建文件系统并进行挂载 


[grid@orcldb1 ogg]$ mkfs.acfs /dev/asm/vologg-198 
mkfs.acfs: version                   = 19.0.0.0.0
mkfs.acfs: on-disk version           = 39.0
mkfs.acfs: volume                    = /dev/asm/vologg-198
mkfs.acfs: volume size               = 536870912000  ( 500.00 GB )
mkfs.acfs: Format complete.
[grid@orcldb1 ogg]$ 

使用root用户执行

./srvctl add filesystem -d /dev/asm/vologg-198 -m /ogg/ -fstype ACFS -autostart ALWAYS

./srvctl start filesystem -d /dev/asm/vologg-198   --

或者手工mount

[root@orcldb2 ogg]# mount /dev/asm/vologg-198 /ogg
mount: /dev/asm/vologg-198 is write-protected, mounting read-only


[root@orcldb1 ogg]# mount /dev/asm/vologg-198 /ogg
mount: /dev/asm/vologg-198 is write-protected, mounting read-only

使用其他方法进行mount和umount

mount.acfs -o all

umount -t acfs -a

2.5  查看丢对应acfs资源信息


[grid@orcldb1 ~]$ crsctl status  res -t|grep acfs
[grid@orcldb1 ~]$ crsctl status res  "ora.ogg.vologg.acfs" -p
NAME=ora.ogg.vologg.acfs
TYPE=ora.acfs.type
ACFS_INTERNAL_USE=
ACL=owner:root:rwx,pgrp:root:r-x,other::r--,user:grid:r-x
ACTIONS=
ACTION_SCRIPT=
ACTION_TIMEOUT=60
AGENT_FILENAME=%CRS_HOME%/bin/orarootagent%CRS_EXE_SUFFIX%
AUTO_START=always
AUX_VOLUMES=
CANONICAL_VOLUME_DEVICE=/dev/asm/vologg-198
CHECK_INTERVAL=15
CHECK_TIMEOUT=120
CLEAN_TIMEOUT=60
CSS_CRITICAL=no
DELETE_TIMEOUT=60
DESCRIPTION=CRS resource type for ASM Cluster File Systems
ENABLED=1
FS_DESCRIPTION=
FS_OPTIONS=
FS_TYPE=ACFS
GH_CREATED=0
IGNORE_TARGET_ON_FAILURE=yes
INSTANCE_FAILOVER=1
INTERMEDIATE_TIMEOUT=0
INTERNAL_MOUNTPOINT_PATH=/ogg
LOAD=1
LOGGING_LEVEL=1
MODIFY_TIMEOUT=60
MOUNTPOINT_PATH=/ogg
MOUNT_ACL=owner:root:rwx,pgrp:root:r-x,other::r-x
NLS_LANG=
OFFLINE_CHECK_INTERVAL=30
RESOURCE_GROUP=
RESTART_ATTEMPTS=5
RESTART_DELAY=0
SCRIPT_TIMEOUT=60
SERVER_CATEGORY=ora.hub.category
START_CONCURRENCY=0
START_DEPENDENCIES=hard(ora.OGG.VOLOGG.advm) pullup(ora.OGG.VOLOGG.advm,ora.asm)
START_TIMEOUT=500
STOP_CONCURRENCY=0
STOP_DEPENDENCIES=hard(intermediate:ora.OGG.VOLOGG.advm)
STOP_TIMEOUT=120
TARGET_DEFAULT=atleastone
TYPE_VERSION=3.3
UPTIME_THRESHOLD=1d
USER_WORKLOAD=no
USR_ORA_ENV=
VOLUME_DEVICE=/dev/asm/vologg-198
WORKLOAD_CPU=0
WORKLOAD_CPU_CAP=0
WORKLOAD_MEMORY_MAX=0
WORKLOAD_MEMORY_TARGET=0


[root@orcldb1 bin]# ./srvctl start filesystem -d /dev/asm/vologg-198
[root@orcldb1 bin]# df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/sda3            400G   83G  318G  21% /
devtmpfs             315G     0  315G   0% /dev
tmpfs                400G  2.9G  398G   1% /dev/shm
tmpfs                315G  1.1G  313G   1% /run
tmpfs                315G     0  315G   0% /sys/fs/cgroup
/dev/sda2            5.0G  163M  4.9G   4% /boot
/dev/sda1             80G   11M   80G   1% /boot/efi
/dev/sda4            200G   62G  139G  31% /home
/dev/sda5            200G  6.1G  194G   4% /var
tmpfs                 63G  8.0K   63G   1% /run/user/42
tmpfs                 63G     0   63G   0% /run/user/1007
tmpfs                 63G   32K   63G   1% /run/user/1000
tmpfs                 63G     0   63G   0% /run/user/0
/dev/asm/vologg-198  500G  1.1G  499G   1% /ogg
[root@orcldb1 bin]# ./srvctl stop  filesystem -d /dev/asm/vologg-198
任何有会话咋这个目录下此命令都会卡主。

2.6 ACFS在线扩容

SQL> ALTER DISKGROUP data ADD VOLUME volume1 SIZE 10G;
Diskgroup altered.

SQL> ALTER DISKGROUP data RESIZE VOLUME volume1 SIZE 15G;
Diskgroup altered.

SQL> ALTER DISKGROUP data DISABLE VOLUME volume1;
Diskgroup altered.

SQL> ALTER DISKGROUP data ENABLE VOLUME volume1;
Diskgroup altered.

SQL> ALTER DISKGROUP ALL DISABLE VOLUME ALL;
Diskgroup altered.

SQL> ALTER DISKGROUP data DROP VOLUME volume1;
Diskgroup altered.

2.6 ACFS删除 

Removing an Oracle ACFS File System and a Volume

To permanently remove a volume and Oracle ACFS file system, perform the following steps. These steps destroy the data in the file system.

  1. Deregister the file system with acfsutil registry -d.

    For example:

    $ /sbin/acfsutil registry -d /acfsmounts/acfs1
    acfsutil registry: successfully removed ACFS mount point
       /acfsmounts/acfs1 from Oracle Registry
    

    For information about running acfsutil registry, see "acfsutil registry".

  2. Dismount the file system.

    For example:

    # /bin/umount /acfsmounts/acfs1
    

    You must dismount the file system on all nodes of a cluster.

    Use umount on Linux systems or acfsdismount on Windows systems. For information about running umount or acfsdismount, see "umount" or "acfsdismount".

  3. Remove the file system with acfsutil rmfs.

    If you were not planning to remove the volume in a later step, this step is necessary to remove the file system. Otherwise, the file system is removed when the volume is deleted.

    For example:

    $ /sbin/acfsutil rmfs /dev/asm/volume1-123
    

    For information about running acfsutil rmfs, see "acfsutil rmfs".

  4. Optionally you can disable the volume with the ASMCMD voldisable command.

    For example:

    ASMCMD> voldisable -G data volume1
    

    For information about running voldisable, see Managing Oracle ADVM with ASMCMD .

  5. Delete the volume with the ASMCMD voldelete command.

    For example:

    ASMCMD> voldelete -G data volume1
    

    For information about running voldelete, see Managing Oracle ADVM with ASMCMD .


 

————————————————
版权声明:本文为CSDN博主「qxy0503」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/m15217321304/article/details/112236321

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值