2013-08-06 12:29:21 +00:00
|
|
|
#!/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.
|
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
|
2013-09-17 10:41:17 +00:00
|
|
|
# lvs lv-1-700 ... lv-8-700
|
|
|
|
lv_config_name_list=($(eval echo lv-{1..$multires_lv_count}-$multires_lv_size))
|
|
|
|
|
|
|
|
# lvs lv-1-700 ... lv-7-700
|
|
|
|
resource_name_list=($(eval echo '"${lv_config_name_list["'{0..$(($multires_lv_count - 2))}'"]}"'))
|
|
|
|
|
|
|
|
resource_set_globals
|
2013-08-06 12:29:21 +00:00
|
|
|
|
2013-09-17 10:41:17 +00:00
|
|
|
marsadm_timeout=10
|
|
|
|
|
|
|
|
# lvs lv-8-700 for all hosts
|
|
|
|
eval cluster_mars_dir_lv_name_list=($(x=(${main_host_list[@]/#/[}); y=(${x[@]/%/]=lv-$multires_lv_count-$multires_lv_size}); echo ${y[@]}))
|
|
|
|
|
|
|
|
verbose_script=1
|
2013-08-06 12:29:21 +00:00
|
|
|
|
2013-09-17 10:41:17 +00:00
|
|
|
resource_recreate_fs_on_data_device_required=0
|
2013-08-06 12:29:21 +00:00
|
|
|
|
2013-09-17 10:41:17 +00:00
|
|
|
run_list="multires_prepare multires_run"
|