亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

發布時間:2020-07-06 22:29:22 來源:網絡 閱讀:987 作者:jason_125 欄目:關系型數據庫

ACFS, oracle官方定義:

Oracle AutomaticStorage Management Cluster File System (Oracle ACFS) is a multi-platform,scalable file system, and storage management technology that extends OracleAutomatic Storage Management (Oracle ASM) functionality to support customerfiles maintained outside of Oracle Database. Oracle ACFS supports many databaseand application files, including executables,database trace files, databasealert logs, application reports, BFILEs, and configuration files. Othersupported files are video, audio, text, p_w_picpaths, engineering drawings, and othergeneral-purpose application file data.

下面來介紹下11G RAC環境下ACFS的使用,當前系統環境操作系統版本為OEL6.5,數據庫版本為ORACLE11204。

1.  查看ACFS相關的服務

查看acfs/advm驅動是否加載

[root@jxcw1 bin]#lsmod |grep oracle

[root@jxcw1 bin]#

[root@jxcw2 bin]#lsmod |grep oracle

[root@jxcw2 bin]#

查看集群資源

[root@jxcw1 ~]# su- grid -c crs_stat|grep acfs

[root@jxcw1 ~]#

[root@jxcw2 ~]# su- grid -c crs_stat|grep acfs

[root@jxcw2 ~]#

 

使用acfsload加載驅動

[root@jxcw1 bin]#./acfsload start -s

ACFS-9459:ADVM/ACFS is not supported on this OS version: '3.8.13-16.2.1.el6uek.x86_64'

[root@jxcw1 bin]#uname -a

Linux jxcw13.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64x86_64 GNU/Linux

[root@jxcw1 bin]#

從報錯信息中可以看出,OEL6.5操作系統11204數據庫并未被支持。升級數據庫版本,打補丁11204.7后驅動可以被加載,但不能被系統自動加載。處理如下:

[root@jxcw1 ~]# cat/etc/init.d/acfsload

#!/bin/sh

# chkconfig: 234530 21

# description: LoadOracle ASM volume driver on system startup 

ORACLE_HOME=/u01/app/11.2.0/grid

export ORACLE_HOME

$ORACLE_HOME/bin/acfsloadstart -s

[root@jxcw1 ~]# chkconfigadd acfsload

 

 

 

[root@jxcw1 ~]#chkconfig --list|grep acfsload

acfsload        0:off  1:off   2:on    3:on   4:on    5:on    6:off

[root@jxcw1 ~]#

[root@jxcw1 bin]#./acfsload start -s

[root@jxcw1 bin]#lsmod |grep oracle

oracleacfs            877320  0

oracleadvm            221760  0

oracleoks             276880  2 oracleacfs,oracleadvm

[root@jxcw2bin]#  lsmod |grep oracle

oracleacfs            877192  0

oracleadvm            221504  0

oracleoks             277008  2 oracleacfs,oracleadvm

[root@jxcw2 bin]#

添加資源ora.registry.acfs

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

[root@jxcw1 ~]# /u01/app/11.2.0/grid/bin/crsctladd resource ora.registry.acfs -attrACL=\'owner:root:rwx,pgrp:oinstall:r-x,other::r--\' -typeora.registry.acfs.type -f

[root@jxcw1 ~]#

查看是否添加成功

[root@jxcw1 ~]# su- grid -c crs_stat | grep acfs

NAME=ora.registry.acfs

TYPE=ora.registry.acfs.type

[root@jxcw1 ~]#

[root@jxcw2 ~]# su- grid -c crs_stat | grep acfs

NAME=ora.registry.acfs

TYPE=ora.registry.acfs.type

[root@jxcw2 ~]#

查看添加的資源狀態。

[grid@jxcw1 ~]$crsctl stat res -t

---------------------------------------------------------------------

NAME          TARGET  STATE        SERVER                   STATE_DETAILS      

Local Resources

---------------------------------------------------------------------

ora.ARCH.dg

               ONLINE ONLINE       jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.CRS.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.DATA.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.LISTENER.lsnr

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.asm

               ONLINE  ONLINE      jxcw1                   Started            

               ONLINE  ONLINE      jxcw2                   Started            

