点击上方“IT那活儿”,关注后了解更多内容,不管IT什么活儿,干就完了!!!
1
2
ASMFD基本操作
$su root
#export ORACLE_HOME=/oracle/app/19.0.0/grid/
#export ORACLE_BASE=/tmp
#/oracle/app/19.0.0/grid/bin/asmcmd afd_label DATA01 /dev/sdc --init
#/oracle/app/19.0.0/grid/bin/asmcmd afd_label DATA02 /dev/sdd --init
#/oracle/app/19.0.0/grid/bin/asmcmd afd_label DATA03 /dev/sde --init
#/oracle/app/19.0.0/grid/bin/asmcmd afd_lslbl /dev/sdc
#/oracle/app/19.0.0/grid/bin/asmcmd afd_lslbl /dev/sdd
#/oracle/app/19.0.0/grid/bin/asmcmd afd_lslbl /dev/sde
#ls -ltr /dev/oracleafd/disks
#unset ORACLE_BASE
#su - grid
$asmcmd dsget
$asmcmd dsset /dev/mapper,AFD:*
$asmcmd dsget
$su - grid
$asmcmd afd_state
$su -
#export ORACLE_BASE=/oracle/app/grid
#export ORACLE_HOME=/oracle/app/19.0.0/grid
#/oracle/app/19.0.0/grid/bin/crsctl stop cluster -all
[root@rac19c1 ~]# /oracle/app/19.0.0/grid/bin/crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on rac19c1
CRS-2673: Attempting to stop ora.crsd on rac19c1
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on server rac19c1
CRS-2673: Attempting to stop ora.qosmserver on rac19c1
CRS-2673: Attempting to stop ora.chad on rac19c1
CRS-2677: Stop of ora.qosmserver on rac19c1 succeeded
CRS-2677: Stop of ora.chad on rac19c1 succeeded
CRS-2673: Attempting to stop ora.rac19c.db on rac19c1
CRS-2677: Stop of ora.rac19c.db on rac19c1 succeeded
CRS-2673: Attempting to stop ora.LISTENER.lsnr on rac19c1
CRS-2673: Attempting to stop ora.LISTENER_DG.lsnr on rac19c1
CRS-2673: Attempting to stop ora.LISTENER_SCAN1.lsnr on rac19c1
CRS-2673: Attempting to stop ora.cvu on rac19c1
CRS-2673: Attempting to stop ora.rac19c1.vip on rac19c1
CRS-2673: Attempting to stop ora.rac19c1_2.vip on rac19c1
CRS-2677: Stop of ora.rac19c1_2.vip on rac19c1 succeeded
CRS-2677: Stop of ora.LISTENER.lsnr on rac19c1 succeeded
CRS-2677: Stop of ora.rac19c1.vip on rac19c1 succeeded
CRS-2673: Attempting to stop ora.rac19c2.vip on rac19c1
CRS-2677: Stop of ora.LISTENER_SCAN1.lsnr on rac19c1 succeeded
CRS-2673: Attempting to stop ora.scan1.vip on rac19c1
… …
CRS-2677: Stop of ora.cssd on rac19c1 succeeded
CRS-2673: Attempting to stop ora.gipcd on rac19c1
CRS-2673: Attempting to stop ora.gpnpd on rac19c1
CRS-2677: Stop of ora.gipcd on rac19c1 succeeded
CRS-2677: Stop of ora.gpnpd on rac19c1 succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on rac19c1 has completed
CRS-4133: Oracle High Availability Services has been stopped.
# /oracle/app/19.0.0/grid/bin/asmcmd afd_configure
#/oracle/app/19.0.0/grid/bin/asmcmd afd_state
#/oracle/app/19.0.0/grid/bin/asmcmd afd_label ocrdata01 /dev/sdf --migrate
#/oracle/app/19.0.0/grid/bin/asmcmd afd_label ocrdata02 /dev/sdg --migrate
#/oracle/app/19.0.0/grid/bin/asmcmd afd_label ocrdata03 /dev/sdh --migrate
#/oracle/app/19.0.0/grid/bin/asmcmd afd_lsdsk
# /oracle/app/19.0.0/grid/bin/asmcmd afd_refresh
# /oracle/app/19.0.0/grid/bin/asmcmd afd_lsdsk
#/oracle/app/19.0.0/grid/bin/crsctl start cluster -all
#su - grid
$asmcmd dsget
$su - grid
$ asmcmd afd_dsset /dev/sd*
$ asmcmd afd_dsget
$asmcmd afd_lsdsk
su -
#/oracle/app/19.0.0/grid/bin/asmcmd afd_label DATA04 /dev/sde
#/oracle/app/19.0.0/grid/bin/asmcmd afd_lsdsk
#/oracle/app/19.0.0/grid/bin/asmcmd afd_unlabel DATA04
#/oracle/app/19.0.0/grid/bin/asmcmd afd_lsdsk
END
文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。
转载请注明本文地址:https://www.ucloud.cn/yun/129529.html
摘要:一简介是由开发的一套开源的软件工具,目标是提供一个通用和稳定的软件库来高效安全地管理一个节点上的虚拟机,并支持远程操作。用户只关心高层的功能,而的实现细节,对于最终用户应该是透明的。本机之间的通信在初始化的过程中,所有的驱动被枚举和注册。 一、Libvirt简介 Libvirt是由Redhat开发的一套开源的软件工具,目标是提供一个通用和稳定的软件库来高效、安全地管理一个节点上的虚拟机...
阅读 1346·2023-01-11 13:20
阅读 1684·2023-01-11 13:20
阅读 1132·2023-01-11 13:20
阅读 1858·2023-01-11 13:20
阅读 4100·2023-01-11 13:20
阅读 2704·2023-01-11 13:20
阅读 1385·2023-01-11 13:20
阅读 3597·2023-01-11 13:20