Changes between Version 1 and Version 2 of bdsync
- Timestamp:
- Dec 12, 2014, 12:42:19 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
bdsync
v1 v2 55 55 === Create first diff === 56 56 57 On the target machine, figure out which device is the one being used, e.g.: 58 59 {{{ 60 0 cleaver:~# ls -l /dev/mapper/vg_cleaver0-fuller 61 lrwxrwxrwx 1 root root 7 Dec 11 19:39 /dev/mapper/vg_cleaver0-fuller -> ../dm-3 62 0 cleaver:~# 63 }}} 64 65 Then, chgrp it so that the bdsync user can read it: 66 67 {{{ 68 chgrp bdsync /dev/dm-3 69 }}} 70 57 71 On 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"): 58 72 … … 60 74 61 75 ionice -c 2 -n 7 bdsync "ssh bdsync@$TARGETSERVER.mayfirst.org bdsync --server" $LOCDEV $REMDEV | gzip > DEV.bdsync.gz 76 77 If you have problems, check syslog on the target server. 62 78 63 79 Now, copy the diff to the target machine.