ora.gsd

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

ora.net1.network

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.ons

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.registry.acfs

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

Cluster Resources

---------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1       ONLINE  ONLINE       jxcw2                                        

ora.cvu

      1       ONLINE  ONLINE       jxcw2                                       

ora.jxcw.db

      1       ONLINE  ONLINE       jxcw1                    Open               

      2       ONLINE  ONLINE       jxcw2                    Open               

ora.jxcw1.vip

      1       ONLINE  ONLINE       jxcw1                                       

ora.jxcw2.vip

      1       ONLINE  ONLINE       jxcw2                                       

ora.oc4j

      1       ONLINE  ONLINE       jxcw2                                       

ora.scan1.vip

      1       ONLINE  ONLINE       jxcw2  

[grid@jxcw1 ~]$

 添加的ora.registry.acfs資源默認offline,需手工啟動。                    

[grid@jxcw1 ~]$crsctl start resource ora.registry.acfs -n jxcw1

CRS-2672:Attempting to start 'ora.registry.acfs' on 'jxcw1'

CRS-2676: Start of'ora.registry.acfs' on 'jxcw1' succeeded

[grid@jxcw1 ~]$crsctl start resource ora.registry.acfs -n jxcw2

CRS-2672:Attempting to start 'ora.registry.acfs' on 'jxcw2'

CRS-2676: Start of'ora.registry.acfs' on 'jxcw2' succeeded

啟動后查看狀態如下,已為online狀態。

[grid@jxcw1 ~]$crsctl stat res -t

---------------------------------------------------------------------

NAME           TARGET  STATE       SERVER                  STATE_DETAILS       

---------------------------------------------------------------------

Local Resources

ora.ARCH.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.CRS.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.DATA.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.LISTENER.lsnr

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.asm

               ONLINE  ONLINE      jxcw1                   Started            

               ONLINE  ONLINE      jxcw2                   Started            

ora.gsd

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

ora.net1.network

               ONLINE  ONLINE      jxcw1                                       

               ONLINE ONLINE       jxcw2                                       

ora.ons

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.registry.acfs

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

---------------------------------------------------------------------ClusterResources

---------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1       ONLINE  ONLINE       jxcw2                                       

ora.cvu

      1       ONLINE  ONLINE       jxcw2                                       

ora.jxcw.db

      1       ONLINE  ONLINE       jxcw1                    Open               

      2       ONLINE  ONLINE       jxcw2                    Open               

ora.jxcw1.vip

      1       ONLINE  ONLINE      jxcw1                                       

ora.jxcw2.vip

      1       ONLINE  ONLINE       jxcw2                                       

ora.oc4j

      1       ONLINE  ONLINE       jxcw2                                       

ora.scan1.vip

      1       ONLINE  ONLINE       jxcw2                                       

[grid@jxcw1 ~]$

2.  使用ASMCMD命令創建ACFS

(1)、使用volcreate命令創建vol01,大小為30G;

ASMCMD>volcreate -G data -s 30G testvol

(2)、使用volinfo查看vol01的相關信息

ASMCMD> volinfo-G data testvol

Diskgroup Name:DATA

 

         Volume Name: TESTVOL

         Volume Device: /dev/asm/testvol-347

         State: ENABLED

         Size (MB): 30720

         Resize Unit (MB): 32

         Redundancy: UNPROT

         Stripe Columns: 4

         Stripe Width (K): 128

         Usage:

         Mountpath:

 

ASMCMD>

(2)、使用操作系統命令查看設備名,這里的/dev/asm/ testvol-347相當于裸設備。

[grid@jxcw1 ~]$ cd/dev/asm/

[grid@jxcw1 asm]$ls -l

total 0

brwxrwx--- 1 rootasmadmin 251, 177665 Oct 28 13:20 testvol-347

[grid@jxcw1 asm]$

(3)、在v$asm_volume視圖中使用sql查看volume相關信息

[grid@jxcw1 asm]$sqlplus / as sysasm

 

