Rapid system transfers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Recently we've had the need to move a few machine instances from one physical machine to a more powerful machine. These machines use Reiser (an old version, don't know exactly which one, but it's probably RH 8.0) because a portion of the fs contains a lot of small files. It requires us to basically bring the system down (database) and rsync it over to another box. On boxes where we have ext3 filesystems, we can do dump/restore and have the systems up and running in a couple of hours. We don't have the same luxury with this Reiser system. rsyncing a few million files (100 GB) across a 100 Mbit link is much slower than a comparable dump/restore.
What do others do to handle this situation? Are there tools and utilities out there that I'm not aware of?
- --
Blue skies... Todd Public key: http://www.mrball.net/todd.asc
SourceForge Syndrome (ie, how to damage other open source projects):
Q. I found a problem/bug/annoyance, how do I solve it? A. Clearly, a brand new sourceforge project is called for.
Linux kernel 2.4.22-12.tmb.1mdk 2 users, load average: 0.00, 0.00, 0.00
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: http://www.mrball.net/todd.asc
iD8DBQFAW6RCIBT1264ScBURAnmVAJsGDDyDdIV/t4TEZO7ZMUbG1BVlSQCePbXh R4z/+jGhzbEmniEVSS+OJ5U=
=hZie
-----END PGP SIGNATURE-----
Quoted 14 lines · Todd Lyons
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Recently we've had the need to move a few machine instances from one physical machine to a more powerful machine. These machines use Reiser (an old version, don't know exactly which one, but it's probably RH 8.0) because a portion of the fs contains a lot of small files. It requires us to basically bring the system down (database) and rsync it over to another box. On boxes where we have ext3 filesystems, we can do dump/restore and have the systems up and running in a couple of hours. We don't have the same luxury with this Reiser system. rsyncing a few million files (100 GB) across a 100 Mbit link is much slower than a comparable dump/restore.
Quoted 2 lines
What do others do to handle this situation? Are there tools and utilities out there that I'm not aware of?
If most of the files remain unchanged, I'd make an initial copy with cpio while things are running and use rsync to copy the changes while the database is shut down.
(cpio is somewhat faster for initial copy. rsync is much better for copying the changes).
Worked great for backing up clearcase VOBs.
You can test the timing while things are still in production.
Signature · 2 lines
Chris Dukes Been there, done that, got the slightly-charred t-shirt. -- Crowder
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chris Dukes wanted us to know:
Quoted 6 lines
Quoted 3 lines
Recently we've had the need to move a few machine instances from one physical machine to a more powerful machine. These machines use Reiser (an old version, don't know exactly which one, but it's probably RH 8.0)
If most of the files remain unchanged, I'd make an initial copy with cpio while things are running and use rsync to copy the changes while the database is shut down.
My wording was poor, my apologies. The database part is just a few hundred files, some of which are very large. No big deal. The file part (a bunch of small text files) is a few million files totalling around 100 GB of information. Just *COUNTING* those files takes 2+ hours, then the remote system has to count them too. The actual data transfer is very small. But we have to have the system down for 5 hours to do this (and the first transfer we did was only 30 GB).
Quoted 2 lines
(cpio is somewhat faster for initial copy. rsync is much better for copying the changes).
We used tar to do the copying. I'll give cpio a try to see how performance works.
Blue skies... Todd
- --
A: No
Q: Should I quote at the end of the message?
Linux kernel 2.4.22-12.tmb.1mdk 1 user, load average: 0.00, 0.00, 0.00
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: http://www.mrball.net/todd.asc
iD4DBQFAXRkbIBT1264ScBURAjYtAJiE2kt/wqwu++dD6IkQfi8SNj5zAKCDVTyl 3ZjaDtMVfg1IMXsaCYlrBQ==
=aVY6
-----END PGP SIGNATURE-----
rsync is great for WAN/Internet stuff. I use the following to copy an entire file tree (or an entire system):
<On the source>
tar c / | nc -l -p 100
<On the target>
tar x </dev/tcp/<source>/100
Even better is to install the source disks on the target machine and transfer everything locally with a cd /source; tar c / | tar xC /target
I used this with reiser3 without problems about 6 times.
If the source/target filesystems are the same size, you should be able to transfer the raw file system data, with nc.
Quoted 30 lines · Todd Lyons
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Recently we've had the need to move a few machine instances from one physical machine to a more powerful machine. These machines use Reiser (an old version, don't know exactly which one, but it's probably RH 8.0) because a portion of the fs contains a lot of small files. It requires us to basically bring the system down (database) and rsync it over to another box. On boxes where we have ext3 filesystems, we can do dump/restore and have the systems up and running in a couple of hours. We don't have the same luxury with this Reiser system. rsyncing a few million files (100 GB) across a 100 Mbit link is much slower than a comparable dump/restore.
What do others do to handle this situation? Are there tools and utilities out there that I'm not aware of?
- --
Blue skies... Todd Public key: http://www.mrball.net/todd.asc
SourceForge Syndrome (ie, how to damage other open source projects):
Q. I found a problem/bug/annoyance, how do I solve it? A. Clearly, a brand new sourceforge project is called for.
Linux kernel 2.4.22-12.tmb.1mdk 2 users, load average: 0.00, 0.00, 0.00
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: http://www.mrball.net/todd.asciD8DBQFAW6RCIBT1264ScBURAnmVAJsGDDyDdIV/t4TEZO7ZMUbG1BVlSQCePbXh R4z/+jGhzbEmniEVSS+OJ5U=
=hZie
-----END PGP SIGNATURE-----