1 # Copyright (C) 2001 Cluster File Systems, Inc.
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
7 # Insert Lustre kernel modules
8 insmod class/obdclass.o
11 insmod ext2obd/obdext2.o
12 insmod obdtrace/obdtrace.o
14 # Configure direct driver on /dev/obd0
18 # Configure obdtrace on /dev/obd1
22 # What's the obd status
24 shell cat /proc/lustre/obd/1/stats
25 # mount obd file system
26 shell mkdir -p /mnt/obd
27 shell mount -t obdfs -odevice=/dev/obd1 none /mnt/obd
29 # Prepare a data set (tar file of current directory)
30 shell rm -f /tmp/obdtrace_test.tar
31 shell tar cf /tmp/obdtrace_test.tar .
32 # make a directory on obd device
33 shell mkdir -p /mnt/obd/obdtrace_test_dir
34 # Unpack tarfile to obd device
35 shell tar -C /mnt/obd/obdtrace_test_dir -xf /tmp/obdtrace_test.tar
36 shell rm -rf /mnt/obd/obdtrace_test_dir
37 # Check obdtrace performance stats
39 shell cat /proc/lustre/obd/1/stats
40 shell echo 0 > /proc/lustre/obd/1/stats
41 shell cat /proc/lustre/obd/1/stats
45 shell rm -f /tmp/obdtrace_test.tar
56 # Remove all loaded kernel modules