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.

22.3.7 Viewing Parameters<br />

To view the parameters set in the configuration log:<br />

1. Unmount the MGS.<br />

2. Mount the MGS disk as<br />

# mount -t ldiskfs /dev/sda /mnt/mgs<br />

3. Use the llog-reader utility to display the contents of the various configuration<br />

logs under the CONFIGS directory.<br />

# /usr/sbin/llog-reader /mnt/mgs/CONFIGS/testfs-client<br />

4. Look for items marked "param".<br />

5. Check the other logs for parameters that affect those targets, e.g. testfs-<br />

MDT0000 for MDT settings.<br />

The current settings allow you to easily change a parameter. However, there is no<br />

simple way to delete a parameter. Shut down all targets and enter the --writeconf<br />

command to regenerate the logs. Then, add back all of your modified settings.<br />

When you enter the --writeconf command, you can set modified settings for each<br />

device using following commands.<br />

mdt# tunefs.lustre --writeconf --param="failover.mode=failout" /dev/sda<br />

ost1# tunefs.lustre --writeconf --erase-params<br />

--param="failover.node=192.168.0.13@tcp0"<br />

--param="osc.max_dirty_mb=29.15" /dev/sda<br />

Use the --erase-params flag to clear old paramers from the tunefs list. Without<br />

the --writeconf command, clearing the parameters has no effect.<br />

If you change the parameters exclusively via tunefs (not using lctl), then<br />

tunefs.lustre --print shows you the list of parameters. For production<br />

systems, this is the preferred way to set parameters, as the parameters sustain<br />

--writeconf. Parameters set via lctl conf_param do not sustain --writeconf.<br />

You can also perform similar operations without unmounting the filesystem. Run:<br />

debugfs -c -R 'dump CONFIGS/testfs-client /tmp/testfs-client' /dev/sda<br />

llog_reader /tmp/testfs-client<br />

Chapter 22 <strong>Lustre</strong> Troubleshooting Tips 22-9

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

Saved successfully!

Ooh no, something went wrong!