1 .TH lfs_migrate 1 "Jul 21, 2010" Lustre "utilities"
4 \- simple tool to migrate files between Lustre OSTs
13 .RI [ file | "directory ..." ]
17 is a simple tool to assist migration of files between Lustre OSTs. It
18 is simply copying each specified file to a new file, verifying the file
19 contents have not changed, and then renaming the new file back to the
20 original filename. This allows balancing space usage between OSTs, moving
21 files of OSTs that are starting to show hardware problems (though are still
22 functional), or OSTs will be discontinued.
28 closely integrated with the MDS, it cannot determine whether a file
29 is currently open and/or in-use by other applications or nodes. That makes
33 for use on files that might be modified by other applications, since the
34 migrated file is only a copy of the current file, and this will result in
35 the old file becoming an open-unlinked file and any modifications to that
38 Files to be migrated can be specified as command-line arguments. If a
39 directory is specified on the command-line then all files within that
40 directory are migrated. If no files are specified on the command-line,
41 then a list of files is read from the standard input, making
45 to locate files on specific OSTs and/or matching other file attributes.
47 The current file allocation policies on MDS dictate where the new files
48 are placed, taking into account whether specific OSTs have been disabled
51 (preventing new files from being allocated there), whether
52 some OSTs are overly full (reducing the number of files placed on those
53 OSTs), or if there is a specific default file striping for the target
54 directory (potentially changing the stripe count, stripe size, OST pool,
55 or OST index of a new file).
59 Display help information.
62 Migrate files with hard links (skip by default). Files with multiple
63 hard links will be split into multiple separate files by
65 so they are skipped by default to avoid breaking the hard links.
68 Only print the names of files to be migrated
71 Run quietly (don't print filenames or status)
74 Restripe file using default directory striping instead of keeping striping.
77 skip file data comparison after migrate. Default is to compare migrated file
78 against original to verify correctness.
81 Answer 'y' to usage warning without prompting (for scripts, use with caution).
83 To rebalance all files within
86 lfs_migrate /mnt/lustre/file
88 To migrate files within the
90 filesystem on OST0004 larger than 4GB in size:
92 lfs find /test -obd test-OST0004 -size +4G | lfs_migrate -y
94 Hard links could be handled correctly in Lustre 2.0 by using
95 .BR lfs (1) " fid2path" .
97 Eventually, this functionality will be integrated into
99 itself and will integrate with the MDS layout locking to make it safe
100 in the presence of opened files and ongoing file IO.
102 Please report all bugs to http://bugzilla.lustre.org/
107 filesystem package. Added in the 1.8.4 release.