Whamcloud - gitweb
b=22481 Add "lfs_migrate" script from manual into lustre/scripts and RPMs
authorAndreas Dilger <adilger@mookie.adilger.int>
Fri, 4 Jun 2010 17:54:07 +0000 (11:54 -0600)
committerRobert Read <robert.read@oracle.com>
Thu, 10 Jun 2010 04:39:52 +0000 (21:39 -0700)
commit1c3bb7cd682d2f4d26d9f04f5a5774bffa6df1e3
tree87667c337093caf81d0ac8c45b75569075e4b253
parent09803193a151902acc39720946b831b90655c4a8
b=22481 Add "lfs_migrate" script from manual into lustre/scripts and RPMs

Add enhanced lfs_migrate script from manual into lustre/scripts directory
and in RPM packages.  It does a "poor man's" migration of files from
their current OST layout to a new OST layout as chosen by the MDS.
It is currently not safe to use for files that are being written to.
It will result in the current file becoming an open-unlinked file, and
the migrated file will be used for any subsequent opens.  Any writes to
either the old or migrated file will in clients seeing different data,
and writes to the old file will be lost when it is closed.

There is no direct control of object allocation within the script, it
depends on external control to manage space.  Use "lfs find" to
select appropriate files to migrate from full OSTs. "lctl --deactivate"
is needed on the MDS to deactivate OSTs if trying to empty an OST
completely, otherwise QOS will tend to migrate files to empty OSTs.

i=brian.murrell
i=nathan.rutman
lustre/scripts/Makefile.am
lustre/scripts/lfs_migrate [new file with mode: 0644]