Changes between Version 9 and Version 10 of bdsync
- Timestamp:
- Jul 11, 2018, 7:12:55 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
bdsync
v9 v10 122 122 === Let's begin === 123 123 124 On the source machine execute the following command as root. Replace $ LOCALDEV (e.g. /dev/mapper/vg_ken0-debs) 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_cleaver0-debs). Replace $TARGETSERVER with the name of the target server (e.g. "cleaver"):124 On the source machine execute the following command as root. Replace $SOURCE_VG with the volume group on the source machine and $TARGET_VG with the volume group name on the target machine. Replace $GUEST with the logical volume name and $TARGET_SERVER with the name of the target server: 125 125 126 126 Running via ionice ensures that it doesn't kill all disk i/o on the machine. 127 127 {{{ 128 ionice -c 2 -n 7 bdsync "ssh bdsync@$TARGETSERVER.mayfirst.org bdsync --server" $LOCDEV $REMDEV | gzip > DEV.bdsync.gz 128 cd /root/bdsync 129 ionice -c 2 -n 7 bdsync "ssh bdsync@$TARGET_SERVER.mayfirst.org bdsync --server" /dev/mapper/$SOURCE_VG-$GUEST /dev/mapper/$TARGET_VG-$GUEST | gzip > $GUEST.bdsync.gz 130 }}} 131 132 If you were moving the guest augusto from the source victoria to the target llosa, it would look like this: 133 134 {{{ 135 # From victoria... 136 cd /root/bdsync 137 ionice -c 2 -n 7 bdsync "ssh bdsync@llosa.mayfirst.org bdsync --server" /dev/mapper/vg_victoria0-augusto /dev/mapper/llosa0-augusto | gzip > augusto.bdsync.gz 129 138 }}} 130 139 … … 134 143 135 144 {{{ 136 scp DEV.bdsync.gz bdsync@$TARGETSERVER.mayfirst.org:145 scp $GEUST.bdsync.gz bdsync@$TARGET_SERVER.mayfirst.org:bdsync/ 137 146 }}} 138 147 … … 142 151 143 152 {{{ 144 gunzip -c DEV.bdsync.gz | bdsync --patch=$REMDEV153 gunzip -c $GUEST.bdsync.gz | bdsync --patch=/dev/mapper/$TARGET_VG-$GUEST 145 154 }}} 146 155