This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:datamigration [2021/05/03 12:13] ccrosby |
howto:datamigration [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======Migrating data from old to new Lustre====== | + | ====== |
| + | |||
| + | :!: **Do not attempt to simply copy all data over.** | ||
| + | |||
| + | ==== Background | ||
| With effect from 1 May 2021, there is a new 3 PB Lustre storage system available. | With effect from 1 May 2021, there is a new 3 PB Lustre storage system available. | ||
| Line 9: | Line 13: | ||
| From your home directory, '' | From your home directory, '' | ||
| - | As of 1 May 2021, it is already possible to do new runs directly using the new storage. | + | ===NB: Do not use the symbolic link in job scripts.=== |
| + | |||
| + | Use the full absolute path in job scripts, e.g., | ||
| + | |||
| + | cd / | ||
| + | |||
| + | (where '' | ||
| + | |||
| + | When you use the symbolic link this generates a file access via your home directory which is on NFS and this extra step slows down the job script for each and every file access. | ||
| + | |||
| + | |||
| + | |||
| + | ==== Policy ==== | ||
| + | |||
| + | As of 1 May 2021, it is already possible to do new runs directly using the new storage. | ||
| + | |||
| + | |||
| + | The original Lustre storage will be permanently retired shortly afterwards, as it has reached its lifetime limit. | ||
| + | |||
| + | Please refer to the [[guide: | ||
| + | |||
| + | * There is a strict **90-day lifetime** applied to files on Lustre.\\ **Any file that has not been accessed for read or write for 90 days or more will be automatically deleted without warning**. | ||
| + | |||
| + | *Data intended for future re-use or archiving must be stored elsewhere. | ||
| + | |||
| + | ==== Small files are a problem ==== | ||
| + | Generally speaking, large files of several hundred MB can be transferred at high speed, thanks to the inherent speed of both Lustre systems and the high-speed Infiniband networks connecting everything in the cluster. | ||
| + | |||
| + | < | ||
| + | cd / | ||
| + | tar cf - MyDataDirectory | tar xf - -C / | ||
| + | </ | ||
| + | Of course, this assumes that your username is " | ||
| + | < | ||
| + | cd / | ||
| + | tar czf - MyDataDirectory | tar xzf - -C / | ||
| + | </ | ||
| + | Do not use data compression if you haven' | ||
| + | |||
| + | However, bear in mind that we have tested the utility [[https:// | ||
| + | |||
| + | ==== Advice on copying data ==== | ||
| + | |||
| + | * Do not attempt to copy your data on login2, where there is a script that protects this login node from being overloaded. | ||
| + | |||
| + | * **Plan** your data migration. | ||
| + | |||
| + | ==== How to use bbcp ==== | ||
| + | |||
| + | bbcp can easily be used to copy data between different computers. | ||
| + | |||
| + | == Example == | ||
| + | |||
| + | This example will take the entire directory DataDirectory and copy it to the new Lustre space of the user jblogs. | ||
| + | < | ||
| + | bbcp -apr -s 4 -P 30 / | ||
| + | </ | ||
| + | The rather cryptic command line options mean the following: | ||
| + | ^ Option | ||
| + | | -a | append mode to restart a previously failed copy | | ||
| + | | -p | preserve source mode, ownership, and dates | | ||
| + | | -r | copy subdirectories and their contents (actual files only) | | ||
| + | | -s 4 | number of network streams to use (default is 4) | | ||
| + | | -P 30 | produce a progress message every sec seconds (15 sec minimum) | | ||
| + | |||
| + | == Other potentially useful options == | ||
| + | ^ Option ^ Meaning ^ | ||
| + | | -v | verbose (provide more informative output, such as transfer rate per file) | | ||
| + | | -O | omits files that already exist at the target node (useful with -r) | | ||
| + | | -c lvl | compress data before sending across the network (default lvl is 1) | | ||
| + | | -t sec | sets the time limit for the copy to complete | | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| - | Please refer to the [[guide: | ||
| - | - There is a strict 90-day lifetime applied to files on Lustre. | ||
| - | - Data intended for future re-use or archiving must be stored elsewhere. | ||