<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gluster-block.git/extras, branch master</title>
<subtitle></subtitle>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-block.git/'/>
<entry>
<title>script: remote code decide b/w run|skip the cmd</title>
<updated>2018-02-19T12:50:18+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2018-02-19T11:54:46+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-block.git/commit/?id=094baea9f3ad365aab6e4532b19daec9d281eb75'/>
<id>094baea9f3ad365aab6e4532b19daec9d281eb75</id>
<content type='text'>
Change-Id: Ia20b69a9ec5c18ee2165f4c3e0e4ee244c68a3e9
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ia20b69a9ec5c18ee2165f4c3e0e4ee244c68a3e9
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>extras: add script for replace node</title>
<updated>2017-12-07T07:34:15+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-10-25T16:18:00+00:00</published>
<link rel='alternate' type='text/html' href='http://dev.gluster.org/cgit/gluster-block.git/commit/?id=019db978d82d850925abaf2651b4ef549ec0f987'/>
<id>019db978d82d850925abaf2651b4ef549ec0f987</id>
<content type='text'>
$ for i in {1..3}; do echo "block${i}:"; gluster-block create test/block$i ha 3 192.168.124.208,192.168.124.8,192.168.124.179 1MiB --json-pretty; done
block1:
{
  "IQN":"iqn.2016-12.org.gluster-block:ccc8f04b-1498-4c55-b27b-a1c500799d7b",
  "PORTAL(S)":[
    "192.168.124.208:3260",
    "192.168.124.8:3260",
    "192.168.124.179:3260"
  ],
  "RESULT":"SUCCESS"
}
block2:
{
  "IQN":"iqn.2016-12.org.gluster-block:a081f36d-ba9a-4679-a7d5-a6c9b5add2c0",
  "PORTAL(S)":[
    "192.168.124.208:3260",
    "192.168.124.8:3260",
    "192.168.124.179:3260"
  ],
  "RESULT":"SUCCESS"
}
block3:
{
  "IQN":"iqn.2016-12.org.gluster-block:53525e2d-c69d-4770-a645-f60847b9190d",
  "PORTAL(S)":[
    "192.168.124.208:3260",
    "192.168.124.8:3260",
    "192.168.124.179:3260"
  ],
  "RESULT":"SUCCESS"
}

$ gluster-block list test --json-pretty{
  "blocks":[
    "block1",
    "block2",
    "block3"
  ],
  "RESULT":"SUCCESS"
}

$ ./replace-node.sh help
Usage:
  ./replace-node.sh ${MOUNTPOINT} ${OLDNODE} ${NEWNODE}

$ ./replace-node.sh /mnt/test 192.168.124.179 192.168.124.128
Fuse mount point, does not have directory '/mnt/test/block-meta/'
Usage:
  ./replace-node.sh ${MOUNTPOINT} ${OLDNODE} ${NEWNODE}

$ mount.glusterfs localhost:/test /mnt/test

$ ./replace-node.sh /mnt/test/ 192.168.124.179 192.168.124.128
blockname: block1
create on '192.168.124.128' success
replace on '192.168.124.208' success
replace on '192.168.124.8' success
delete on '192.168.124.179' success
-------------------------------------
blockname: block2
create on '192.168.124.128' success
replace on '192.168.124.208' success
replace on '192.168.124.8' success
delete on '192.168.124.179' success
-------------------------------------
blockname: block3
create on '192.168.124.128' success
replace on '192.168.124.208' success
replace on '192.168.124.8' success
delete on '192.168.124.179' success
-------------------------------------

Change-Id: I68ce36063accfdc1f56c8f160b8c4dd4ca58afe7
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
$ for i in {1..3}; do echo "block${i}:"; gluster-block create test/block$i ha 3 192.168.124.208,192.168.124.8,192.168.124.179 1MiB --json-pretty; done
block1:
{
  "IQN":"iqn.2016-12.org.gluster-block:ccc8f04b-1498-4c55-b27b-a1c500799d7b",
  "PORTAL(S)":[
    "192.168.124.208:3260",
    "192.168.124.8:3260",
    "192.168.124.179:3260"
  ],
  "RESULT":"SUCCESS"
}
block2:
{
  "IQN":"iqn.2016-12.org.gluster-block:a081f36d-ba9a-4679-a7d5-a6c9b5add2c0",
  "PORTAL(S)":[
    "192.168.124.208:3260",
    "192.168.124.8:3260",
    "192.168.124.179:3260"
  ],
  "RESULT":"SUCCESS"
}
block3:
{
  "IQN":"iqn.2016-12.org.gluster-block:53525e2d-c69d-4770-a645-f60847b9190d",
  "PORTAL(S)":[
    "192.168.124.208:3260",
    "192.168.124.8:3260",
    "192.168.124.179:3260"
  ],
  "RESULT":"SUCCESS"
}

$ gluster-block list test --json-pretty{
  "blocks":[
    "block1",
    "block2",
    "block3"
  ],
  "RESULT":"SUCCESS"
}

$ ./replace-node.sh help
Usage:
  ./replace-node.sh ${MOUNTPOINT} ${OLDNODE} ${NEWNODE}

$ ./replace-node.sh /mnt/test 192.168.124.179 192.168.124.128
Fuse mount point, does not have directory '/mnt/test/block-meta/'
Usage:
  ./replace-node.sh ${MOUNTPOINT} ${OLDNODE} ${NEWNODE}

$ mount.glusterfs localhost:/test /mnt/test

$ ./replace-node.sh /mnt/test/ 192.168.124.179 192.168.124.128
blockname: block1
create on '192.168.124.128' success
replace on '192.168.124.208' success
replace on '192.168.124.8' success
delete on '192.168.124.179' success
-------------------------------------
blockname: block2
create on '192.168.124.128' success
replace on '192.168.124.208' success
replace on '192.168.124.8' success
delete on '192.168.124.179' success
-------------------------------------
blockname: block3
create on '192.168.124.128' success
replace on '192.168.124.208' success
replace on '192.168.124.8' success
delete on '192.168.124.179' success
-------------------------------------

Change-Id: I68ce36063accfdc1f56c8f160b8c4dd4ca58afe7
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
