Fujitsu Notes: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
Line 37: Line 37:
* [http://kb.lsi.com/KnowledgebaseArticle16516.aspx Cheat-sheet]
* [http://kb.lsi.com/KnowledgebaseArticle16516.aspx Cheat-sheet]


<source lang="bash">
== APC UPSes ==
# Number of adapters in the server
MegaCli64 adpcount
 
# Make sure the controller will yell if the battery fails
MegaCli64 AdpGetProp BatWarnDsbl aAll
 
# Is the alarm going off (or has it been silenced)
MegaCli64 AdpGetProp AlarmDsply aAll
 
# All adapter properties
MegaCli64 AdpAllInfo aAll
 
# Get the battery info
MegaCli64 AdpBbuCmd aAll
 
# Get physical drive details
MegaCli64 PDList aAll
 
# Get virtual drive details
MegaCli64 LDInfo Lall aAll
</source>
 
<source lang="bash">
MegaCli64 AdpAllInfo aAll
</source>
<source lang="text">
Adapter #0
 
==============================================================================
                    Versions
                ================
Product Name    : LSI MegaRAID SAS 9265-8i
Serial No      : SV21503813
FW Package Build: 21.0.1-0100
 
                    Mfg. Data
                ================
Mfg. Date      : 04/20/12
Rework Date    : 00/00/00
Revision No    : 01C
Battery FRU    : N/A
 
                Image Versions in Flash:
                ================
BIOS Version      : 5.14.00_4.11.05.00_0x04360000
WebBIOS Version    : 6.1-10-e_10-Rel
Preboot CLI Version: 05.00-02:#%00008
FW Version        : 3.130.05-1169
NVDATA Version    : 2.1012.03-0022
Boot Block Version : 2.03.00.00-0003
BOOT Version      : 06.253.57.219
 
                Pending Images in Flash
                ================
None
 
                PCI Info
                ================
Controller Id : 0000
Vendor Id      : 1000
Device Id      : 005b
SubVendorId    : 1000
SubDeviceId    : 9265
 
Host Interface  : PCIE
 
ChipRevision    : NA
 
Number of Frontend Port: 0
Device Interface  : PCIE
 
Number of Backend Port: 8
Port  :  Address
0        5000c5004ce47ed1
1        4433221105000000
2        4433221104000000
3        5000c5004c92339d
4        5000c5004cd3349d
5        5000c5004c922fd9
6        0000000000000000
7        0000000000000000
 
                HW Configuration
                ================
SAS Address      : 500605b00493bb80
BBU              : Present
Alarm            : Present
NVRAM            : Present
Serial Debugger  : Present
Memory          : Present
Flash            : Present
Memory Size      : 1024MB
TPM              : Absent
On board Expander: Absent
Upgrade Key      : Present
Temperature sensor for ROC    : Absent
Temperature sensor for controller    : Absent
 
 
                Settings
                ================
Current Time                    : 3:46:38 8/6, 2012
Predictive Fail Poll Interval    : 300sec
Interrupt Throttle Active Count  : 16
Interrupt Throttle Completion    : 50us
Rebuild Rate                    : 30%
PR Rate                          : 30%
BGI Rate                        : 30%
Check Consistency Rate          : 30%
Reconstruction Rate              : 30%
Cache Flush Interval            : 4s
Max Drives to Spinup at One Time : 4
Delay Among Spinup Groups        : 2s
Physical Drive Coercion Mode    : Disabled
Cluster Mode                    : Disabled
Alarm                            : Enabled
Auto Rebuild                    : Enabled
Battery Warning                  : Enabled
Ecc Bucket Size                  : 15
Ecc Bucket Leak Rate            : 1440 Minutes
Restore HotSpare on Insertion    : Disabled
Expose Enclosure Devices        : Enabled
Maintain PD Fail History        : Enabled
Host Request Reordering          : Enabled
Auto Detect BackPlane Enabled    : SGPIO/i2c SEP
Load Balance Mode                : Auto
Use FDE Only                    : No
Security Key Assigned            : No
Security Key Failed              : No
Security Key Not Backedup        : No
Default LD PowerSave Policy      : Automatic
Maximum number of direct attached drives to spin up in 1 min : 120
Auto Enhanced Import            : No
Any Offline VD Cache Preserved  : No
Allow Boot with Preserved Cache  : No
Disable Online Controller Reset  : No
PFK in NVRAM                    : No
Use disk activity for locate    : No
POST delay : 90 seconds
 
                Capabilities
                ================
RAID Level Supported            : RAID0, RAID1, RAID5, RAID6, RAID00, RAID10, RAID50, RAID60, PRL 11, PRL 11 with spanning, SRL 3 supported, PRL11-RLQ0 DDF layout with no span, PRL11-RLQ0 DDF layout with span
Supported Drives                : SAS, SATA
 
Allowed Mixing:
 
Mix in Enclosure Allowed
Mix of SAS/SATA of HDD type in VD Allowed
 
                Status
                ================
ECC Bucket Count                : 0
 
                Limitations
                ================
Max Arms Per VD          : 32
Max Spans Per VD        : 8
Max Arrays              : 128
Max Number of VDs        : 64
Max Parallel Commands    : 1008
Max SGE Count            : 60
Max Data Transfer Size  : 8192 sectors
Max Strips PerIO        : 42
Max LD per array        : 16
Min Strip Size          : 8 KB
Max Strip Size          : 1.0 MB
Max Configurable CacheCade Size: 512 GB
Current Size of CacheCade      : 0 GB
Current Size of FW Cache      : 887 MB
 
                Device Present
                ================
Virtual Drives    : 1
  Degraded        : 0
  Offline        : 0
Physical Devices  : 7
  Disks          : 6
  Critical Disks  : 0
  Failed Disks    : 0
 
                Supported Adapter Operations
                ================
Rebuild Rate                    : Yes
CC Rate                        : Yes
BGI Rate                        : Yes
Reconstruct Rate                : Yes
Patrol Read Rate                : Yes
Alarm Control                  : Yes
Cluster Support                : Yes
BBU                            : No
Spanning                        : Yes
Dedicated Hot Spare            : Yes
Revertible Hot Spares          : Yes
Foreign Config Import          : Yes
Self Diagnostic                : Yes
Allow Mixed Redundancy on Array : No
Global Hot Spares              : Yes
Deny SCSI Passthrough          : No
Deny SMP Passthrough            : No
Deny STP Passthrough            : No
Support Security                : No
Snapshot Enabled                : No
Support the OCE without adding drives : Yes
Support PFK                    : Yes
Support PI                      : No
Support Boot Time PFK Change    : No
Disable Online PFK Change      : No
PFK TrailTime Remaining        : 0 days 0 hours
Support Shield State            : No
Block SSD Write Disk Cache Change: No
 
                Supported VD Operations
                ================
Read Policy          : Yes
Write Policy        : Yes
IO Policy            : Yes
Access Policy        : Yes
Disk Cache Policy    : Yes
Reconstruction      : Yes
Deny Locate          : No
Deny CC              : No
Allow Ctrl Encryption: No
Enable LDBBM        : No
Support Breakmirror  : No
Power Savings        : Yes


                Supported PD Operations
{{note|1=These are specific links. They may break as updated packages are released.}}
                ================
Force Online                            : Yes
Force Offline                          : Yes
Force Rebuild                          : Yes
Deny Force Failed                      : No
Deny Force Good/Bad                    : No
Deny Missing Replace                    : No
Deny Clear                              : No
Deny Locate                            : No
Support Temperature                    : Yes
Disable Copyback                        : No
Enable JBOD                            : No
Enable Copyback on SMART                : No
Enable Copyback to SSD on SMART Error  : Yes
Enable SSD Patrol Read                  : No
PR Correct Unconfigured Areas          : Yes
Enable Spin Down of UnConfigured Drives : Yes
Disable Spin Down of hot spares        : No
Spin Down time                          : 30
T10 Power State                        : Yes
                Error Counters
                ================
Memory Correctable Errors  : 0
Memory Uncorrectable Errors : 0
 
                Cluster Information
                ================
Cluster Permitted    : Yes
Cluster Active        : No
 
                Default Settings
                ================
Phy Polarity                    : 0
Phy PolaritySplit                : 0
Background Rate                  : 30
Strip Size                      : 64kB
Flush Time                      : 4 seconds
Write Policy                    : WB
Read Policy                      : Adaptive
Cache When BBU Bad              : Disabled
Cached IO                        : No
SMART Mode                      : Mode 6
Alarm Disable                    : Yes
Coercion Mode                    : None
ZCR Config                      : Unknown
Dirty LED Shows Drive Activity  : No
BIOS Continue on Error          : No
Spin Down Mode                  : None
Allowed Device Type              : SAS/SATA Mix
Allow Mix in Enclosure          : Yes
Allow HDD SAS/SATA Mix in VD    : Yes
Allow SSD SAS/SATA Mix in VD    : No
Allow HDD/SSD Mix in VD          : No
Allow SATA in Cluster            : No
Max Chained Enclosures          : 16
Disable Ctrl-R                  : Yes
Enable Web BIOS                  : Yes
Direct PD Mapping                : No
BIOS Enumerate VDs              : Yes
Restore Hot Spare on Insertion  : No
Expose Enclosure Devices        : Yes
Maintain PD Fail History        : Yes
Disable Puncturing              : No
Zero Based Enclosure Enumeration : No
PreBoot CLI Enabled              : Yes
LED Show Drive Activity          : Yes
Cluster Disable                  : No
SAS Disable                      : No
Auto Detect BackPlane Enable    : SGPIO/i2c SEP
Use FDE Only                    : No
Enable Led Header                : No
Delay during POST                : 0
EnableCrashDump                  : No
Disable Online Controller Reset  : No
EnableLDBBM                      : No
Un-Certified Hard Disk Drives    : Allow
Treat Single span R1E as R10    : No
Max LD per array                : 16
Power Saving option              : All power saving options are enabled
Default spin down time in minutes: 30
Enable JBOD                      : No
TTY Log In Flash                : No
Auto Enhanced Import            : No
BreakMirror RAID Support        : No
Disable Join Mirror              : No
Enable Shield State              : No
Time taken to detect CME        : 60s
 
Exit Code: 0x00
</source>


and:
Easiest way to setup <span class="code">apcupsd</span> is via [[EPEL]]. This will install it in such a way that EPEL packages will never mess with core RHEL packages. However, if the client has official RHEL support, consult with Red Hat to ensure this doesn't violate support. If it does, discuss alternative options.


<source lang="bash">
<source lang="bash">
MegaCli64 PDList aAll
yum -y install yum-protectbase
</source>
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
<source lang="text">
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt # import keys
Adapter #0
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm # verify package integrity
 
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm # install
Enclosure Device ID: 252
# install EPEL
Slot Number: 0
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
Drive's postion: DiskGroup: 0, Span: 0, Arm: 3
</bash>
Enclosure position: N/A
Device Id: 11
WWN: 5000C5004C922FD8
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
 
Raw Size: 279.396 GB [0x22ecb25c Sectors]
Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
Coerced Size: 278.875 GB [0x22dc0000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: 0004
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5000c5004c922fd9
SAS Address(1): 0x0
Connected Port Number: 5(path0)
Inquiry Data: SEAGATE ST9300653SS    00046XN0TLD7           
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :37C (98.60 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
 
 
 
Enclosure Device ID: 252
Slot Number: 1
Drive's postion: DiskGroup: 0, Span: 0, Arm: 2
Enclosure position: N/A
Device Id: 10
WWN: 5000C5004CD3349C
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
 
Raw Size: 279.396 GB [0x22ecb25c Sectors]
Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
Coerced Size: 278.875 GB [0x22dc0000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: 0004
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5000c5004cd3349d
SAS Address(1): 0x0
Connected Port Number: 4(path0)
Inquiry Data: SEAGATE ST9300653SS    00046XN0WNY9           
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :38C (100.40 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
 
 
 
Enclosure Device ID: 252
Slot Number: 2
Drive's postion: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: N/A
Device Id: 9
WWN: 5000C5004C92339C
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
 
Raw Size: 279.396 GB [0x22ecb25c Sectors]
Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
Coerced Size: 278.875 GB [0x22dc0000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: 0004
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5000c5004c92339d
SAS Address(1): 0x0
Connected Port Number: 3(path0)
Inquiry Data: SEAGATE ST9300653SS    00046XN0TLGR           
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :38C (100.40 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
 
 
 
Enclosure Device ID: 252
Slot Number: 3
Drive's postion: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: N/A
Device Id: 8
WWN: 5000C5004CE47ED0
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
 
Raw Size: 279.396 GB [0x22ecb25c Sectors]
Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
Coerced Size: 278.875 GB [0x22dc0000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: 0004
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5000c5004ce47ed1
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: SEAGATE ST9300653SS    00046XN0RPCD           
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :36C (96.80 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
 
 
 
Enclosure Device ID: 252
Slot Number: 6
Enclosure position: N/A
Device Id: 13
WWN: 5000000000000000
Sequence Number: 1
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
 
Raw Size: 119.242 GB [0xee7c2b0 Sectors]
Non Coerced Size: 118.742 GB [0xed7c2b0 Sectors]
Coerced Size: 118.718 GB [0xed70000 Sectors]
Firmware state: Unconfigured(good), Spun Up
Device Firmware Level: 1.0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x4433221105000000
Connected Port Number: 1(path0)
Inquiry Data: 120681000100145305F5Corsair Performance Pro                1.0   
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Solid State Device
Drive Temperature : N/A
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
 
 
 
Enclosure Device ID: 252
Slot Number: 7
Enclosure position: N/A
Device Id: 12
WWN: 5000000000000000
Sequence Number: 1
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
 
Raw Size: 119.242 GB [0xee7c2b0 Sectors]
Non Coerced Size: 118.742 GB [0xed7c2b0 Sectors]
Coerced Size: 118.718 GB [0xed70000 Sectors]
Firmware state: Unconfigured(good), Spun Up
Device Firmware Level: 1.0
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x4433221104000000
Connected Port Number: 2(path0)
Inquiry Data: 120681000100145307B9Corsair Performance Pro                1.0   
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Solid State Device
Drive Temperature : N/A
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
 
 
 


Exit Code: 0x00
Now edit the repo to protect the base RPMs.
</source>
 
and:


<source lang="bash">
<source lang="bash">
MegaCli64 LDInfo Lall aAll
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.orig
</source>
vim /etc/yum.repos.d/CentOS-Base.repo
<source lang="text">
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-5, Secondary-0, RAID Level Qualifier-3
Size                : 836.625 GB
Parity Size        : 278.875 GB
State              : Optimal
Strip Size          : 64 KB
Number Of Drives    : 4
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy  : Disk's Default
Encryption Type    : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: Automatic
Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: Yes
LD's IO profile supports MAX power savings with cached writes: Yes
Is VD Cached: No
 
 
 
Exit Code: 0x00
</source>
</source>


and:
Now install <span class="code">apcupsd</span>


<span class="code"></span>
<source lang="bash">
<source lang="bash">
MegaCli64 AdpBbuCmd aAll
</source>
<source lang="text">
BBU status for Adapter: 0
BatteryType: iBBU-09
Voltage: 4084 mV
Current: 0 mA
Temperature: 30 C
Battery State    : Operational
BBU Firmware Status:
  Charging Status              : None
  Voltage                                : OK
  Temperature                            : OK
  Learn Cycle Requested                   : No
  Learn Cycle Active                      : No
  Learn Cycle Status                      : OK
  Learn Cycle Timeout                    : No
  I2c Errors Detected                    : No
  Battery Pack Missing                    : No
  Battery Replacement required            : No
  Remaining Capacity Low                  : No
  Periodic Learn Required                : No
  Transparent Learn                      : No
  No space to cache offload              : No
  Pack is about to fail & should be replaced : No
  Cache Offload premium feature required  : No
  Module microcode update required        : No
BBU GasGauge Status: 0x0280
  Relative State of Charge: 100 %
  Charger System State: 1
  Charger System Ctrl: 0
  Charging current: 0 mA
  Absolute state of charge: 0 %
  Max Error: 0 %
  Battery backup charge time : 48 hours +
BBU Capacity Info for Adapter: 0
  Relative State of Charge: 100 %
  Absolute State of charge: 86 %
  Remaining Capacity: 1294 mAh
  Full Charge Capacity: 1294 mAh
  Run time to empty: Battery is not being discharged. 
  Average time to empty: 2 Hour, 35 Min.
  Estimated Time to full recharge: Battery is not being charged. 
  Cycle Count: 3
BBU Design Info for Adapter: 0
  Date of Manufacture: 12/27, 2011
  Design Capacity: 1500 mAh
  Design Voltage: 4100 mV
  Specification Info: 0
  Serial Number: 2641
  Pack Stat Configuration: 0x0000
  Manufacture Name: LS36691
  Device Name: iBBU-09
  Device Chemistry: LION
  Battery FRU: N/A
  Transparent Learn = 0
  App Data = 0
BBU Properties for Adapter: 0
  Auto Learn Period: 30 Days
  Next Learn time: Sep 4 2012 01:24:20 
  Learn Delay Interval:0 Hours
  Auto-Learn Mode: Enabled
  BBU Mode = 5
Exit Code: 0x00
</source>
</source>


= Creating a Backup Set =
= Creating a Backup Set =

Revision as of 00:43, 18 August 2012

 AN!Wiki :: How To :: Fujitsu Notes

This covers specific setup notes for Fujitsu Primenergy servers on EL6.

PrimeEnergy RX300 G7

RAID

Install the MegaCLI tools;

Check for an updates MegaCLI from here (under "Management Software and Tools"). If there is an updated version, follow the

mkdir ~/temp
cd ~/temp
# Download the updated 8.04.07_MegaCLI.zip here
unzip 8.04.07_MegaCLI.zip
unzip CLI_Lin_8.04.07.zip 
unzip MegaCliLin.zip
rpm -Uvh MegaCli-8.04.07-1.noarch.rpm Lib_Utils-1.00-09.noarch.rpm

# This makes MegaCli64 app available without the full path
ln -s /opt/MegaRAID/MegaCli/MegaCli64 /sbin/

If you want to install from the AN!Cache, you can do this;

rpm -Uvh https://alteeve.com/files/Lib_Utils-1.00-09.noarch.rpm https://alteeve.com/files/MegaCli-8.04.07-1.noarch.rpm

# This makes MegaCli64 app available without the full path
ln -s /opt/MegaRAID/MegaCli/MegaCli64 /sbin/

Once installed, verify that you can see your hardware:

APC UPSes

Note: These are specific links. They may break as updated packages are released.

Easiest way to setup apcupsd is via EPEL. This will install it in such a way that EPEL packages will never mess with core RHEL packages. However, if the client has official RHEL support, consult with Red Hat to ensure this doesn't violate support. If it does, discuss alternative options.

yum -y install yum-protectbase
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt # import keys 
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm # verify package integrity 
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm # install 
# install EPEL 
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
</bash>

Now edit the repo to protect the base RPMs.

<source lang="bash">
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.orig
vim /etc/yum.repos.d/CentOS-Base.repo

Now install apcupsd

Creating a Backup Set

ToDo: Explain this...

mkdir ~/base
cd ~/base
mkdir root
mkdir -p etc/sysconfig/network-scripts/

rsync -av /root/.bashrc root/
rsync -av /root/.ssh root/
rsync -av /etc/sysconfig/network-scripts/ifcfg-{eth*,bond*,vbr*} etc/sysconfig/network-scripts/
rsync -av /etc/sysconfig/network etc/sysconfig/
rsync -av /etc/hosts etc/
rsync -av /etc/ssh etc/

# If you have the cluster built and want to backup it's configs.
mkdir etc/cluster
mkdir etc/lvm
rsync -av /etc/cluster/cluster.conf etc/cluster/
rsync -av /etc/lvm/lvm.conf etc/lvm/
# NOTE: DRBD won't work until you've manually created the partitions.
rsync -av /etc/drbd.d etc/

# If you had to manually set the UUID in libvirtd;
mkdir etc/libvirt
rsync -av /etc/libvirt/libvirt.conf etc/libvirt/

# If you're running RHEL and want to backup your registration info;
rsync -av /etc/sysconfig/rhn etc/sysconfig/

# Pack it up
# NOTE: Change the name to suit your node.
tar -cvzf base_an-c01n01.tar.gz etc root



 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.