Vijay Bellur
2017-Jun-12 07:02 UTC
[Gluster-users] After gluster clean up sub directories becomes invisible
can you please describe a bit more about the steps taken to clean up and re-configure gluster? Regards, Vijay On Mon, Jun 12, 2017 at 12:08 PM, Sangeeta Ramapure < sangeeta.ramapure at globallogic.com> wrote:> Kindly somebody help me with this issue. > > > > Thanks & Regards, > > Sangeeta Ramapure > > > > *From:* Sangeeta Ramapure [mailto:sangeeta.ramapure at globallogic.com] > *Sent:* June 09, 2017 4:41 PM > *To:* 'gluster-users at gluster.org' > *Cc:* 'devarajan at ericsson.com' > *Subject:* After gluster clean up sub directories becomes invisible > > > > Hi Team, > > > > After performing the gluster clean up and again doing gluster > configuration the sub directories become invisible. Even after they are > present the directories are invisible. If I create a new directory by the > same name it will say the directory already exists. > > > > > > Thanks & Regards, > > Sangeeta Ramapure > > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170612/99204f68/attachment.html>
Sangeeta Ramapure
2017-Jun-12 07:24 UTC
[Gluster-users] After gluster clean up sub directories becomes invisible
Steps to do gluster clean up 1. umount -f /export/home/ecmsftp 2. Remove the /export/home/ecmsftp mount point line from /etc/fstab file if it exists. 3. Delete gluster file system volume if it exists; ignore if it does not exist. # gluster gluster>volume list eftpVol gluster> volume stop eftpVol Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y volume stop: eftpVol: success gluster> volume delete eftpVol 4. Deleting volume will erase all information about the volume. Do you want to continue? (y/n) y volume delete: eftpVol: success gluster> peer status Number of peers: 0 5. Remove gluster-related configurations. brick_path=/gluster/eftpbrick [ -d $brick_path ] && setfattr -x trusted.glusterfs.volume-id $brick_path [ -d $brick_path ] && setfattr -x trusted.gfid $brick_path [ -d $brick_path/.glusterfs ] && rm -rf $brick_path/.glusterfs 6. # systemctl stop glusterd.service 7. # systemctl start glusterd.service Steps for gluster configurations 1. sudo ./confGfs.sh -s -c -P <charging_ip> This step adds the entry in the fstab and mount the same. There are multiple directories under /export/home/ecmsftp which becomes invisible after gluser clean up and gluster configuration. Thanks & Regards, Sangeeta Ramapure *From:* Vijay Bellur [mailto:vbellur at redhat.com] *Sent:* June 12, 2017 12:32 PM *To:* Sangeeta Ramapure *Cc:* gluster-users *Subject:* Re: [Gluster-users] After gluster clean up sub directories becomes invisible can you please describe a bit more about the steps taken to clean up and re-configure gluster? Regards, Vijay On Mon, Jun 12, 2017 at 12:08 PM, Sangeeta Ramapure < sangeeta.ramapure at globallogic.com> wrote: Kindly somebody help me with this issue. Thanks & Regards, Sangeeta Ramapure *From:* Sangeeta Ramapure [mailto:sangeeta.ramapure at globallogic.com] *Sent:* June 09, 2017 4:41 PM *To:* 'gluster-users at gluster.org' *Cc:* 'devarajan at ericsson.com' *Subject:* After gluster clean up sub directories becomes invisible Hi Team, After performing the gluster clean up and again doing gluster configuration the sub directories become invisible. Even after they are present the directories are invisible. If I create a new directory by the same name it will say the directory already exists. Thanks & Regards, Sangeeta Ramapure _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://lists.gluster.org/mailman/listinfo/gluster-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170612/36763688/attachment.html>
Vijay Bellur
2017-Jun-12 10:30 UTC
[Gluster-users] After gluster clean up sub directories becomes invisible
On 06/12/2017 12:54 PM, Sangeeta Ramapure wrote:> Steps to do gluster clean up > > > > 1. umount -f /export/home/ecmsftp > > 2. Remove the /export/home/ecmsftp mount point line from > /etc/fstab file if it exists. > > 3. Delete gluster file system volume if it exists; ignore if it > does not exist. > > # gluster > > gluster>volume list > > eftpVol > > gluster> volume stop eftpVol > > Stopping volume will make its data inaccessible. Do you want to > continue? (y/n) y > > volume stop: eftpVol: success > > gluster> volume delete eftpVol > > 4. Deleting volume will erase all information about the volume. Do > you want to continue? (y/n) y > > volume delete: eftpVol: success > > gluster> peer status > > Number of peers: 0 > > 5. Remove gluster-related configurations. > > brick_path=/gluster/eftpbrick > > [ -d $brick_path ] && setfattr -x trusted.glusterfs.volume-id $brick_path > > [ -d $brick_path ] && setfattr -x trusted.gfid $brick_path > > [ -d $brick_path/.glusterfs ] && rm -rf $brick_path/.glusterfsCan you avoid removing $brick_path/.glusterfs? That should help in preserving essential metadata needed for gluster and allow you to access data from the mount point after volume is re-configured. Alternately if you remove .glusterfs, you would need to run "find /mnt/point | xargs stat" or something similar to trigger lookups on all directories and files to recreate the metadata in .glusterfs. Regards, Vijay
Sangeeta Ramapure
2017-Jun-12 13:07 UTC
[Gluster-users] After gluster clean up sub directories becomes invisible
Hi Vijay, Its working fine.. Thank You very much Regards, Sangeeta Ramapure *From:* Vijay Bellur [mailto:vbellur at redhat.com] *Sent:* June 12, 2017 12:32 PM *To:* Sangeeta Ramapure *Cc:* gluster-users *Subject:* Re: [Gluster-users] After gluster clean up sub directories becomes invisible can you please describe a bit more about the steps taken to clean up and re-configure gluster? Regards, Vijay On Mon, Jun 12, 2017 at 12:08 PM, Sangeeta Ramapure < sangeeta.ramapure at globallogic.com> wrote: Kindly somebody help me with this issue. Thanks & Regards, Sangeeta Ramapure *From:* Sangeeta Ramapure [mailto:sangeeta.ramapure at globallogic.com] *Sent:* June 09, 2017 4:41 PM *To:* 'gluster-users at gluster.org' *Cc:* 'devarajan at ericsson.com' *Subject:* After gluster clean up sub directories becomes invisible Hi Team, After performing the gluster clean up and again doing gluster configuration the sub directories become invisible. Even after they are present the directories are invisible. If I create a new directory by the same name it will say the directory already exists. Thanks & Regards, Sangeeta Ramapure _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://lists.gluster.org/mailman/listinfo/gluster-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170612/56ae646b/attachment.html>