summaryrefslogtreecommitdiffstats
path: root/config.d/55node_storage_gpfs.defconf
blob: fb4bfc5aa69245fc88c79355fe357734e63f4fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Hey Emacs, this is a -*- shell-script -*- !!!

NODES_STORAGE_GPFS=

node_name_format_storage_gpfs ()
{
    local cluster="$1"
    local index="$2"

    printf '%sstorage%d' "$cluster" "$index"
}

create_node_storage_gpfs ()
{
    local ip_offset="$1"
    local name="$2"
    local ctdb_node="$3"

    local ld=$(echo $DOMAIN | tr 'A-Z' 'a-z')
    NODES_STORAGE_GPFS="${NODES_STORAGE_GPFS}${NODES_STORAGE_GPFS:+,}${name}.${ld}"

    echo "Creating node \"${name}\" (of type \"storage_gpfs\")"

    create_node_COMMON "$name" "$ip_offset" "$type"
}

node_has_shared_disks_storage_gpfs ()
{
    true
}

is_dedicated_storage_node_storage_gpfs ()
{
    true
}

cluster_setup_tasks_storage_gpfs ()
{
    case "$1" in
	install_packages) echo "clusterfs" ;;
	setup_clusterfs)  echo "clusterfs" ;;
	setup_node)       echo "" ;;
	setup_cluster)    echo "" ;;
    esac
}