/usr/sbin/lustre_up14 is in lustre-utils 1.8.5+dfsg-3ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | #!/bin/bash
#
# Reads old MDS config logs for transferring to a MGS
#
###############################################################################
TMP=${TMP:-/tmp/logs}
# Usage
usage() {
	cat >&2 <<EOF
Usage:  `basename $0` <mdsdev> <newfsname>
	<mdsdev>		the MDS disk device (e.g. /dev/sda1)
	<newfsname>		the name of the new filesystem (e.g. testfs)
	This script will extract old config logs from an MDS device to a
	temporary location ($TMP). During the upgrade procedure, mount the
	MGS disk as type ldiskfs (e.g. mount -t ldiskfs /dev/sda
	/mnt/temp), then copy these logs into the CONFIGS directory on the
	MGS (e.g. /mnt/temp/CONFIGS).  Logs from many MDS's can be added
	in this way.  When done, unmount the MGS, and then re-mount it as
	type lustre to start the service.
EOF
	exit 1
}
if [ $# -lt 2 ]; then
        usage
fi
DEV=$1
FSNAME=$2
DEBUGFS="debugfs -c -R"
mkdir -p $TMP
FILES=`$DEBUGFS "ls -l LOGS" $DEV | awk '{print $9}' | awk '/[a-z]/ {print $1}'`
for FILE in ${FILES}; do 
    $DEBUGFS "dump LOGS/$FILE $TMP/temp" $DEV 2> /dev/null
    MDC=`strings $TMP/temp | grep MDC`
    LOV=`strings $TMP/temp | grep lov`
    if [ -n "$MDC" ]; then
	TYPE=client
    else
	if [ -n "$LOV" ]; then
	    TYPE=MDT0000
	else
	    echo "Can't determine type for log '$FILE', skipping"
	    continue 
	fi
    fi
    echo -n "Copying log '$FILE' to '${FSNAME}-${TYPE}'. Okay [y/n]?"
    read OK
    if [ "$OK" = "y" ]; then
	mv $TMP/temp $TMP/${FSNAME}-${TYPE}
    else
	rm $TMP/temp
    fi
done
echo ls -l $TMP
ls -l $TMP
 |