Changes between Version 1 and Version 2 of bdsync


Ignore:
Timestamp:
Dec 11, 2014, 7:42:19 PM (5 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • bdsync

    v1 v2  
    5555=== Create first diff ===
    5656
     57On the target machine, figure out which device is the one being used, e.g.:
     58
     59{{{
     600 cleaver:~# ls -l /dev/mapper/vg_cleaver0-fuller
     61lrwxrwxrwx 1 root root 7 Dec 11 19:39 /dev/mapper/vg_cleaver0-fuller -> ../dm-3
     620 cleaver:~#
     63}}}
     64
     65Then, chgrp it so that the bdsync user can read it:
     66
     67{{{
     68chgrp bdsync /dev/dm-3
     69}}}
     70
    5771On the source machine execute the following command. Replace $LOCALDEV with the path to the block device on the local machine and $REMDEV with the path of the block device on the remote machine (e.g. /dev/mapper/vg_kiyoshi0-chavez). Replace $TARGETSERVER with the name of the target server (e.g. "chavez"):
    5872
     
    6074
    6175ionice -c 2 -n 7 bdsync "ssh bdsync@$TARGETSERVER.mayfirst.org bdsync --server" $LOCDEV $REMDEV | gzip > DEV.bdsync.gz
     76
     77If you have problems, check syslog on the target server.
    6278
    6379Now, copy the diff to the target machine.