]>
Commit | Line | Data |
---|---|---|
8e9663d2 | 1 | Summary: I/O fencing system |
edd0b3e7 | 2 | Summary(pl.UTF-8): System barier I/O |
8e9663d2 | 3 | Name: fence |
7b0a6c13 | 4 | Version: 2.03.10 |
8e9663d2 | 5 | Release: 1 |
db9d35b6 | 6 | Epoch: 1 |
7b0a6c13 | 7 | License: GPL v2+ |
8e9663d2 | 8 | Group: Applications/System |
db9d35b6 | 9 | Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz |
7b0a6c13 | 10 | # Source0-md5: 379b560096e315d4b52e238a5c72ba4a |
b07b8fdc | 11 | URL: http://sources.redhat.com/cluster/fence/ |
7b0a6c13 JB |
12 | BuildRequires: cman-devel >= 2.03.10 |
13 | BuildRequires: ccs-devel >= 2.03.10 | |
dd6358d9 | 14 | BuildRequires: perl-base |
cb8c0092 | 15 | BuildRequires: rpm-pythonprov |
7b0a6c13 | 16 | Requires: cman-libs >= 2.03.10 |
8e9663d2 AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %define _sbindir /sbin | |
20 | ||
21 | %description | |
50db4c12 JB |
22 | The Fence system does I/O fencing of cluster members. Any member may |
23 | join the default fence domain after which it will be fenced if it | |
24 | fails without leaving the fence domain cleanly. The lock_dlm GFS lock | |
25 | module will not permit GFS to be mounted until the node has joined a | |
cb8c0092 | 26 | fence domain. |
8e9663d2 | 27 | |
50db4c12 JB |
28 | The fence daemon, fenced, is usually started by running "fence_tool |
29 | join". Once started, fenced joins the default fence domain and the | |
30 | node is subject to being fenced if it fails. A collection of fence | |
31 | agents are used by fenced to interface with hardware devices (usually | |
32 | to shut off its path to shared storage or cycle its power source.) | |
33 | ||
ccb0177f JR |
34 | %description -l pl.UTF-8 |
35 | System Fence odpowiada za bariery I/O dla członków klastra. Każdy z | |
36 | członków może dołączyć do domyślnej domeny barier, po czym będzie | |
37 | odgrodzony jeśli zawiedzie nie opuszczając czysto domeny barier. Moduł | |
38 | blokujący GFS-a lock_dlm nie pozwoli na podmontowanie GFS-a dopóki | |
39 | węzeł nie dołączy do domeny barier. | |
50db4c12 JB |
40 | |
41 | Demon fence, fenced, jest zwykle uruchamiany przez fence_tool join. Po | |
ccb0177f JR |
42 | uruchomieniu fenced dołącza do domyślnej domeny barier, a węzeł jest |
43 | przedmiotem odgrodzenia jeśli zawiedzie. fenced wykorzystuje zbiór | |
44 | agentów fence do komunikacji z urządzeniami sprzętowymi (zwykle do | |
45 | odcinania drogi do dzielonej pamięci lub wyłączania i włączania | |
50db4c12 | 46 | zasilania). |
8e9663d2 AM |
47 | |
48 | %prep | |
db9d35b6 | 49 | %setup -q -n cluster-%{version} |
8e9663d2 AM |
50 | |
51 | %build | |
52 | ./configure \ | |
7b0a6c13 JB |
53 | --cc="%{__cc}" \ |
54 | --cflags="%{rpmcflags} -Wall" \ | |
55 | --ldflags="%{rpmldflags}" \ | |
8e9663d2 | 56 | --incdir=%{_includedir} \ |
8e9663d2 | 57 | --libdir=%{_libdir} \ |
7b0a6c13 | 58 | --libexecdir=%{_libdir} \ |
8e9663d2 AM |
59 | --mandir=%{_mandir} \ |
60 | --prefix=%{_prefix} \ | |
7b0a6c13 JB |
61 | --sbindir=%{_sbindir} \ |
62 | --without_gfs \ | |
63 | --without_gfs2 \ | |
64 | --without_gnbd \ | |
65 | --without_kernel_modules | |
66 | ||
67 | # libgroup.a is not packaged anywhere, so we must build it here | |
68 | %{__make} -C group/lib | |
69 | ||
70 | %{__make} -C %{name} | |
8e9663d2 AM |
71 | |
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
7b0a6c13 | 75 | %{__make} -C %{name} install \ |
8e9663d2 AM |
76 | DESTDIR=$RPM_BUILD_ROOT |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
7b0a6c13 JB |
83 | %attr(755,root,root) %{_sbindir}/fence_* |
84 | %attr(755,root,root) %{_sbindir}/fenced | |
85 | # TODO: PLDify | |
86 | #%attr(754,root,root) /etc/rc.d/init.d/scsi_reserve | |
87 | %{_datadir}/fence | |
88 | #%{_datadir}/snmp/mibs/powernet369.mib | |
89 | %{_mandir}/man8/fence.8* | |
90 | %{_mandir}/man8/fence_*.8* | |
91 | %{_mandir}/man8/fenced.8* |