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.

13.2.5 Upgrading Multiple File Systems with a Shared<br />

MGS<br />

The upgrade order is: MGS first, then for any single file system the MDT must be<br />

upgraded and mounted, and then the OSTs for that file system. If the MGS is<br />

co-located with the MDT, the old configuration logs stored on the MDT are<br />

automatically transferred to the MGS. If the MGS is not co-located with the MDT<br />

(for a site with multiple file systems), the old config logs must be manually<br />

transferred to the MGS.<br />

1. Format the MGS node, but do not start it.<br />

mgsnode# mkfs.lustre --mgs /dev/hda4<br />

2. Mount the MGS disk as type ldiskfs.<br />

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

3. For each MDT, copy the MDT and client startup logs from the MDT to the<br />

MGS, renaming them as needed. There is a script that helps automate this<br />

process—lustre_up14.sh<br />

mdt1# lustre_up14 /dev/hda4 lustre<br />

debugfs 1.35 (28-Feb-2004)<br />

/dev/hda4: catastrophic mode - not reading inode or group bitmaps<br />

Copying log 'mds-1' to 'lustre-MDT0000'. Okay [y/n]?y<br />

Copying log 'client' to 'lustre-client'. Okay [y/n]?y<br />

ls -l /tmp/logs<br />

total 24<br />

-rw-r--r-- 1 root root 9448 Oct 22 17:46 lustre-client<br />

-rw-r--r-- 1 root root 9080 Oct 22 17:46 lustre-MDT0000<br />

mdt1# cp /tmp/logs/lustre-* /mnt/tmp/CONFIGS/<br />

cp: overwrite `/mnt/tmp/CONFIGS/lustre-client'? y<br />

cp: overwrite `/mnt/tmp/CONFIGS/lustre-MDT0000'? y<br />

4. Unmount the MGS ldiskfs mount.<br />

mgsnode# umount /mnt/mgs<br />

5. Start the MGS.<br />

mgsnode# mount -t lustre /dev/hda4 /mnt/mgs<br />

6. Shut down one of the old MDTs.<br />

mdt1# lconf --failover --cleanup config.xml<br />

Chapter 13 Upgrading <strong>Lustre</strong> 13-7

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

Saved successfully!

Ooh no, something went wrong!