SQL*Plus: Release11.2.0.4.0 Production on Fri Oct 28 13:22:33 2016

 

Copyright (c) 1982,2013, Oracle.  All rights reserved.

Connected to:

Oracle Database 11gEnterprise Edition Release 11.2.0.4.0 - 64bit Production

With the RealApplication Clusters and Automatic Storage Management options

 

SQL> selectvolume_name,volume_device,size_mb from v$asm_volume;

 

VOLUME_NAME          VOLUME_DEVICE                                      SIZE_MB

---------------------------------------------------------

TESTVOL              /dev/asm/testvol-347                                 30720

 

SQL>

(4)、格式化卷,創建文件系統

[root@jxcw1 ~]#mkfs.acfs /dev/asm/testvol-347

mkfs.acfs:version                   = 11.2.0.4.0

mkfs.acfs: on-diskversion           = 39.0

mkfs.acfs:volume                    =/dev/asm/testvol-347

mkfs.acfs: volumesize               = 32212254720

mkfs.acfs: Formatcomplete.

[root@jxcw1 ~]#

(5)、注冊ACFS文件系統,相當于定義掛載點,僅在節點1注冊一次即可

[root@jxcw1~]#acfsutil registry -a /dev/asm/testvol-347/u01/app/grid/acfsmounts/data_testvol/

acfsutil registry:mount point /u01/app/grid/acfsmounts/data_testvol successfully added to OracleRegistry

查看文件系統信息

[root@jxcw1 ~]#acfsutil info fs

/u01/app/grid/acfsmounts/data_testvol

    ACFS Version: 11.2.0.4.0

    flags:        MountPoint,Available

    mount time:   Fri Oct 28 13:37:27 2016

    volumes:      1

    total size:   32212254720

    total free:   32068386816

    primary volume: /dev/asm/testvol-347

        label:                

        flags:                 Primary,Available,ADVM

        on-disk version:       39.0

        allocation unit:       4096

        major, minor:          251, 177665

        size:                  32212254720

        free:                  32068386816

        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

[root@jxcw1 ~]#

(6)、注冊成功后自動掛載文件系統,兩節點查看如下:

[root@jxcw1 ~]# df-h

Filesystem                    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root  532G  34G  476G   7% /

tmpfs                          16G  255M  16G   2% /dev/shm

/dev/sda1                     477M   55M 397M  13% /boot

/dev/asm/testvol-347           30G 138M   30G   1% /u01/app/grid/acfsmounts/data_testvol

[root@jxcw1 ~]#

[root@jxcw2 ~]# df-h

Filesystem                    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root  533G  24G  487G   5% /

tmpfs                          16G  254M  16G   2% /dev/shm

/dev/sda1                     477M   55M 397M  13% /boot

/dev/asm/testvol-347           30G  138M  30G   1%/u01/app/grid/acfsmounts/data_testvol

[root@jxcw2 ~]#

圖形界面查看狀態如下

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

再次查看集群資源狀態

[grid@jxcw1 ~]$crsctl stat res -t

---------------------------------------------------------------------

NAME           TARGET  STATE       SERVER                  STATE_DETAILS      

---------------------------------------------------------------------

Local Resources

---------------------------------------------------------------------ora.ARCH.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.CRS.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.DATA.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.LISTENER.lsnr

               ONLINE ONLINE       jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.asm

               ONLINE  ONLINE      jxcw1                   Started            

               ONLINE  ONLINE      jxcw2                   Started            

ora.gsd

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

ora.net1.network

              ONLINE  ONLINE       jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.ons

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.registry.acfs

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

---------------------------------------------------------------------

Cluster Resources

---------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr

      1       ONLINE  ONLINE       jxcw2                                        

ora.cvu

      1       ONLINE  ONLINE       jxcw2                                       

ora.jxcw.db

      1       ONLINE  ONLINE       jxcw1                    Open               

      2       ONLINE  ONLINE       jxcw2                    Open               

ora.jxcw1.vip

      1       ONLINE  ONLINE       jxcw1                                       

ora.jxcw2.vip

      1       ONLINE  ONLINE       jxcw2                                       

