23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LNET self-test includes two user utilities, lst and lstclient.<br />

lst is the user interface for the self-test console (run on console node). It provides a<br />

list of commands to control the entire test system, such as create session, create test<br />

groups, etc.<br />

lstclient is the userspace self-test program which is linked with userspace LNDs and<br />

LNET. A user can invoke lstclient to join a self-test session:<br />

lstclient -sesid CONSOLE_NID group NAME<br />

Example<br />

This is an example of an LNET self-test script which simulates the traffic pattern of a<br />

set of <strong>Lustre</strong> servers on a TCP network, accessed by <strong>Lustre</strong> clients on an IB network<br />

(connected via LNET routers), with half the clients reading and half the clients<br />

writing.<br />

#!/bin/bash<br />

export LST_SESSION=$$<br />

lst new_session read/write<br />

lst add_group servers 192.168.10.[8,10,12-16]@tcp<br />

lst add_group readers 192.168.1.[1-253/2]@o2ib<br />

lst add_group writers 192.168.1.[2-254/2]@o2ib<br />

lst add_batch bulk_rw<br />

lst add_test --batch bulk_rw --from readers --to servers<br />

check=simple size=1M<br />

lst add_test --batch bulk_rw --from writers --to servers<br />

check=full size=4K<br />

# start running<br />

lst run bulk_rw<br />

# display server stats for 30 seconds<br />

lst stat servers & sleep 30; kill $?<br />

# tear down<br />

lst end_session<br />

brw read<br />

brw write<br />

32-28 <strong>Lustre</strong> 1.7 <strong>Operations</strong> <strong>Manual</strong> • August 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!