Rename shell and perl scripts to remove .sh and .pl extensions.
b=11985
r=nathan
%attr(-, root, root) %{_mandir}/man?/*
-%attr(-, root, root) %{_libdir}/lustre/lc_common.sh
+%attr(-, root, root) %{_libdir}/lustre/lc_common
EOF
if [ -f $RPM_BUILD_ROOT%{_libdir}/liblustre.so ] ; then
.B lfs(1)
A user-level interface to control Lustre-specific information for
individual files.
-.B lustre_config.sh
+.B lustre_config
Format multiple Lustre targets simultaneously from definitions in a CSV
file.
.SH BUGS
# This code is issued under the GNU General Public License.
# See the file COPYING in this distribution
-sbinscripts = lc_servip.sh lustre_up14.sh lustre_rmmod.sh
+sbinscripts = lc_servip lustre_up14 lustre_rmmod
# These are scripts that are generated from .in files
-genscripts = lustre_config.sh lc_modprobe.sh lc_net.sh lc_hb.sh lc_cluman.sh lustre_createcsv.sh lc_md.sh lc_lvm.sh
+genscripts = lustre_config lc_modprobe lc_net lc_hb lc_cluman lustre_createcsv lc_md lc_lvm
sbin_SCRIPTS = $(genscripts) $(sbinscripts)
-bin_SCRIPTS = lustre_req_history.sh
+bin_SCRIPTS = lustre_req_history
-EXTRA_DIST = license-status maketags.sh version_tag.pl.in lc_common.sh \
- $(addsuffix .in,$(genscripts)) lc_mon.sh $(sbinscripts) \
+EXTRA_DIST = license-status maketags.sh version_tag.pl.in lc_common \
+ $(addsuffix .in,$(genscripts)) lc_mon $(sbinscripts) \
$(bin_SCRIPTS)
scriptlibdir = $(libdir)/@PACKAGE@
-scriptlib_DATA = lc_common.sh
+scriptlib_DATA = lc_common
CLEANFILES = $(genscripts)
-$(genscripts): %.sh: %.sh.in
+$(genscripts): %: %.in
sed -e 's#@scriptlibdir@#$(scriptlibdir)#' < $< > $@
chmod +x $@
#!/bin/bash
#
-# lc_cluman.sh - script for generating the Red Hat Cluster Manager
-# HA software's configuration files
+# lc_cluman - script for generating the Red Hat Cluster Manager
+# HA software's configuration files
#
################################################################################
}
# Get the library of functions
-. @scriptlibdir@/lc_common.sh
+. @scriptlibdir@/lc_common
#****************************** Global variables ******************************#
TMP_DIR=${CLUMGR_TMP_DIR} # Temporary directory
#
# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
#
-# lc_common.sh - This file contains functions to be used by most or all
-# Lustre cluster config scripts.
+# lc_common - This file contains functions to be used by most or all
+# Lustre cluster config scripts.
#
################################################################################
# Some scripts to be called
SCRIPTS_PATH=${CLUSTER_SCRIPTS_PATH:-"$(cd `dirname $0`; echo $PWD)"}
-MODULE_CONFIG=${SCRIPTS_PATH}/lc_modprobe.sh
-VERIFY_CLUSTER_NET=${SCRIPTS_PATH}/lc_net.sh
-GEN_HB_CONFIG=${SCRIPTS_PATH}/lc_hb.sh
-GEN_CLUMGR_CONFIG=${SCRIPTS_PATH}/lc_cluman.sh
-SCRIPT_VERIFY_SRVIP=${SCRIPTS_PATH}/lc_servip.sh
-SCRIPT_GEN_MONCF=${SCRIPTS_PATH}/lc_mon.sh
-SCRIPT_CONFIG_MD=${SCRIPTS_PATH}/lc_md.sh
-SCRIPT_CONFIG_LVM=${SCRIPTS_PATH}/lc_lvm.sh
+MODULE_CONFIG=${SCRIPTS_PATH}/lc_modprobe
+VERIFY_CLUSTER_NET=${SCRIPTS_PATH}/lc_net
+GEN_HB_CONFIG=${SCRIPTS_PATH}/lc_hb
+GEN_CLUMGR_CONFIG=${SCRIPTS_PATH}/lc_cluman
+SCRIPT_VERIFY_SRVIP=${SCRIPTS_PATH}/lc_servip
+SCRIPT_GEN_MONCF=${SCRIPTS_PATH}/lc_mon
+SCRIPT_CONFIG_MD=${SCRIPTS_PATH}/lc_md
+SCRIPT_CONFIG_LVM=${SCRIPTS_PATH}/lc_lvm
# Variables of HA software
HBVER_HBV1="hbv1" # Heartbeat version 1
#!/bin/bash
#
-# lc_hb.sh - script for generating the Heartbeat HA software's
-# configuration files
+# lc_hb - script for generating the Heartbeat HA software's
+# configuration files
#
###############################################################################
}
# Get the library of functions
-. @scriptlibdir@/lc_common.sh
+. @scriptlibdir@/lc_common
#****************************** Global variables ******************************#
# Heartbeat tools
#
# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
#
-# lc_lvm.sh - configure Linux LVM devices from a csv file
+# lc_lvm - configure Linux LVM devices from a csv file
#
################################################################################
}
# Get the library of functions
-. @scriptlibdir@/lc_common.sh
+. @scriptlibdir@/lc_common
#***************************** Global variables *****************************#
# All the LVM device items in the csv file
#
# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
#
-# lc_md.sh - configure Linux MD devices from a csv file
+# lc_md - configure Linux MD devices from a csv file
#
################################################################################
}
# Get the library of functions
-. @scriptlibdir@/lc_common.sh
+. @scriptlibdir@/lc_common
#***************************** Global variables *****************************#
# All the MD device items in the csv file
#!/bin/bash
#
-# lc_modprobe.sh - add lustre module options into modprobe.conf or
-# modules.conf
+# lc_modprobe - add lustre module options into modprobe.conf or
+# modules.conf
#
#################################################################################
# Get the library of functions
-. @scriptlibdir@/lc_common.sh
+. @scriptlibdir@/lc_common
# Check the kernel version
KERNEL_VERSION=`uname -r`
#!/bin/bash
#
-# lc_net.sh - script for Lustre cluster network verification
+# lc_net - script for Lustre cluster network verification
#
###############################################################################
}
# Get the library of functions
-. @scriptlibdir@/lc_common.sh
+. @scriptlibdir@/lc_common
VERBOSE_OUTPUT=false
# Get and check the positional parameters
#!/bin/bash
#
-# lc_servip.sh - script for verifying the service IP and the real
-# interface IP in a remote host are in the same subnet
+# lc_servip - script for verifying the service IP and the real
+# interface IP in a remote host are in the same subnet
#
###############################################################################
# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
#
-# convert an lmc batch file to a csv file for lustre_config.sh
+# convert an lmc batch file to a csv file for lustre_config
#
use strict; use warnings;
# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
#
-# lustre_config.sh - format and set up multiple lustre servers from a csv file
+# lustre_config - format and set up multiple lustre servers from a csv file
#
# This script is used to parse each line of a spreadsheet (csv file) and
# execute remote commands to format (mkfs.lustre) every Lustre target
}
# Get the library of functions
-. @scriptlibdir@/lc_common.sh
+. @scriptlibdir@/lc_common
#***************************** Global variables *****************************#
declare -a MGS_NODENAME # node names of the MGS servers
# Execute remote command to modify /etc/fstab
device_name=${DEVICE_NAME[i]//\//\\/}
- COMMAND=". @scriptlibdir@/lc_common.sh; \
+ COMMAND=". @scriptlibdir@/lc_common; \
sed -i \"/^${device_name}\t/d\" \$(fcanon /etc/fstab); \
echo -e \"${mntent}\" >> \$(fcanon /etc/fstab)"
${REMOTE} ${HOST_NAME[i]} "${COMMAND}" >&2
#!/bin/bash
#
-# lustre_createcsv.sh - generate a csv file from a running lustre cluster
+# lustre_createcsv - generate a csv file from a running lustre cluster
#
# This script is used to collect lustre target informations, linux MD/LVM device
# informations and HA software configurations in a lustre cluster to generate a
-# csv file. In reverse, the csv file could be parsed by lustre_config.sh to
+# csv file. In reverse, the csv file could be parsed by lustre_config to
# configure multiple lustre servers in parallel.
#
# This script should be run on the MGS node.
}
# Get the library of functions
-. @scriptlibdir@/lc_common.sh
+. @scriptlibdir@/lc_common
#**************************** Global variables ****************************#
# csv file
#!/bin/sh
PATH=`dirname $0`/../utils:$PATH
-llobdstat.pl $1 1 | while read LINE; do
+llobdstat $1 1 | while read LINE; do
echo "`date +s`: $LINE"
[ "$2" ] && echo "`date +s`: $LINE" >> $2
done
LIBPTLCTL := $(top_builddir)/lnet/utils/libptlctl.a
sbin_scripts = lrun
-bin_scripts = llstat.pl llobdstat.pl plot-llstat.pl
+bin_scripts = llstat llobdstat plot-llstat
if UTILS
noinst_PROGRAMS = wirecheck wiretest obdio obdbarrier
#!/usr/bin/perl
-# llobdstat.pl is a utility that parses obdfilter statistics files
+# llobdstat is a utility that parses obdfilter statistics files
# found at proc/fs/lustre/<ostname>/stats.
# It is mainly useful to watch the statistics change over time.
#!/usr/bin/perl
-# llstat.pl is a utility that takes stats files as input with optional
+# llstat is a utility that takes stats files as input with optional
# clear-flag. The clear-flag is used to clear the stats file before
# printing stats information. The lustre stats files generally located
# inside proc/fs/lustre/. This program first reads the required statistics
#!/usr/bin/perl -w
-# Report generation for llstat.pl
+# Report generation for llstat
# ===============================
-# The plot-llstat.pl script is used to generate csv file and
-# instructions files for gnuplot from the output of llstat.pl script.
-# Since llstat.pl is generic in nature, plot-llstat.pl is also generic
+# The plot-llstat script is used to generate csv file and
+# instructions files for gnuplot from the output of llstat script.
+# Since llstat is generic in nature, plot-llstat is also generic
# script.
#
# Assume that:
# operations = { open, close, read_bytes, write_bytes, connect, create, .. etc.}
# parameters = { Rate, Total}
#
-# plot-llstat.pl script creates dat(csv) file using number of operations
+# plot-llstat script creates dat(csv) file using number of operations
# specified by the user. Number of operations equals to number of columns in csv
# file. And values in those columns are equals to the corresponding value of
# the "$param_inx" parameter from the output file.
-# The plot-llstat.pl also creates .scr file that contains instructions
+# The plot-llstat also creates .scr file that contains instructions
# for gnuplot to plot the graph. After generating .dat and .scr files this
# script invokes gnuplot to display graph.
# by changing value of $param_inx.
# Syntax:
-# $ plot-llstat.pl <results_filename> [parameter index (default=2, i.e. Rate)]
+# $ plot-llstat <results_filename> [parameter index (default=2, i.e. Rate)]
# [Note: 1. The output filt given to this script must have been generated
-# with -g option to the llstat.pl script.
+# with -g option to the llstat script.
# 2. This script may need modifications whenever there will be
-# modifications in output format of llstat.pl script.]
+# modifications in output format of llstat script.]
# arg 0 is filename
sub usages_msg(){
- print "$0 parses and graphs the output of llstat.pl using gnuplot,\n";
+ print "$0 parses and graphs the output of llstat using gnuplot,\n";
print "and generates .dat files for use in spreadsheets.\n";
print "Usage: $0 <results_filename> [parameter_index]\n";
print " where parameter_index is one of:\n";
print " 1 - Count per interval\n";
print " 2 - Rate (count per second) (default)\n";
print " 3 - Total count\n";
- print "ex: # llstat.pl -i2 -g -c lustre-OST0000 > log\n";
+ print "ex: # llstat -i2 -g -c lustre-OST0000 > log\n";
print " # $0 log 3\n";
exit 1;
}