From 49134a572d8a9371ca0b1864358cadc1c1de1248 Mon Sep 17 00:00:00 2001 From: Mohamed Ashiq Liyazudeen Date: Wed, 8 Jun 2016 15:14:26 +0530 Subject: Updating Centos for lvcreate Signed-off-by: Mohamed Ashiq Liyazudeen --- CentOS/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CentOS/Dockerfile') diff --git a/CentOS/Dockerfile b/CentOS/Dockerfile index ef5c86a..db778e0 100644 --- a/CentOS/Dockerfile +++ b/CentOS/Dockerfile @@ -1,6 +1,6 @@ FROM centos:latest -MAINTAINER Humble Chirammal hchiramm@redhat.com +MAINTAINER Humble Chirammal hchiramm@redhat.com Mohamed Ashiq Liyazudeen mliyazud@redhat.com ENV container docker @@ -37,6 +37,11 @@ cp -r /etc/glusterfs/* /etc/glusterfs_bkp;\ cp -r /var/lib/glusterd/* /var/lib/glusterd_bkp;\ cp -r /var/log/glusterfs/* /var/log/glusterfs_bkp; +# Configure LVM to create LVs and snapshots +RUN sed -i.save -e "s#udev_sync = 1#udev_sync = 0#" \ + -e "s#udev_rules = 1#udev_rules = 0#" \ + -e "s#use_lvmetad = 1#use_lvmetad = 0#" /etc/lvm/lvm.conf + # Adding script to move the glusterfs config file to location ADD gluster-setup.service /etc/systemd/system/gluster-setup.service RUN chmod 644 /etc/systemd/system/gluster-setup.service -- cgit v1.2.3