Re: bash script: move large LV to another machine
Ed Heron <[email protected]> Fri, 16 Sep 2011 10:26:09 -0600
| Newsgroups | gmane.org.user-groups.nmlug |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2011-09-15 at 17:52 -0600, Geoff Chesshire wrote: > Hi Ed, > > > skip may be the wrong parameter on the write dd. I changed it to seek. > > Definitely. Thanks. > > I notice seek talks about breaking the file at that point which can't > > really be done with a block device... > > You could use the "notrunc" argument to avoid this. You might also try > the "fdatasync" argument. I'll take a look at those. > > I'm starting to get the feeling that I'm trying to use dd in a way that > > wasn't intended... > > I think you're on the right track; it should work. Someone has tried > something like this before and apparently got it to work: > http://lists.samba.org/archive/rsync/2010-June/025164.html ... He used > perl to read and write, but I think dd should work just as well or better. I've avoided Perl, so far. I know it's unreasonable, but looking at Perl syntax gives me flashbacks to smooshed APL code. The thoughts behind that thread are interesting. They say that even if rsync is patched, it does more work than necessary to synchronize block devices. I wouldn't want to cache checksums because I wouldn't want to trust that the file hasn't been modified without changing modification date. I'm paranoid... > Geoff _______________________________________________ NMLUG mailing list [email protected] http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug