Disk Storage ZFS Storage Appliance (MOSC)

MOSC Banner

unexpected EOF while looking for matching ``'

Guys can you please help on this below is the script and the underlined one is the line number where we are getting the error

#!/bin/sh

DEBUGFS=`which debugfs.ocfs2`

usage() {

echo "usage: stat_sysdir.sh -d sda1,sdb1"

exit 1;

}

OPTIND=1

while getopts "d:" args

do

case "$args" in

d) devices="$(echo $OPTARG | sed 's/,/ /g')";

esac

done;

if [ -z "$devices" ] ;

then

usage ;

fi

for i in $devices

do

DEV=/dev/$i

echo "Device: ${DEV}"

SLOTS=`echo "stats" | ${DEBUGFS} -n ${DEV} | awk '/Max Node Slots:/ { print $4 }'`

if [ -z ${SLOTS} ]

then

continue;

fi

echo " superblock"

echo "stats" | ${DEBUGFS} -n ${DEV}

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center