Archive for August, 2015

Docker, volume sharing

docker run -it -v /host_storage/:/storage_inside_docker –name=”vol1″ –cpu-quota=2 -m 128M 9eb167f08bdd permission denied? http://stackoverflow.com/ Solution: docker run -it -v /host_storage/:/storage_inside_docker:Z –name=”vol1″ –cpu-quota=2 -m 128M 9eb167f08bdd

Read more...

Unusual: MySQL, extremely annoying bug

If your architecture uses MySQL replication and you make some ETL transformations and you observed some incredible values in autoincrement columns (i.e. the value dramatically increases – by hundred of thousands or event millions) – it means you have just experienced a bug. Very clear description is presented on site http://bugs.mysql.com/. However, in my case […]

Read more...

Docker, storage isolation < 1.8

How to isolate Docker containers and stuff… [root@localhost ~]# pvs PV VG Fmt Attr PSize PFree /dev/md0p1 dockers lvm2 a– 37.25g 37.25g /dev/md0p2 mysql lvm2 a– 37.25g 764.00m /dev/sda3 centos lvm2 a– 12.93g 4.00m [root@localhost ~]# echo VG=dockers > “/etc/sysconfig/docker-storage-setup” [root@localhost ~]# docker-storage-setup Rounding up size to full physical extent 40.00 MiB Wiping xfs signature […]

Read more...