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.

Note – CluManager requires two 10M LUNs visible to each member of a failover<br />

group.<br />

For more information, see:<br />

http://www.redhat.com/docs/manuals/enterprise/RHEL-3-<br />

<strong>Manual</strong>/cluster-suite/<br />

For more download, see:<br />

http://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/RHCS/i386<br />

/SRPMS/<br />

In the future, we hope to publish more information and sample scripts to configure<br />

Heartbeat and CluManager with <strong>Lustre</strong>.<br />

Is there a way to tell which OST a process on a client is using?<br />

If a process is doing I/O to a file, use the lfs getstripe command to see the OST to<br />

which it is writing.<br />

Using cat as an example, run:<br />

$ cat > foo<br />

While that is running, on another terminal, run:<br />

$ readlink /proc/$(pidof cat)/fd/1<br />

/barn/users/jacob/tmp/foo<br />

You can also ls -l /proc//fd/ to find open files using <strong>Lustre</strong>.<br />

$ lfs getstripe $(readlink /proc/$(pidof cat)/fd/1)<br />

OBDS:<br />

0: databarn-ost1_UUID ACTIVE<br />

1: databarn-ost2_UUID ACTIVE<br />

2: databarn-ost3_UUID ACTIVE<br />

3: databarn-ost4_UUID ACTIVE<br />

/barn/users/jacob/tmp/foo<br />

obdidx objid objid group<br />

2 835487 0xcbf9f 0<br />

The output shows that this file lives on obdidx 2, which is databarn-ost3.<br />

D-18 <strong>Lustre</strong> <strong>1.6</strong> <strong>Operations</strong> <strong>Manual</strong> • September 2008

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

Saved successfully!

Ooh no, something went wrong!