mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-17 11:50:32 +00:00
Merge pull request #4635 from cxhong/pdudoc
Add documentation for PDU support
This commit is contained in:
109
docs/source/advanced/pdu/crpdu.rst
Normal file
109
docs/source/advanced/pdu/crpdu.rst
Normal file
@ -0,0 +1,109 @@
|
||||
Collaborative PDU
|
||||
=================
|
||||
|
||||
Collaborative PDU is also referred as Coral PDU, it controls power for compute Rack. User can access PDU via SSH and can use the **PduManager** command to configure and manage the PDU product.
|
||||
|
||||
|
||||
Pre-Defined PDU Objects
|
||||
-----------------------
|
||||
|
||||
A pre-defined PDU node object is required before running pdudiscover command. ::
|
||||
|
||||
mkdef coralpdu groups=pdu mgt=pdu nodetype=pdu (required)
|
||||
|
||||
all other attributes can be set by chdef command or pdudisocover command. ::
|
||||
|
||||
--switch required for pdudiscover command to do mapping
|
||||
--switchport required for pdudiscover command to do mapping
|
||||
--ip ip address of the pdu.
|
||||
--mac can be filled in by pdudiscover command
|
||||
--pdutype crpdu(for coral pdu) or irpdu(for infrastructure PDUs)
|
||||
|
||||
|
||||
The following attributes need to be set in order to configure snmp with non-default values. ::
|
||||
|
||||
--community community string for coral pdu
|
||||
--snmpversion snmp version number, required if configure snmpv3 for coral pdu
|
||||
--snmpuser snmpv3 user name, required if configure snmpv3 for coral pdu
|
||||
--authkey auth passphrase for snmpv3 configuration
|
||||
--authtype auth protocol (MD5|SHA) for snmpv3 configuration
|
||||
--privkey priv passphrase for snmpv3 configuration
|
||||
--privtype priv protocol (AES|DES) for snmpv3 configuration
|
||||
--seclevel security level (noAuthNoPriv|authNoPriv|authPriv) for snmpv3 configuration
|
||||
|
||||
Make sure to run makehosts after pre-defined PDU. ::
|
||||
|
||||
makehosts coralpdu
|
||||
|
||||
|
||||
Configure PDUs
|
||||
--------------
|
||||
|
||||
After pre-defining PDUs, user can use **pdudisocver --range ip_range --setup** to configure the PDUs, or following commands can be used:
|
||||
|
||||
* To configure passwordless of Coral PDU: ::
|
||||
|
||||
# rspconfig coralpdu sshcfg
|
||||
|
||||
* To change hostname of Coral PDU: ::
|
||||
|
||||
# rspconfig coralpdu hosname=f5pdu3
|
||||
|
||||
* To change ip address of PDU: ::
|
||||
|
||||
# rsconfig coralpdu ip=x.x.x.x netmaks=255.x.x.x
|
||||
|
||||
* To configure SNMP community string or snmpv3 of PDU (the attribute needs to pre-defined): ::
|
||||
|
||||
# rspconfig coralpdu snmpcfg
|
||||
|
||||
|
||||
Remote Power Control of PDU
|
||||
---------------------------
|
||||
|
||||
Use the rpower command to remotely power on and off PDU.
|
||||
|
||||
* To check power stat of PDU: ::
|
||||
|
||||
# rpower coralpdu stat
|
||||
|
||||
* To power off the PDU: ::
|
||||
|
||||
# rpower coralpdu off
|
||||
|
||||
* To power on the PDU: ::
|
||||
|
||||
# rpower coralpdu on
|
||||
|
||||
Coral PDUs have three relays, the following commands are for individual relay support of PDU:
|
||||
|
||||
* To check power stat of relay: ::
|
||||
|
||||
# rpower coralpdu relay=1 stat
|
||||
|
||||
* To power off the relay: ::
|
||||
|
||||
# rpower coralpdu relay=2 off
|
||||
|
||||
* To power on the relay: ::
|
||||
|
||||
# rpower coralpdu relay=3 on
|
||||
|
||||
|
||||
Show Monitor Data
|
||||
-----------------
|
||||
|
||||
Use the rvitals command to show realtime monitor data(input voltage, current, power) of PDU. ::
|
||||
|
||||
# rvitals coralpdu
|
||||
|
||||
|
||||
Show manufacture information
|
||||
-----------------------------
|
||||
|
||||
Use the rinv command to show MFR information of PDU ::
|
||||
|
||||
# rinv coralpdu
|
||||
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
PDUs
|
||||
====
|
||||
|
||||
Power Distribution Units (PDUs) are devices that distribute power to servers in a frame. Intelligent PDUs have the capability of monitoring the amount of power that is being used by devices plugged into it.
|
||||
Power Distribution Units (PDUs) are devices that distribute power to servers in a frame. They have the capability of monitoring the amount of power that is being used by devices plugged into it and cycle power to individual receptacles. xCAT can support two kinds of PDUs, infrastructure PDU (irpdu) and collaborative PDU (crpdu).
|
||||
|
||||
The Infrastructure rack PDUs are switched and monitored 1U PDU products which can connect up to nine C19 devices or up to 12 C13 devices and an additional three C13 peripheral devices to a signle dedicated power source. The Collaborative PDU is on the compute rack and has the 6x IEC 320-C13 receptacles that feed the rack switches. These two types of PDU have different design and implementation. xCAT has different code path to maintains PDU commands via **pdutype**.
|
||||
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
pdu.rst
|
||||
irpdu.rst
|
||||
crpdu.rst
|
||||
|
153
docs/source/advanced/pdu/irpdu.rst
Normal file
153
docs/source/advanced/pdu/irpdu.rst
Normal file
@ -0,0 +1,153 @@
|
||||
Infrastructure PDU
|
||||
==================
|
||||
|
||||
Users can access Infrastructure PDU via telnet and use the **IBM PDU Configuration Utility** to set up and configure the PDU. xCAT supports PDU commands for power management and monitoring through SNMP.
|
||||
|
||||
|
||||
PDU Commands
|
||||
------------
|
||||
|
||||
Administrators will need to know the exact mapping of the outlets to each server in the frame. xCAT cannot validate the physical cable is connected to the correct server.
|
||||
|
||||
Add a ``pdu`` attribute to the compute node definition in the form "PDU_Name:outlet": ::
|
||||
|
||||
#
|
||||
# Compute server cn01 has two power supplies
|
||||
# connected to outlet 6 and 7 on pdu=f5pdu3
|
||||
#
|
||||
chdef cn01 pdu=f5pdu3:6,f5pdu3:7
|
||||
|
||||
|
||||
The following commands are supported against a compute node:
|
||||
|
||||
* Check the pdu status for a compute node: ::
|
||||
|
||||
# rpower cn01 pdustat
|
||||
cn01: f5pdu3 outlet 6 is on
|
||||
cn01: f5pdu3 outlet 7 is on
|
||||
|
||||
|
||||
* Power off the PDU outlets for a compute node: ::
|
||||
|
||||
# rpower cn01 pduoff
|
||||
cn01: f5pdu3 outlet 6 is off
|
||||
cn01: f5pdu3 outlet 7 is off
|
||||
|
||||
* Power on the PDU outlets for a compute node: ::
|
||||
|
||||
# rpower cn01 pduon
|
||||
cn01: f5pdu3 outlet 6 is on
|
||||
cn01: f5pdu3 outlet 7 is on
|
||||
|
||||
* Power cycling the PDU outlets for a compute node: ::
|
||||
|
||||
# rpower cn01 pdureset
|
||||
cn01: f5pdu3 outlet 6 is reset
|
||||
cn01: f5pdu3 outlet 7 is reset
|
||||
|
||||
The following commands are supported against a PDU:
|
||||
|
||||
* Check the status of the full PDU: ::
|
||||
|
||||
# rpower f5pdu3 stat
|
||||
f5pdu3: outlet 1 is on
|
||||
f5pdu3: outlet 2 is on
|
||||
f5pdu3: outlet 3 is on
|
||||
f5pdu3: outlet 4 is on
|
||||
f5pdu3: outlet 5 is on
|
||||
f5pdu3: outlet 6 is off
|
||||
f5pdu3: outlet 7 is off
|
||||
f5pdu3: outlet 8 is on
|
||||
f5pdu3: outlet 9 is on
|
||||
f5pdu3: outlet 10 is on
|
||||
f5pdu3: outlet 11 is on
|
||||
f5pdu3: outlet 12 is on
|
||||
|
||||
* Power off the full PDU: ::
|
||||
|
||||
# rpower f5pdu3 off
|
||||
f5pdu3: outlet 1 is off
|
||||
f5pdu3: outlet 2 is off
|
||||
f5pdu3: outlet 3 is off
|
||||
f5pdu3: outlet 4 is off
|
||||
f5pdu3: outlet 5 is off
|
||||
f5pdu3: outlet 6 is off
|
||||
f5pdu3: outlet 7 is off
|
||||
f5pdu3: outlet 8 is off
|
||||
f5pdu3: outlet 9 is off
|
||||
f5pdu3: outlet 10 is off
|
||||
f5pdu3: outlet 11 is off
|
||||
f5pdu3: outlet 12 is off
|
||||
|
||||
* Power on the full PDU: ::
|
||||
|
||||
# rpower f5pdu3 on
|
||||
f5pdu3: outlet 1 is on
|
||||
f5pdu3: outlet 2 is on
|
||||
f5pdu3: outlet 3 is on
|
||||
f5pdu3: outlet 4 is on
|
||||
f5pdu3: outlet 5 is on
|
||||
f5pdu3: outlet 6 is on
|
||||
f5pdu3: outlet 7 is on
|
||||
f5pdu3: outlet 8 is on
|
||||
f5pdu3: outlet 9 is on
|
||||
f5pdu3: outlet 10 is on
|
||||
f5pdu3: outlet 11 is on
|
||||
f5pdu3: outlet 12 is on
|
||||
|
||||
* Power reset the full PDU: ::
|
||||
|
||||
# rpower f5pdu3 reset
|
||||
f5pdu3: outlet 1 is reset
|
||||
f5pdu3: outlet 2 is reset
|
||||
f5pdu3: outlet 3 is reset
|
||||
f5pdu3: outlet 4 is reset
|
||||
f5pdu3: outlet 5 is reset
|
||||
f5pdu3: outlet 6 is reset
|
||||
f5pdu3: outlet 7 is reset
|
||||
f5pdu3: outlet 8 is reset
|
||||
f5pdu3: outlet 9 is reset
|
||||
f5pdu3: outlet 10 is reset
|
||||
f5pdu3: outlet 11 is reset
|
||||
f5pdu3: outlet 12 is reset
|
||||
|
||||
* PDU inventory information: ::
|
||||
|
||||
# rinv f6pdu16
|
||||
f6pdu16: PDU Software Version: "OPDP_sIBM_v01.3_2"
|
||||
f6pdu16: PDU Machine Type: "1U"
|
||||
f6pdu16: PDU Model Number: "dPDU4230"
|
||||
f6pdu16: PDU Part Number: "46W1608"
|
||||
f6pdu16: PDU Name: "IBM PDU"
|
||||
f6pdu16: PDU Serial Number: "4571S9"
|
||||
f6pdu16: PDU Description: "description"
|
||||
|
||||
* PDU and outlet power information: ::
|
||||
|
||||
# rvitals f6pdu15
|
||||
f6pdu15: Voltage Warning: 0
|
||||
f6pdu15: outlet 1 Current: 0 mA
|
||||
f6pdu15: outlet 1 Max Capacity of the current: 16000 mA
|
||||
f6pdu15: outlet 1 Current Threshold Warning: 9600 mA
|
||||
f6pdu15: outlet 1 Current Threshold Critical: 12800 mA
|
||||
f6pdu15: outlet 1 Last Power Reading: 0 Watts
|
||||
f6pdu15: outlet 2 Current: 0 mA
|
||||
f6pdu15: outlet 2 Max Capacity of the current: 16000 mA
|
||||
f6pdu15: outlet 2 Current Threshold Warning: 9600 mA
|
||||
f6pdu15: outlet 2 Current Threshold Critical: 12800 mA
|
||||
f6pdu15: outlet 2 Last Power Reading: 0 Watts
|
||||
f6pdu15: outlet 3 Current: 1130 mA
|
||||
f6pdu15: outlet 3 Max Capacity of the current: 16000 mA
|
||||
f6pdu15: outlet 3 Current Threshold Warning: 9600 mA
|
||||
f6pdu15: outlet 3 Current Threshold Critical: 12800 mA
|
||||
f6pdu15: outlet 3 Last Power Reading: 217 Wattsv
|
||||
|
||||
**Note:** For BMC based compute nodes, turning the PDU outlet power on does not automatically power on the compute side. Users will need to issue ``rpower <node> on`` to power on the compute side after the BMC boots.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,17 +1,39 @@
|
||||
PDU
|
||||
===
|
||||
Discovering PDUs
|
||||
================
|
||||
|
||||
xCAT provides basic remote management for each power outlet plugged into the PDUs using SNMP communication. This documentation will focus on configuration of the PDU and Node objects to allow xCAT to control power at the PDU outlet level.
|
||||
xCAT provides `pdudiscover` command to discover the PDUs that are attached to the neighboring subnets on xCAT management node. ::
|
||||
|
||||
pdudiscover [<noderange>|--range ipranges] [-r|-x|-z] [-w] [-V|--verbose] [--setup]
|
||||
|
||||
xCAT uses snmp scan method to discover PDU. Make sure net-snmp-utils package is installed on xCAT MN in order to use snmpwalk command. ::
|
||||
|
||||
Options:
|
||||
--range Specify one or more IP ranges. Each can be an ip address (10.1.2.3) or an ip range
|
||||
(10.1.2.0/24). If the range is huge, for example, 192.168.1.1/8, the pdu
|
||||
discover may take a very long time to scan. So the range should be exactly
|
||||
specified. It accepts multiple formats. For example:
|
||||
192.168.1.1/24, 40-41.1-2.3-4.1-100.
|
||||
|
||||
If the range is not specified, the command scans all the subnets that the active
|
||||
network interfaces (eth0, eth1) are on where this command is issued.
|
||||
-r Display Raw responses.
|
||||
-x XML formatted output.
|
||||
-z Stanza formatted output.
|
||||
-w Writes output to xCAT database.
|
||||
--setup Process switch-based pdu discovery and configure the PDUs(it included passwordless , change ip address from dhcp to static and snmp configuration). It required predefined PDU node definition with switch name and switch port attributes for mapping. (Notes: only support for crpdu for now for this options)
|
||||
|
||||
|
||||
Define PDU Objects
|
||||
------------------
|
||||
|
||||
|
||||
|
||||
#. Define pdu object ::
|
||||
|
||||
mkdef f5pdu3 groups=pdu ip=50.0.0.8 mgt=pdu nodetype=pdu
|
||||
mkdef f5pdu3 groups=pdu ip=50.0.0.8 mgt=pdu nodetype=pdu pdutype=irpdu
|
||||
|
||||
#. Define switch attribute for pdu object which will be used for pdudiscover **--setup** options. ::
|
||||
|
||||
chdef f5pdu3 switch=mid08 switchport=3
|
||||
|
||||
#. Add hostname to /etc/hosts::
|
||||
|
||||
@ -19,129 +41,6 @@ Define PDU Objects
|
||||
|
||||
#. Verify the SNMP command responds against the PDU: ::
|
||||
|
||||
snmpwalk -v1 -cpublic -mALL f5pdu3 .1.3.6.1.2.1.1
|
||||
|
||||
|
||||
Define PDU Attribute
|
||||
--------------------
|
||||
|
||||
Administrators will need to know the exact mapping of the outlets to each server in the frame. xCAT cannot validate the physical cable is connected to the correct server.
|
||||
|
||||
Add a ``pdu`` attribute to the compute node definition in the form "PDU_Name:outlet": ::
|
||||
|
||||
#
|
||||
# Compute server cn01 has two power supplies
|
||||
# connected to outlet 6 and 7 on pdu=f5pdu3
|
||||
#
|
||||
chdef cn01 pdu=f5pdu3:6,f5pdu3:7
|
||||
|
||||
|
||||
Verify the setting: ``lsdef cn01 -i pdu``
|
||||
|
||||
|
||||
PDU Commands
|
||||
------------
|
||||
|
||||
The following commands are supported against a compute node:
|
||||
|
||||
* Check the pdu status for a compute node: ::
|
||||
|
||||
# rpower cn01 pdustat
|
||||
cn01: f5pdu3 outlet 6 is on
|
||||
cn01: f5pdu3 outlet 7 is on
|
||||
|
||||
|
||||
* Power off the PDU outlets on a compute node: ::
|
||||
|
||||
# rpower cn01 pduoff
|
||||
cn01: f5pdu3 outlet 6 is off
|
||||
cn01: f5pdu3 outlet 7 is off
|
||||
|
||||
* Power on the PDU outlets on a compute node: ::
|
||||
|
||||
# rpower cn01 pduon
|
||||
cn01: f5pdu3 outlet 6 is on
|
||||
cn01: f5pdu3 outlet 7 is on
|
||||
|
||||
* Power cycling the PDU outlets on a compute node: ::
|
||||
|
||||
# rpower cn01 pdureset
|
||||
cn01: f5pdu3 outlet 6 is reset
|
||||
cn01: f5pdu3 outlet 7 is reset
|
||||
|
||||
The following commands are supported against a PDU:
|
||||
|
||||
* Check the status of the full PDU: ::
|
||||
|
||||
# rinv f5pdu3
|
||||
f5pdu3: outlet 1 is on
|
||||
f5pdu3: outlet 2 is on
|
||||
f5pdu3: outlet 3 is on
|
||||
f5pdu3: outlet 4 is on
|
||||
f5pdu3: outlet 5 is on
|
||||
f5pdu3: outlet 6 is off
|
||||
f5pdu3: outlet 7 is off
|
||||
f5pdu3: outlet 8 is on
|
||||
f5pdu3: outlet 9 is on
|
||||
f5pdu3: outlet 10 is on
|
||||
f5pdu3: outlet 11 is on
|
||||
f5pdu3: outlet 12 is on
|
||||
|
||||
* Power off the full PDU: ::
|
||||
|
||||
# rpower f5pdu3 off
|
||||
f5pdu3: outlet 1 is off
|
||||
f5pdu3: outlet 2 is off
|
||||
f5pdu3: outlet 3 is off
|
||||
f5pdu3: outlet 4 is off
|
||||
f5pdu3: outlet 5 is off
|
||||
f5pdu3: outlet 6 is off
|
||||
f5pdu3: outlet 7 is off
|
||||
f5pdu3: outlet 8 is off
|
||||
f5pdu3: outlet 9 is off
|
||||
f5pdu3: outlet 10 is off
|
||||
f5pdu3: outlet 11 is off
|
||||
f5pdu3: outlet 12 is off
|
||||
|
||||
* Power on the full PDU: ::
|
||||
|
||||
# rpower f5pdu3 on
|
||||
f5pdu3: outlet 1 is on
|
||||
f5pdu3: outlet 2 is on
|
||||
f5pdu3: outlet 3 is on
|
||||
f5pdu3: outlet 4 is on
|
||||
f5pdu3: outlet 5 is on
|
||||
f5pdu3: outlet 6 is on
|
||||
f5pdu3: outlet 7 is on
|
||||
f5pdu3: outlet 8 is on
|
||||
f5pdu3: outlet 9 is on
|
||||
f5pdu3: outlet 10 is on
|
||||
f5pdu3: outlet 11 is on
|
||||
f5pdu3: outlet 12 is on
|
||||
|
||||
* Power reset the full PDU: ::
|
||||
|
||||
# rpower f5pdu3 reset
|
||||
f5pdu3: outlet 1 is reset
|
||||
f5pdu3: outlet 2 is reset
|
||||
f5pdu3: outlet 3 is reset
|
||||
f5pdu3: outlet 4 is reset
|
||||
f5pdu3: outlet 5 is reset
|
||||
f5pdu3: outlet 6 is reset
|
||||
f5pdu3: outlet 7 is reset
|
||||
f5pdu3: outlet 8 is reset
|
||||
f5pdu3: outlet 9 is reset
|
||||
f5pdu3: outlet 10 is reset
|
||||
f5pdu3: outlet 11 is reset
|
||||
f5pdu3: outlet 12 is reset
|
||||
|
||||
|
||||
**Note:** For BMC based compute nodes, turning the PDU outlet power on does not automatically power on the compute side. Users will need to issue ``rpower <node> on`` to power on the compute node after the BMC boots.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
snmpwalk -v1 -cpublic -mALL f5pdu3 system
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user