View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000151 | bareos-core | director | public | 2013-04-15 12:33 | 2015-01-19 19:38 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Summary | 0000151: move command refuses to move tape from drive to dstslots | ||||
Description | We have a 8-Slots Tandberg library (StorageLoader) with no preconfigured export slot. With Tandberg StoageLoader there is no such thing like IE/IO-Slot. But still I would like to "move" tapes from a drive to a slot, where an operater removes it for off-site storage. It seems that the move command is not fit for it because it explicitly requests a source slot and I am not able to address the drive as a source slot. It should be possible either to run the command export to move a tape from a drive to a slot which isn't an IE-Slot per se or to run the command move where I can address a drive: "move volume=E01002L4 storage=TSL srcslots=0[drive] dstslots=5 | ||||
Steps To Reproduce | *move volume=E01002L4 storage=TSL dstslots=5 Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "slots" command. Device "TSL" has 34 slots. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "listall" command. Cannot perform a move operation without source and/or destination selection *move volume=E01002L4 storage=TSL srcslots=0 dstslots=5 Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "slots" command. Device "TSL" has 34 slots. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "listall" command. *move volume=E01002L4 storage=TSL srcslots=2 dstslots=5 Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "slots" command. Device "TSL" has 34 slots. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "listall" command. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger transfer command. Source Element Address 1025 is Empty 3998 Autochanger error: ERR=Child exited with code 1 | ||||
Tags | No tags attached. | ||||
Every tape belongs to a slot, even if it is loaded. Please use the slot that the loaded tape belongs as source for the move command. |
|
I've done that already. If a tape is in the drive and not in the slot, the move command says that the source slot is empty: *move volume=E01002L4 storage=TSL srcslots=2 dstslots=5 Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "slots" command. Device "TSL" has 34 slots. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "listall" command. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger transfer command. Source Element Address 1025 is Empty 3998 Autochanger error: ERR=Child exited with code 1 |
|
The combination of volume= and export is unsupported e.g. only import and export support that keyword for move its ignored. To get a better idea what is going on run the director under a debug level greater then 100 then it will show what it exactly does as part of the selection process for import/export/move so its somewhat easier to look into the problem. So again bareos-dir -f -d 200 (which is from my standpoint always the first step in determining problems seen in the director as it logs the actions take on a moderate level and gives way more insights then the normal output.) |
|
Device "LTO-5" (/dev/nst0) is mounted with: Volume: E01001L4 Pool: Tape_2y Media type: LTO-5 Slot 1 is loaded in drive 0. Total Bytes=13,999,104 Blocks=216 Bytes/block=64,810 Positioned at File=12 Block=0 *move storage=TSL srcslots=1 dstslots=5 Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "slots" command. Device "TSL" has 6 slots. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "listall" command. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger transfer command. Source Element Address 1024 is Empty 3998 Autochanger error: ERR=Child exited with code 1 Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" bareos-dir -f -d 200 reports at the same time: sl-bareos01-dir: sd_cmds.c:451-0 Add index = 0 slot=0 loaded=1 type=1 content=2 Vol=E01001L4 to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 101 slot=1 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 102 slot=2 loaded=0 type=2 content=2 Vol=E01002L4 to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 103 slot=3 loaded=0 type=2 content=2 Vol=E01003L4 to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 104 slot=4 loaded=0 type=2 content=2 Vol=E01004L4 to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 105 slot=5 loaded=0 type=3 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 105 slot=5 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 106 slot=6 loaded=0 type=3 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 106 slot=6 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: ua_select.c:1316-0 Slots turned on: sl-bareos01-dir: ua_select.c:1319-0 1 sl-bareos01-dir: ua_impexp.c:90-0 Checking drive 0 for loaded volume == 1 sl-bareos01-dir: ua_select.c:1316-0 Slots turned on: sl-bareos01-dir: ua_select.c:1319-0 5 sl-bareos01-dir: ua_impexp.c:1180-0 src_slots = 1, dst_slots = 1 sl-bareos01-dir: ua_impexp.c:237-0 Found slot enabled in either source or destination selection sl-bareos01-dir: ua_impexp.c:237-0 Found slot enabled in either source or destination selection sl-bareos01-dir: ua_impexp.c:242-0 Found no slot enabled in either source or destination selection which overlap sl-bareos01-dir: sd_cmds.c:65-0 bnet_connect to Storage daemon sl-bareos01.bareos.lan:9103 sl-bareos01-dir: bsock.c:169-0 All source addresses sl-bareos01-dir: bsock.c:245-0 Current host[ipv4:127.0.1.1:9103] All host[ipv4:127.0.1.1:9103] sl-bareos01-dir: bsock.c:151-0 who=Storage daemon host=sl-bareos01.bareos.lan port=9103 sl-bareos01-dir: cram-md5.c:124-0 cram-get received: auth cram-md5 <971553184.1370534046@sl-bareos01-sd> ssl=0 sl-bareos01-dir: cram-md5.c:143-0 sending resp to challenge: 26A/h9EcdwFZeg0tQAdvfD sl-bareos01-dir: cram-md5.c:72-0 send: auth cram-md5 <1972782000.1370534046@sl-bareos01-dir> ssl=0 sl-bareos01-dir: cram-md5.c:91-0 Authenticate OK U6hmc9wJWmozV8/y3W+F6A sl-bareos01-dir: authenticate.c:142-0 >stored: 1000 OK auth sl-bareos01-dir: authenticate.c:149-0 <stored: 3000 OK Hello sl-bareos01-dir: ua_impexp.c:972-0 Successfully moved volume from source slot 1 to destination slot 5 sl-bareos01-dir: ua_impexp.c:790-0 Update internal slotlist slot 5 with volname NULL, content 2 and slot 1 with content 1 and volname NULL sl-bareos01-dir: ua_impexp.c:1321-0 Updating database with new info for visited slots sl-bareos01-dir: ua_cmds.c:2173-0 UA Open database sl-bareos01-dir: sql_pooling.c:58-0 db_sql_get_non_pooled_connection allocating 1 new non pooled database connection to database bareos, backend type postgresql sl-bareos01-dir: cats_dynamic.c:55-0 db_init_database: Trying to find mapping of given interfacename postgresql to mapping interfacename dbi, partly_compare = true sl-bareos01-dir: cats_dynamic.c:55-0 db_init_database: Trying to find mapping of given interfacename postgresql to mapping interfacename mysql, partly_compare = false sl-bareos01-dir: cats_dynamic.c:55-0 db_init_database: Trying to find mapping of given interfacename postgresql to mapping interfacename postgresql, partly_compare = false sl-bareos01-dir: postgresql.c:1178-0 db_init_database first time sl-bareos01-dir: postgresql.c:231-0 pg_real_connect done sl-bareos01-dir: postgresql.c:233-0 db_user=bareos db_name=bareos db_password=P0stgre5Bar30s sl-bareos01-dir: ua_cmds.c:2193-0 DB bareos opened sl-bareos01-dir: ua_update.c:1225-0 Before make unique: Vol= slot=1 inchanger=1 sid=3 sl-bareos01-dir: sql_update.c:486-0 UPDATE Media SET InChanger=0, Slot=0 WHERE Slot=1 AND StorageId=3 sl-bareos01-dir: ua_update.c:1235-0 After make unique: Vol= slot=1 inchanger=1 sid=3 |
|
*move volume=E01001L4 storage=TSL dstslots=5 Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "slots" command. Device "TSL" has 6 slots. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "listall" command. Cannot perform a move operation without source and/or destination selection sl-bareos01-dir: sd_cmds.c:451-0 Add index = 0 slot=0 loaded=1 type=1 content=2 Vol=E01001L4 to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 101 slot=1 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 102 slot=2 loaded=0 type=2 content=2 Vol=E01002L4 to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 103 slot=3 loaded=0 type=2 content=2 Vol=E01003L4 to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 104 slot=4 loaded=0 type=2 content=2 Vol=E01004L4 to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 105 slot=5 loaded=0 type=3 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 105 slot=5 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 106 slot=6 loaded=0 type=3 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 106 slot=6 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: ua_select.c:1316-0 Slots turned on: sl-bareos01-dir: ua_select.c:1319-0 5 sl-bareos01-dir: ua_impexp.c:1180-0 src_slots = 0, dst_slots = 1 |
|
*move volume=E01001L4 storage=TSL srcslots=0 dstslots=5 Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "slots" command. Device "TSL" has 6 slots. Connecting to Storage daemon TSL at sl-bareos01.bareos.lan:9103 ... 3306 Issuing autochanger "listall" command. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 0 slot=0 loaded=1 type=1 content=2 Vol=E01001L4 to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 101 slot=1 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 102 slot=2 loaded=0 type=2 content=2 Vol=E01002L4 to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 103 slot=3 loaded=0 type=2 content=2 Vol=E01003L4 to SD list. sl-bareos01-dir: sd_cmds.c:451-0 Add index = 104 slot=4 loaded=0 type=2 content=2 Vol=E01004L4 to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 105 slot=5 loaded=0 type=3 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 105 slot=5 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 106 slot=6 loaded=0 type=3 content=1 Vol=NULL to SD list. sl-bareos01-dir: sd_cmds.c:454-0 Add index = 106 slot=6 loaded=0 type=2 content=1 Vol=NULL to SD list. sl-bareos01-dir: ua_select.c:1327-0 Problem with user selection ERR=Values must be be greater than zero. |
|
Hi Marco, here are the outputs for the move commands. Best regards, Erol |
|
Ok couple of things. You are using the move command outside of its design envelop. The move command is only envisioned to use to move tapes inside an autochanger from one slot to an other. First of all a slot is a physical slot e.g. not a drive which you cannot address directly. Next the volume=volumename only works for export and import. I also fail to see the need to move a tape from a drive as for that we have the release command which will put the tape back into the slot is was located in. If you really want then you could move the tape after issuing a release command with move from the srcslot to the dstslot. |
|
you are right! | |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-04-15 12:33 |
|
New Issue | |
2013-04-15 15:47 | pstorz | Note Added: 0000351 | |
2013-04-15 15:47 | pstorz | Assigned To | => pstorz |
2013-04-15 15:47 | pstorz | Status | new => feedback |
2013-04-16 10:24 |
|
Note Added: 0000352 | |
2013-04-16 10:24 |
|
Status | feedback => assigned |
2013-04-22 14:56 | mvwieringen | Note Added: 0000367 | |
2013-04-22 14:57 | mvwieringen | Status | assigned => feedback |
2013-04-26 14:58 | maik | Assigned To | pstorz => user12 |
2013-04-26 14:58 | maik | Status | feedback => assigned |
2013-06-06 17:58 |
|
Note Added: 0000448 | |
2013-06-06 18:01 |
|
Note Added: 0000449 | |
2013-06-06 18:02 |
|
Note Added: 0000450 | |
2013-06-06 18:03 |
|
Assigned To | user12 => mvwieringen |
2013-06-06 18:08 |
|
Note Added: 0000451 | |
2013-06-06 18:08 |
|
Status | assigned => feedback |
2013-06-07 13:47 | mvwieringen | Note Added: 0000452 | |
2013-06-10 14:36 |
|
Note Added: 0000456 | |
2013-06-10 14:36 |
|
Status | feedback => assigned |
2013-06-10 14:36 |
|
Status | assigned => closed |
2013-06-10 14:36 |
|
Resolution | open => fixed |
2015-01-19 19:38 |
|
Assigned To | mvwieringen => |