From 9824fafa7914becf463bda77d932a2142083b59e Mon Sep 17 00:00:00 2001 From: payes Date: Fri, 23 Dec 2016 16:18:50 +0530 Subject: [PATCH 1/3] Update start_init_test.sh --- ci/start_init_test.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ci/start_init_test.sh b/ci/start_init_test.sh index 79727f17..83ff8940 100644 --- a/ci/start_init_test.sh +++ b/ci/start_init_test.sh @@ -1,11 +1,10 @@ #!/bin/bash sudo docker network create --subnet=172.18.0.0/16 longhorn-net -sudo docker run -d -it --net longhorn-net --ip 172.18.0.3 --expose 9502-9504 -v vol1:/volume -v /mnt/vol1:/vol1 $1 launch replica --listen 172.18.0.3:9502 --size 10g /vol1 -sudo docker run -d --net longhorn-net --ip 172.18.0.2 -P --expose 3260 --expose 9502-9504 $1 launch controller --frontend gotgt --replica tcp://172.18.0.3:9502 store1 172.18.0.2 -sudo docker run -d -it --net longhorn-net --ip 172.18.0.4 --expose 9502-9504 -v vol2:/volume -v /mnt/vol2:/vol2 $1 launch replica --listen 172.18.0.4:9502 --size 10g /vol1 -sudo docker ps | grep controller | awk '{print "sudo docker exec -it "$1" longhorn --debug add-replica tcp://172.18.0.4:9502"}' > start_test1.sh -sh start_test1.sh +sudo docker run -d -it --net longhorn-net --ip 172.18.0.3 --expose 9502-9504 -v /mnt/vol1:/vol1 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.3:9502 --size 10g /vol1 +sudo docker run -d --net longhorn-net --ip 172.18.0.2 -P --expose 3260 --expose 9501 $1 launch controller --frontend gotgt --frontendIP 172.18.0.2 --replica tcp://172.18.0.3:9502 store1 +sudo docker run -d -it --net longhorn-net --ip 172.18.0.4 --expose 9502-9504 -v /mnt/vol2:/vol2 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.4:9502 --size 10g /vol1 + sudo umount /mnt/store sudo iscsiadm -m node -u sudo iscsiadm -m node -o delete From f6f25ec3b8fe37ecd0153e360d83c81c4e1bc5c5 Mon Sep 17 00:00:00 2001 From: payes Date: Fri, 23 Dec 2016 16:42:25 +0530 Subject: [PATCH 2/3] Update start_init_test.sh --- ci/start_init_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/start_init_test.sh b/ci/start_init_test.sh index 83ff8940..1d9a9cfe 100644 --- a/ci/start_init_test.sh +++ b/ci/start_init_test.sh @@ -3,7 +3,7 @@ sudo docker network create --subnet=172.18.0.0/16 longhorn-net sudo docker run -d -it --net longhorn-net --ip 172.18.0.3 --expose 9502-9504 -v /mnt/vol1:/vol1 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.3:9502 --size 10g /vol1 sudo docker run -d --net longhorn-net --ip 172.18.0.2 -P --expose 3260 --expose 9501 $1 launch controller --frontend gotgt --frontendIP 172.18.0.2 --replica tcp://172.18.0.3:9502 store1 -sudo docker run -d -it --net longhorn-net --ip 172.18.0.4 --expose 9502-9504 -v /mnt/vol2:/vol2 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.4:9502 --size 10g /vol1 +sudo docker run -d -it --net longhorn-net --ip 172.18.0.4 --expose 9502-9504 -v /mnt/vol2:/vol2 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.4:9502 --size 10g /vol2 sudo umount /mnt/store sudo iscsiadm -m node -u From 69f3547b1cd29a440e738690739f93fe3e66eb9e Mon Sep 17 00:00:00 2001 From: payes Date: Fri, 23 Dec 2016 16:47:31 +0530 Subject: [PATCH 3/3] Update start_init_test.sh --- ci/start_init_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/start_init_test.sh b/ci/start_init_test.sh index 1d9a9cfe..3a5bb66d 100644 --- a/ci/start_init_test.sh +++ b/ci/start_init_test.sh @@ -1,9 +1,9 @@ #!/bin/bash sudo docker network create --subnet=172.18.0.0/16 longhorn-net -sudo docker run -d -it --net longhorn-net --ip 172.18.0.3 --expose 9502-9504 -v /mnt/vol1:/vol1 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.3:9502 --size 10g /vol1 -sudo docker run -d --net longhorn-net --ip 172.18.0.2 -P --expose 3260 --expose 9501 $1 launch controller --frontend gotgt --frontendIP 172.18.0.2 --replica tcp://172.18.0.3:9502 store1 -sudo docker run -d -it --net longhorn-net --ip 172.18.0.4 --expose 9502-9504 -v /mnt/vol2:/vol2 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.4:9502 --size 10g /vol2 +sudo docker run -d -it --net longhorn-net --ip 172.18.0.3 -P --expose 9502-9504 -v /mnt/vol1:/vol1 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.3:9502 --size 10g /vol1 +sudo docker run -d --net longhorn-net --ip 172.18.0.2 -P --expose 3260 --expose 9501 --expose 9502-9504 $1 launch controller --frontend gotgt --frontendIP 172.18.0.2 --replica tcp://172.18.0.3:9502 store1 +sudo docker run -d -it --net longhorn-net --ip 172.18.0.4 -P --expose 9502-9504 -v /mnt/vol2:/vol2 $1 launch replica --frontendIP 172.18.0.2 --listen 172.18.0.4:9502 --size 10g /vol2 sudo umount /mnt/store sudo iscsiadm -m node -u