1*abcdc1b9SMartin Matuska#!/bin/sh 2*abcdc1b9SMartin Matuska# 3*abcdc1b9SMartin Matuska# This is an optional helper script that is automatically called by libzfs 4*abcdc1b9SMartin Matuska# before a disk is about to be added into the pool. It can be modified by 5*abcdc1b9SMartin Matuska# the user to run whatever commands are necessary to prepare a disk for 6*abcdc1b9SMartin Matuska# inclusion into the pool. For example, users can add lines to this 7*abcdc1b9SMartin Matuska# script to do things like update the drive's firmware or check the drive's 8*abcdc1b9SMartin Matuska# health. The script is optional and can be removed if it is not needed. 9*abcdc1b9SMartin Matuska# 10*abcdc1b9SMartin Matuska# See the zfs_prepare_disk(8) man page for details. 11*abcdc1b9SMartin Matuska# 12*abcdc1b9SMartin Matuska# Example: 13*abcdc1b9SMartin Matuska# 14*abcdc1b9SMartin Matuska# echo "Prepare disk $VDEV_PATH ($VDEV_UPATH) for $VDEV_PREPARE in $POOL_NAME" 15*abcdc1b9SMartin Matuska# 16*abcdc1b9SMartin Matuska 17*abcdc1b9SMartin Matuskaexit 0 18