Hi Nithya, I created and executed the following simple script in order to check each brick content. --- #!/bin/bash for i in {1..12} do # ls -lR /gluster/mnt$i/brick/ > $HOSTNAME.brick$i.txt find /gluster/mnt$i/brick -type f -print0|xargs -0r ls -l > $HOSTNAME.brick$i.txt wc -l $HOSTNAME.brick$i.txt >> report.txt grep -v '\-\-T' $HOSTNAME.brick$i.txt >> report.txt done It scans all files left on the bricks and save, for each brick, the “ls -l” output to separated log files (named s04.brick#.txt). Moreover, the bash script creates a report file (report.txt) to collect all file without “- - T” tag. [root@s04 left]# ll totale 557236 -rwxr--r-- 1 root root 273 3 ott 22.45 check -rw------- 1 root root 0 3 ott 22.46 nohup.out -rw-r--r-- 1 root root 7581 3 ott 22.49 report.txt -rw-r--r-- 1 root root 44801236 3 ott 22.48 s04.brick10.txt -rw-r--r-- 1 root root 44801236 3 ott 22.49 s04.brick11.txt -rw-r--r-- 1 root root 44801236 3 ott 22.49 s04.brick12.txt -rw-r--r-- 1 root root 45007600 3 ott 22.46 s04.brick1.txt -rw-r--r-- 1 root root 45007600 3 ott 22.46 s04.brick2.txt -rw-r--r-- 1 root root 45007600 3 ott 22.47 s04.brick3.txt -rw-r--r-- 1 root root 45007600 3 ott 22.47 s04.brick4.txt -rw-r--r-- 1 root root 45007600 3 ott 22.47 s04.brick5.txt -rw-r--r-- 1 root root 45007600 3 ott 22.47 s04.brick6.txt -rw-r--r-- 1 root root 44474106 3 ott 22.48 s04.brick7.txt -rw-r--r-- 1 root root 44474106 3 ott 22.48 s04.brick8.txt -rw-r--r-- 1 root root 44474106 3 ott 22.48 s04.brick9.txt So, at the end of the script execution, I obtained that: - s04 server bricks don’t contain files without “ - - T” tag except for the following files (I think I can delete them, right?) -rw-r--r-- 1 root root 4096 11 set 11.22 /gluster/mnt12/brick/.glusterfs/brick.db -rw-r--r-- 1 root root 32768 16 set 03.21 /gluster/mnt12/brick/.glusterfs/brick.db-shm -rw-r--r-- 1 root root 20632 11 set 11.22 /gluster/mnt12/brick/.glusterfs/brick.db-wal -rw-r--r-- 1 root root 19 29 set 15.14 /gluster/mnt12/brick/.glusterfs/health_check ---------- 1 root root 0 29 set 00.05 /gluster/mnt12/brick/.glusterfs/indices/xattrop/xattrop-9040d2ea-6acb-42c2-b515-0a44380e60d8 ---------- 1 root root 0 11 set 11.22 /gluster/mnt12/brick/.glusterfs/quarantine/stub-00000000-0000-0000-0000-000000000008 - s05 server bricks don’t contain files without “ - - T” tag except for the following files: -rw-r--r-- 1 root root 4096 11 set 11.22 /gluster/mnt8/brick/.glusterfs/brick.db -rw-r--r-- 1 root root 32768 16 set 03.19 /gluster/mnt8/brick/.glusterfs/brick.db-shm -rw-r--r-- 1 root root 20632 11 set 11.22 /gluster/mnt8/brick/.glusterfs/brick.db-wal -rw-r--r-- 1 root root 19 1 ott 07.30 /gluster/mnt8/brick/.glusterfs/health_check ---------- 1 root root 0 30 set 16.42 /gluster/mnt8/brick/.glusterfs/indices/xattrop/xattrop-9db3d840-35e0-4359-8d7a-14d305760247 ---------- 1 root root 0 11 set 11.22 /gluster/mnt8/brick/.glusterfs/quarantine/stub-00000000-0000-0000-0000-000000000008 - s06 server bricks HAVE some files that I think are important. This is the files list: -rw-r--r-- 2 5219 5200 519226880 14 set 17.29 /gluster/mnt6/brick/.glusterfs/ef/87/ef870cb8-03be-45c8-8b72-38941f08b8a5 -rw-r--r-- 2 5219 5200 844800 17 gen 2017 /gluster/mnt6/brick/.glusterfs/ef/98/ef98b463-3a0a-46a2-ad18-37149d4dd65c -rw-r--r-- 2 5219 5200 3164160 23 apr 2016 /gluster/mnt6/brick/.glusterfs/a4/25/a4255b8e-de1f-4acc-a5cf-d47ac7767d46 -rw-r--r-- 2 12001 12000 0 12 ago 05.06 /gluster/mnt6/brick/.glusterfs/a4/52/a4520383-eaa1-4c82-a6f0-d9ea7de4c48d ---------- 1 root root 0 11 set 11.22 /gluster/mnt6/brick/.glusterfs/quarantine/stub-00000000-0000-0000-0000-000000000008 -rw-r--r-- 2 12001 12000 0 23 lug 22.22 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1986_simu/prepobs_19860823/COST.DAT -rw-r--r-- 2 12001 12000 0 24 lug 00.28 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1986_simu/prepobs_19860828/COST.DAT -rw-r--r-- 2 12001 12000 0 24 lug 08.27 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1986_simu/prepobs_19860916/COST.DAT -rw-r--r-- 2 12001 12000 0 26 lug 00.50 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1986_simu/prepobs_19861221/COST.DAT -rw-r--r-- 2 12001 12000 0 26 lug 03.23 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1986_simu/prepobs_19861230/COST.DAT -rw-r--r-- 2 12001 12000 0 7 ago 15.21 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1987_simu/model/wind/in/procday.20180101 -rw-r--r-- 2 12001 12000 0 7 ago 15.22 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1987_simu/model/wind/work/err.log -rw-r--r-- 2 12001 12000 0 14 ago 12.55 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1988_simu/assim/no_obs_19881231 -rw-r--r-- 2 12001 12000 0 14 ago 12.55 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1988_simu/model/wind/in/endday.19881231 -rw-r--r-- 2 12001 12000 0 14 ago 12.55 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1988_simu/model/wind/in/procday.20180101 -rw-r--r-- 2 12001 12000 0 14 ago 12.55 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1988_simu/model/wind/in/startday.19881230 -rw-r--r-- 2 12001 12000 0 14 ago 12.55 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1988_simu/model/wind/work/err.log -rw-r--r-- 2 12001 12000 0 8 ago 13.51 /gluster/mnt6/brick/OPA/tessa01/work/REA_exp/rea_1988_simu/prepobs_19880114/COST.DAT -rw-r--r-- 2 5219 5200 844800 22 giu 2016 /gluster/mnt6/brick/CSP/sp1/CESM/archive/sps_199301_001/atm/hist/postproc/sps_199301_001.cam.h0.1993-03_grid.nc -rw-r--r-- 2 5219 5200 3203072 22 apr 2016 /gluster/mnt6/brick/CSP/sp1/CESM/archive/sps_199301_001/lnd/hist/lnd/hist/sps_199301_001.clm2.h0.1993-03.nc.gz -rw-r--r-- 2 5219 5200 3164160 23 apr 2016 /gluster/mnt6/brick/CSP/sp1/CESM/archive/sps_199301_001/lnd/hist/lnd/hist/sps_199301_001.clm2.h0.1993-05.nc.gz -rw-r--r-- 2 5219 5200 844800 17 gen 2017 /gluster/mnt6/brick/CSP/sp1/CESM/archive/sps_199301_002/atm/hist/postproc/sps_199301_002.cam.h0.1993-01_grid.nc -rw-r--r-- 2 5219 5200 844800 17 gen 2017 /gluster/mnt6/brick/CSP/sp1/CESM/archive/sps_199301_002/atm/hist/postproc/sps_199301_002.cam.h0.1993-05_grid.nc -rw-r--r-- 2 5219 5200 844800 17 gen 2017 /gluster/mnt6/brick/CSP/sp1/CESM/archive/sps_199301_002/atm/hist/postproc/sps_199301_002.cam.h0.1993-06_grid.nc -rw-r--r-- 2 5219 5200 844800 22 giu 2016 /gluster/mnt6/brick/CSP/sp1/CESM/archive/sps_199301_003/atm/hist/postproc/sps_199301_003.cam.h0.1993-03_grid.nc What can I do with the files not moved by rebalance? Thank you, Mauro
|
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx https://lists.gluster.org/mailman/listinfo/gluster-users