>
> 000006L6 doesn't appear neither in "Before" nor "after", list volumes may
> be more enlightening in that case.


That was precisely my point: I don't understand why it even asked for it
unless the algorithm is broken (or more likely my config is broken).


I will try to deliberately recreate the situation tonight.

Output and steps, mingled.  Some output (3306, 3308, et al.) has been
omitted as you can see:


*list volumes pool=LTO6
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes          | volfiles
| volretention | recycle | slot | inchanger | mediatype | lastwritten
  |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|     166 | 000005L6   | Full      |       1 | 3,121,608,222,338 |       64
|   31,536,000 |       1 |    5 |         1 | LTO6      | 2015-11-05
10:14:34 |
|     167 | 000006L6   | Full      |       1 | 1,259,961,301,152 |       29
|   31,536,000 |       1 |    0 |         0 | LTO6      | 2015-11-04
12:00:43 |
|     183 | 000001L6   | Append    |       1 |   109,260,380,374 |        4
|   31,536,000 |       1 |    2 |         1 | LTO6      | 2015-11-05
12:02:02 |
|     184 | 000003L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    4 |         1 | LTO6      |
  |
|     185 | 000004L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    3 |         1 | LTO6      |
  |
|     186 | 000008L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    1 |         1 | LTO6      |
  |
|     206 | 000009L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    6 |         1 | LTO6      |
  |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+

*unmount storage=TL1000
3002 Device ""tapedrive-tl1000"
(/dev/tape/by-id/scsi-350016977299e1010-nst)" unmounted.

*export volume=000001L6 storage=TL1000
3308 Successfully transferred volume from slot 2 to 7.


// Here, I manually remove tape 000001L6 from the autochanger and replace
it with tape 000010L6.


*status slots storage=TL1000
 Slot |   Volume Name    |   Status  |  Media Type    |         Pool
      |
------+------------------+-----------+----------------+--------------------------|
    1 |         000008L6 |    Append |           LTO6 |
LTO6 |
    2*|                ? |         ? |              ? |
   ? |
    3 |         000004L6 |    Append |           LTO6 |
LTO6 |
    4 |         000003L6 |    Append |           LTO6 |
LTO6 |
    5 |         000005L6 |      Full |           LTO6 |
LTO6 |
    6 |         000009L6 |    Append |           LTO6 |
LTO6 |
    7@|         000010L6 |         ? |              ? |
   ? |


// The tape 000010L6 was previously labeled by Bareos, but is not in my
current catalog, so I have to add it.  I can "update" forever, nothing
seems to work except "add".


*add pool=LTO6 storage=TL1000
Enter Volume name: 000010L6
1 Volumes created in pool LTO6

*status slots storage=TL1000
 Slot |   Volume Name    |   Status  |  Media Type    |         Pool
      |
------+------------------+-----------+----------------+--------------------------|
    1 |         000008L6 |    Append |           LTO6 |
LTO6 |
    2*|                ? |         ? |              ? |
   ? |
    3 |         000004L6 |    Append |           LTO6 |
LTO6 |
    4 |         000003L6 |    Append |           LTO6 |
LTO6 |
    5 |         000005L6 |      Full |           LTO6 |
LTO6 |
    6 |         000009L6 |    Append |           LTO6 |
LTO6 |
    7@|         000010L6 |    Append |           LTO6 |
LTO6 |

*import storage=TL1000
3308 Successfully transferred volume from slot 7 to 2.

*status slots storage=TL1000
 Slot |   Volume Name    |   Status  |  Media Type    |         Pool
      |
------+------------------+-----------+----------------+--------------------------|
    1 |         000008L6 |    Append |           LTO6 |
LTO6 |
    2 |         000010L6 |    Append |           LTO6 |
LTO6 |
    3 |         000004L6 |    Append |           LTO6 |
LTO6 |
    4 |         000003L6 |    Append |           LTO6 |
LTO6 |
    5 |         000005L6 |      Full |           LTO6 |
LTO6 |
    6 |         000009L6 |    Append |           LTO6 |
LTO6 |
    7@|                ? |         ? |              ? |
   ? |

*list volumes  pool=LTO6
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes          | volfiles
| volretention | recycle | slot | inchanger | mediatype | lastwritten
  |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|     166 | 000005L6   | Full      |       1 | 3,121,608,222,338 |       64
