My Amanda chg-scsi database has become corrupted.....specifically,
notice it thinks that there are three tapes residing in Slot 0, and also
that there are two copies of CIS-014 and CIS-008, and amanda can't find
CIS-017 to use it last night, even though chg-scsi thinks it is there!
Amanda thinks that CIS-014, CIS-026 and CIS-008 are all in Slot 0.
What's really in Slot 0 is CIS-026 since according to mtx status, the
barcode in its slot 1 (Amanda's slot 0, changer counts from 1, amanda
counts from 0) is A0000026.
So where's CIS-014 and CIS-008? Well, Amanda also thinks CIS-014 is in
Slot 18 and CIS-008 is in Slot 6, and mtx status confirms this.
So what's missing? Well, amanda is complaining that last night it could
not find CIS-017, even though chg-scsi thinks it is in Slot 24, and mtx
status does indeed tell me that CIS-017's barcode is in that slot.
How do I recover from this? chg-scsi dumpdb output below. Thanks!
/usr/local/libexec/chg-scsi -dumpdb
Slot -> 8, from -> 0, valid -> 1, Tag -> CIS-002, Barcode -> A0000002,
Loadcount 98
Slot -> 16, from -> 0, valid -> 1, Tag -> CIS-003, Barcode -> A0000003,
Loadcount 102
Slot -> 28, from -> 0, valid -> 1, Tag -> CIS-004, Barcode -> A0000004,
Loadcount 103
Slot -> 13, from -> 0, valid -> 1, Tag -> CIS-005, Barcode -> A0000005,
Loadcount 98
Slot -> 17, from -> 0, valid -> 1, Tag -> CIS-006, Barcode -> A0000006,
Loadcount 100
Slot -> 23, from -> 0, valid -> 1, Tag -> CIS-007, Barcode -> A0000007,
Loadcount 99
Slot -> 6, from -> 0, valid -> 1, Tag -> CIS-008, Barcode -> A0000030,
Loadcount 93
Slot -> 21, from -> 0, valid -> 1, Tag -> CIS-009, Barcode -> A0000009,
Loadcount 100
Slot -> 25, from -> 0, valid -> 1, Tag -> CIS-000, Barcode -> A0000000,
Loadcount 100
Slot -> 2, from -> 0, valid -> 1, Tag -> CIS-001, Barcode -> A0000001,
Loadcount 97
Slot -> 14, from -> 0, valid -> 1, Tag -> CIS-010, Barcode -> A0000010,
Loadcount 90
Slot -> 3, from -> 0, valid -> 1, Tag -> CIS-011, Barcode -> A0000011,
Loadcount 93
Slot -> 1, from -> 0, valid -> 1, Tag -> CIS-012, Barcode -> A0000012,
Loadcount 91
Slot -> 10, from -> 0, valid -> 1, Tag -> CIS-013, Barcode -> A0000013,
Loadcount 88
Slot -> 18, from -> 0, valid -> 1, Tag -> CIS-014, Barcode -> A0000017,
Loadcount 61
Slot -> 22, from -> 0, valid -> 1, Tag -> CIS-015, Barcode -> A0000015,
Loadcount 44
Slot -> 12, from -> 0, valid -> 1, Tag -> CIS-022, Barcode -> A0000016,
Loadcount 57
Slot -> 0, from -> 0, valid -> 1, Tag -> CIS-014, Barcode -> A0000017,
Loadcount 26
Slot -> 5, from -> 0, valid -> 1, Tag -> CIS-021, Barcode -> A0000018,
Loadcount 57
Slot -> 4, from -> 0, valid -> 1, Tag -> CIS-020, Barcode -> A0000019,
Loadcount 57
Slot -> 29, from -> 0, valid -> 1, Tag -> CIS-019, Barcode -> A0000020,
Loadcount 60
Slot -> 24, from -> 0, valid -> 1, Tag -> CIS-017, Barcode -> A0000021,
Loadcount 28
Slot -> 26, from -> 0, valid -> 1, Tag -> CIS-018, Barcode -> A0000022,
Loadcount 59
Slot -> 9, from -> 0, valid -> 1, Tag -> CIS-023, Barcode -> A0000023,
Loadcount 89
Slot -> 7, from -> 0, valid -> 1, Tag -> CIS-024, Barcode -> A0000024,
Loadcount 89
Slot -> 11, from -> 0, valid -> 1, Tag -> CIS-025, Barcode -> A0000025,
Loadcount 88
Slot -> 0, from -> 0, valid -> 1, Tag -> CIS-026, Barcode -> A0000026,
Loadcount 92
Slot -> 19, from -> 0, valid -> 1, Tag -> CIS-027, Barcode -> A0000027,
Loadcount 89
Slot -> 20, from -> 0, valid -> 1, Tag -> CIS-028, Barcode -> A0000028,
Loadcount 90
Slot -> 27, from -> 0, valid -> 1, Tag -> CIS-029, Barcode -> A0000029,
Loadcount 91
Slot -> 0, from -> 0, valid -> 1, Tag -> CIS-008, Barcode -> A0000030,
Loadcount 0
Slot -> 15, from -> 0, valid -> 1, Tag -> CIS-016, Barcode -> A0000014,
Loadcount 5
--
Fran Fabrizio
Senior Systems Analyst
Department of Computer and Information Sciences
University of Alabama at Birmingham
http://www.cis.uab.edu/
205.934.0653
|