ora.oc4j

      1       ONLINE  ONLINE       jxcw2                                       

ora.scan1.vip

      1       ONLINE  ONLINE       jxcw2                                       

[grid@jxcw1 ~]$

3.  asmca圖形界面創建

切換到grid用戶下,執行asmca啟動圖形界面進行配置

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

啟動圖形界面后,點擊asm instance可以看到advm driver狀態為loaded。若acfs與advm驅動未加載時,狀態為installed,volumes與asmcluster file systems標簽欄為灰色無法點擊。點擊volumes標簽,創建卷。

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

圖中為使用命令創建成功的卷。再次點擊create

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

指定卷名為jxcwvol,大小為25G,點擊OK。

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

創建成功,點擊ok退出,顯示如下:

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

點擊asm clusterfile systems標簽

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

點擊create,選擇剛才創建的卷,選擇database home file system選項,并指定圖中所示掛載點。選擇該選項該文件系統將作為集群資源被注冊在集群中,由集群進行管理。

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

點擊ok,創建ACFS文件系統。點擊ok執行的命令如下

Create ACFSCommand:

/sbin/mkfs -t acfs/dev/asm/jxcw-347

Following commandsshould be run as privileged user :

/u01/app/11.2.0/grid/bin/srvctladd filesystem -d /dev/asm/jxcw-347 -g 'DATA' -v jxcwvol -m/u01/app/grid/acfsmounts/data_jxcwvol -u grid

/u01/app/11.2.0/grid/bin/srvctlstart filesystem -d /dev/asm/jxcw-347

chown grid:oinstall/u01/app/grid/acfsmounts/ data_jxcwvol

chmod 775/u01/app/grid/acfsmounts/data_jxcwvol

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

根據提示使用root賬戶在ASMCA圖形界面啟動的節點上執行途中所示命令,如下:

[root@jxcw1 ~]#/u01/app/grid/cfgtoollogs/asmca/scripts/acfs_script.sh

ACFS file system isrunning on jxcw1,jxcw2

[root@jxcw1 ~]#

OEL6.5_X86平臺部署oracle11gR2RAC配置ACFS

備注:途中所執行腳本內容如下:

[root@jxcw1 ~]# vi/u01/app/grid/cfgtoollogs/asmca/scripts/acfs_script.sh

 

#!/bin/sh

 

/u01/app/11.2.0/grid/bin/srvctlstop filesystem -d /dev/asm/jxcwvol-347

/u01/app/11.2.0/grid/bin/srvctlremove filesystem -d /dev/asm/jxcwvol-347

/u01/app/11.2.0/grid/bin/srvctladd filesystem -d /dev/asm/jxcwvol-347 -g 'DATA' -v JXCWVOL -m/u01/app/grid/acfsmounts/data_jxcwvol -u grid

if [ $? ="0" -o $? = "2" ]; then

   /u01/app/11.2.0/grid/bin/srvctl startfilesystem -d /dev/asm/jxcwvol-347

   if [ $? = "0" ]; then

      chown grid:oinstall/u01/app/grid/acfsmounts/data_jxcwvol

      chmod 775/u01/app/grid/acfsmounts/data_jxcwvol

      /u01/app/11.2.0/grid/bin/srvctl statusfilesystem -d /dev/asm/jxcwvol-347

      exit 0

   fi

   /u01/app/11.2.0/grid/bin/srvctl statusfilesystem -d /dev/asm/jxcwvol-347

fi

執行成功在兩節點分別查看,新加ACFS文件系統已被掛載。

[root@jxcw1 ~]# df-h

Filesystem                    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root  532G  34G  476G   7% /

tmpfs                          16G  258M  16G   2% /dev/shm

/dev/sda1                     477M   55M 397M  13% /boot

/dev/asm/testvol-347           30G 138M   30G   1% /u01/app/grid/acfsmounts/data_testvol

/dev/asm/jxcwvol-347           25G 128M   25G   1% /u01/app/grid/acfsmounts/data_jxcwvol

[root@jxcw1 ~]#

[root@jxcw2 ~]# df-h

