[Lustre-discuss] Shrinking the mdt volume

Carlson, Timothy S Timothy.Carlson at pnnl.gov
Tue Jul 9 18:19:50 PDT 2013

But how many inodes are in use on the MDT?  If you shrink the volume down you are by default going to have way fewer inodes on the MDT.  For example, my MDT is 450GB and using 31GB or 8% of the space but it is using 17% of the inodes available. 

You might have lots of big files in which case you don't have to worry about the inode count but I would check to see how many inodes were in use before you go crazy shrinking things down.

My past experience with the tar/xattr method of doing MDT movements following the manual verbatim has never been successful.. YMMV


-----Original Message-----
From: lustre-discuss-bounces at lists.lustre.org [mailto:lustre-discuss-bounces at lists.lustre.org] On Behalf Of Bob Ball
Sent: Tuesday, July 09, 2013 5:57 PM
To: hpdd-discuss at lists.01.org; Lustre discussion
Subject: [Lustre-discuss] Shirinking the mdt volume

When we set up our mdt volume, lo these many years past, we did it with a 2TB volume.  Overkill.  About 17G is actually in use.

This is a Lustre 1.8.4 system backed by about 450TB of OST on 8 servers.  I  would _love_ to shrink this mdt volume to a more manageable size, say, 50GB or so, as we are now in a down time before we upgrade to Lustre 2.1.6 on SL6.4.  I have taken a "dd" of the volume, and am now in the process of doing getfattr -R -d -m '.*' -P . > /tmp/mdt_ea.bak after which I will do a tar czf {backup file}.tgz --sparse /bin/tar is the SL5 version tar-1.20-6.x86_64.  This supports the --xattrs switch.  So, a choice here, should I instead use the --xattrs switch on the tar, or should I use --no-xattrs since the mdt_ea.bak will have all of them?

What are my prospects for success, if I restore that tar file to a smaller volume, then apply the attr backup, before I upgrade?

Answers and advice are greatly appreciated.


Lustre-discuss mailing list
Lustre-discuss at lists.lustre.org

More information about the lustre-discuss mailing list