From 18f2c84445a61f0ec9bf4536d75c624d0db41879 Mon Sep 17 00:00:00 2001 From: cliffw Date: Wed, 12 Sep 2007 19:42:44 +0000 Subject: [PATCH] b=12186 i=Adilger Fixes man pages for lfs --- lustre/doc/lfs.1 | 22 +++++++++++----------- lustre/scripts/lustre | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lustre/doc/lfs.1 b/lustre/doc/lfs.1 index be37b63..c2c79b4 100644 --- a/lustre/doc/lfs.1 +++ b/lustre/doc/lfs.1 @@ -57,20 +57,20 @@ To list the striping info for given filename or files in a directory or recursiv .B quotachown To change files' owner and group on OSTs of the specified filesystem .TP -.B quotacheck -To scan the specified filesystem for disk usage, and create or update quota files +.B quotacheck [-ugf] +To scan the specified filesystem for disk usage, and create or update quota files. Options specify quota for users (-u) groups (-g) and force (-f) .TP -.B quotaon -To turn filesystem quotas on +.B quotaon [-ugf] +To turn filesystem quotas on. Options specify quota for users (-u) groups (-g) and force (-f) .TP -.B quotaoff -To turn filesystem quotas off +.B quotaoff [-ugf] +To turn filesystem quotas off. Options specify quota for users (-u) groups (-g) and force (-f) .TP -.B setquota -To set filesystem quotas +.B setquota [-u|-g] +To set filesystem quotas for users or groups. Limits are specific as blocks and inodes, see EXAMPLES .TP -.B quota -To display disk usage and limits +.B quota [-o obd_uuid] [-u|-g] +To display disk usage and limits, either for the full filesystem, or for objects on a specific obd. A user or group name must be specified. .TP .B check Display the status of MDS or OSTs (as specified in the command) or all the servers (MDS and OSTs) @@ -110,7 +110,7 @@ Recursively list all files in a given directory that have objects on OST2-UUID. Change file owner and group .TP .B $ lfs quotacheck -ug /mnt/lustre -Quotacheck for user and group +Quotacheck for user and group - will turn on quotas after making the check. .TP .B $ lfs quotaon -ug /mnt/lustre Turn quotas of user and group on diff --git a/lustre/scripts/lustre b/lustre/scripts/lustre index e6cca00..c2248a1 100755 --- a/lustre/scripts/lustre +++ b/lustre/scripts/lustre @@ -28,8 +28,8 @@ SERVICE=${0##*/} [ -f /etc/sysconfig/lustre ] && . /etc/sysconfig/lustre : ${LUSTRE_CONFIG_XML:=/etc/lustre/config.xml} -: ${LCONF:=/usr/sbin/lconf} -: ${LCTL:=/usr/sbin/lctl} +: ${LCONF:=lconf} +: ${LCTL:=lctl} # Some distros use modprobe.conf.local if [ -f /etc/modprobe.conf.local ]; then : ${MODPROBE_CONF:=/etc/modprobe.conf.local} @@ -214,7 +214,7 @@ status() { # If Lustre is up , check if the service really exists # Skip this is we are not checking a specific service if [ $RETVAL -eq 0 ] && [ $SERVICE != 'lustre' ]; then - DUMMY=`lctl dl | grep $SERVICE` + DUMMY=$( $LCTL dl | grep "$SERVICE") [ $? -ne 0 ] && STATE="not_found" && RETVAL=3 fi -- 1.8.3.1