mirror of https://github.com/schoebel/mars
49 lines
1.8 KiB
Bash
49 lines
1.8 KiB
Bash
#!/bin/bash
|
|
# Copyright 2010-2013 Frank Liepold / 1&1 Internet AG
|
|
#
|
|
# Email: frank.liepold@1und1.de
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#####################################################################
|
|
|
|
|
|
## this device must use physical volumes on a raid controller with the following
|
|
## properties:
|
|
## - different from the controller of the data device mount_mount_data_device
|
|
## - bbu cache can be switched on and off
|
|
## on the primary host a 18G lv can be created by:
|
|
## - pvcreate /dev/<dev-name>
|
|
## - vgextend <vg-name> /dev/<dev-name>
|
|
## - lvcreate -n lv-7-18 -L 18G <vg-name> /dev/<dev-name>
|
|
|
|
perftest_lv_on_bbu_controller="lv-7-18"
|
|
|
|
perftest_dev_on_bbu_controller_list=(\
|
|
[istore-test-bap7]=/dev/cciss/c0d0p7\
|
|
)
|
|
|
|
cluster_mars_dir_lv_name_list["${main_host_list[0]}"]="$perftest_lv_on_bbu_controller"
|
|
|
|
perftest_bbu_disable_cmd_list=(\
|
|
"hpacucli ctrl slot=0 modify nobatterywritecache=disable"\
|
|
)
|
|
perftest_bbu_enable_cmd_list=(\
|
|
"hpacucli ctrl slot=0 modify nobatterywritecache=enable"\
|
|
"hpacucli ctrl slot=0 modify cacheratio=0/100"\
|
|
)
|
|
perftest_bbu_show_cmd_list=("hpacucli ctrl slot=0 show")
|
|
|