Go to main content

Oracle® SuperCluster M7 系列管理指南

退出打印视图

更新时间: 2015 年 12 月
 
 

关闭或重新引导存储服务器

对存储服务器执行维护时,可能需要关闭电源或重新引导单元。如果要在一个或多个数据库运行时关闭存储服务器,请确认使存储服务器脱机不会影响 Oracle ASM 磁盘组和数据库的可用性。在不影响数据库可用性的情况下使存储服务器脱机的功能取决于两项:

  • 在受影响的磁盘组上使用的 Oracle ASM 冗余级别

  • 具有要脱机的存储服务器上数据的镜像副本的其他存储服务器中磁盘的当前状态

  1. 检查是否存在其他脱机磁盘。

    CellCLI> LIST GRIDDISK ATTRIBUTES name WHERE asmdeactivationoutcome != 'Yes'

    如果返回了任何网格磁盘,则使存储服务器脱机将不安全,因为这将不能维持适当的 Oracle ASM 磁盘组冗余。当一个或多个网格磁盘处于此状态时,使存储服务器脱机将导致 Oracle ASM 卸载受影响的磁盘组,从而导致数据库突然关闭。

  2. 当存储服务器可以安全脱机时,禁用所有网格磁盘。

    CellCLI> ALTER GRIDDISK ALL INACTIVE

    在所有磁盘都处于非活动状态并脱机后,上述命令即完成。

  3. 确认所有网格磁盘都处于非活动状态,以便安全关闭存储服务器。

    LIST GRIDDISK WHERE STATUS != 'inactive'

    如果所有网格磁盘都处于非活动状态,则您可以在不影响数据库可用性的情况下关闭存储服务器。

  4. 关闭单元。
  5. 执行维护后,启动单元。

    单元服务将自动启动。

  6. 使所有网格磁盘联机。

    CellCLI> ALTER GRIDDISK ALL ACTIVE

    当网格磁盘变为活动状态时,Oracle ASM 将自动同步网格磁盘以将它们带回磁盘组。

  7. 检验是否已使所有网格磁盘成功联机。

    CellCLI> LIST GRIDDISK ATTRIBUTES name, asmmodestatus

    请等待,直到所有网格磁盘的 asmmodestatus 变为 ONLINEUNUSED。例如:

    DATA_CD_00_dm01cel01           ONLINE
    DATA_CD_01_dm01cel01           SYNCING
    DATA_CD_02_dm01cel01           OFFLINE
    DATA_CD_02_dm02cel01           OFFLINE
    DATA_CD_02_dm03cel01           OFFLINE
    DATA_CD_02_dm04cel01           OFFLINE
    DATA_CD_02_dm05cel01           OFFLINE
    DATA_CD_02_dm06cel01           OFFLINE
    DATA_CD_02_dm07cel01           OFFLINE
    DATA_CD_02_dm08cel01           OFFLINE
    DATA_CD_02_dm09cel01           OFFLINE
    DATA_CD_02_dm10cel01           OFFLINE
    DATA_CD_02_dm11cel01           OFFLINE
    

    仅当所有网格磁盘都显示 asmmodestatus=ONLINEasmmodestatus=UNUSED 时,Oracle ASM 同步才完成。在使其他存储服务器脱机之前,必须在重新启动的存储服务器上完成 Oracle ASM 同步。如果同步未完成,在其他存储服务器上执行的检查将失败。例如:

    CellCLI> list griddisk attributes name where asmdeactivationoutcome != 'Yes'
     DATA_CD_00_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_01_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_02_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_03_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_04_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_05_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_06_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_07_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_08_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_09_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_10_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    DATA_CD_11_dm01cel02    "Cannot de-activate due to other offline disks in the diskgroup"
    

相关信息