naive question about rsync: run it on a client or on NSD server?
We must replicate about 100 TB data between two filesystems supported by two different storages (DDN9900 and DDN7990) both connected to the same NSD servers (6 of them) and we plan to use rsync. Non special GPFS attributes, just the standard POSIX one, we plan to use the standard rsync. The question: is there any advantage in running the rsync on one of the NSD server or is better to run it on a client? The environment: GPFS 4.2.3.19, NSD CentOS7.4, clients mostly CentOS6.4 (connected by IB QDR) and CentOS7.3 (connected by OPA), connection between NSD and storage with IB QDR) Giovanni -- Giovanni Bracco phone +39 351 8804788 E-mail giovanni.bracco@enea.it WWW http://www.afs.enea.it/bracco
I wouldn't run it on an NSD server. Ideally you want to avoid running other processes etc on there. If you are running on clients, you also might want to look at: https://github.com/hpc/mpifileutils And use MPI to parallelise the find and copy. Simon On 14/02/2020, 14:25, "gpfsug-discuss-bounces@spectrumscale.org on behalf of giovanni.bracco@enea.it" <gpfsug-discuss-bounces@spectrumscale.org on behalf of giovanni.bracco@enea.it> wrote: We must replicate about 100 TB data between two filesystems supported by two different storages (DDN9900 and DDN7990) both connected to the same NSD servers (6 of them) and we plan to use rsync. Non special GPFS attributes, just the standard POSIX one, we plan to use the standard rsync. The question: is there any advantage in running the rsync on one of the NSD server or is better to run it on a client? The environment: GPFS 4.2.3.19, NSD CentOS7.4, clients mostly CentOS6.4 (connected by IB QDR) and CentOS7.3 (connected by OPA), connection between NSD and storage with IB QDR) Giovanni -- Giovanni Bracco phone +39 351 8804788 E-mail giovanni.bracco@enea.it WWW http://www.afs.enea.it/bracco _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Some (perhaps obvious) points to consider: - There are some corner cases (e.g. preserving hard-linked files or sparseness) which require special options. - Depending on your level of churn, it may be helpful to pre-stage the sync before your cutover so that there is less data movement required, and you're primarily comparing metadata. - Files on the source filesysytem might change (and become internally inconsistent) during your rsync, so you should generally sync from a snapshot on the source. - If users can still modify the source filesystem, then you might not get everything. For the final sync, you may need to make the source read-only, or unmount it on clients, kill user processes, or some combination to prevent all new writes from succeeding. (If you're going to use the clients for MPI sync, you obviously need the filesystem to remain mounted there so you may need to take other measures to keep users away.) - If you decide to do a final "offline" sync, you want it to be fast so users can get back to work sooner, so parallelism is usually a must. If you have lots of filesets, then that's a convenient way to split the work. - If you have any filesets with many more inodes than the others, keep in mind that those will likely take the longest to complete. - Test, test, test. You usually won't get this right on the first go or know how long a full sync takes without practice. Remember that you'll need to employ options to delete extraneous files on the target when you're syncing over the top of a previous attempt, since files intentionally deleted on the source aren't usually welcome if they reappear after a migration. - Verify. Whether you use rsync of dsync, repeating the process with dry-run/no-op flags which report differences can be helpful to increase your confidence in the process. If you don't have time to verify after the final offline sync, hopefully you were able to fit this in during testing. Some thoughts about whether it's appropriate to use NSD servers as sync hosts... - If they are the managers and they have the best (direct) connectivity to the metadata NSDs, then I would at least consider them before ruling this out, with caveats... - do they have enough available RAM and CPU? - where do they get their software? Do you trust the version of kernel/libc/rsync there to behave as you expect? - if the data NSDs aren't local to these NSD servers, do they have sufficient network connectivity to not cause other problems during the sync? - Test at low parallelism and work your way up. You can also compare performance of this method with any other, on a small scale, in your environment to see what you can expect from each. Good luck, Paul -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Simon Thompson Sent: Friday, February 14, 2020 09:57 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] naive question about rsync: run it on a client or on NSD server? This message was sent by an external party. I wouldn't run it on an NSD server. Ideally you want to avoid running other processes etc on there. If you are running on clients, you also might want to look at: https://github.com/hpc/mpifileutils And use MPI to parallelise the find and copy. Simon On 14/02/2020, 14:25, "gpfsug-discuss-bounces@spectrumscale.org on behalf of giovanni.bracco@enea.it" <gpfsug-discuss-bounces@spectrumscale.org on behalf of giovanni.bracco@enea.it> wrote: We must replicate about 100 TB data between two filesystems supported by two different storages (DDN9900 and DDN7990) both connected to the same NSD servers (6 of them) and we plan to use rsync. Non special GPFS attributes, just the standard POSIX one, we plan to use the standard rsync. The question: is there any advantage in running the rsync on one of the NSD server or is better to run it on a client? The environment: GPFS 4.2.3.19, NSD CentOS7.4, clients mostly CentOS6.4 (connected by IB QDR) and CentOS7.3 (connected by OPA), connection between NSD and storage with IB QDR) Giovanni -- Giovanni Bracco phone +39 351 8804788 E-mail giovanni.bracco@enea.it WWW http://www.afs.enea.it/bracco _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 14/02/2020 16:24, Sanchez, Paul wrote:
Some (perhaps obvious) points to consider:
- There are some corner cases (e.g. preserving hard-linked files or sparseness) which require special options.
- Depending on your level of churn, it may be helpful to pre-stage the sync before your cutover so that there is less data movement required, and you're primarily comparing metadata.
- Files on the source filesysytem might change (and become internally inconsistent) during your rsync, so you should generally sync from a snapshot on the source. In my experience this causes an rsync to exit with a none zero error code. See later as to why this is useful. Also it will likely have a different mtime that will cause it be resynced on a subsequent run, the final one will be with the file system in a "read only" state. Not necessarily mounted read only but without anything running that might change stuff.
[SNIP]
- If you decide to do a final "offline" sync, you want it to be fast so users can get back to work sooner, so parallelism is usually a must. If you have lots of filesets, then that's a convenient way to split the work.
This final "offline" sync is an absolute must, in my experience unless you are able to be rather woolly about preserving data.
- If you have any filesets with many more inodes than the others, keep in mind that those will likely take the longest to complete.
Indeed. We found last time that we did an rsync which was for a HPC system from the put of woe that is Lustre to GPFS there was huge mileage to be hand from telling users that they would get on the new system once their data was synced, it would be done on a "per user" basis with the priority given to the users with a combination of the smallest amount of data and the smallest number of files. Did unbelievable wonders for the users to clean up their files. One user went from over 17 million files to under 50 thousand! The amount of data needing syncing nearly halved. It shrank to ~60% of the pre-announcement size.
- Test, test, test. You usually won't get this right on the first go or know how long a full sync takes without practice. Remember that you'll need to employ options to delete extraneous files on the target when you're syncing over the top of a previous attempt, since files intentionally deleted on the source aren't usually welcome if they reappear after a migration.
rsync has a --delete option for that. I am going to add that if you do any sort of ILM/HSM then an rsync is going to destroy you ability to identify old files that have not been accessed, as the rsync will up date the atime of everything (don't ask how I know). If you have a backup (of course you do) I would strongly recommend considering getting your first "pass" from a restore. Firstly it won't impact the source file system while it is still in use and second it allows you to check your backup actually works :-) Finally when rsyncing systems like this I use a Perl script with an sqlite DB. Basically a list of directories to sync, you can have both source and destination to make wonderful things happen if wanted, along with a flag field. The way I use that is -1 means not synced, -2 means the folder in question is currently been synced, and anything else is the exit code of rsync. If you write the Perl script correctly you can start it on any number of nodes, just dump the sqlite DB on a shared folder somewhere (either the source or destination file systems work well here). If you are doing it in parallel record the node which did the rsync as well it can be useful in finding any issues in my experience. Once everything is done you can quickly check the sqlite DB for none zero flag fields to find out what if anything has failed, which gives you the confidence that your sync has completed accurately. Also any flag fields less than zero show you it's not finished. Finally you might want to record the time each individual rsync took, it's handy for working out that ordering I mentioned :-) JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Disregarding all the other reasons not to run it on the NSDs, many years of rsync on GPFS has shown us it is ALWAYS faster from clients with reasonable networks and no other overhead. Ed -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Giovanni Bracco Sent: Friday, February 14, 2020 8:25 AM To: gpfsug-discuss@spectrumscale.org Subject: [gpfsug-discuss] naive question about rsync: run it on a client or on NSD server? We must replicate about 100 TB data between two filesystems supported by two different storages (DDN9900 and DDN7990) both connected to the same NSD servers (6 of them) and we plan to use rsync. Non special GPFS attributes, just the standard POSIX one, we plan to use the standard rsync. The question: is there any advantage in running the rsync on one of the NSD server or is better to run it on a client? The environment: GPFS 4.2.3.19, NSD CentOS7.4, clients mostly CentOS6.4 (connected by IB QDR) and CentOS7.3 (connected by OPA), connection between NSD and storage with IB QDR) Giovanni -- Giovanni Bracco phone +39 351 8804788 E-mail giovanni.bracco@enea.it WWW https://urldefense.com/v3/__http://www.afs.enea.it/bracco__;!!KGKeukY!g5RuD3... _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discus...
Our experience matches Ed. I have a vague memory that clients will balance traffic across all NSD servers based on the preferred list for each NSD, whereas NSD servers will just read from each NSD directly. On Fri, Feb 14, 2020 at 04:13:30PM +0000, Wahl, Edward wrote:
Disregarding all the other reasons not to run it on the NSDs, many years of rsync on GPFS has shown us it is ALWAYS faster from clients with reasonable networks and no other overhead.
Ed
-----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Giovanni Bracco Sent: Friday, February 14, 2020 8:25 AM To: gpfsug-discuss@spectrumscale.org Subject: [gpfsug-discuss] naive question about rsync: run it on a client or on NSD server?
We must replicate about 100 TB data between two filesystems supported by two different storages (DDN9900 and DDN7990) both connected to the same NSD servers (6 of them) and we plan to use rsync.
Non special GPFS attributes, just the standard POSIX one, we plan to use the standard rsync.
The question: is there any advantage in running the rsync on one of the NSD server or is better to run it on a client?
The environment: GPFS 4.2.3.19, NSD CentOS7.4, clients mostly CentOS6.4 (connected by IB QDR) and CentOS7.3 (connected by OPA), connection between NSD and storage with IB QDR)
-- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department, System Administrator -- Foege Building S046, (206)-685-7354 -- University of Washington School of Medicine
participants (6)
-
Giovanni Bracco -
Jonathan Buzzard -
Sanchez, Paul -
Simon Thompson -
Skylar Thompson -
Wahl, Edward
