Changes between Version 9 and Version 10 of bdsync


Ignore:
Timestamp:
Jul 11, 2018, 3:12:55 PM (11 days ago)
Author:
https://id.mayfirst.org/jamie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • bdsync

    v9 v10  
    122122=== Let's begin ===
    123123
    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"):
     124On 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:
    125125
    126126Running via ionice ensures that it doesn't kill all disk i/o on the machine.
    127127{{{
    128 ionice -c 2 -n 7 bdsync "ssh bdsync@$TARGETSERVER.mayfirst.org bdsync --server" $LOCDEV $REMDEV | gzip > DEV.bdsync.gz
     128cd /root/bdsync
     129ionice -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
     132If you were moving the guest augusto from the source victoria to the target llosa, it would look like this:
     133
     134{{{
     135# From victoria...
     136cd /root/bdsync
     137ionice -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
    129138}}}
    130139
     
    134143
    135144{{{
    136 scp DEV.bdsync.gz bdsync@$TARGETSERVER.mayfirst.org:
     145scp $GEUST.bdsync.gz bdsync@$TARGET_SERVER.mayfirst.org:bdsync/
    137146}}}
    138147
     
    142151
    143152{{{
    144 gunzip -c DEV.bdsync.gz | bdsync --patch=$REMDEV
     153gunzip -c $GUEST.bdsync.gz | bdsync --patch=/dev/mapper/$TARGET_VG-$GUEST
    145154}}}
    146155