|   31,536,000 |       1 |    5 |         1 | LTO6      | 2015-11-05
10:14:34 |
|     167 | 000006L6   | Full      |       1 | 1,259,961,301,152 |       29
|   31,536,000 |       1 |    0 |         0 | LTO6      | 2015-11-04
12:00:43 |
|     183 | 000001L6   | Append    |       1 |   109,260,380,374 |        4
|   31,536,000 |       1 |    0 |         0 | LTO6      | 2015-11-05
12:02:02 |
|     184 | 000003L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    4 |         1 | LTO6      |
  |
|     185 | 000004L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    3 |         1 | LTO6      |
  |
|     186 | 000008L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    1 |         1 | LTO6      |
  |
|     206 | 000009L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    6 |         1 | LTO6      |
  |
|     208 | 000010L6   | Append    |       1 |                 0 |        0
|   31,536,000 |       1 |    2 |         1 | LTO6      |
  |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+


// I will manually run a job now to see what happens.

*run
    [...]
     7: BackupCatalog
Select Job resource (1-9): 7
Run Backup job
JobName:  BackupCatalog
Level:    Full
Client:   backup1-fd
Format:   Native
FileSet:  Catalog
Pool:     LTO6 (From Job FullPool override)
Storage:  TL1000 (From Pool resource)
When:     2015-11-05 16:40:00
Priority: 11
OK to run? (yes/mod/no): y
Job queued. JobId=143

// Oops, forgot to mount.

*mount storage=TL1000
Connecting to Storage daemon TL1000 at backup1.ad.avant.ca:9103 ...
3901 Unable to open device ""tapedrive-tl1000"
(/dev/tape/by-id/scsi-350016977299e1010-nst)":
ERR=generic_tape_device.c:140 Unable to open device "tapedrive-tl1000"
(/dev/tape/by-id/scsi-350016977299e1010-nst): ERR=No medium found

// Do I have to manually move a tape into the drive before I can remount
the autochanger??  Anyway, I have messages now...
*messages
05-Nov 16:42 backup1-dir JobId 143: Using Device "tapedrive-tl1000" to
write.
05-Nov 16:42 backup1-sd: ERROR in scsi_lli.c:93 Unable to perform SG_IO
ioctl on fd 8: ERR=Operation not permitted
05-Nov 16:42 backup1-sd JobId 143: No slot defined in catalog (slot=0) for
Volume "000001L6" on "tapedrive-tl1000"
(/dev/tape/by-id/scsi-350016977299e1010-nst).
05-Nov 16:42 backup1-sd JobId 143: Cartridge change or "update slots" may
be required.
05-Nov 16:42 backup1-sd JobId 143: Warning: mount.c:247 Open device
"tapedrive-tl1000" (/dev/tape/by-id/scsi-350016977299e1010-nst) Volume
"000001L6" failed: ERR=generic_tape_device.c:140 Unable to open device
"tapedrive-tl1000" (/dev/tape/by-id/scsi-350016977299e1010-nst): ERR=No
medium found

[repeat several times]

// Have I done some part of this procedure incorrectly?

*cancel
Automatically selected Job: JobId=143
Job=BackupCatalog.2015-11-05_16.40.02_03
Confirm cancel (yes/no): yes
2001 Job BackupCatalog.2015-11-05_16.40.02_03 marked to be canceled.
3000 JobId=143 Job="BackupCatalog.2015-11-05_16.40.02_03" marked to be
canceled.

*update volume=000001L6 volstatus=Full
New Volume status is: Full

*run job=BackupCatalog
Run Backup job
JobName:  BackupCatalog
Level:    Full
Client:   backup1-fd
Format:   Native
FileSet:  Catalog
Pool:     LTO6 (From Job FullPool override)
Storage:  TL1000 (From Pool resource)
When:     2015-11-05 16:45:22
Priority: 11
OK to run? (yes/mod/no): y
Job queued. JobId=144

// wait a minute...

*messages
05-Nov 16:46 backup1-dir JobId 144: Start Backup JobId 144,
Job=BackupCatalog.2015-11-05_16.45.23_05
05-Nov 16:46 backup1-dir JobId 144: Using Device "tapedrive-tl1000" to
write.
05-Nov 16:46 backup1-sd: ERROR in scsi_lli.c:93 Unable to perform SG_IO
ioctl on fd 8: ERR=Operation not permitted
05-Nov 16:46 backup1-sd JobId 144: 3304 Issuing autochanger "load slot 4,
drive 0" command.

// ...and, oh great, the SD just dumped core.  Argh.  One bug report,
coming right up.


[image: Avant logo] *Adam Thompson*
Senior Systems Administrator
*voice:* 204.789.9596 x24 | *email:* [email protected] | *web:* avant.ca

>
>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to