Top Banner
rx8640 分分分分
47

rx8640 Npar techncial.ppt

Nov 28, 2015

Download

Documents

Mq Sfs
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: rx8640 Npar techncial.ppt

rx8640 分区管理

Page 2: rx8640 Npar techncial.ppt

内容目录

一、 nPartition 入门二、使用管理界面和工具三、引导和重置 nPartition

四、创建和配置 nPartition

五、 nPartition 状态和硬件状态

Page 3: rx8640 Npar techncial.ppt

Npar 分区图示

Page 4: rx8640 Npar techncial.ppt

nPartition 简介

• 使用基于 cell(cell) 的 HP 服务器,可将单个服务器组合系统配 置成一个大型系统,或通过配置 nPartition 将其配置成多个较

小的系统。

• 每个 nPartition 各定义了服务器硬件资源的一个子集,将该子集用作独立的系统环境。 nPartition 包括一个或多个分配给它的cell (具有处理器和内存),以及与这些 cell 连接的 I/O 机箱。

• nPartition 中的所有处理器、内存和 I/O 都由 nPartition 中运 行的软件独占使用。这样,每个 nPartition 都有自己的系统引

导界面,从而可独立引导和重新引导。

Page 5: rx8640 Npar techncial.ppt

nPartition 支持的操作系统

• HP-UX 11i v1 (B.11.11);HP-UX 11i v2

(B.11.23);HP-UX 11i v3 (B.11.31)

• Microsoft® Windows® Server

2003;Microsoft® Windows® Server 2008

• Red Hat Enterprise Linux 5;SuSE Linux

Enterprise Server 10

• HP OpenVMS I64 8.2-1 和 8.3

Page 6: rx8640 Npar techncial.ppt

支持 nPartition 的 HP 服务器(基于cell 的 HP Integrity 服务器使用 HP sx2000 芯片组)

• HP Integrity Superdome 服务器包括SD16B 、 SD32B 和 SD64B 型号最多支持16 个 Npar

• HP Integrity rx8640 最多支持 4 个 Npar

• HP Integrity rx7640 最多支持 2 个 Npar

Page 7: rx8640 Npar techncial.ppt

nPartition 管理工具• 服务处理器( MP )菜单

-服务处理器菜单提供整个组合系统的服务界面。通过它可以访问组合系统中定义的所有硬件和 nPartition

• EFI Boot Manager 和 EFI Shell 命令

- EFI ( Extensible Firmware Interface,可扩展固件接口)

- 当 nPartition 处于活动状态但尚未引导操作系统时,可以从nPartition 控制台访问 EFI

• nPartition 命令

- parstatus 、 parcreate 、 parmodify等

• 分区管理器 (Partition Manager) 图形界面

Page 8: rx8640 Npar techncial.ppt

EFI Boot Manager 界面

Page 9: rx8640 Npar techncial.ppt

nPartition 属性• 分区编号• 已分配和未分配的 cell• 基本 cell• 核心 cell• 活动 cell 和非活动 cell• cell 本地内存• cell 属性详细信息• 活动和非活动的 nPartition 引导状态

Page 10: rx8640 Npar techncial.ppt

分区编号• 每个 nPartition 都有其唯一的分区编号。

• nPartition 管理工具可使用该分区编号识别nPartition 。

• 创建 nPartition 时,您所使用的工具将为该nPartition 分配一个编号最低的可用分区编号。例如,第一个 nPartition 的分区编号始终是 0 ,第二个要

创建的 nPartition 的分区编号是 1 。

Page 11: rx8640 Npar techncial.ppt

已分配和未分配的 cell

• 服务器系统中的每个 cell 要么已分配给该组合系统的其中一个 nPartition ,要么未分配(因此不会被任何nPartition 使用)。

• 如果 I/O 机箱与一个未分配的 cell 相连,则该 I/O

机箱同样是未分配给 nPartition 的。

• 未分配的 cell 被视作可用资源。以将它们自由分配给 任何现有 nPartition ,也可以使用它们创建新的

nPartition 。

Page 12: rx8640 Npar techncial.ppt

基本 cell ;核心 cell

• nPartition 中的所有 cell 都是基本 cell• 在每个 nPartition 中,必须有一个 cell 充当活

动核心 cell 。• 在引导操作系统之前,核心 cell 将一直控制

nPartition ,并且为 nPartition 提供控制台服务以及其他引导和管理功能。

• 核心 cell 上的主处理器运行 EFI(Extensible Firmware Interface ,可扩展固件接口 ) 代码,而所有其他处理器则处于空闲状态,直至操作系统被引导。

