+Rafi, +Raghavendra Bhat
On Tue, May 16, 2017 at 11:55 AM, WoongHee Han <polishedwh@xxxxxxxxx> wrote:
Hi, all!I erased the VG having snapshot LV related to gluster volumesand then, I tried to restore volume;1. vgcreate vg_cluster /dev/sdb2. lvcreate --size=10G --type=thin-pool -n tp_cluster vg_cluster3. lvcreate -V 5G --thinpool vg_cluster/tp_cluster -n test_vol vg_cluster4. gluster v stop test_vol5. getfattr -n trusted.glusterfs.volume-id /volume/test_vol ( in other node)6. setfattr -n trusted.glusterfs.volume-id -v 0sKtUJWIIpTeKWZx+S5PyXtQ== /volume/test_vol (already mounted) 7. gluster v start test_vol8. restart glusterd9. lvcreate -s vg_cluster/test_vol --setactivationskip=n --name6564c50651484d09a36b912962c573 df_0 10. lvcreate -s vg_cluster/test_vol --setactivationskip=n --nameee8c32a1941e4aba91feab21fbcb3c 6c_0 11. lvcreate -s vg_cluster/test_vol --setactivationskip=n --namebf93dc34233646128f0c5f84c3ac1f 83_0 12. rebootIt works, but bricks for snapshot is not working.------------------------------------------------------------ ------------------------------ ------------------------------ ------------------ ~]# glsuter snpshot statusBrick Path : 192.225.3.35:/var/run/gluster/snaps/ bf93dc34233646128f0c5f84c3ac1f 83/brick1 Volume Group : vg_clusterBrick Running : NoBrick PID : N/AData Percentage : 0.22LV Size : 5.00gBrick Path : 192.225.3.36:/var/run/gluster/snaps/ bf93dc34233646128f0c5f84c3ac1f 83/brick2 Volume Group : vg_clusterBrick Running : NoBrick PID : N/AData Percentage : 0.22LV Size : 5.00gBrick Path : 192.225.3.37:/var/run/gluster/snaps/ bf93dc34233646128f0c5f84c3ac1f 83/brick3 Volume Group : vg_clusterBrick Running : NoBrick PID : N/AData Percentage : 0.22LV Size : 5.00gBrick Path : 192.225.3.38:/var/run/gluster/snaps/ bf93dc34233646128f0c5f84c3ac1f 83/brick4 Volume Group : vg_clusterBrick Running : TesBrick PID : N/AData Percentage : 0.22LV Size : 5.00g~]# gluster snapshot deactivate t3_GMT-2017.05.15-08.01.37Deactivating snap will make its data inaccessible. Do you want to continue? (y/n) ysnapshot deactivate: failed: Pre Validation failed on 192.225.3.36. Snapshot t3_GMT-2017.05.15-08.01.37 is already deactivated.Snapshot command failed~]# gluster snapshot activate t3_GMT-2017.05.15-08.01.37snapshot activate: failed: Snapshot t3_GMT-2017.05.15-08.01.37 is already activated------------------------------------------------------------ ------------------------------ ------------------------------ ------------------ how to restore snapshot LV's ?my nodes consist of four nodes and distributed, replicated (2x2)thank you.
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users
--
Pranith
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://lists.gluster.org/mailman/listinfo/gluster-users