1e0f1c0afSOlaf Faaland#!/bin/ksh -p 2e0f1c0afSOlaf Faaland# 3e0f1c0afSOlaf Faaland# CDDL HEADER START 4e0f1c0afSOlaf Faaland# 5e0f1c0afSOlaf Faaland# This file and its contents are supplied under the terms of the 6e0f1c0afSOlaf Faaland# Common Development and Distribution License ("CDDL"), version 1.0. 7e0f1c0afSOlaf Faaland# You may only use this file in accordance with the terms of version 8e0f1c0afSOlaf Faaland# 1.0 of the CDDL. 9e0f1c0afSOlaf Faaland# 10e0f1c0afSOlaf Faaland# A full copy of the text of the CDDL should have accompanied this 11e0f1c0afSOlaf Faaland# source. A copy of the CDDL is also available via the Internet at 12e0f1c0afSOlaf Faaland# http://www.illumos.org/license/CDDL. 13e0f1c0afSOlaf Faaland# 14e0f1c0afSOlaf Faaland# CDDL HEADER END 15e0f1c0afSOlaf Faaland# 16e0f1c0afSOlaf Faaland 17e0f1c0afSOlaf Faaland# 18e0f1c0afSOlaf Faaland# Copyright (c) 2017 by Lawrence Livermore National Security, LLC. 19e0f1c0afSOlaf Faaland# Copyright 2019 Joyent, Inc. 20e0f1c0afSOlaf Faaland# 21e0f1c0afSOlaf Faaland 22e0f1c0afSOlaf Faaland. $STF_SUITE/include/libtest.shlib 23e0f1c0afSOlaf Faaland. $STF_SUITE/tests/functional/mmp/mmp.cfg 24e0f1c0afSOlaf Faaland 25e0f1c0afSOlaf Faalandverify_runnable "global" 26e0f1c0afSOlaf Faaland 27e0f1c0afSOlaf Faalandcase "$(uname)" in 28e0f1c0afSOlaf FaalandLinux) if [ -e $HOSTID_FILE ]; then 29e0f1c0afSOlaf Faaland log_unsupported "System has existing $HOSTID_FILE file" 30e0f1c0afSOlaf Faaland fi 31e0f1c0afSOlaf Faaland log_must set_tunable64 zfs_multihost_history $MMP_HISTORY 32e0f1c0afSOlaf Faaland ;; 33e0f1c0afSOlaf Faaland 34e0f1c0afSOlaf FaalandSunOS) hostid >/var/tmp/zfs_test_hostid.txt 35e0f1c0afSOlaf Faaland ;; 36e0f1c0afSOlaf Faalandesac 37e0f1c0afSOlaf Faaland 38*4348eb90SOlaf Faalandlog_must set_tunable64 zfs_multihost_interval $MMP_INTERVAL_DEFAULT 39*4348eb90SOlaf Faalandlog_must set_tunable32 zfs_multihost_fail_intervals $MMP_FAIL_INTERVALS_DEFAULT 40*4348eb90SOlaf Faaland 41e0f1c0afSOlaf Faalandlog_pass "mmp setup pass" 42