Filesystem                    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root  533G  24G  487G   5% /

tmpfs                          16G  255M  16G   2% /dev/shm

/dev/sda1                     477M   55M 397M  13% /boot

/dev/asm/testvol-347           30G 138M   30G   1% /u01/app/grid/acfsmounts/data_testvol

/dev/asm/jxcwvol-347           25G 128M   25G   1% /u01/app/grid/acfsmounts/data_jxcwvol

[root@jxcw2 ~]#

再次看集群資源狀態,新創建的ACFS文件系統被作為資源加入集群。

[grid@jxcw1 ~]$crsctl stat res -t

---------------------------------------------------------------------

NAME           TARGET  STATE       SERVER                  STATE_DETAILS      

---------------------------------------------------------------------

Local Resources

---------------------------------------------------------------------

ora.ARCH.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.CRS.dg

               ONLINE ONLINE       jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.DATA.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.LISTENER.lsnr

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.asm

               ONLINE  ONLINE      jxcw1                   Started            

               ONLINE  ONLINE      jxcw2                   Started            

ora.data.jxcwvol.acfs

               ONLINE  ONLINE      jxcw1                    mountedon /u01/app

                                                            /grid/acfsmounts/dat

                                                            a_jxcwvol          

               ONLINE  ONLINE      jxcw2                    mountedon /u01/app

                                                            /grid/acfsmounts/dat

                                                            a_jxcwvol          

ora.gsd

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

ora.net1.network

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.ons

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.registry.acfs

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

---------------------------------------------------------------------ClusterResources

---------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr

      1       ONLINE  ONLINE       jxcw2                                       

ora.cvu

      1       ONLINE  ONLINE       jxcw2                                       

ora.jxcw.db

      1       ONLINE  ONLINE       jxcw1                    Open               

      2       ONLINE  ONLINE       jxcw2                    Open               

ora.jxcw1.vip

      1       ONLINE  ONLINE       jxcw1                                       

ora.jxcw2.vip

      1       ONLINE  ONLINE       jxcw2                                       

ora.oc4j

      1       ONLINE  ONLINE       jxcw2                                       

ora.scan1.vip

      1       ONLINE  ONLINE       jxcw2                                       

[grid@jxcw1 ~]$

再次查看注冊信息如下:

[root@jxcw1 ~]#acfsutil info fs

/u01/app/grid/acfsmounts/data_testvol

    ACFS Version: 11.2.0.4.0

    flags:        MountPoint,Available

    mount time:   Fri Oct 28 13:37:27 2016

    volumes:      1

    total size:   32212254720

    total free:   32068386816

    primary volume: /dev/asm/testvol-347

        label:                

        flags:                 Primary,Available,ADVM

        on-disk version:       39.0

        allocation unit:       4096

        major, minor:          251, 177665

        size:                  32212254720

        free:                  32068386816

        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

 

/u01/app/grid/acfsmounts/data_jxcwvol

    ACFS Version: 11.2.0.4.0

    flags:        MountPoint,Available

    mount time:   Fri Oct 28 13:45:44 2016

    volumes:      1

    total size:   26843545600

    total free:   26710327296

    primary volume: /dev/asm/jxcwvol-347

        label:                

        flags:                 Primary,Available,ADVM

        on-disk version:       39.0

        allocation unit:       4096

        major, minor:          251, 177666

        size:                  26843545600

        free:                  26710327296

        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

[root@jxcw1 ~]#

4.  刪除ACFS文件系統

(1)、當前狀態查看

[root@jxcw1 ~]# df-h

Filesystem                    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root  532G  34G  476G   7% /

tmpfs                          16G 256M   16G   2% /dev/shm

/dev/sda1                     477M   55M 397M  13% /boot

/dev/asm/jxcwvol-347           30G 138M   30G   1% /u01/app/grid/acfsmounts/data_jxcwvol

/dev/asm/testvol-347           15G 107M   15G   1% /u01/app/grid/acfsmounts/data_testvol

[root@jxcw1 ~]#

 

[root@jxcw2 ~]# df-h

Filesystem                    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root  533G  24G  487G   5% /

