Re: Online migration of arbitrary filesystems, possible?

2013-04-02 Thread Valdis . Kletnieks
On Mon, 01 Apr 2013 17:50:43 -0300, Daniel Hilst said: Any reason you can't just 'rsync /source-fs /dest-fs'? because I can't use dest-fs while rsynching Sure you can. You just have to remember to pay attention to race conditions - if you create foo/bar.dat on the dest and then rsync wants

Re: Online migration of arbitrary filesystems, possible?

2013-04-01 Thread Daniel Hilst
On 29-03-2013 18:06, valdis.kletni...@vt.edu wrote: On Fri, 29 Mar 2013 17:09:14 -0300, Daniel Hilst said: The idea is, mount both filesystems together, and make write/read operations go on this way Read operations: 1. See if data is already on dest fs, 2. If is then read data

Re: Online migration of arbitrary filesystems, possible?

2013-04-01 Thread Daniel Hilst
On 29-03-2013 17:28, Greg Freemyer wrote: On Fri, Mar 29, 2013 at 4:09 PM, Daniel Hilst danielhi...@gmail.com wrote: Suppose that I have two big filesystems, dest fs and source fs.. I want to copy whole source fs to dest fs, but I need to keep source filesystem online I can't mount source fs

Re: Online migration of arbitrary filesystems, possible?

2013-04-01 Thread Jason Ball
Ive had to do something similar before. It is painful, but doable. * create the directory structure on the target. (find -exec...) * create a symlink for every file on the target device, obviously pointing to the origin device. (Find) File system should be useable. * progressively

Online migration of arbitrary filesystems, possible?

2013-03-29 Thread Daniel Hilst
Suppose that I have two big filesystems, dest fs and source fs.. I want to copy whole source fs to dest fs, but I need to keep source filesystem online I can't mount source fs read only and copy.. The idea is, mount both filesystems together, and make write/read operations go on this way Read

Re: Online migration of arbitrary filesystems, possible?

2013-03-29 Thread Greg Freemyer
On Fri, Mar 29, 2013 at 4:09 PM, Daniel Hilst danielhi...@gmail.com wrote: Suppose that I have two big filesystems, dest fs and source fs.. I want to copy whole source fs to dest fs, but I need to keep source filesystem online I can't mount source fs read only and copy.. The idea is, mount

Re: Online migration of arbitrary filesystems, possible?

2013-03-29 Thread Valdis . Kletnieks
On Fri, 29 Mar 2013 17:09:14 -0300, Daniel Hilst said: The idea is, mount both filesystems together, and make write/read operations go on this way Read operations: 1. See if data is already on dest fs, 2. If is then read data and bright back to caller (lets call this cold read)