Open GoogleCodeExporter opened 9 years ago
This issue was updated by revision r2546.
Create a branch to work on EBS snapshot backup functionality
Original comment by jeffm...@gmail.com
on 9 Sep 2014 at 6:58
This issue was updated by revision r2573.
Initial commit of functionality to support file-copy snapshots and EBS
snapshots through `trepctl backup` and `trepctl restore`
Original comment by jeffm...@gmail.com
on 22 Sep 2014 at 6:21
Original comment by jeff.m...@continuent.com
on 22 Sep 2014 at 6:21
- In order to use this, the build must come from
https://tungsten-replicator.googlecode.com/svn/branches/replicator-issue-999.
- Configure your instance with a dedicated volume for MySQL logs and data
- Create the EC2 instance with an IAM profile that allows API access or create
an /etc/tungsten/ebs_snapshot.ini file.
$> echo "access-key-id=############\nsecret-access-key=###############" >
/etc/tungsten/ebs_snapshot.ini
- Configure the replicator to use the ebs-snapshot method
tpm configure servce --repl-backup-method=ebs-snapshot
At this point `trepctl backup` and `trepctl restore` should work normally. Once
you hit the retention limit, the EC2 region will already have one extra
snapshot present due to how snapshots are cleaned up.
Original comment by jeff.m...@continuent.com
on 22 Sep 2014 at 7:00
Instructions for setting up an additional EBS volume using Vagrant.
Update Vagrantfile to include this:
# Disable the requiretty setting and install puppet
aws.user_data = "#!/bin/bash\nhostname #{name.to_s()}\nperl -pi -e 's/^Defaults[ ]*requiretty/#Defaults requiretty/' /etc/sudoers\nyum install -y ruby18 rubygems18 rubygem18-aws-sdk ruby18-devel\nalternatives --set ruby /usr/bin/ruby1.8\nyum install -y puppet\nmkfs -t ext4 /dev/xvdb#{timer}"
aws.block_device_mapping = [
{
'DeviceName' => "/dev/sda1",
'Ebs.VolumeSize' => 8,
'Ebs.DeleteOnTermination' => true
},
{
'DeviceName' => "/dev/sdb",
'Ebs.VolumeSize' => 12,
'Ebs.DeleteOnTermination' => true,
'Ebs.VolumeType' => 'io1',
'Ebs.Iops' => 300
}
]
Add this to your manifests/default.pp
file { "mysql-dir":
ensure => directory,
path => "/var/lib/mysql"
} ->
mount { "/var/lib/mysql":
atboot => true,
ensure => mounted,
device => "/dev/xvdb",
options => "defaults",
fstype => "ext4"
} ->
Original comment by jeff.m...@continuent.com
on 22 Sep 2014 at 7:09
This issue was updated by revision r2577.
svn merge -r 2572:2573
https://tungsten-replicator.googlecode.com/svn/branches/replicator-issue-999 .
Initial commit of functionality to support file-copy snapshots and EBS
snapshots through `trepctl backup` and `trepctl restore`
Original comment by jeffm...@gmail.com
on 23 Sep 2014 at 7:44
Original comment by jeff.m...@continuent.com
on 13 Oct 2014 at 6:18
Original comment by mc.br...@continuent.com
on 19 Dec 2014 at 3:34
Original comment by linas.vi...@continuent.com
on 19 Jan 2015 at 2:20
Original issue reported on code.google.com by
jeff.m...@continuent.com
on 9 Sep 2014 at 6:41