> I think you can easily check by this command (on old gluster server):
find .glusterfs/ -type f -links 1
If something returns that means file have only one link and doesn't have
a "real" file on the brick so it unintended (and it's orphan file).
find .glusterfs/ -type f -links 1
If something returns that means file have only one link and doesn't have
a "real" file on the brick so it unintended (and it's orphan file).
The result of # find .glusterfs/ -type f -links 1 is empty ...
You wrote that status show: migration complete... So it's ok and do just
commit (first ensure is everything is OK).
Before commit the replace, i erased all files on the new node, thinking that's not ok... :(
I thinked that add these 2 new bricks in the same volume with replica 4, and use self-heal to replicate all data... what you think ?
Tks!
2013/12/18 Mariusz Sobisiak <MSobisiak@xxxxxx>
> I don't knew that can be a lot of trash (orphan) files in .glusterfs,I think you can easily check by this command (on old gluster server):
so here what i do:
find .glusterfs/ -type f -links 1
If something returns that means file have only one link and doesn't have
a "real" file on the brick so it unintended (and it's orphan file).
So you have files on new gluster. I understood that you have just
> # du -hs *
> 3.5G documents
> 341G home
> 58G archives
> 808G secure_folder
> 93G secure_folder2
.glusterfs directory...
> 1.3T .glusterfs/
It looks OK. It's not taking any space because it's hardlinks.
Probably yes.
> So, i have 1.3Tb in gluster!! So, i think that replace-brick worked
correctly ... right ?
I am not sure what for you want to restart the replace-brick command?
> So, how can i restart the replace-brick command again ?
You wrote that status show: migration complete... So it's ok and do just
commit (first ensure is everything is OK).
If you're not sure if all files had copied maybe you can compare files
on both nodes (old one and migrated) like this:
find /where/the/brick/is/ -path "*/.glusterfs/*" -prune -o -name '*'
-print|wc -l
If the command return the same values that mean you have all files :D
But In my opinion everything looks okay (except that why so many files
are orphaned on old glusterfs).
--
Mariusz
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-users