<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">&lt;<a href="mailto:polishedwh@gmail.com" target="_blank">polishedwh@gmail.com</a>&gt;</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== /<wbr>volume/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 <wbr>6564c50651484d09a36b912962c573<wbr>df_0</div><div>10. lvcreate -s vg_cluster/test_vol --setactivationskip=n --name <wbr>ee8c32a1941e4aba91feab21fbcb3c<wbr>6c_0<br></div><div>11. lvcreate -s vg_cluster/test_vol --setactivationskip=n --name <wbr>bf93dc34233646128f0c5f84c3ac1f<wbr>83_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_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick Path        :   192.225.3.35:/var/run/gluster/<wbr>snaps/<wbr>bf93dc34233646128f0c5f84c3ac1f<wbr>83/brick1</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Volume Group      :   vg_cluster</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick Running     :   No</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick PID         :   N/A</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Data Percentage   :   0.22</div><div><span class="m_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_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick Path        :   192.225.3.36:/var/run/gluster/<wbr>snaps/<wbr>bf93dc34233646128f0c5f84c3ac1f<wbr>83/brick2</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Volume Group      :   vg_cluster</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick Running     :   No</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick PID         :   N/A</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Data Percentage   :   0.22</div><div><span class="m_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_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick Path        :   192.225.3.37:/var/run/gluster/<wbr>snaps/<wbr>bf93dc34233646128f0c5f84c3ac1f<wbr>83/brick3</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Volume Group      :   vg_cluster</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick Running     :   No</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick PID         :   N/A</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Data Percentage   :   0.22</div><div><span class="m_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_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick Path        :   192.225.3.38:/var/run/gluster/<wbr>snaps/<wbr>bf93dc34233646128f0c5f84c3ac1f<wbr>83/brick4</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Volume Group      :   vg_cluster</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick Running     :   Tes</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Brick PID         :   N/A</div><div><span class="m_7055587805484119887gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Data Percentage   :   0.22</div><div><span class="m_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&#39;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 href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div>