tmpfs                          16G  254M  16G   2% /dev/shm

/dev/sda1                     477M   55M 397M  13% /boot

/dev/asm/jxcwvol-347           30G 138M   30G   1% /u01/app/grid/acfsmounts/data_jxcwvol

/dev/asm/testvol-347           15G 107M   15G   1% /u01/app/grid/acfsmounts/data_testvol

[root@jxcw2 ~]#

 

[root@jxcw1 ~]# su -grid

[grid@jxcw1 ~]$crsctl stat res -t

--------------------------------------------------------------------------------

NAME           TARGET  STATE       SERVER                  STATE_DETAILS      

--------------------------------------------------------------------------------

Local Resources

--------------------------------------------------------------------------------

ora.ARCH.dg

               ONLINE  ONLINE      jxcw1                                        

               ONLINE  ONLINE      jxcw2                                       

ora.CRS.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                        

ora.DATA.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.LISTENER.lsnr

               ONLINE  ONLINE      jxcw1                                        

               ONLINE  ONLINE      jxcw2                                       

ora.asm

               ONLINE  ONLINE      jxcw1                   Started            

               ONLINE  ONLINE      jxcw2                    Started            

ora.data.jxcwvol.acfs

               ONLINE  ONLINE      jxcw1                    mountedon /u01/app

                                                            /grid/acfsmounts/dat

                                                             a_jxcwvol          

               ONLINE  ONLINE      jxcw2                    mountedon /u01/app

                                                            /grid/acfsmounts/dat

                                                             a_jxcwvol          

ora.gsd

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

ora.net1.network

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.ons

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.registry.acfs

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1       ONLINE  ONLINE       jxcw1                                        

ora.cvu

      1       ONLINE  ONLINE       jxcw2                                       

ora.jxcw.db

      1       ONLINE  ONLINE       jxcw1                    Open               

      2       ONLINE  ONLINE       jxcw2                    Open               

ora.jxcw1.vip

      1       ONLINE  ONLINE       jxcw1                                       

ora.jxcw2.vip

      1       ONLINE  ONLINE       jxcw2                                       

ora.oc4j

      1       ONLINE  ONLINE       jxcw2                                       

ora.scan1.vip

      1       ONLINE  ONLINE       jxcw1                                       

[grid@jxcw1 ~]$

(2)、卸載磁盤

節點1

[root@jxcw1 ~]#umount /dev/asm/testvol-347

[root@jxcw1 ~]#umount /dev/asm/jxcwvol-347

[root@jxcw1 ~]# df-h

Filesystem                    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root  532G  34G  476G   7% /

tmpfs                          16G  257M  16G   2% /dev/shm

/dev/sda1                     477M   55M  397M  13% /boot

[root@jxcw1 ~]#

節點2

[root@jxcw2 ~]#umount /dev/asm/testvol-347

[root@jxcw2 ~]#umount /dev/asm/jxcwvol-347

[root@jxcw2 ~]# df-h

Filesystem                    Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root  533G  24G  487G   5% /

tmpfs                          16G  254M  16G   2% /dev/shm

/dev/sda1                     477M   55M 397M  13% /boot

[root@jxcw2 ~]#

再次查看資源狀態

[grid@jxcw1 ~]$crsctl stat res -t

-------------------------------------------------------------------------------

NAME           TARGET  STATE       SERVER                  STATE_DETAILS      

-------------------------------------------------------------------------------

Local Resources

-------------------------------------------------------------------------------

ora.ARCH.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.CRS.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.DATA.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.LISTENER.lsnr

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.asm

               ONLINE ONLINE       jxcw1                    Started            

               ONLINE  ONLINE      jxcw2                   Started            

ora.data.jxcwvol.acfs

               OFFLINE OFFLINE      jxcw1                    admin unmounted /u0

                                                            1/app/grid/acfsmount

                                                            s/data_jxcwvol     

               OFFLINE OFFLINE      jxcw2                    admin unmounted /u0

                                                             1/app/grid/acfsmount

                                                            s/data_jxcwvol     

ora.gsd

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