Page 13: rx8640 Npar techncial.ppt

活动 cell 和非活动 cell

• 已分配给 nPartition 并通过引导形成 nPartition 的那些 cell 即活动 cell 。活动 cell

的资源 ( 处理器、内存和所有连接 I/O) 可由 nPartition 中运行的软件有效使用

• 非活动 cell 要么未分配给 nPartition ,要么未加入分区会合点 (nPartition 引导过程中的一个时间点 )

Page 14: rx8640 Npar techncial.ppt

活动和非活动的 nPartition 引导状态• 每个 nPartition 的引导状态有两种:活动或非活动

# parstatus -P

[Partition]

Par # of # of I/O

Num Status Cells Chassis Core cell Partition Name(first 30 chars)

=== ======= ===== ======== ======== =================

0 inactive 2 1 ? feshd5a

1 active 2 1 cab1, cell2 feshd5b

• 活动 nPartition 至少有一个活动 ( 不处于引导阻断 (BIB) 状态 ) 且具核心功能的 cell 。

• 非活动 nPartition 是一种关闭以重新配置状态。因为分配给该 nPartition 的所有 cell 要么是保留引导阻断状态(BIB) ,要么是已掉电。

Page 15: rx8640 Npar techncial.ppt

引导和重置 nPartition 的基础知识

• HP Integrity 服务器的 nPartition 引导过程都包括如下两阶段:- cell 引导阶段、- nPartition 引导阶段。

Page 16: rx8640 Npar techncial.ppt

Cell 引导阶段a. 给 cell 加电或进行重置,设置 cell 的引导阻断 (BIB) 标志。

- BIB 是 cell 板上的硬件标志。如果设置了 BIB ,则该 cell 即被视为非活动 cell 。

b. 由 cell 上的固件执行自检,从而发现 cell 硬件组件中的操作。这一步骤包括处理器自检、内存测 试、 I/O 发现、互联光纤发现( cell 与 cell 、 I/O 和系统 Crossbar 间的连接)。

c. 完成 cell 自检和发现后,固件将 cell 硬件配置报告给服务处理器(MP) ,并通知服务处 理器自己处在“等待 BIB” 状态,并等待系统清除 cell 的 BIB 标志。

Page 17: rx8640 Npar techncial.ppt

nPartition 引导阶段a. MP 向分配给 nPartition 的 cell 提供相关组合系统配置文件数据

副本。b. 如果分配给 nPartition 的所有 cell 的 use-on-next-boot 值是“ y”

且按时完成 cell 引导阶段,则服务处理器即会释放所有这些 cell的 BIB 标志。如果 cell 的 use-on-next-boot 值是“ n” 或 cell 未按指定时间 (10 分钟 ) 完成 cell 引导阶段,服务处理器不会释放cell 的 BIB 标志。一旦释放 cell 的 BIB 标志,该 cell 即被视为活动 cell 。

c. nPartition 会合开始,每个活动 cell 的系统固件使用其组合系统配置文件数据的副本联系 nPartition 中的其他活动 cell 。

d. nPartition 中的各个活动 cell 相互“协商”选择核心 cell 。e. 由选定的核心 cell 管理余下的 nPartition 引导过程。核心 cell 上

的处理器将运行 nPartition 系统引导环境 ( 在 HP Integrity 服务器上是 EFI) 。一旦启动 OS 引导进程,核心 cell便将控制权移交给操作系统加载程序。

Page 18: rx8640 Npar techncial.ppt

常见 nPartition 引导命令1 、用于管理 nPartition 引导的服务处理器 (MP):

• RS — 重置 nPartition 。在 HP Integrity 服务器上,应当仅在完成所有自检和分区会合后才重置 nPartition 。

• RR — 重置并执行关闭操作以重新配置 nPartition 。在 HP Integrity 服务器上,应当仅在完成所有自检和分区会合后才重置 nPartition 。

• BO — 将分配给 nPartition 的单元引导至“等待 BIB” 状态,然后开始 nPartition 引导阶段。

• TC — 执行 nPartition 重置控制转移。• PE — 为机柜、单元或 I/O 机箱加电或使其掉电。

Page 19: rx8640 Npar techncial.ppt

分区引导到 EFI 界面用于管理 nPartition 引导的 EFI Shell 支持包括下列命令:• bcfg — 列举并配置本地 nPartition 的引导选项列表。• autoboot — 列举、启用或禁用 nPartition 自动引导配置值。• acpiconfig — 列举并配置 nPartition ACPI 配置设置,该设置决定了

