Re: amdump --no-taper does not put driver into degraded mode with 3.4.4
Jean-Louis Martineau <[email protected]>
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
Orion, Can you try the attached patch? Jean-Louis On 12/06/17 05:01 PM, Orion Poplawski wrote: > I recently updated from 3.3.9 to 3.4.4 and now it appears that "amdump > --no-taper" does not put driver into degraded mode. Any suggestions of > what > to check? Basically I no longer see the: > > dump of driver schedule before start degraded mode: > > and > > dump of driver schedule after start degraded mode: > > messages in the amdump log and I now see dump errors like: > > earthib /export/backup lev 0 FAILED [can't dump in non degraded mode] > > Thanks. > > -- > Orion Poplawski > Technical Manager 720-772-5637 > NWRA, Boulder/CoRA Office FAX: 303-415-9702 > 3380 Mitchell Lane [email protected] > Boulder, CO 80301 http://www.nwra.com > <http://www.nwra.com> This message is the property of CARBONITE, INC. and may contain confidential or privileged information. If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone. Instead, destroy it and notify me by reply e-mail
driver.degraded-mode.diff
(text/x-patch, 491 B)
diff --git a/server-src/driver.c b/server-src/driver.c
index 8eee01f..cf6120b 100644
--- a/server-src/driver.c
+++ b/server-src/driver.c
@@ -592,7 +592,7 @@ main(
sp->level,
_("can't dump required holdingdisk"));
} else {
- gboolean dp_degraded_mode = FALSE;
+ gboolean dp_degraded_mode = (nb_storage == 0);
gboolean reach_runtapes = FALSE;
for (taper = tapetable; taper < tapetable+nb_storage ; taper++) {
if (dump_match_selection(taper->storage_name, sp)) {