ora.net1.network

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.ons

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.registry.acfs

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

-------------------------------------------------------------------------------

Cluster Resources

-------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1       ONLINE  ONLINE       jxcw2                                       

ora.cvu

      1       ONLINE  ONLINE       jxcw1                                       

ora.jxcw.db

      1       ONLINE  ONLINE       jxcw1                    Open               

      2       ONLINE  ONLINE       jxcw2                    Open               

ora.jxcw1.vip

      1       ONLINE  ONLINE       jxcw1                                        

ora.jxcw2.vip

      1       ONLINE  ONLINE       jxcw2                                       

ora.oc4j

      1       ONLINE  ONLINE       jxcw1                                       

ora.scan1.vip

      1       ONLINE  ONLINE       jxcw2                                        

[grid@jxcw1 ~]$

可以看出圖形界面創建的jxcwvol卷,卸載文件系統后,ora.data.jxcwvol.acfs

資源自動offline,卷為umounted狀態;testvol關聯與ora.registry.acfs資源,該資源狀態正常。

(3)、停止ora.registry.acfs資源

[grid@jxcw1 ~]$crsctl stop resource ora.registry.acfs -n jxcw1

CRS-2673: Attemptingto stop 'ora.registry.acfs' on 'jxcw1'

CRS-2677: Stop of'ora.registry.acfs' on 'jxcw1' succeeded

[grid@jxcw1 ~]$crsctl stop resource ora.registry.acfs -n jxcw2

CRS-2673: Attemptingto stop 'ora.registry.acfs' on 'jxcw2'

CRS-2677: Stop of'ora.registry.acfs' on 'jxcw2' succeeded

[grid@jxcw1 ~]$crsctl stat res -t

-------------------------------------------------------------------------------

NAME           TARGET  STATE       SERVER                  STATE_DETAILS      

-------------------------------------------------------------------------------

Local Resources

-------------------------------------------------------------------------------

ora.ARCH.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.CRS.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.DATA.dg

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.LISTENER.lsnr

               ONLINE  ONLINE      jxcw1                                        

               ONLINE  ONLINE      jxcw2                                       

ora.asm

               ONLINE  ONLINE      jxcw1                   Started            

               ONLINE  ONLINE      jxcw2                    Started            

ora.data.jxcwvol.acfs

               OFFLINE OFFLINE      jxcw1                    admin unmounted /u0

                                                            1/app/grid/acfsmount

                                                             s/data_jxcwvol     

               OFFLINE OFFLINE      jxcw2                    admin unmounted /u0

                                                            1/app/grid/acfsmount

                                                            s/data_jxcwvol     

ora.gsd

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

ora.net1.network

               ONLINE  ONLINE      jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.ons

               ONLINE  ONLINE      jxcw1                                        

               ONLINE  ONLINE      jxcw2                                       

ora.registry.acfs

               OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                        

-------------------------------------------------------------------------------

Cluster Resources

-------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1       ONLINE  ONLINE       jxcw2                                       

ora.cvu

      1       ONLINE  ONLINE       jxcw1                                       

ora.jxcw.db

      1       ONLINE  ONLINE       jxcw1                    Open               

      2       ONLINE  ONLINE       jxcw2                    Open               

ora.jxcw1.vip

      1       ONLINE  ONLINE       jxcw1                                       

ora.jxcw2.vip

      1       ONLINE  ONLINE       jxcw2                                       

ora.oc4j

      1       ONLINE  ONLINE       jxcw1                                       

ora.scan1.vip

      1       ONLINE  ONLINE       jxcw2                                       

[grid@jxcw1 ~]$

(4)、刪除注冊信息

僅在一個節點執行

[root@jxcw1 ~]#acfsutil registry -d /u01/app/grid/acfsmounts/data_testvol/

acfsutil registry: successfully removed ACFS mount point/u01/app/grid/acfsmounts/data_testvol from Oracle Registry

[root@jxcw1 ~]#

上一步中已ora.data.jxcwvol.acfs資源offline,移除注冊信息報錯正常。

[root@jxcw1 ~]#acfsutil registry -d /u01/app/grid/acfsmounts/data_jxcwvol/