HP-UX 、 OpenVMS 、 Windows 或 Linux 是否可在 nPartition 中引导。- 要引导 Windows Server 2003 , nPartition 的 ACPI 配置设置必须

是 windows 。• acpiconfig enable softpowerdown — 一旦设置,如果操作系统执行

关闭以重新配置操作, nPartition 硬件将掉电。在 ACPI 配置设置是windows 的 rx8640 服务器上,这是缺省设置

• reset — 重置本地 nPartition ,同时重置所有单元并继续 nPartitio 引导阶段。

• reconfigreset — 对本地 nPartition 执行关闭以重新配置操作,重置所“有单元并保持 等待 BIB” 状态,从而使 nPartition呈非活动状态。

Page 20: rx8640 Npar techncial.ppt

Microsoft® Windows® 包括下列命令供关闭和重新引导 nPartition 。

• shutdown /r — 关闭 Windows 并执行重新引导以重新配置 nPartition 的操作。所有单元重置, nPartition 重新配置则根据需要进行。然后, nPartition 继续完成引导阶段。

• shutdown /s — 关闭 Windows 并执行关闭以重新配置 nPartition 的操作。

Page 21: rx8640 Npar techncial.ppt

nPartition 的远程和本地管理• 本地管理

nPartition 命令和分区管理器 2.0 版可在一个 nPartition 中运行,以管理该 nPartition 及所属的组合系统。这是在 nPartition 中运行的工具的缺省行为。

• 远程管理-Web 的企业管理基础结构 (WBEM)

-智能平台管理接口 (IPMI)

Page 22: rx8640 Npar techncial.ppt

智能平台管理接口 (IPMI)

• nPartition 管理工具可通过向服务处理器( MP )发送请求来执行自己的功能。

• IPMI 标准定义的两种通信路径:- 块传输 (Block Transfer)路径- 通过 LAN 使用 IPMI

Page 23: rx8640 Npar techncial.ppt

基于 Web 的企业管理 (WBEM)

• Windows 操作系统包括 Windows anagement Instrumentation (WMI) 软件

• HP 提供了 WMI Mapper 和 WMI nPartition Provider 软件组件

• Windows XP 或 Windows Server 2003 , WMI 服务运行在一个名为 Svchost 的进程之内

Page 24: rx8640 Npar techncial.ppt

使用管理界面和工具• 访问和使用服务处理器 (MP)

- 使用 telne 通过 MP LAN端口进行连接- 通过本地 RS-232端口“ Local Console” 使用直接串行电缆连接进行连接

Page 25: rx8640 Npar techncial.ppt

登录 MP 示例• 下面的输出显示的是服务处理器主机名为“ hpsys-s” 的服务器的一个示例登录会话。> telnet hpsys-s

Trying...

Connected to hpsys-s.rsn.hp.com.

Escape character is '^]'.

Local flow control off

MP login: Admin

MP password:Admin

Welcome to the S Class 16K-A

Management Processor

(c) Copyright 1995-2001 Hewlett-Packard Co., All Rights Reserved.

Version 0.23

MP MAIN MENU:

CO: Consoles

VFP: Virtual Front Panel

CM: Command Menu

CL: Console Logs

SL: Show chassis Logs

HE: Help

X: Exit ConnectionMP>

Page 26: rx8640 Npar techncial.ppt

虚拟前面板 (VFP) 的 nPartition 视图

E indicates error since last boot

Partition 0 state Activity

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

Cell(s) Booting: 710 Logs

# Cell state Activity

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

0 Early CPU selftest Cell firmware test 232 Logs

1 Early CPU selftest Processor test 230 Logs

2 Memory discovery Physical memory test 242 Logs

GSP:VFP (^B to Quit) >

Page 27: rx8640 Npar techncial.ppt

三、引导和重置 nPartition

基于单元的 HP Integrity 服务器引导概述:1. Processor Abstraction Layer (PAL)

2. System Abstraction Layer (SAL)

3. 可扩展固件接口 (EFI)

4. EFI Boot Manager (菜单驱动的引导环境)a. EFI Shell (命令驱动的引导环境)b. EFI 脚本和应用程序5. 操作系统加载程序

HP Integrity 服务器可以从 EFI Boot Manger 或 EFI Shell 启动操作系统加载程序。 

- ia64ldr.efi 加载WINDOWS 程序 用于 Microsoft Windows Server 2003 的加载程序。 ia64ldr.efi

必须从 EFI Boot Manager (而不是从 EFI Shell )启动。

Page 28: rx8640 Npar techncial.ppt

引导和关闭 Microsoft Windows

• 向 EFI 引导选项列表中添加 Microsoft Windows

