Pivotal Knowledge Base

Follow

HowTo - Schedule a RAID Battery recharge for a specific time

Goal

You want to sync the RAID Battery recharge time for all servers in the DCA at a specific time of the month.

Solution

You will set this up using the dca_setup utility run as the root user from mdw or smdw. The following are the steps:

1. Run dca_setup on mdw or smdw

[root@mdw2 ~]# dca_setup

2. Select option 2 to Modfiy DCA Settings;

*******************************************************************************
Main Menu (Press Ctrl-C to exit)

 1) Install DCA  -- DEFAULT
 2) Modify DCA Settings

select [1]: 2

3. Select option 18 for RAID controller battery

*******************************************************************************
DCA Settings Menu

 1) Regenerate DCA Config files
 2) Change DCA Locale
 3) Change DCA Timezone
 4) Clocks Configuration
 5) Regenerate SSH Keys
 6) Change machine passwords
 7) Initialize GPDB
 8) Initialize GPDB Standby Master
 9) Expand DCA
10) Rebalance Mirrors
11) DB Watcher
12) Networking: Masters
13) Networking: Segments
14) Networking: Switches
15) Hadoop
16) Light bars
17) Bios/Firmware/OMSA
18) RAID controller battery
19) Configure Security Settings
20) Health Monitoring

select: 18

4. Select option 3 to Adjust scheduling for battery conditioning

*******************************************************************************
Condition RAID Controler Batteries

 1) Condition battery on all hosts
 2) Condition battery on selected hosts
 3) Adjust scheduling for battery conditioning

select: 3

4. Select option 1 for Every other Month by Day of Week

*******************************************************************************
Schedule Battery Conditioning

 1) Every other Month by Day of Week
 2) Every other Month by Day of Month  -- DEFAULT

select [2]: 1

5. Select the day of the week. Here Sunday is selected:

*******************************************************************************
Day Of Week for Scheduled Controler Battery Conditiong

 1) Sunday
 2) Monday
 3) Tuesday
 4) Wednesday
 5) Thursday
 6) Friday
 7) Saturday

select: 1

6. Select the time of the day to start the battery recharge cycle. Here 8PM is selected:

*******************************************************************************
Time Of Day for Scheduled Controler Battery Conditiong

 1) 12 AM
 2) 01 AM
 3) 02 AM
 4) 03 AM
 5) 04 AM
 6) 05 AM
 7) 06 AM
 8) 07 AM
 9) 08 AM
10) 09 AM
11) 10 AM
12) 11 AM
13) 12 PM
14) 01 PM
15) 02 PM
16) 03 PM
17) 04 PM
18) 05 PM
19) 06 PM
20) 07 PM
21) 08 PM
22) 09 PM
23) 10 PM
24) 11 PM

select: 21

7. Select the week of the month. Here the 3rd week of the month is selected:

*******************************************************************************
Schedule Battery Conditioning

 1) First Week of Month  -- DEFAULT
 2) Second Week of Month
 3) Third Week of Month
 4) Fourth Week of Month

select [1]: 3

8. You will then need to run a recharge cycle so that all servers are sync'd to run at the same time. As you can see below the scheduled time for future RAID Battery recharges will be on the following months: (month of year: 1,3,5,7,9,11)

It is recommended to condition the batteries now as part of the scheduling change.
Would you like to condition the batteries now? Yy|Nn (default=y):
> y
*******************************************************************************
The following is the configuration for the cluster:
# of segment hosts       :     8
# of dia hosts           :     0
# of hadoop master hosts :     0
# of hadoop worker hosts :     0
# of hbase worker hosts  :     0
# of racks               :     1
gpdb port                :  5432
san configuration        :    No

The following actions will be performed:
001) Condition Battery on all hosts
002) Enable scheduled battery conditioning at (20:00) on (sunday) (week of month: 3) (month of year: 1,3,5,7,9,11)
003) Enable battery conditioning (if necessary) on boot

Enter yes to continue or no to exit this application: (Yy|Nn): y

The recharge will then start. It is best to carry out this work at a quite time on the DCA so that there is little impact to production operation. Once this recharge is completed, then all future recharges will run on the 3rd Sunday at 20:00 for the months 1,3,5,7,9,11 of the year.

Comments

Powered by Zendesk