Go to main content

Oracle® SuperCluster M7 系列管理指南

退出打印视图

更新时间: 2015 年 12 月
 
 

更改 CPU/内存分配(插槽粒度)

在每个计算节点上执行此过程,以在插槽粒度级别更改该节点的 CPU 和内存资源分配。


注 -  要确定您是否可以执行此过程,请参见Supported Domain Configurations

注 -  示例基于 SuperCluster M6-32,不过,相同概念适用于 SuperCluster M7。

该工具进行以下更改:

  • 自动检测根域。

  • 计算所有域的最小和最大资源量,使您仅能够选择有效的数量。

  • 根据您的选择修改域资源。

  • 自动按照与 CPU 资源相同的比例分配内存容量。

  • (如果需要)停止非主域。

  • (如果需要)重新引导具有新资源的主域。

  • (如果需要)初启具有新资源的非主域。

在此示例中,从 primary 域中删除了一个插槽和 1 TB 的内存并将其分配给 ssccn3-dom1

下表显示了分配规划(请参见Plan CPU and Memory Allocations)。

域类型
之前的插槽
插槽
之后
之前的内存 (GB)
之后的内存 (GB)
primary
专用
2
1
2048
1024
ssccn3-dom1
专用
2
3
2048
3072
ssccn3-dom2
n/a
n/a
n/a
n/a
ssccn3-dom3
n/a
n/a
n/a
n/a
未分配的资源
45
45
4048
4048
总资源
49
39
4144
4144
  1. 以超级用户身份登录到计算节点的控制域。
  2. 确保应用程序已关闭并且没有任何生产活动。
  3. 使用 ldm bind 命令激活任何非活动域。

    如果存在任何非活动域,则该工具将无法继续运行。

  4. 运行 osc-setcoremem 以重新配置资源。

    出现提示时进行响应。按 Enter 键以选择默认值。

    # /opt/oracle.supercluster/bin/osc-setcoremem
     
                                  osc-setcoremem
                        v2.0  built on Aug 27 2015 23:09:35
     
     
     Current Configuration: SuperCluster Fully-Populated M6-32 Base
     
     +------------------------------+-------+--------+-----------+--- MINIMUM ----+
     | DOMAIN                           | CORES | MEM GB |   TYPE    | CORES | MEM GB |
     +------------------------------+-------+--------+-----------+-------+--------+
     | primary                          |    24 |   2048 | Dedicated |     2 |     32 |
     | ssccn3-dom1                      |    24 |   2048 | Dedicated |     2 |     32 |
     | ssccn3-dom2                      |     1 |     16 |   Root    |     1 |     16 |
     | ssccn3-dom3                      |     2 |     32 |   Root    |     2 |     32 |
     +------------------------------+-------+--------+-----------+-------+--------+
     | unallocated or parked            |    45 |   4048 |    --     |    -- |   --   |
     +------------------------------+-------+--------+-----------+-------+--------+
     
     [Note] Following domains will be skipped in this session.
     
     Root Domains
     ------------
     ssccn3-dom2
     ssccn3-dom3
     
     
     CPU allocation preference:
     
            1. Socket level
            2. Core level
     
     In case of Socket level granularity, proportional memory capacity is
      automatically selected for you.
     
     Choose Socket or Core level [S or C] s
     
     
     Step 1 of 1: Socket Count
     
     primary      : specify socket count [min: 1, max: 3. default: 1] : 1
                    you chose [1] socket for primary domain
     
     ssccn3-dom1  : specify socket count [min: 1, max: 3. default: 1] : 3
                    you chose [3] sockets for ssccn3-dom1 domain
     
     
     Configuration In Progress After Socket Count Selection:
     
     +----------------------------------+----------+----------+-----------+
     | DOMAIN                           |  SOCKETS |   MEM GB |   TYPE    |
     +----------------------------------+----------+----------+-----------+
     | primary                          |     1    |     1024 | Dedicated |
     | ssccn3-dom1                      |     3    |     3072 | Dedicated |
     | *ssccn3-dom2                     |   0.083  |       16 |   Root    |
     | *ssccn3-dom3                     |   0.167  |       32 |   Root    |
     +----------------------------------+----------+----------+-----------+
     | unallocated or parked            |   3.750  |     4048 |    --     |
     +----------------------------------+----------+----------+-----------+
     
     
     Following domains will be stopped and restarted:
     
            ssccn3-dom1
     
     This configuration requires rebooting the control domain.
     Do you want to proceed? Y/N : Y 
     
     +- IMPORTANT NOTE: -+
     |  After the reboot, osc-setcoremem attempts to complete CPU, memory re-configuration. |
     |  Please check syslog and the state of all domains before using the system.           |
     |  eg.,  dmesg | grep osc-setcoremem ; ldm list | grep -v active ; date |
     +- -+
     
     All activity is being recorded in log file:
            /opt/oracle.supercluster/osc-setcoremem/log/osc-setcoremem_activity_08-28-2015_15:31:27.log
     
     Please wait while osc-setcoremem is setting up the new CPU, memory configuration.
     It may take a while. Be patient and do not interrupt.
     
     0%    10    20    30    40    50    60    70    80    90   100%
     |-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|
     
     [Info] Domain ssccn3-dom1 is taking too long to stop. Waiting ..
     [Info] Domain ssccn3-dom1 is taking too long to stop. Still waiting for the domain to stop ..
     *=====*=====*=====*=====*=====*=====*=====*=====*=====*=====*
     
    Broadcast Message from root (pts/1) on etc5mdbadm0301 Fri Aug 28 15:36:45...
    THE SYSTEM etc5mdbadm0301 IS BEING SHUT DOWN NOW ! ! !
    Log off now or risk your files being damaged
     
                    Task complete with no errors.
     
    #
    
  5. 检查系统日志和所有逻辑域的状态,确保它们处于活动状态,然后再继续常规活动。

    示例:

    # dmesg | grep osc-setcoremem
    Aug 28 15:43:46 etc5mdbadm0301 root[2074]: [ID 702911 user.alert] osc-setcoremem: core, memory re-configuration complete. system can be used for regular work.
    
  6. 验证新资源分配。

    可以通过多种方式验证资源分配并检查可能的 osc-setcoremem 错误:

  7. 如果需要更改其他计算节点上的资源分配,则重复此过程。

相关信息