EFI Boot Manager ver 1.10 [14.61] Please select a boot option

HP OpenVMS 8.2-1

EFI Shell [Built-in]

Windows Server 2003, Enterprise

HP-UX Primary Boot: 4/0/1/1/0.2.0

Boot Option Maintenance Menu

Use ^ and v to change option(s). Use Enter to select an option

Page 29: rx8640 Npar techncial.ppt

1. 访问 EFI Shell 环境。2. 访问要引导 Microsoft Windows 的设备的 EFI System

Partition ( fsX: ,其中 X 为文件系统编号)。Microsoft Windows 加载程序的完整路径是 \efi\microsoft\winnt50\ia64ldr.efi ,必须只从 EFI Boot Menu 而不是从 EFI Shell 启动此加载程序

fs0:\> ls EFI\Microsoft\WINNT50

Directory of:fs0:\EFI\Microsoft\WINNT50

09/18/03 11:58a <DIR> 1,024 .

09/18/03 11:58a <DIR> 1,024 ..

12/18/03 08:16a 354 Boot0001

1 File(s) 354 bytes

2 Dir(s)

fs0:\>

Page 30: rx8640 Npar techncial.ppt

4. 在 EFI Shell 环境中,执行 \MSUtil\nvrboot.efi 命令以启动 Microsoft Windows 引导选项实用程序。

fs0:\> msutil\nvrboot

NVRBOOT: OS Boot Options Maintenance Tool [Version 5.2.3683]

1. SUSE SLES 9

2. HP-UX Primary Boot: 0/0/1/0/0.2.0

* 3. Windows Server 2003, Datacenter

4. EFI Shell [Built-in]

* = Windows OS boot option

(D)isplay (M)odify (C)opy E(x)port (I)mport (E)rase (P)ush (H)elp (Q)uit

Select>

5. 使用 Import 命令以导入 Windows 引导选项文件。Select> i

Enter IMPORT file path:\EFI\Microsoft\WINNT50\Boot0001

Imported Boot Options from file:\EFI\Microsoft\WINNT50\Boot0001

Press enter to continue

6. 键入 Q 以退出 NVRBOOT 实用程序。

Page 31: rx8640 Npar techncial.ppt

四、创建和配置 nPartition

• 创建源分区• 创建新的 nPartition• 删除 nPartition• 将单元分配(或添加)到 nPartition 中• 从 nPartition 中取消分配(删除)单元• 设置单元属性• 设置 nPartition 核心单元选择

Page 32: rx8640 Npar techncial.ppt

创建源分区• 使用 MP 的 Command 菜单上的 CC 命令和 G 选项

,在基于单元的服务器上创建源分区MP:CM> CC

This command allows you to change the complex profile.

WARNING: You must shut down all Protection Domains before executing this command.

G - Genesis Complex Profile

L - Last Complex Profile

Select Profile: g

Enter Cabinet number: 0

Enter Slot number: 0

Do you want to modify the complex profile? (Y/[N]) y

-> The complex profile will be modified.

GSP:CM>

如果 CC “命令报告 complex profile will be modified” ,则可以确定源分区已被成功创建。

Page 33: rx8640 Npar techncial.ppt

引导源分区• MP 执行 BO 命令以引导源分区经过其为进行

重新配置而关闭状态,使其成为活动 nPartition

GSP:CM> BO

This command boots the selected partition.

# Name

--- ----

0) Partition 0

Select a partition number : 0

Do you want to boot partition number 0,

named Partition 0 ? (Y/[N]) y

-> The selected partition will be booted.

GSP:CM>

用 BO 命令来引导 0 分区,就会将源分区引导至其系统引导环境 EFI 界面

Page 34: rx8640 Npar techncial.ppt

创建新的 nPartition

• 用 parstatus -AC 命令列出服务器组合系统中所有未分配(可用的)单元。# parstatus –AC

• 用 parcreate -c... 命令创建带有这些单元的新 nPartition

# parcreate -c4:base:y:ri -c6:base:y:ri

Partition Created.The partition number is : 1

用 parstatus -V -p# 命令列出有关新创建和配置的 nPartition 的全部详细信息

Page 35: rx8640 Npar techncial.ppt

删除 nPartition

• 删除非活动远程 nPartition

1. 执行 parremove -p# 命令删除非活动的远程 nPartition ( -p#,其中 # 是 nPartition 编号)。例如:# parremove -p1

2. 执行 parstatus -P 命令确认该 nPartition 是否已删除。如果该 nPartition 已删除,它将不会再列出在 parstatus 命令输出中

