<p dir="ltr">Cant you just use ebs optimized instance?</p>
<p dir="ltr">On 14/05/2014 7:47 AM, "Csanad Novak" <<a href="mailto:csanad@pixelfusion.co.nz">csanad@pixelfusion.co.nz</a>> wrote:<br>
><br>
> Hi Arnold,<br>
><br>
> I guess the challenge here is that the instance-storage get reseted completely (back to the point when its just a raw device without partitions) on every stop/start cycle.<br>
><br>
> Currently I’m using a less than satisfactory solution on non critical servers, as follow:<br>
><br>
> I’ve got mounted my instance-storage as /dev/sdb1 to /var<br>
> I’ve got mounted my ebs device as /dev/sdc1 to /mnt/var-backup<br>
><br>
> I’ve lsyncd configured to sync from /var to /mnt/var-backup<br>
><br>
> I’ve wrote a little bash script for auto partitioning and mounting. When the instance get stopped for any reason the instance storage gets reseted and the whole /var directory destroyed. After boot up my script repartitioning the instance storage, mount it, and then automatically rsync back the data from /mnt/var-backup.<br>
><br>
> There is several issue with this architecture, but the biggest one with lsyncd, which wasn’t designed for this. If I cloud change lsyncd to drbd, that would great.<br>
><br>
> I must stress again: instance-storage is a local hard-disk based block device, while the ebs storage is a network attached block device.<br>
><br>
> Cheers:<br>
><br>
> Csanad<br>
><br>
><br>
> From: Arnold Krille <a href="mailto:arnold@arnoldarts.de">arnold@arnoldarts.de</a><br>
> Reply: Arnold Krille <a href="mailto:arnold@arnoldarts.de">arnold@arnoldarts.de</a><br>
> Date: 14 May 2014 at 6:18:25<br>
> To: <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a> <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
> Subject: Re: [DRBD-user] DRDB on one host <br>
><br>
>> On Tue, 13 May 2014 09:57:21 +1200 Csanad Novak <br>
>> <<a href="mailto:csanad@pixelfusion.co.nz">csanad@pixelfusion.co.nz</a>> wrote: <br>
>> > Recently on the latest AWS Summit I’ve seen an interesting setup for <br>
>> > utilising the AWS EC2 instance storage. The instance storage is the <br>
>> > local filesystem on the Amazon cloud, unfortunately it is not <br>
>> > persistent - all data get lost if the instance stops. For persistent <br>
>> > storage one must use an so called EBS volume, which is a network <br>
>> > attached block device. Unfortunately the EBS storage performance is <br>
>> > varies, depending on the neighbour instances’ traffic. An ideal world <br>
>> > one can use the instance storage without the worry of data loss. <br>
>> > <br>
>> > On the latest AWS Summit a presenter proposed an architecture where <br>
>> > the instance storage was utilised and was synced with DRBD to the EBS <br>
>> > block <br>
>> > device. <a href="http://www.slideshare.net/AmazonWebServices/so-you-think-you-are-an-aws-ninja-dean-samuels">http://www.slideshare.net/AmazonWebServices/so-you-think-you-are-an-aws-ninja-dean-samuels</a> - <br>
>> > slide 11. <br>
>> > <br>
>> > I wonder how an example config would looks like. I went trough <br>
>> > quickly on the tutorials, but couldn’t find any example with one host <br>
>> > setup. <br>
>><br>
>> drbd on one host. Isn't that what raid/md is? <br>
>><br>
>> I haven't had a chance to play with aws but if both ebs volumes and the <br>
>> instance-storage are block devices, it should be easy to mirror them <br>
>> with md or lvm. <br>
>><br>
>> - Arnold <br>
>> ________________________________<br>
>> _______________________________________________ <br>
>> drbd-user mailing list <br>
>> <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a> <br>
>> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a> <br>
><br>
> -- <br>
> Kind regards,<br>
><br>
> Csanad Novak<br>
> Technical Lead<br>
> P / 09 353 1234<br>
> M / 021 060 1531<br>
> E / <a href="mailto:csanad@pixelfusion.co.nz">csanad@pixelfusion.co.nz</a> <br>
> W / <a href="http://PIXELFUSION.CO.NZ">PIXELFUSION.CO.NZ</a> / WHERE DESIGN & DEVELOPMENT FUSE<br>
> A / SUITE 403 "FORBIDDEN", THE IRON BANK, 150 KARANGAHAPE RD, AUCKLAND / PIXEL FUSION LTD, PO BOX 68 564, NEWTON, AUCKLAND / MAP<br>
><br>
> _______________________________________________<br>
> drbd-user mailing list<br>
> <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
><br>
</p>