#!/bin/bash
VERSION=260521
SCRIPT=$(readlink -f $0)
SCRIPTNAME=$(basename $SCRIPT)
SCRIPTDIR=$(dirname $SCRIPT)
if [ "$1" = "-v" ] ; then echo "$VERSION $SCRIPTNAME $SCRIPTDIR";exit 0; fi
if [ -e "$SCRIPTDIR/esc.sh" ] ; then . "$SCRIPTDIR/esc.sh"; fi
LOG=$LOGDIR/log-$SCRIPTNAME.log

if [ "$1" == "os" ] ; then
	echo "used real os disk"
	ls /dev/disks | grep -v ":1" | grep ":" | grep -vE "^vm" | cut -d":" -f1 | uniq
	exit
fi

#List all available volumes that have been detected: 
esxcfg-volume -l
# This will list datastores identified, and you want to take note of the UUID/Label.
# Perform a persistent mount (capital M in the argument) of that filesystem:  
echo "like esxcfg-volume -M fdf4e13d-dce9-4048-a723-5c2ef653c391"
#Validate the mount was successful with: 
esxcli storage filesystem list
