César E. Portela
2018-Jan-24 20:44 UTC
[Gluster-users] It necessary make backup the .glusterfs directory ?
Hi All, I have two glusterfs servers and doing the backup of these is very slow, when it does not fail. I have thousand and thousand and thousand files... Apparently the directory .glusterfs has some responsibility for the backup failure. Is necessary to make a backup of the .glusterfs directory? Thanks in advance. -- Cease
Ravishankar N
2018-Jan-26 01:27 UTC
[Gluster-users] It necessary make backup the .glusterfs directory ?
On 01/25/2018 02:14 AM, C?sar E. Portela wrote:> Hi All, > > I have two glusterfs servers and doing the backup of these is very > slow, when it does not fail. > I have thousand and thousand and thousand files... > > Apparently the directory .glusterfs has some responsibility for the > backup failure. > > Is necessary to make a backup of the .glusterfs directory?Not sure what kind of backup you're doing but .glusterfs contents are essential for things to work properly. Have you tried using replication/geo-replication/volume snapshot features that gluster provides?> > Thanks in advance. > >
Vlad Kopylov
2018-Jan-26 04:21 UTC
[Gluster-users] It necessary make backup the .glusterfs directory ?
In my experience .glusterfs is easily recoverable by going to the brick path (if you have files there) and running stat for each object but through mount point, something like: cd BRICKPATH sudo find . -path ./.glusterfs -prune -o -exec stat 'MUNTPATH/{}' \; for example, if you need to recreate or create another volume - delete .glusterfs and reset brick folder attr, and proceed with below trick export brick_path=/main/brick4/geo0 sudo setfattr -x trusted.glusterfs.volume-id $brick_path sudo setfattr -x trusted.gfid $brick_path sudo rm -rf $brick_path/.glusterfs files go nowhere - and they are everywhere you replicate them with Gluster On Wed, Jan 24, 2018 at 3:44 PM, C?sar E. Portela <cportela at santafe.gov.ar> wrote:> Hi All, > > I have two glusterfs servers and doing the backup of these is very slow, > when it does not fail. > I have thousand and thousand and thousand files... > > Apparently the directory .glusterfs has some responsibility for the backup > failure. > > Is necessary to make a backup of the .glusterfs directory? > > Thanks in advance. > > > -- > Cease > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-users
César E. Portela
2018-Jan-26 12:47 UTC
[Gluster-users] It necessary make backup the .glusterfs directory ?
El 25-01-2018 22:27, Ravishankar N escribi?:> On 01/25/2018 02:14 AM, C?sar E. Portela wrote: >> Hi All, >> >> I have two glusterfs servers and doing the backup of these is very >> slow, when it does not fail. >> I have thousand and thousand and thousand files... >> >> Apparently the directory .glusterfs has some responsibility for the >> backup failure. >> >> Is necessary to make a backup of the .glusterfs directory? > > Not sure what kind of backup you're doing but .glusterfs contents are > essential for things to work properly. Have you tried using > replication/geo-replication/volume snapshot features that gluster > provides?Hi Ravishankar I make external full/incremental backup the applicattion's data. Only one server, not all. I not using special features the gluster. I think if I need restore files, .glusterfs it is rebuilt when I copy the files in the filesystem. Is this correct?