Debian Codegraph @

doc/user-guide/08-troubleshooting.adoc

raw
1 = Troubleshooting Relax-and-Recover
2
3 If you encounter a problem, you may find more information in the log file
4 which is located at _/var/log/rear/rear-system.log_. During recovery the backup
5 log file is also available from _/var/log/rear/_, for your convenience the
6 history in rescue mode comes with useful commands for debugging, use the up
7 arrow key in the shell to find those commands.
8
9 There are a few options in Relax-and-Recover to help you debug the situation:
10
11 - use the +-v+ option to show progress output during execution
12 - use the +-d+ option to have debug information in your log file
13 - use the +-s+ option to see what scripts Relax-and-Recover would be using;
14 this is useful to understand how Relax-and-Recover is working internally
15 - use the +-S+ option to step through each individual script when
16 troubleshooting
17 - use the +-D+ option to dump every function call to log file; this is very
18 convenient during development or when troubleshooting Relax-and-Recover
19
20
21 == During backup
22 During backup Relax-and-Recover creates a description of your system layout
23 in one file (_disklayout.conf_) and stores this as part of its rescue image.
24 This file describes the configuration of SmartArray RAID, partitions,
25 software RAID, DRBD, logical volumes, filesystems, and possibly more.
26
27 Here is a list of known issues during backup:
28
29 [qanda]
30 One or more HP SmartArray controllers have errors::
31 +
32 --
33 Relax-and-Recover had detected that one of your HP SmartArray controllers is
34 in ERROR state and as a result it can not trust the information returned from
35 that controller. This can be dangerous because we cannot guarantee that the
36 disk layout is valid when recovering the system.
37
38 We discovered that this problem can be caused by a controller that still
39 has information in its cache that has not been flushed and the only way to
40 solve it was to reboot the system and pressing F2 during the controller
41 initialization when it reports this problem.
42 --
43
44 USB sticks disappear and re-appear with difference device name::
45 +
46 --
47 We have had issues before with a specific batch of JetFlash USB sticks
48 which, during write operations, reset the USB controller because of a bug
49 in the Linux kernel. The behavior is that the device disappears (during
50 write operations!) and reappears with a different device name. The result
51 is that the filesystem becomes corrupt and the stick cannot be used.
52
53 To verify if the USB stick has any issues like this, we recommend using
54 the +f3+ tool on Linux or the +h2testw+ tool on Windows. If this tool
55 succeeds in a write and verify test, the USB stick is reliable.
56 --
57
58
59 == During recovery
60 During restore Relax-and-Recover uses the saved system layout as the basis for
61 recreating a workable layout on your new system. If your new hardware is very
62 different, it's advised to copy the layout file
63 _/var/lib/rear/layout/disklayout.conf_ to _/etc/rear_ and modify it according
64 to what is required.
65
66 ----
67 cp /var/lib/rear/layout/disklayout.conf /etc/rear/
68 vi /etc/rear/disklayout.conf
69 ----
70
71 Then restart the recovery process: +rear recover+
72
73 During the recovery process, Relax-and-Recover translates this layout file
74 into a shell procedure (_/var/lib/rear/layout/diskrestore.sh_) that contains
75 all the needed instructions for recreating your desired layout.
76
77 If Relax-and-Recover comes across irreconcilable differences, it provides you
78 with a small menu of options you have. In any case you can Abort the menu, and
79 retry after cleaning up everything Relax-and-Recover may already have done, incl.
80 +mdadm --stop --scan+ or +vgchange -a n+.
81
82 In any case, you will have to look into the issue, see what goes wrong and
83 either fix the layout file (_disklayout.conf_) and restart the recovery
84 process (+rear recover+) or instead fix the shell procedure (_diskrestore.sh_)
85 and choose +Retry+.
86
87 WARNING: Customizations to the shell procedure (_diskrestore.sh_) get
88 lost when restarting +rear recover+.
89
90
91 Here is a list of known issues during recovery:
92
93 [qanda]
94 Failed to clear HP SmartArray controller 1::
95 +
96 --
97 This error may be caused by trying to clear an HP SmartArray controller
98 that does not have a configuration or does not exist. Since we have no
99 means to know whether this is a fatal condition or not we simply try to
100 recreate the logical drive(s) and see what happens.
101
102 This message is harmless, but may help troubleshoot the subsequent error
103 message.
104 --
105
106 An error has been detected during restore::
107 +
108 --
109 The (generated) layout restore script _/var/lib/rear/layout/diskrestore.sh_
110 was not able to perform all necessary steps without error. The system will
111 provide you with a menu allowing you to fix the _diskrestore.sh_ script
112 manually and continue from where it left off.
113
114 Cannot create array. Cannot add physical drive 2I:1:5
115 Could not configure the HP SmartArray controllers
116
117 When the number of physical or logical disks are different, or when other
118 important system characteristics that matter to recovery are incompatible,
119 this will be indicated by a multitude of possible error-messages.
120 Relax-and-Recover makes it possible to recover also in these cases by hand.
121
122 You can find more information about your HP SmartArray setup by running one of
123 the following commands:
124
125 # hpacucli ctrl all show detail
126 # hpacucli ctrl all show config
127 # hpacucli ctrl all show config detail
128 --
129
130 TIP: You can find these commands as part of the history of the
131 Relax-and-Recover shell.