<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Did you mount the snapshot bricks after you reconfigured the vgs.</p>
<p><br>
</p>
<p>Regards</p>
<p>Rafi KC<br>
</p>
<br>
<div class="moz-cite-prefix">On 05/29/2017 01:08 PM, WoongHee Han
wrote:<br>
</div>
<blockquote
cite="mid:CAOGOSFLjY3QA68QhkSCtZqVGevMeUF6fWO8aogtYzJD4eGST6A@mail.gmail.com"
type="cite">
<div dir="ltr">right, i had reconfigured the vg in one node. and
activate the brick path then restored the snapshot.
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-05-29 15:54 GMT+09:00 Mohammed
Rafi K C <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:rkavunga@redhat.com" target="_blank">rkavunga@redhat.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class=""> <br>
<div class="m_-8262606059828780191moz-cite-prefix">On
05/27/2017 09:22 AM, WoongHee Han wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span
id="m_-8262606059828780191gmail-:1ml.1">Ih</span>,
<span id="m_-8262606059828780191gmail-:1ml.2">i'm</span>
sorry for my late reply
<div><br>
</div>
<div>I've tried to solve it using your answer. It
worked as well <span
id="m_-8262606059828780191gmail-:1ml.3">thanks</span>.
it means the snapshot was activated.</div>
<div>and then i was restore the snapshot.</div>
<div><br>
</div>
<div>but, after <span
id="m_-8262606059828780191gmail-:1ml.4">i</span> restored
the snapshot ,there was nothing in the
volume(like files) </div>
<div>can't it recover automatically?</div>
</div>
</blockquote>
</span> I remember you were saying that you had
reconfigured the vg's. Did you had mount for the snapshot
brick path active ?<br>
<br>
Rafi KC
<div>
<div class="h5"><br>
<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Thank you agin for your answer.</div>
<div><br>
</div>
<div><br>
</div>
<div>Best regards</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-05-19 15:34
GMT+09:00 Mohammed Rafi K C <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:rkavunga@redhat.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:rkavunga@redhat.com">rkavunga@redhat.com</a></a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>I do not know how you ended up in this
state. This usually happens when there is
a commit failure. To recover from this
state you can change the value of "status"
from</p>
<p>the path
/var/lib/glusterd/snaps/<snapn<wbr>ame>/<snapuid>/info
. From this file change the status to 0 in
nodes where the values are one. Then
restart glusterd on those node where we
changed manually.</p>
<p>Then try to activate it.</p>
<p><br>
</p>
<p>Regards</p>
<p>Rafi KC<br>
</p>
<div>
<div class="m_-8262606059828780191h5"> <br>
<div
class="m_-8262606059828780191m_-5721107086146499802moz-cite-prefix">On
05/18/2017 09:38 AM, Pranith Kumar
Karampuri wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">+Rafi, +Raghavendra
Bhat<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, May
16, 2017 at 11:55 AM, WoongHee Han
<span dir="ltr"><<a
moz-do-not-send="true"
class="m_-8262606059828780191moz-txt-link-abbreviated"
href="mailto:polishedwh@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:polishedwh@gmail.com">polishedwh@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr">Hi, all!
<div><br>
</div>
<div>
<div>I erased the VG having
snapshot LV related to
gluster volumes</div>
<div>and then, I tried to
restore volume;</div>
</div>
<div><br>
</div>
<div>1. vgcreate vg_cluster
/dev/sdb</div>
<div>2. lvcreate --size=10G
--type=thin-pool -n
tp_cluster vg_cluster</div>
<div>3. lvcreate -V 5G
--thinpool
vg_cluster/tp_cluster -n
test_vol vg_cluster</div>
<div>4. gluster v stop
test_vol</div>
<div>5. getfattr -n
trusted.glusterfs.volume-id
/volume/test_vol ( in other
node)<br>
</div>
<div>6. setfattr -n
trusted.glusterfs.volume-id
-v
0sKtUJWIIpTeKWZx+S5PyXtQ== /v<wbr>olume/test_vol
(already mounted)</div>
<div>7. gluster v start
test_vol</div>
<div>8. restart glusterd</div>
<div>9. lvcreate -s
vg_cluster/test_vol
--setactivationskip=n
--name 6564c50651484d09a36b912<wbr>962c573df_0</div>
<div>10. lvcreate -s
vg_cluster/test_vol
--setactivationskip=n
--name ee8c32a1941e4aba91feab2<wbr>1fbcb3c6c_0<br>
</div>
<div>11. lvcreate -s
vg_cluster/test_vol
--setactivationskip=n
--name bf93dc34233646128f0c5f8<wbr>4c3ac1f83_0 <br>
</div>
<div>12. reboot</div>
<div><br>
</div>
<div>It works, but bricks for
snapshot is not working.</div>
<div><br>
</div>
<div>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------</div>
<div>~]# glsuter snpshot
status</div>
<div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
Path :
192.225.3.35:/var/run/gluster/<wbr>snaps/bf93dc34233646128f0c5f84<wbr>c3ac1f83/brick1</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Volume
Group : vg_cluster</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
Running : No</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
PID : N/A</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Data
Percentage : 0.22</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>LV
Size : 5.00g</div>
<div><br>
</div>
<div><br>
</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
Path :
192.225.3.36:/var/run/gluster/<wbr>snaps/bf93dc34233646128f0c5f84<wbr>c3ac1f83/brick2</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Volume
Group : vg_cluster</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
Running : No</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
PID : N/A</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Data
Percentage : 0.22</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>LV
Size : 5.00g</div>
<div><br>
</div>
<div><br>
</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
Path :
192.225.3.37:/var/run/gluster/<wbr>snaps/bf93dc34233646128f0c5f84<wbr>c3ac1f83/brick3</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Volume
Group : vg_cluster</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
Running : No</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
PID : N/A</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Data
Percentage : 0.22</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>LV
Size : 5.00g</div>
<div><br>
</div>
<div><br>
</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
Path :
192.225.3.38:/var/run/gluster/<wbr>snaps/bf93dc34233646128f0c5f84<wbr>c3ac1f83/brick4</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Volume
Group : vg_cluster</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
Running : Tes</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick
PID : N/A</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Data
Percentage : 0.22</div>
<div><span class="m_-8262606059828780191m_-5721107086146499802m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>LV
Size : 5.00g</div>
<div>
<div><br>
</div>
<div>~]# gluster snapshot
deactivate
t3_GMT-2017.05.15-08.01.37</div>
<div>Deactivating snap
will make its data
inaccessible. Do you
want to continue? (y/n)
y</div>
<div>snapshot deactivate:
failed: Pre Validation
failed on 192.225.3.36.
Snapshot
t3_GMT-2017.05.15-08.01.37
is already deactivated.</div>
<div>Snapshot command
failed</div>
</div>
<div><br>
</div>
<div>~]# gluster snapshot
activate
t3_GMT-2017.05.15-08.01.37</div>
<div>snapshot activate:
failed: Snapshot
t3_GMT-2017.05.15-08.01.37
is already activated</div>
</div>
<div><br>
</div>
<div>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>how to restore snapshot
LV's ?</div>
<div><br>
</div>
<div>my nodes consist of four
nodes and distributed,
replicated (2x2)</div>
<div><br>
</div>
<div><br>
</div>
<div>thank you.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Gluster-users@gluster.org"
target="_blank">Gluster-users@gluster.org</a><br>
<a moz-do-not-send="true"
href="http://lists.gluster.org/mailman/listinfo/gluster-users"
rel="noreferrer"
target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-users</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div
class="m_-8262606059828780191m_-5721107086146499802gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">Pranith<br>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>