Debian Codegraph @

doc/user-guide/02-getting-started.adoc

raw
1 // FIXME: Make this part more generic and add distribution information
2
3 = Getting started
4
5 == Software requirements
6 Relax-and-Recover aims to have as little dependencies as possible, however
7 over time certain capabilities were added using utilities and specific
8 features, causing older distributions to fall out of support. We try to avoid
9 this where practically possible and be conservative to add new dependencies.
10
11 The most basic requirement for Relax-and-Recover is having +bash+, and
12 ubiquitous Linux tools like:
13
14 - dd (coreutils)
15 - ethtool
16 - file
17 - grep
18 - gzip
19 - ip (iproute[2])
20 - mount (util-linux-ng)
21 - ps (procps)
22 - sed
23 - ssh (openssh-clients)
24 - strings (binutils)
25 - tar
26 - ...
27
28 Optionally, some use-cases require other tools:
29
30 - lsscsi and sg3_utils (for OBDR tape support)
31 - mkisofs or genisoimage (for ISO output support)
32 - syslinux (for ISO or USB output support)
33 - syslinux-extlinux (for USB support)
34 - ebiso (for SLES UEFI booting)
35
36 In some cases having newer versions of tools may provide better support:
37
38 - syslinux >= 4.00 (provides menu support)
39 - parted
40
41 In case we are using +BACKUP=NETFS+ with nfs or cifs we might need also:
42
43 - nfs-client
44 - cifs-utils
45
46 == Distribution support
47 As a project our aim is not to exclude any distribution from being supported,
48 however (as already noted) some older distributions fell out of support over
49 time and there is little interest from the project or the community to spend
50 the effort to add this support.
51
52 On the other hand there is a larger demand for a tool like Relax-and-Recover
53 from the Enterprise Linux distributions, and as a result more people are
54 testing and contributing to support those distributions.
55
56 Currently we aim to support the following distributions by testing them
57 regularly:
58
59 - Red Hat Enterprise Linux and derivatives: RHEL5, RHEL6 and RHEL7
60 - SUSE Linux Enterprise Server 11 and 12
61 - Ubuntu LTS: 12, 13, 14 and 15
62
63 Distributions dropped as supported:
64
65 - Ubuntu LTS <12
66 - Fedora <21
67 - RHEL 3 and 4
68 - SLES 9 and 10
69 - openSUSE <11
70 - Debian <6
71
72 Distributions known to be 'unsupported' are:
73
74 - Ubuntu LTS 8.04 (as it does not implement +grep -P+)
75
76
77 == Known limitations
78 Relax-and-Recover offers a lot of flexibility in various use-cases, however it
79 does have some limitations under certain circumstances:
80
81 - Relax-and-Recover depends on the software of the running system. When
82 recovering this system to newer hardware, it is possible that the hardware
83 support of the original system does not support the newer hardware.
84 +
85 This problem has been seen when restoring an older RHEL4 with an older HP
86 Proliant Support Pack (PSP) to more recent hardware. This PSP did not detect
87 the newer HP SmartArray controller or its firmware.
88
89 - Relax-and-Recover supports recovering to different hardware, but it cannot
90 always automatically adapt to this new environment. In such cases it
91 requires a manual intervention to e.g.
92
93 * modify the _disklayout.conf_ to indicate the number of controller, disks
94 or specific custom desires during restore
95
96 * reduce the partition-sizes/LV-sizes when restoring to smaller storage
97
98 * pull network-media or configure the network interfaces manually
99
100 - Depending on your back-up strategy you may have to perform actions, like:
101
102 * insert the required tape(s)
103
104 * perform commands to restore the backup
105
106
107 == Installation
108
109 You can find the RPM and DEB packages from our web site at http://relax-and-recover.org/download/
110
111 The latest stable versions of Fedora and SLES can be installed via +yum+ and +zypper+
112
113 === From RPM packages
114 Simply install (or update) the provided packages using
115 the command: +rpm -Uhv rear-1.17-1.fc20.noarch.rpm+
116
117 You can test your installation by running +rear dump+:
118
119 ----
120 [root@system ~]# rear dump
121 Relax-and-Recover 1.12.0svn497 / 2011-07-11
122 Dumping out configuration and system information
123 System definition:
124 ARCH = Linux-x86_64
125 OS = GNU/Linux
126 OS_VENDOR = RedHatEnterpriseServer
127 OS_VERSION = 5.6
128 ...
129 ----
130
131 === From DEB packages
132
133 On a Debian system (or Ubuntu) you can download the DEB packages from our download page and install it with the command:
134
135 ----
136 dpkg -i rear*.deb
137 ----
138
139 On Debian (Ubuntu) use the following command to install missing dependencies:
140
141 ----
142 apt-get -f install
143 ----
144
145 === From source
146
147 The latest and greatest sources are available at GitHub location : https://github.com/rear/rear
148
149 To make local copy with our github repository just type:
150
151 ----
152 git clone [email protected]:rear/rear.git
153 ----
154
155 == File locations
156
157 Remember the general configuration file is found at +/usr/share/rear/conf/default.conf+. In that file you find all variables used by +rear+ which can be overruled by redefining these in the +/etc/rear/site.conf+ or +/etc/rear/local.conf+ files. Please do not modify the +default.conf+ file itself, but use the +site.conf+ or +local.conf+ for this purpose.
158
159 NOTE: Important note about the configuration files inside ReaR. Treat these as Bash scripts! ReaR will source these configuration files, and therefore, if you make any syntax error against Bash scripting rules ReaR will break.