• 删除本地 nPartition

1. 执行 parremove -F -p# 命令强制删除 (-F) 本地 nPartition ( -p# ,其中 # 是本地 nPartition 的编号)命令执行之后本地 nPartition 将保持活动状态,直到执行为进行重新配置而关闭的操作以完成删除过程为止。

Page 36: rx8640 Npar techncial.ppt

• 删除活动远程 nPartition

执行 parremove -F -p # 命令并指定 -u username:[password] –h hostname | IPaddress 选项( nPartition commands using WBEM ) The -u option specifies a valid user name on the remote nPartition.

The -h option specifies the host name or the IP address of the remote nPartition.

-g [password] -h hostname | IPaddress 选项( run nPartitions commands remotely using IPMI over LAN ) The password is the IPMI password for the MP.

The -h option specifies the host name or IP address in the target complex.

Page 37: rx8640 Npar techncial.ppt

将单元分配 ( 或添加 )到 nPartition 中

• parstatus -A -C 命令列出服务器组合系统中所有可用的单元

• 执行 parmodify -p# -a#... 命令将单元( -a#...,其中 # 是单元编号)添加到指定的 nPartition ( -p# ,其中 # 是 nPartition 编号)

Page 38: rx8640 Npar techncial.ppt

从 nPartition 中取消分配 (删除 ) 单元

• 执行 parstatus -c#... 命令以列出计划要从所分配的 nPartition 上删除的每个单元的当前 nPartition 分配和状态

• 使用 parmodify -p# -d#... 命令将单元从它所分配到的 nPartition 中删除。 parmodify -p1 -d0 -d2...

Page 39: rx8640 Npar techncial.ppt

重命名 nPartition

• 使用 parmodify -p# -P 名称命令对 nPartition 进行重命名,其中 -P 名称用于指定nPartition 的新名称( -p# ,其中 # 是 nPartition 编号)。

• # parmodify -p1 -P "New Name"

Page 40: rx8640 Npar techncial.ppt

设置单元属性• EFI Shell 环境中,使用 cellconfig 命令为本地

nPartition 中的每个单元列出或设置 use-on-next-boot

• 要更改单元的 use-on-next-boot 值,请执行下面的命令:cellconfig 单元 [on|off]

其中单元为单元编号, on 用于将单元的 use-on-next-boot 值设置为“ y” (是,使用该单元), off 用于将单元的 use-on-next-boot 值设置为“ n” (否,不使用该单元)

• nPartition 命令parmodify -p# -m#...

Page 41: rx8640 Npar techncial.ppt

五、 nPartition 状态和硬件状态

• 使用下列工具列出硬件和 nPartition 的状态1 、服务处理器( MP 或 GSP )菜单2 、 EFI Boot Manager 和 EFI Shell

3 、 nPartition 命令4 、分区管理器 (/opt/parmgr/bin/parmgr)

Page 42: rx8640 Npar techncial.ppt

列出单元配置信息

• 在 MP 命令菜单中CP 命令可列出单元 nPartition 分配情况 PS 命令以列出有关服务器中单个单元的详细信息

• nPartition 命令 parstatus -C

Page 43: rx8640 Npar techncial.ppt

列出处理器配置

• 在 MP 命令菜单中PS 命令,选择 C 选项

• EFI Shell 中shell > info cpu

• nPartition 命令parstatus –C

parstatus -V -c#

Page 44: rx8640 Npar techncial.ppt

列出内存配置• 在 MP 命令菜单中

PS 命令,选择 C 选项• EFI Shell 中

shell > info mem

shell > dimmconfig # (显示指定单元中所有内存的 DIMM 位置、大小和当前状态)

• nPartition 命令parstatus –C

parstatus -V -c#

parstatus -V -p#

Page 45: rx8640 Npar techncial.ppt

列出 nPartition 配置

• 在 MP 命令菜单中CP 命令可列出单元 nPartition 分配情况服务器组合系统的 nPartition 编号和相应的单元分配。

• nPartition 命令 parstatus –P

parstatus -V -p#

Page 46: rx8640 Npar techncial.ppt

列出电源状态和电源供给

• 在 MP 命令菜单中PS 命令并为希望查看其电源状态和有关详细信息的机柜选择机柜选项: T (机柜)选项

• nPartition 命令parstatus -B - 所有机柜的电源状态的摘要信息。parstatus -V -b# - 指定的机柜的电源状态的详细信

息( -b# ,其中 # 为机柜编号)。frupower -d -C - 单元电源状态。frupower -d -I - I/O 机箱电源状态

Page 47: rx8640 Npar techncial.ppt