#!/bin/ksh93
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# 61haes_r714 src/43haes/lib/ksh93/OEMVeritas/KLIB_OEMVeritas_importDiskGroup.sh 1.4 
#  
# Licensed Materials - Property of IBM 
#  
# Restricted Materials of IBM 
#  
# COPYRIGHT International Business Machines Corp. 2005,2011 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
# @(#)13        1.4 src/43haes/lib/ksh93/OEMVeritas/KLIB_OEMVeritas_importDiskGroup.sh, hacmp.utils, 61haes_r714 11/28/11 14:57:52
function KLIB_OEMVeritas_importDiskGroup {
	. /usr/es/lib/ksh93/func_include

	typeset dg=$1
	if [[ -z $dg ]]; then
		return 1
	fi

	REQUIRED_COMMANDS="/usr/sbin/vxdg /usr/sbin/vxvol"
	for cmd in $REQUIRED_COMMANDS; do
		if [[ ! -x $cmd ]]; then
			return 1
		fi
	done

	/usr/sbin/vxdg import $dg
	/usr/sbin/vxvol -g $dg startall
}
