On May 17, 2005 15:52 -0700, Jeffrey W. Baker wrote:> What''s the best recipe for moving the MDS to a new filesystem? When I > initially created mine, I ended up with too few inodes. Now that has > become a real problem, and I''d like to move the MDS to the vast pastures > of a new device. > > But how? I need to format the MDS filesystem on the new device, then > somehow copy all the data from the old to the new. Two questions: how > can I format the new device without destroying the existing filesystem? > and, how to move the old data to the new filesystem? Dare I hope that > cp, cpio, tar, or similar can do the trick?There is a Knowledge Base article on this subject: https://bugzilla.lustre.org/show_bug.cgi?id=5716 You want to backup + restore the MDS filesystem onto a larger device, after having created a larger ext3 filesystem on the new device. Use the steps that include backing up the EAs from the MDS with getfattr. It is not currently possible to use resize2fs on an MDS filesystem because of the large inode support. Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.
Jeffrey W. Baker
2006-May-19 07:36 UTC
[Lustre-discuss] How to move MDS to a new filesystem
What''s the best recipe for moving the MDS to a new filesystem? When I initially created mine, I ended up with too few inodes. Now that has become a real problem, and I''d like to move the MDS to the vast pastures of a new device. But how? I need to format the MDS filesystem on the new device, then somehow copy all the data from the old to the new. Two questions: how can I format the new device without destroying the existing filesystem? and, how to move the old data to the new filesystem? Dare I hope that cp, cpio, tar, or similar can do the trick? -jwb