3 # Insert Lustre kernel modules
4 insmod class/obdclass.o
7 insmod ext2obd/obdext2.o
8 insmod obdtrace/obdtrace.o
10 # Configure direct driver on /dev/obd0
14 # Configure obdtrace on /dev/obd1
18 # What's the obd status
20 shell cat /proc/lustre/obd/1/stats
21 # mount obd file system
22 shell mkdir -p /mnt/obd
23 shell mount -t obdfs -odevice=/dev/obd1 none /mnt/obd
25 # Prepare a data set (tar file of current directory)
26 shell rm -f /tmp/obdtrace_test.tar
27 shell tar cf /tmp/obdtrace_test.tar .
28 # make a directory on obd device
29 shell mkdir -p /mnt/obd/obdtrace_test_dir
30 # Unpack tarfile to obd device
31 shell tar -C /mnt/obd/obdtrace_test_dir -xf /tmp/obdtrace_test.tar
32 shell rm -rf /mnt/obd/obdtrace_test_dir
33 # Check obdtrace performance stats
35 shell cat /proc/lustre/obd/1/stats
36 shell echo 0 > /proc/lustre/obd/1/stats
37 shell cat /proc/lustre/obd/1/stats
41 shell rm -f /tmp/obdtrace_test.tar
52 # Remove all loaded kernel modules