-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathChangeLog
More file actions
1114 lines (946 loc) · 44.4 KB
/
ChangeLog
File metadata and controls
1114 lines (946 loc) · 44.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<<<<<<< HEAD:ChangeLog
Main changes in robinhood 3.0:
* Policies at will:
- Define new custom policies at will, just by writting just a few lines of configuration.
- Schedule all imaginable actions on filesystem entries.
- Templates are provided to implement: old entries cleanup, directory cleanup, data corruption checks (by regularly checking file's checksum), Lustre/HSM policies.
* Fully configurable policies:
- All policy aspects made configurable (scope, actions, action parameters, sort order...)
- Fine-grained specification of policy actions and parameters.
* Plugin-based architecture:
- Missing a specific feature in Robinhood core? Implement you own plugin to manage new kind of policies, maintain specific info in robinhood DB, enable interactions with specific site ecosystem (job scheduler, system load...), ...
* Enabling the Robinhood community:
- Share your custom policy definitions and plugins, so that other community members can benefit from them and enrich them!
* All Robinhood features in a single instance:
- No more distinct and incompatible robinhood "flavors" (tmpfs, lhsm, backup...)
- All policies can be implemented in a single robinhood instance.
* Get a better overlook of your filesystem contents than ever!
- New web interface
- REST interface to query filesystem stats
- Tag your filesystem entries based on arbitrary criteria using the new fileclass implementation
- Flexible reporting with "rbh-find -printf"
* RedHat 7 integration:
- systemd support.
- Per filesystem service: robinhood@<fsname>
* New features for Lustre/HSM:
- Undelete: recover accidentally deleted files.
- Implement Lustre/HSM with any backend, using the generic command copytool shipped with robinhood: 'lhsmtool_cmd'.
- UUID support for Lustre/HSM copytools.
* Convenient:
- Automatic DB conversion after major upgrades.
* Even more robust & Improved code quality.
Changes between version 2.5.4 and 2.5.5:
* [lustre] Support Lustre versions up to 2.7.
* [DB performance] Allow both batching and parallelizing DB operations when
accounting is OFF. Benchmarks show a x3~x4 speedup of DB ingest rate in this
case.
* [DB performance] Reduce lock contention on indexes of STRIPE_ITEMS table.
* [acct] Avoid accounting stats inconsistency when this feature is enabled/
disabled/re-enabled.
* [policy performance] Disable ignored class re-matching by default.
* [policy performance] Disable sort by mtime by default.
* [policy performance] Allow disabling sort by atime for purge policies.
* [fix] Fix segfault when log rotation occurs under heavy logging.
* [fix] When processing a RENAME changelog record, match the new path in
filesystem instead of building it from DB (which caused 'incomplete path'
errors).
* [fix] Fix sendfile copy operation for backup mode.
* [fix] Fix various requests about directories: --topdirs with --filter-path
option, --toprmdir, ...
* [fix] Fix possible duplicate insert error when updated entry attributes are
only in ANNEX_INFO table (rare).
* [fix] Some purge parameters may not be taken into account.
* [packaging] clean permissions in distribution tarball.
* [report performance] Improve performance of path matching when running
directory reports with --filter-path option.
2.5.4 release notes:
* "innodb = enabled/disabled": this parameter will be deprecated.
It has to be replaced by "engine = innodb".
* (Lustre only) one of the field types changed in the DB.
It will be automatically converted the first time rbh 2.5.4 starts.
The conversion takes about 5s per million entries.
* Admin guides are now available online (http://robinhood.sf.net > "Online documentation")
"odt" and "pdf" versions are no longer maintained.
Changes between version 2.5.3 and 2.5.4:
* [lustre] Lustre 2.4+: detect all stripe changes and update the DB accordingly.
* [scan] Prevent from dropping entries from DB when opendir or stat fail.
* [DB] Optimization to batch more DB requests.
* [DB] Allow using any MySQL engine (new config parameter: listmanager::mysql::engine)
* [rbh-config] Avoid backup_db to lock the whole tables with innodb.
* [bugfix] Improve robustness to corrupted mtimes.
* [bugfix] Fix possible crash in db_exec_sql.
* [bugfix] Fix possible overflow when executing a custom archive command.
* [backup mode] Clean all non-printable characters in backend path.
* [pkg] libattr-devel is now mandatory to build robinhood.
Changes between version 2.5.2 and 2.5.3:
- custom purge_command (fix): fixed vulnerability to malicious file names.
- changelog processing (fix): fixed errors 'Entry has incomplete path in DB'
in some case of rm/create patterns.
- migration policy (fix): don't trigger copy of files that no longer exist.
- rbh-config (feature): new option 'reset_acct' to rebuild accounting info.
- changelog reader (feature): new parameter 'dump_file' to dump all incoming
changelog records to a file.
- Port to Lustre 2.6.
Changes between version 2.5.1 and 2.5.2:
||||||| merged common ancestors
# default ON
%bcond_without lustre
%bcond_without lhsm
%bcond_without mysql
%bcond_without backup
# default OFF
%bcond_with shook
%bcond_with recovtools
# target install dir for web gui
%define installdir_www /var/www/html
###### end of macro definitions #####
Name: robinhood
Version: 3.0
Vendor: CEA, HPC department <http://www-hpc.cea.fr>
Prefix: %{_prefix}
%if %{with lustre}
%if %{defined lversion}
%define config_dependant .lustre%{lversion}
%else
%define config_dependant .lustre
%endif
%endif
Release: 0.alpha1%{?config_dependant}%{?dist}
Summary: Robinhood - Policy engine and reporting tool for large filesystems
License: CeCILL-C
Group: Applications/System
Url: http://robinhood.sourceforge.net
Source0: robinhood-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glib2-devel >= 2.16
BuildRequires: libattr-devel
BuildRequires: mailx
%if %{with lustre}
Requires: lustre >= %{lversion}
# BuildRequires: lustre >= %{lversion}
%endif
%if %{with mysql}
BuildRequires: /usr/include/mysql/mysql.h
%endif
Obsoletes: robinhood-tmpfs < 3.0, robinhood-backup < 3.0, robinhood-lhsm < 3.0
%description
Robinhood is a tool for monitoring and purging file systems. It is designed to
process all its tasks in parallel, so it is particularly adapted for managing
large file systems with millions of entries and petabytes of data.
With support for: %{?with_lustre:Lustre} %{?with_backup:Backup} %{?with_shook:shook}
Generated using options:
%package adm
Summary: admin/config helper for Robinhood PolicyEngine
Group: Applications/System
Release: 0.alpha1.noarch
%description adm
This RPM provides an admin/config helper for Robinhood PolicyEngine (command rbh-config).
%package webgui
Summary: Web interface to vizualize filesystems stats
Group: Applications/System
Release: 0.alpha1.noarch
Requires: php, php-mysql, php-xml, php-gd, php-pdo
%description webgui
Web interface to vizualize filesystems stats.
This uses robinhood database to display misc. user and group stats.
%if %{with recovtools}
%package recov-tools
Summary: Tools for MDS recovery.
Group: Applications/System
%description recov-tools
Tools for MDS recovery.
%endif
%package tests
Summary: Test suite for Robinhood
Group: Applications/System
Requires: robinhood robinhood-adm
Release: 0.alpha1.noarch
%description tests
Lustre and Posix tests for Robinhood.
%prep
%setup -q -n robinhood-%{version}
%build
./configure %{?configure_flags:configure_flags} \
--mandir=%{_mandir} \
--libdir=%{_libdir}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/templates
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/includes
mkdir -p $RPM_BUILD_ROOT/%{_initrddir}
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
%if %{with lhsm}
install -m 644 doc/templates/includes/lhsm.inc $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/includes/
%endif
install -m 644 doc/templates/includes/tmpfs.inc $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/includes/
install -m 644 doc/templates/includes/alerts.inc $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/includes/
install -m 644 doc/templates/example.conf $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/templates/
install -m 644 doc/templates/basic.conf $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/templates/
%if %{defined suse_version}
install -m 755 scripts/robinhood.init.sles $RPM_BUILD_ROOT/%{_initrddir}/robinhood
%else
install -m 755 scripts/robinhood.init $RPM_BUILD_ROOT/%{_initrddir}/robinhood
%endif
mkdir $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
install -m 644 scripts/sysconfig_robinhood $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/robinhood
install -m 644 scripts/ld.so.robinhood.conf $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/robinhood.conf
mkdir -p $RPM_BUILD_ROOT/%{installdir_www}/robinhood
cp -r web_gui/acct/* $RPM_BUILD_ROOT/%{installdir_www}/robinhood/.
cp web_gui/acct/.htaccess $RPM_BUILD_ROOT/%{installdir_www}/robinhood/.
rm -f $RPM_BUILD_ROOT/%{_libdir}/robinhood/librbh_mod_*.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/robinhood/librbh_mod_*.la
# Add an unmutable copy of the templates for the tests
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/robinhood/doc
cp -a doc/templates $RPM_BUILD_ROOT/%{_datadir}/robinhood/doc
%clean
rm -rf $RPM_BUILD_ROOT
%post
ldconfig
if [ -x %{_initrddir}/robinhood ]; then
if %{_initrddir}/robinhood status | grep running | grep -v "not running" >/dev/null 2>&1; then
%{_initrddir}/robinhood stop
WASRUNNING=1
fi
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del robinhood
[ -x /sbin/chkconfig ] && /sbin/chkconfig --add robinhood
if test x$WASRUNNING = x1; then
%{_initrddir}/robinhood start
fi
fi
%preun
if [ "$1" = 0 ]; then
if [ -x %{_initrddir}/robinhood ]; then
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del robinhood
if %{_initrddir}/robinhood status | grep running | grep -v "not running" >/dev/null 2>&1; then
%{_initrddir}/robinhood stop
fi
fi
fi
%postun
ldconfig
%files adm
%{_sbindir}/rbh-config
%if %{with recovtools}
%files recov-tools
%{_sbindir}/*lovea
%{_sbindir}/gen_lov_objid
%{_sbindir}/ost_fids_remap
%endif
%if %{with shook}
%files robinhood-annex
%{_sbindir}/rbh-rebind
%endif
%files webgui
# set apache permissions
%defattr(750,root,apache)
%{installdir_www}/robinhood
%files tests
%defattr(-,root,root,-)
%dir %{_datadir}/robinhood/
%{_datadir}/robinhood/tests/
%{_datadir}/robinhood/doc/
%files
%defattr(-,root,root,-)
#%doc README
#%doc COPYING
#%doc ChangeLog
# everythink in sbin, except rbh-config which is in adm
%if %{with shook}
%exclude %{_sbindir}/rbh-rebind
%{_sbindir}/rbh-import
%{_sbindir}/rbh-recov
%endif
%if %{with backup}
# NOT ADAPTED TO v3 YET
#%{_sbindir}/rbh-import
#%{_sbindir}/rbh-recov
#%{_sbindir}/rbh-rebind
%{_sbindir}/rbhext_*
%endif
%{_sbindir}/robinhood
%{_sbindir}/rbh-report
%{_sbindir}/rbh-diff
%{_sbindir}/rbh-undelete
%{_bindir}/rbh-du
%{_bindir}/rbh-find
%{_libdir}/robinhood/librbh_mod_*.so*
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/sysconfig/robinhood
%dir %{_sysconfdir}/robinhood.d
%dir %{_sysconfdir}/robinhood.d/includes
%dir %{_sysconfdir}/robinhood.d/templates
%dir %{_sysconfdir}/ld.so.conf.d
%{_sysconfdir}/ld.so.conf.d/robinhood.conf
%if %{with lhsm}
%config %{_sysconfdir}/robinhood.d/includes/lhsm.inc
%endif
%config %{_sysconfdir}/robinhood.d/includes/tmpfs.inc
%config %{_sysconfdir}/robinhood.d/includes/alerts.inc
%config %{_sysconfdir}/robinhood.d/templates/example.conf
%config %{_sysconfdir}/robinhood.d/templates/basic.conf
%{_initrddir}/robinhood
%changelog
* Mon Dec 08 2014 Thomas Leibovici <thomas.leibovici@cea.fr> 2.5.4
- [lustre] Lustre 2.4+: detect all stripe changes and update the DB accordingly.
- [scan] Prevent from dropping entries from DB when opendir or stat fail.
- [DB] Optimization to batch more DB requests.
- [DB] Allow using any MySQL engine (new config parameter: listmanager::mysql::engine).
- [rbh-config] Avoid backup_db to lock the whole tables with innodb.
- [bugfix] Improve robustness to corrupted mtimes.
- [bugfix] Fix possible crash in db_exec_sql.
- [bugfix] Fix possible overflow when executing a custom archive command.
- [backup mode] Clean all non-printable characters in backend path.
- [pkg] libattr-devel is now mandatory to build robinhood.
* Tue Jul 29 2014 Thomas Leibovici <thomas.leibovici@cea.fr> 2.5.3
- [bugfix] custom purge_command: fixed vulnerability to malicious file names.
- [bugfix] changelog processing: fixed errors 'Entry has incomplete path in DB' in some case of rm/create patterns.
- [bugfix] migration policy (fix): don't trigger copy of files that no longer exist.
- [feature] rbh-config: new option 'reset_acct' to rebuild accounting info.
- [feature] changelog reader: new parameter 'dump_file' to dump all incoming changelog records to a file.
- [compat] port to Lustre 2.6.0.
* Wed May 21 2014 Thomas Leibovici <thomas.leibovici@cea.fr> 2.5.2
=======
# default ON
%bcond_without lustre
%bcond_without lhsm
%bcond_without mysql
%bcond_without backup
# default OFF
%bcond_with shook
%bcond_with recovtools
# target install dir for web gui
%define installdir_www /var/www/html
###### end of macro definitions #####
Name: robinhood
Version: 3.0
Vendor: CEA, HPC department <http://www-hpc.cea.fr>
Prefix: %{_prefix}
%if %{with lustre}
%if %{defined lversion}
%define config_dependant .lustre_client%{lversion}
%else
%define config_dependant .lustre_client
%endif
%endif
Release: 0.alpha1%{?config_dependant}%{?dist}
Summary: Robinhood - Policy engine and reporting tool for large filesystems
License: CeCILL-C
Group: Applications/System
Url: http://robinhood.sourceforge.net
Source0: robinhood-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glib2-devel >= 2.16
BuildRequires: libattr-devel
BuildRequires: mailx
%if %{with lustre}
Requires: lustre-client >= %{lversion}
BuildRequires: lustre-client >= %{lversion}
%endif
%if %{with mysql}
BuildRequires: /usr/include/mysql/mysql.h
%endif
Obsoletes: robinhood-tmpfs < 3.0, robinhood-backup < 3.0, robinhood-lhsm < 3.0
%description
Robinhood is a tool for monitoring and purging file systems. It is designed to
process all its tasks in parallel, so it is particularly adapted for managing
large file systems with millions of entries and petabytes of data.
With support for: %{?with_lustre:Lustre} %{?with_backup:Backup} %{?with_shook:shook}
Generated using options:
%package adm
Summary: admin/config helper for Robinhood PolicyEngine
Group: Applications/System
Release: 0.alpha1.noarch
%description adm
This RPM provides an admin/config helper for Robinhood PolicyEngine (command rbh-config).
%package webgui
Summary: Web interface to vizualize filesystems stats
Group: Applications/System
Release: 0.alpha1.noarch
Requires: php, php-mysql, php-xml, php-gd, php-pdo
%description webgui
Web interface to vizualize filesystems stats.
This uses robinhood database to display misc. user and group stats.
%if %{with recovtools}
%package recov-tools
Summary: Tools for MDS recovery.
Group: Applications/System
%description recov-tools
Tools for MDS recovery.
%endif
%package tests
Summary: Test suite for Robinhood
Group: Applications/System
Requires: robinhood robinhood-adm
Release: 0.alpha1.noarch
%description tests
Lustre and Posix tests for Robinhood.
%prep
%setup -q -n robinhood-%{version}
%build
./configure %{?configure_flags:configure_flags} \
--mandir=%{_mandir} \
--libdir=%{_libdir}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/templates
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/includes
mkdir -p $RPM_BUILD_ROOT/%{_initrddir}
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
%if %{with lhsm}
install -m 644 doc/templates/includes/lhsm.inc $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/includes/
%endif
install -m 644 doc/templates/includes/tmpfs.inc $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/includes/
install -m 644 doc/templates/includes/alerts.inc $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/includes/
install -m 644 doc/templates/example.conf $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/templates/
install -m 644 doc/templates/basic.conf $RPM_BUILD_ROOT/%{_sysconfdir}/robinhood.d/templates/
%if %{defined suse_version}
install -m 755 scripts/robinhood.init.sles $RPM_BUILD_ROOT/%{_initrddir}/robinhood
%else
install -m 755 scripts/robinhood.init $RPM_BUILD_ROOT/%{_initrddir}/robinhood
%endif
mkdir $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
install -m 644 scripts/sysconfig_robinhood $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/robinhood
install -m 644 scripts/ld.so.robinhood.conf $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/robinhood.conf
mkdir -p $RPM_BUILD_ROOT/%{installdir_www}/robinhood
cp -r web_gui/acct/* $RPM_BUILD_ROOT/%{installdir_www}/robinhood/.
cp web_gui/acct/.htaccess $RPM_BUILD_ROOT/%{installdir_www}/robinhood/.
rm -f $RPM_BUILD_ROOT/%{_libdir}/robinhood/librbh_mod_*.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/robinhood/librbh_mod_*.la
# Add an unmutable copy of the templates for the tests
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/robinhood/doc
cp -a doc/templates $RPM_BUILD_ROOT/%{_datadir}/robinhood/doc
%clean
rm -rf $RPM_BUILD_ROOT
%post
ldconfig
if [ -x %{_initrddir}/robinhood ]; then
if %{_initrddir}/robinhood status | grep running | grep -v "not running" >/dev/null 2>&1; then
%{_initrddir}/robinhood stop
WASRUNNING=1
fi
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del robinhood
[ -x /sbin/chkconfig ] && /sbin/chkconfig --add robinhood
if test x$WASRUNNING = x1; then
%{_initrddir}/robinhood start
fi
fi
%preun
if [ "$1" = 0 ]; then
if [ -x %{_initrddir}/robinhood ]; then
[ -x /sbin/chkconfig ] && /sbin/chkconfig --del robinhood
if %{_initrddir}/robinhood status | grep running | grep -v "not running" >/dev/null 2>&1; then
%{_initrddir}/robinhood stop
fi
fi
fi
%postun
ldconfig
%files adm
%{_sbindir}/rbh-config
%if %{with recovtools}
%files recov-tools
%{_sbindir}/*lovea
%{_sbindir}/gen_lov_objid
%{_sbindir}/ost_fids_remap
%endif
%if %{with shook}
%files robinhood-annex
%{_sbindir}/rbh-rebind
%endif
%files webgui
# set apache permissions
%defattr(750,root,apache)
%{installdir_www}/robinhood
%files tests
%defattr(-,root,root,-)
%dir %{_datadir}/robinhood/
%{_datadir}/robinhood/tests/
%{_datadir}/robinhood/doc/
%files
%defattr(-,root,root,-)
#%doc README
#%doc COPYING
#%doc ChangeLog
# everythink in sbin, except rbh-config which is in adm
%if %{with shook}
%exclude %{_sbindir}/rbh-rebind
%{_sbindir}/rbh-import
%{_sbindir}/rbh-recov
%endif
%if %{with backup}
# NOT ADAPTED TO v3 YET
#%{_sbindir}/rbh-import
#%{_sbindir}/rbh-recov
#%{_sbindir}/rbh-rebind
%{_sbindir}/rbhext_*
%endif
%{_sbindir}/robinhood
%{_sbindir}/rbh-report
%{_sbindir}/rbh-diff
%{_sbindir}/rbh-undelete
%{_bindir}/rbh-du
%{_bindir}/rbh-find
%{_libdir}/robinhood/librbh_mod_*.so*
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/sysconfig/robinhood
%dir %{_sysconfdir}/robinhood.d
%dir %{_sysconfdir}/robinhood.d/includes
%dir %{_sysconfdir}/robinhood.d/templates
%dir %{_sysconfdir}/ld.so.conf.d
%{_sysconfdir}/ld.so.conf.d/robinhood.conf
%if %{with lhsm}
%config %{_sysconfdir}/robinhood.d/includes/lhsm.inc
%endif
%config %{_sysconfdir}/robinhood.d/includes/tmpfs.inc
%config %{_sysconfdir}/robinhood.d/includes/alerts.inc
%config %{_sysconfdir}/robinhood.d/templates/example.conf
%config %{_sysconfdir}/robinhood.d/templates/basic.conf
%{_initrddir}/robinhood
%changelog
* Mon Dec 08 2014 Thomas Leibovici <thomas.leibovici@cea.fr> 2.5.4
- [lustre] Lustre 2.4+: detect all stripe changes and update the DB accordingly.
- [scan] Prevent from dropping entries from DB when opendir or stat fail.
- [DB] Optimization to batch more DB requests.
- [DB] Allow using any MySQL engine (new config parameter: listmanager::mysql::engine).
- [rbh-config] Avoid backup_db to lock the whole tables with innodb.
- [bugfix] Improve robustness to corrupted mtimes.
- [bugfix] Fix possible crash in db_exec_sql.
- [bugfix] Fix possible overflow when executing a custom archive command.
- [backup mode] Clean all non-printable characters in backend path.
- [pkg] libattr-devel is now mandatory to build robinhood.
* Tue Jul 29 2014 Thomas Leibovici <thomas.leibovici@cea.fr> 2.5.3
- [bugfix] custom purge_command: fixed vulnerability to malicious file names.
- [bugfix] changelog processing: fixed errors 'Entry has incomplete path in DB' in some case of rm/create patterns.
- [bugfix] migration policy (fix): don't trigger copy of files that no longer exist.
- [feature] rbh-config: new option 'reset_acct' to rebuild accounting info.
- [feature] changelog reader: new parameter 'dump_file' to dump all incoming changelog records to a file.
- [compat] port to Lustre 2.6.0.
* Wed May 21 2014 Thomas Leibovici <thomas.leibovici@cea.fr> 2.5.2
>>>>>>> Squashed commit of the following::robinhood.spec
- rbh-du: fixed major performance regression (since v2.5.0).
- rbh-find: fixed occasional crash.
- HSM and backup modes: fixed a risk of removing an existing entry from the backend
(in some situations of hardlink/rename+unlink).
- backup mode: optimized sendfile()-based copy (Linux kernel >= 2.6.33).
- logs: avoid flood of log messages in case of DB connection error.
- alerts: added host name to alert mail title.
- rbh-config empty_db/repair_db: also manage/fix stored procedures.
- cosmetic: fix wrong display of purged blocks for count-based triggers.
- cosmetic: fix migration counter display.
- init script: check that 'ulimit -s' is reasonable.
- fixed build dependancies on Fedora19 and Fedora20.
- code sanity: fixed many 'coverity' warnings + a couple of minor memleaks.
- doc: details about RPM installation locations.
- doc: detail of 'backend' paramaters for backup mode.
Changes between version 2.5.0 and 2.5.1:
- entry processing (major fix): fixed deadlock when the pipeline is full
and an entry with an unknown parent is encountered.
- purge (enhancement): start purging data from the most used OSTs.
- rbh-find (features): new options: -pool, -exec, -print, -nouser, -nogroup, -lsost
- rbh-find (optimization): automatically switch to bulk DB request mode when
command argument is filesystem root (+new option -nobulk to disable it).
- logging (enhancement): new config parameters to control log header format
- backup (feature): allow compressing data in archive.
- backup (fix): wrong path in archive when robinhood root directory != mount point.
- backup (fix): fix segfault when importing a single file with a FID-ending name.
Changes in version 2.5.0:
Summary:
- filesystem disaster recovery features
- new namespace management (new DB schema to properly handle hardlinks, renames...)
- scanning and changelog processing optimizations
- database optimizations (requests batching)
- many other changes, improvements and code cleaning...
Details:
- rbh-diff:
* new command to detect differences between the filesystem and the information
in robinhood database.
* option "--apply=fs" for disaster recovery purpose: restore the filesystem
metadata from robinhood DB.
* makes it possible to rebuild a Lustre MDT from scratch, or from a LVM snapshot
(see "Robinhood Lustre disaster recovery guide" for more details).
- database:
* new namespace implementation in database with new NAMES table (Cray contribution)
- fixes/improves hardlink support
- fixes/improves Lustre ChangeLog hardlink/rename/unlink support
- saves DB storage space
* database request batching: significantly increase database ingest rate.
No longer needs innodb_flush_log_at_tx_commit != 1 to speed up DB operations.
* additional information in DB that can help for disaster recovery:
symlink info, access rights, stripe object indexes, stripe order, nlink...
* set default commit behavior to transaction (prevent from DB inconsistencies)
* optimized multi-table requests
* optimization: minimized attribute set in DB update operations
(don't update attributes that didn't change)
* Fix: deal with mysql case insensitivity for string matching
* triggers and stored procedures versioning mechanism
* prevent from overflows for large INSERT requests, wide stripes...
* prevent from DB deadlocks
- scanning:
* --partial-scan option is deprecated and replaced by an optional argument to --scan (e.g. --scan=/fs/subdir).
* better management of partial scans:
- better detection of removed entries vs. entries moved from a directory to another.
- partial scans can be used for initial DB population (even if the DB is initially empty).
* garbage collection of removed entries in DB is a long operation when terminating a scan (and even more
when terminating a partial scan). Added --no-gc option to skip it (recommanded for partial scans).
* automatically enabling --no-gc if the DB is initially empty (eg. for initial scan).
* optimization: use *at() functions (openat, fstatat) and readdir by chunk (using getdents) instead of POSIX lstat() and readdir_r().
* optimization: use NOATIME flag to access entries as much as possible
* optimizations of get_stripe and get_fid operations.
* new --diff option for robinhood --scan and --readlog: output detected changes in a diff-like format.
- Lustre changelogs:
* changelog batching (Cray contribution): to speed up changelog processing,
robinhood retains changelog records in memory a short time,
to aggregate similar/redundant Changelog records on the same entry before
updating its database.
* support multiple changelog readers (for DNE) as multiple threads (default)
or as multiple processes, possibly on different hosts, by giving a MDT index
to --readlog option.
* resilience to filesystem umount/mount.
- rbh-report:
* new option --entry-info to get all the stored information about an entry
* option --dump-ost can now list multiple OSTs and support ranges notation (e.g. 3,5-8,12-23).
* --dump-ost output indicates if a file has data on a given OST (could be striped on the OST but have no data on it).
- rbh-find:
* new option -crtime to filter entries on creation time.
* output ordering closer to find output
* added missing info in 'rbh-find -ls' output (nlink, mode, symlink info...)
- robinhood-backup:
* by default, use a built-in copy function to avoid the cost of forking copy commands.
* rbh-backup-rebind: tool to rebind an entry in the backend if its fid changed in the filesystem
for any reason (file copied to a new one to change its stripe, etc...)
* rbh-backup-recov new features and options:
--list (list information about entries to be recovered)
--ost <ost_set> to only recover entries for a given set of OSTs (support range notation):
the basic use-case is OST disaster recovery.
--since <time> to only recover entries modified since a given date:
the basic use case is after restoring an OST snapshot.
* symlinks archiving to backend made optional (new parameter 'archive_symlinks')
as they can now be restored using robinhood database information.
- configuration:
* can specify environment variables in config file (e.g. fs_path = $ROOT_DIR ;)
* prevent from using a wrong config file (Cray contribution):
- only check files in /etc/robinhood.d/<purpose>, no longer in the current directory
- fails if to many config files are available.
Changes between version 2.4.2 and 2.4.3:
* [lustre] support of Lustre 2.4
- DNE not fully supported yet: if running multiple MDS,
run 1 instance of changelog reader per MDT.
- Detect file layout changes (new changelog record CL_LAYOUT).
* [lustre] added statistics about changelog processing speed.
* [policies] new parameter 'recheck_ignored_classes' to allow/avoid
rematching entries from ignored classes in migration and purge policies.
* [web ui] security patch to prevent from SQL injection.
* [lustre] fix stack overflow when handling files with wide stripes.
* [DB] better handling of ER_QUERY_INTERRUPTED MySQL error.
* [DB] fixed DB connection leaks.
* Backup & HSM modes:
- [fix] fix segfault in import command when uid/gid can't be resolved.
- [rbh-report] fix bad display of total volume with -u or -g.
* Migration policy features and optimizations:
- [feature] new parameter 'lru_sort_attr' to select LRU sort criteria for policy application.
Previously based on last modification time, it can now be one of:
creation, last_archive, last_mod, last_access.
- [feature] special meaning for condition 'last_archive == 0':
matches entries that have never been archived.
- [feature] suspend migration if copy error rate exceed a threshold.
This is controled by 'suspend_error_pct' and 'suspend_error_min' parameters.
- [stats] migration stats while migration is running: added skipped and error counters.
- [optim] avoid rechecking ignored entries at each pass
- [optim] smoother feeding of migration workers queue
* Code & environment:
- [build] can specify a path to alternative lustre source tree in ./configure
- [tests] allow specifying an alternative path to lfs command
Changes between version 2.4.1 and 2.4.2:
* [general] immediate exit on ctrl+C: don't process all queued operations, just finish current.
* [general] LSB compliance if daemon is already started.
* [DB] validation with MariaDB (replacement for MySQL in Fedora19).
* [config] can set default config file using RBH_CFG_DEFAULT environment variable.
* [config] more precise message if no config file is found.
* [rbh-find] added -not/-! option to rbh-find.
* [lustre] fix for 16 chars pool names.
* [bugfix] fixed memleak in rbh-find.
* [bugfix] fixed segfault if checking scan deadline occured exactly when scan ended.
* [logs] display bandwidth and rate stats during migration run.
* [logs] fix: DB get operations were counted twice in stats.
* [cosmetic] removed "connection failed" warning for one shot commands.
* [cosmetic] fix typos in logs.
* [devel] port to automake 1.12 (since Fedora18).
Changes between version 2.4.0 and 2.4.1:
* [lustre] better file size change detection using CLOSE events
from MDT ChangeLog (requires Lustre 2.2 or +)
* [scan] optimization: using fstatat and getdents
* [rbh-find] added -atime/-amin options
* [logs] add'l information in logs (DB operations, HSM_rm details)
* [logs] log to stderr if opening of the log file fails
* [fix] scan blocked if final DB operation failed
* [fix] avoid DB lock exhaustion for huge requests
* [backup] manage cross device rename in backend
* [backup] rebind an entry in backend after fid change (e.g. restripe)
New features in robinhood 2.4:
* rbh-du and rbh-find: "du" and "find" clones querying robinhood's database
Faster way to search for entries in a filesystem!
Performance comparison for a 1 million entries Lustre v2 filesystem
find /lustre -user foo -type f -size -32M -ls
(no possible criteria on OST index)
> 58m13s
lfs find /lustre -user foo -type f --obd lustre-OST0001
(no possible criteria on size)
> 20m46s
rbh-find /lustre -user foo -type f -size -32M -ost 1 -ls
> 1.2s
* Directory reporting: top directories per dirent count, per avg file size
(useful for small file hunting)
* File size profiling: global, per user, per group, per fileclass...
(+additional section in webUI)
* Sorting user/groups by size range (eg. percentage of files < 1G)
(useful for small file hunting)
* Partial scans to update only a subset of the filesystem.
=> allow distributed scans by splitting the namespace into
partial scans running on multiple clients.
Other changes in 2.4.0:
* [packaging] rpm name 'robinhood-tmp_fs_mgr' changed to 'robinhood-tmpfs'
* [packaging] 'rbh-config' command moved to new RPM 'robinhood-adm'
* [report] refurbished rbh-report output format
* [policies] new criteria on file creation time
* [database] use innodb by default for MySQL engine
* [system] ability to detect "fake mtime" (mtime != actual modification time)
* [system] improved filesystem detection,
using fsname or devid as FS identifier (config driven)
* [scan] can trigger external completion command when a scan ends
* [misc.] can use short config name instead of full path
(eg. "-f <name>" instead of "-f /full/path/to/name.conf")
* [backup] directory and symlink recovery
* [lustre] port to Lustre 2.2 and 2.3
* [lustre] support for new Changelog record struct (lu-1331)
* [fix] max_rm_count=0 resulted in no rm (instead of unlimited)
* [fix] segfault in realpath() on Ubuntu
* [fix] unsigned arithmetic issue with MySQL 5.5
Changes between version 2.3.3 and 2.3.4:
- Faster and safer shutdown on SIGINT/SIGTERM
- Can use short config name instead of full config file path.
E.g. "-f myconf" instead of "-f /etc/robinhood.d/tmp_fs/myconf.cfg"
- Consider all non-dirs for classinfo (instead of files only)
- Implemented max_rm_count in hsm remove policy
- clearer messages about DB connection and retries
- added lu543 configure option (must be enabled if this patch
is integrated to your Lustre distribution)
- Better block counting for purges
- backup/shook modes:
- import of existing files from backend
- entry state set to 'archive_running' during migration
- recovery for entries with 'release pending' or 'restore running' state on startup
(new parameter: check_purge_status_on_startup)
- enable DB rebuild if it is lost
- fix: symlink recovery
- improvements of rbhext_tool_clnt/svr (timeout, traces, ...)
- user.shook_state xattr changed to security.shook_state
(to avoid users to change it)
- Fix: Don't consider 'released' entries for quota-like purge triggers
- Fix: migrate-group did migrate user
- Generate up-to-date template automatically at RPM installation
- 72 new regression tests (all policies conditions and config file parameters are tested)
Changes between version 2.3.2 and 2.3.3:
[webgui]
- added FS name to page title and page header
- added missing file in RPM (.htaccess)
[reports]
- new options for top-users/top-groups: --by-avgsize, --count-min, --reverse
- Lustre changelog stats in 'rbh-report -a'
[policies]
- fix: 'tree' condition must match root entry
- fix: migration class matching at scan time
[config]
- simpler parameter 'scan_interval'
- fix: don't reload config of disabled modules on SIGHUP
- fix: on SIGHUP, don't reload parameters specified on cmd line
[database]
- retry on connection failure
[stats]
- dump process stats on SIGUSR1
[backup]
- clean special chars in archive names
- fix issues in symlink archiving
[lustre]
- specific compilation option for jira's LU-543
[misc]
- code cleaning, sanity checks, improved traces...
Changes between version 2.3.1 and 2.3.2:
- [webgui] Web interface (beta)
- [quota/alerts] Implemented quota alerts on inode count (users and groups)
- [reporting] New option --by-count for --top-users, to sort users by entry count
- [database] Support of InnoDB MySQL engine
- [database] MySQL 4 compatibility fix
- [bugfix](minor) handling DB deadlock error
- [bugfix](tweak) added acct parameters to default and template outputs
- [testing] big tests with 1M entries
- [backup] about backup mode (beta):
- [bugfix](major) fixed error determining symlink status
- [bugfix](minor) don't consider 'new' entries in deferred removal
- [trace] display warning if mtime in FS < mtime in backend
Changes between version 2.3.0 and 2.3.1:
- [bugfix](major) Wrong accounting values if file owner changes
- [bugfix](major) SQL error for widely striped files
- [compat] Compatibility fix for MySQL servers between 5.0.0 and 5.0.32
Changes between version 2.2.3 and 2.3.0:
- [optim.] instant accounting reports (user/group usage, fs content summary, ...)
- [reporting] split user usage per group (--split-user-groups option)
- [reporting] split group usage per user (--split-user-groups option)
- [feature] new policy criteria for Lustre FileSystems: ost_index
- [reporting] detailed FS scan statistics in "rbh-report -a"
- [misc.] fast and clean abort on ctrl^c (during scan, migration and purge)
- [admin.] automatically disables features that are not defined in config file
- [admin.] "rbh-config backup_db" helper to create a robinhood DB backup
- [misc.] -V option displays Lustre version and release number
- [tweak] changed 'watermark' parameters to 'threshold'
- [tweak] changed 'notify_lw' and 'alert_hw' parameters to 'alert_low' and 'alert_high'
- [database] alternative port or socket file can be used for MySQL connection
- [database] limiting DB access rights for reporting command
- [bugfix](major) fixed inconsistent pool names
- [bugfix](minor) kill -HUP terminated the process if no trigger was defined
- [bugfix](minor) 'unknown' status not correctly filtered in '--dump-status' report
- [bugfix](tweak) added 'reload' in short help of SLES init script
- [misc.] code cleaning, error message cleaning, removed some obsolete code
- [feature] new robinhood flavor to track modifications in a Lustre v2 filesystem, and backup data to an external storage (current status: Alpha testing only).
As part of this feature:
- soft rm + command to retrieve removed files
- disaster recovery command
- "--migrate-file" option to archive a single file
- pre-maintenance mode to smoothly backup the whole filesystem content before a due date.
Changes between version 2.2.2 and 2.2.3:
- [feature] periodic purge trigger
- [feature] options for controlling trigger notifications
- [doc] pdf documentation updated
Changes between version 2.2.1 and 2.2.2:
- [bugfix] (major) fixed "duplicate key" errors
- [bugfix] (major) FS scan sometimes blocks on Lustre 2
- [misc.] integration to automatic testing suite (Hudson)
Changes between version 2.2.0 and 2.2.1:
- [feature] new purge command: --purge-class to apply purge policy on files in a given class
- [feature] new migration command: --migrate-class to apply migration policy on files in a given class
- [feature] support of syslog for logging
- [report cmd] Added summary line to all reports, with total nbr entries and volume.
- [report cmd] Added '-q' option to hide headers and footers in reports.
- [optim.] changed primary key format to reduce DB requests
- [misc.] new command 'repair_db' in rbh-config, to fix tables after a MySQL server crash.
- [compat.] Support for Lustre MDT changelogs on Lustre v2.0 final
- [compat.] port to FreeBSD
- [admin] added 'reload' action to init.d script
- [misc.] a gap in OST index list should displays a warning, not an error
- [pkg] common spec file for both el4, el5 and el6
- [bugfix] handling large UNIX groups (>4k) and long lists of alt groups.
- [bugfix] retrieving Lustre pool fails with error "Unsupported Lustre magic number"
- [bugfix] wrong class matching on OST pools when scanning
- [bugfix] unescaped SQL strings caused error for filenames with single quotes
- [bugfix] error in init script when RBH_OPT contains several options
Changes between version 2.1.5 and 2.2.0:
- [feature] fileclass union/intersection/negation
- [feature] rbh-report displays last matched fileclass
- [feature] new reporting command '--class-info' generates fileclass summary
- [feature] new reporting option '--filter-class' to dump entries per fileclass
- [feature] alert batching: send a mail summary instead of 1 mail per matching entry
- [feature] alert improvements: named alerts, tweak changes
- [feature] special wildcard '**' in 'path ' or 'tree' conditions matches any count of directory levels
- [feature] quota-like purge triggers fully implemented (on group or user)
- [feature] triggers on used inode count in filesystem