acfsutil registry:ACFS-03143: The specified mount point does not exist and therefore cannot bedeleted.

[root@jxcw1 ~]#

(5)、刪除ACFS文件系統

僅在一個節點執行刪除

[root@jxcw1 ~]#acfsutil rmfs /dev/asm/testvol-347

[root@jxcw1 ~]#acfsutil rmfs /dev/asm/jxcwvol-347

(6)、禁用volume

需要在兩節點執行

節點1禁止

[grid@jxcw1 ~]$asmcmd

ASMCMD>voldisable -G data testvol

ASMCMD>voldisable -G data jxcwvol

ASMCMD>

節點2禁止

[grid@jxcw2 ~]$asmcmd

ASMCMD>voldisable -G data testvol

ASMCMD> voldisable-G data jxcwvol

ASMCMD> exit

[grid@jxcw2 ~]$

(7)、刪除卷

僅在一個節點執行。

[grid@jxcw1 ~]$asmcmd

ASMCMD> ls           

ASMCMD> voldelete-G data testvol

ASMCMD> voldelete-G data jxcwvol

(8)、刪除資源對象

[root@jxcw1~]#/u01/app/11.2.0/grid/bin/srvctl remove filesystem-d /dev/asm/jxcwvol-347

[grid@jxcw1 ~]$ crsctl stat res -t

---------------------------------------------------------------------

NAME          TARGET  STATE        SERVER                   STATE_DETAILS      

---------------------------------------------------------------------

Local Resources

ora.ARCH.dg

              ONLINE  ONLINE       jxcw1                                       

              ONLINE  ONLINE       jxcw2                                       

ora.CRS.dg

               ONLINE  ONLINE      jxcw1                                       

              ONLINE  ONLINE       jxcw2                                       

ora.DATA.dg

              ONLINE  ONLINE       jxcw1                                       

               ONLINE  ONLINE      jxcw2                                       

ora.LISTENER.lsnr

              ONLINE  ONLINE       jxcw1                                       

              ONLINE  ONLINE       jxcw2                                       

ora.asm

              ONLINE  ONLINE       jxcw1                    Started            

              ONLINE  ONLINE       jxcw2                    Started            

ora.gsd

              OFFLINE OFFLINE      jxcw1                                       

               OFFLINE OFFLINE      jxcw2                                       

ora.net1.network

              ONLINE  ONLINE       jxcw1                                       

              ONLINE  ONLINE       jxcw2                                        

ora.ons

              ONLINE  ONLINE       jxcw1                                       

              ONLINE  ONLINE       jxcw2                                       

ora.registry.acfs

              ONLINE  ONLINE       jxcw1                                        

              ONLINE  ONLINE       jxcw2                                       

---------------------------------------------------------------------ClusterResources

---------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1        ONLINE ONLINE       jxcw2                                       

ora.cvu

      1        ONLINE ONLINE       jxcw2                                       

ora.jxcw.db

      1        ONLINE ONLINE       jxcw1                    Open               

      2        ONLINE ONLINE       jxcw2                    Open               

ora.jxcw1.vip

      1        ONLINE ONLINE       jxcw1                                       

ora.jxcw2.vip

      1        ONLINE ONLINE       jxcw2                                       

ora.oc4j

      1        ONLINE ONLINE       jxcw2                                       

ora.scan1.vip

      1        ONLINE ONLINE       jxcw2                                       

[grid@jxcw1 ~]$


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

苗栗市| 枣阳市| 林口县| 遂平县| 盐津县| 江西省| 古田县| 宝山区| 天津市| 雷波县| 普定县| 威海市| 包头市| 崇信县| 安化县| 静乐县| 阳江市| 漠河县| 衡阳县| 枣强县| 岳阳市| 玛沁县| 静安区| 五莲县| 安顺市| 岐山县| 静宁县| 循化| 黔西县| 宜兴市| 都昌县| 汶川县| 宜兰县| 扎囊县| 甘肃省| 台湾省| 叶城县| 普定县| 梁平县| 许昌县| 潜山县|