xref: /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/setup.ksh (revision 24e4dcf4ba5e9dedcf89efd358ea3e1fe5867020)
1#!/bin/ksh -p
2# SPDX-License-Identifier: CDDL-1.0
3#
4# CDDL HEADER START
5#
6# This file and its contents are supplied under the terms of the
7# Common Development and Distribution License ("CDDL"), version 1.0.
8# You may only use this file in accordance with the terms of version
9# 1.0 of the CDDL.
10#
11# A full copy of the text of the CDDL should have accompanied this
12# source.  A copy of the CDDL is also available via the Internet at
13# http://www.illumos.org/license/CDDL.
14#
15# CDDL HEADER END
16#
17
18#
19# Copyright (c) 2017 by Lawrence Livermore National Security, LLC.
20#
21
22. $STF_SUITE/include/libtest.shlib
23. $STF_SUITE/tests/functional/mmp/mmp.cfg
24
25verify_runnable "global"
26
27if [ -e $HOSTID_FILE ]; then
28	log_unsupported "System has existing $HOSTID_FILE file"
29fi
30
31log_must set_tunable64 MULTIHOST_HISTORY $MMP_HISTORY
32log_must set_tunable64 MULTIHOST_INTERVAL $MMP_INTERVAL_DEFAULT
33log_must set_tunable64 MULTIHOST_FAIL_INTERVALS $MMP_FAIL_INTERVALS_DEFAULT
34
35log_pass "mmp setup pass"
36