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.13 Replacing An Existing OST or MDS<br />

The OST filesystem is simply a normal ext3 filesystem. To copy the contents of an<br />

existing OST to a new OST (or an old MDS to a new MDS), use one of these<br />

methods:<br />

■ Connect the old OST disk and new OST disk to a single machine, mount both,<br />

and use rsync to copy all data between the OST filesystems.<br />

For example:<br />

■<br />

■<br />

mount -t ext3 /dev/old /mnt/ost_old<br />

mount -t ext3 /dev/new /mnt/ost_new<br />

rsync -aSv /mnt/ost_old/ /mnt/ost_new<br />

# note trailing slash on ost_old/<br />

If you are unable to connect both sets of disk to the same computer, use rsync to<br />

copy over the network using rsh (or ssh with -e ssh):<br />

rsync -aSvz /mnt/ost_old/ new_ost_node:/mnt/ost_new<br />

Use the same procedure for the MDS, with one additional step:<br />

cd /mnt/mds_old; getfattr -R -e base64 -d . > /tmp/mdsea; \<br />

; cd /mnt/mds_new; setfattr \<br />

--restore=/tmp/mdsea<br />

22.3.14 Handling/Debugging Error "- 28"<br />

Linux error -28 is -ENOSPC and indicates that the filesystem has run out of space.<br />

You need to create larger filesystems for the OSTs. Normally, <strong>Lustre</strong> reports this to<br />

your application. If the application is checking the return code from its function<br />

calls, then it decodes it into a textual error message like "No space left on device." It<br />

also appears in the system log messages.<br />

During a "write" or "sync" operation, the file in question resides on an OST which is<br />

already full. New files that are created do not use full OSTs, but existing files<br />

continue to use the same OST. You need to expand the specific OST or copy/stripe<br />

the file over to an OST with more space available. You encounter this situation<br />

occasionally when creating files, which may indicate that your MDS has run out of<br />

inodes and needs to be enlarged. To check this, use df -i<br />

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

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

Saved successfully!

Ooh no, something went wrong!