Hi Ludovic,

is that volume working on Bareos-1 ? Can you restore files from that Volume?
Can you check that the file you copied from Bareos1 to Bareos2 has the same 
checksum, maybe it is corrupted during the transfer.

Marco


On Thursday, October 15, 2015 at 10:43:38 AM UTC+2, Ludovic Fouque wrote:
> I try with -s option :
> 
> bscan -B mysql -d 200 -n bareos -u bareos -P P6RcQc6Ks8Uy -s -v -V 
> Full-Database-akrb1lab1bkp01-weekly-0 
> /backups/Database_Storage/akrb1lab1bkp01/
> 
> 
> bscan (90): stored_conf.c:837-0 Inserting Director res: akrb1lab1bkp02-mon
> bscan (90): stored_conf.c:837-0 Inserting Device res: 
> device_production_db_akrb1lab1bkp01_monthly
> bscan (90): stored_conf.c:837-0 Inserting Device res: 
> device_production_db_akrb1lab1bkp01_weekly
> bscan (8): crypto_cache.c:55-0 Could not open crypto cache file. 
> /var/lib/bareos/bareos-sd.9103.cryptoc ERR=Aucun fichier ou dossier de ce type
> bscan: butil.c:271-0 Using device: 
> "/backups/Database_Storage/akrb1lab1bkp01/" for reading.
> bscan (100): dev.c:393-0 init_dev: tape=0 
> dev_name=/backups/Database_Storage/akrb1lab1bkp01/
> bscan (100): dev.c:395-0 dev=/backups/Database_Storage/akrb1lab1bkp01/ 
> dev_max_bs=0 max_bs=0
> bscan (100): block.c:127-0 created new block of blocksize 64512 
> (dev->device->label_block_size) as dev->max_block_size is zero
> bscan (200): acquire.c:791-0 Attach Jid=0 dcr=612b98 size=0 
> dev="device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan (150): vol_mgr.c:171-0 add 
> read_vol=Full-Database-akrb1lab1bkp01-weekly-0 JobId=0
> bscan (100): butil.c:164-0 Acquire device for read
> bscan (100): acquire.c:63-0 dcr=612b98 dev=614088
> bscan (100): acquire.c:64-0 MediaType dcr= dev=File
> bscan (100): acquire.c:92-0 Want Vol=Full-Database-akrb1lab1bkp01-weekly-0 
> Slot=0
> bscan (100): acquire.c:106-0 MediaType dcr= dev=File
> bscan (100): acquire.c:174-0 MediaType dcr= dev=File
> bscan (100): acquire.c:193-0 dir_get_volume_info 
> vol=Full-Database-akrb1lab1bkp01-weekly-0
> bscan (100): askdir.c:731-0 Fake dir_get_volume_info
> bscan (100): mount.c:650-0 No swap_dev set
> bscan (100): mount.c:600-0 Must load 
> "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan (100): autochanger.c:99-0 Device 
> "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/) is not an autochanger
> bscan (100): acquire.c:235-0 stored: open 
> vol=Full-Database-akrb1lab1bkp01-weekly-0
> bscan (100): dev.c:561-0 open dev: type=1 
> dev_name="device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/) 
> vol=Full-Database-akrb1lab1bkp01-weekly-0 mode=OPEN_READ_ONLY
> bscan (100): dev.c:572-0 call open_device mode=OPEN_READ_ONLY
> bscan (190): dev.c:1006-0 Enter mount
> bscan (100): dev.c:646-0 open disk: mode=OPEN_READ_ONLY 
> open(/backups/Database_Storage/akrb1lab1bkp01/Full-Database-akrb1lab1bkp01-weekly-0,
>  0x0, 0640)
> bscan (100): dev.c:662-0 open dev: disk fd=3 opened
> bscan (100): dev.c:580-0 preserve=0x32d55ff0 fd=3
> bscan (100): acquire.c:243-0 opened dev 
> "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/) OK
> bscan (100): acquire.c:257-0 calling read-vol-label
> bscan (100): dev.c:502-0 setting minblocksize to 64512, maxblocksize to 
> label_block_size=64512, on device 
> "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan (100): label.c:82-0 Enter read_volume_label res=0 
> device="device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/) 
> vol=Full-Database-akrb1lab1bkp01-weekly-0 dev_Vol=*NULL* max_blocksize=64512
> bscan (130): label.c:146-0 Big if statement in read_volume_label
> bscan (190): label.c:913-0 unser_vol_label
> 
> Volume Label:
> Id                : Bacula 1.0 immortal
> VerNo             : 11
> VolName           : Full-Database-akrb1lab1bkp01-weekly-0
> PrevVolName       : 
> VolFile           : 0
> LabelType         : VOL_LABEL
> LabelSize         : 219
> PoolName          : Full-Database-akrb1lab1bkp01-weekly
> MediaType         : File
> PoolType          : Backup
> HostName          : ankbck02
> Date label written: 10-sept.-2015 09:39
> bscan (130): label.c:219-0 Compare Vol names: 
> VolName=Full-Database-akrb1lab1bkp01-weekly-0 
> hdr=Full-Database-akrb1lab1bkp01-weekly-0
> 
> Volume Label:
> Id                : Bacula 1.0 immortal
> VerNo             : 11
> VolName           : Full-Database-akrb1lab1bkp01-weekly-0
> PrevVolName       : 
> VolFile           : 0
> LabelType         : VOL_LABEL
> LabelSize         : 219
> PoolName          : Full-Database-akrb1lab1bkp01-weekly
> MediaType         : File
> PoolType          : Backup
> HostName          : ankbck02
> Date label written: 10-sept.-2015 09:39
> bscan (130): label.c:240-0 Leave read_volume_label() VOL_OK
> bscan (100): label.c:257-0 Call 
> reserve_volume=Full-Database-akrb1lab1bkp01-weekly-0
> bscan (150): vol_mgr.c:414-0 enter 
> reserve_volume=Full-Database-akrb1lab1bkp01-weekly-0 
> drive="device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan (150): vol_mgr.c:323-0 new Vol=Full-Database-akrb1lab1bkp01-weekly-0 at 
> 625948 dev="device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan (150): vol_mgr.c:582-0 === set in_use. 
> vol=Full-Database-akrb1lab1bkp01-weekly-0 
> dev="device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan (150): vol_mgr.c:619-0 Inc walk_start use_count=2 
> volname=Full-Database-akrb1lab1bkp01-weekly-0
> bscan (150): vol_mgr.c:259-0 List end new volume: 
> Full-Database-akrb1lab1bkp01-weekly-0 in_use=1 swap=0 on device 
> "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan (100): dev.c:432-0 Device "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/) has dev->device->max_block_size 
> of 0 and dev->max_block_size of 64512, dcr->VolMaxBlocksize is 0
> bscan (100): dev.c:474-0 set minblocksize to 64512, maxblocksize to 64512 on 
> device "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan (100): acquire.c:263-0 Got correct volume.
> 15-oct. 10:35 bscan JobId 0: Ready to read from volume 
> "Full-Database-akrb1lab1bkp01-weekly-0" on device 
> "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/).
> bscan (100): acquire.c:370-0 dcr=612b98 dev=614088
> bscan (100): acquire.c:371-0 MediaType dcr= dev=File
> bscan (100): cats_backends.c:63-0 db_init_database: Trying to find mapping of 
> given interfacename mysql to mapping interfacename dbi, partly_compare = true
> bscan (100): cats_backends.c:63-0 db_init_database: Trying to find mapping of 
> given interfacename mysql to mapping interfacename mysql, partly_compare = 
> false
> bscan (100): cats_backends.c:161-0 db_init_database: testing backend 
> /usr/lib/bareos/backends/libbareoscats-mysql.so
> bscan (100): cats_backends.c:226-0 db_init_database: loaded backend 
> /usr/lib/bareos/backends/libbareoscats-mysql.so
> bscan (100): mysql.c:850-0 db_init_database first time
> bscan (50): mysql.c:171-0 mysql_init done
> bscan (50): mysql.c:195-0 mysql_real_connect done
> bscan (50): mysql.c:197-0 db_user=bareos db_name=bareos db_password=blahblah
> bscan (100): mysql.c:220-0 opendb ref=1 connected=1 db=627040
> bscan (200): bscan.c:335-0 Database opened
> bscan: bscan.c:337-0 Using Database: bareos, User: bareos
> bscan (190): label.c:913-0 unser_vol_label
> 
> Volume Label:
> Id                : Bacula 1.0 immortal
> VerNo             : 11
> VolName           : Full-Database-akrb1lab1bkp01-weekly-0
> PrevVolName       : 
> VolFile           : 0
> LabelType         : VOL_LABEL
> LabelSize         : 219
> PoolName          : Full-Database-akrb1lab1bkp01-weekly
> MediaType         : File
> PoolType          : Backup
> HostName          : ankbck02
> Date label written: 10-sept.-2015 09:39
> bscan (190): label.c:913-0 unser_vol_label
> 
> Volume Label:
> Id                : Bacula 1.0 immortal
> VerNo             : 11
> VolName           : Full-Database-akrb1lab1bkp01-weekly-0
> PrevVolName       : 
> VolFile           : 0
> LabelType         : VOL_LABEL
> LabelSize         : 219
> PoolName          : Full-Database-akrb1lab1bkp01-weekly
> MediaType         : File
> PoolType          : Backup
> HostName          : ankbck02
> Date label written: 10-sept.-2015 09:39
> bscan: bscan.c:529-0 Pool record for Full-Database-akrb1lab1bkp01-weekly 
> found in DB.
> bscan: bscan.c:543-0 Pool type "Backup" is OK.
> bscan (100): sql_update.c:322-0 update_media: FirstWritten=1444740585
> bscan: bscan.c:1125-0 Created Media record for Volume: 
> Full-Database-akrb1lab1bkp01-weekly-0
> bscan: bscan.c:574-0 Media type "File" is OK.
> bscan: bscan.c:587-0 VOL_LABEL: OK for Volume: 
> Full-Database-akrb1lab1bkp01-weekly-0
> bscan: bscan.c:1200-0 Created Client record for Client: ankbck02-fd
> bscan (100): block.c:130-0 created new block of blocksize 64512 
> (dev->max_block_size)
> bscan (200): acquire.c:791-0 Attach Jid=1234 dcr=643128 size=1 
> dev="device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/)
> bscan: bscan.c:1289-0 Created new JobId=2 record for original JobId=1234
> bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=179
> bscan (150): attr.c:70-0 Attr: 1 3 /MYSQL/mysql_config.tar.gz
> bscan (150): attr.c:76-0 Got Attr: FilInx=1 type=3
> bscan (150): attr.c:129-0 unpack_attr FI=1 Type=3 
> fname=/MYSQL/mysql_config.tar.gz attr=A A IHA A A A A -B BAA B BWHP3p BWHP3p 
> BWHP3p A A C lname= attrEx= datastr=0 delta_seq=0
> bscan (100): sql_create.c:958-0 Fname=/MYSQL/mysql_config.tar.gz
> bscan (100): sql_create.c:959-0 put_file_into_catalog
> bscan (100): sql_create.c:966-0 db_create_filename_record: mysql_config.tar.gz
> bscan (100): sql_create.c:972-0 db_create_path_record: /MYSQL/
> bscan (100): sql_create.c:978-0 db_create_file_record OK
> bscan (100): sql_create.c:980-0 CreateAttributes Path=/MYSQL/ 
> File=mysql_config.tar.gz FilenameId=16
> bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=3
> bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=158
> bscan (150): attr.c:70-0 Attr: 2 3 /MYSQL/dump.sql
> bscan (150): attr.c:76-0 Got Attr: FilInx=2 type=3
> bscan (150): attr.c:129-0 unpack_attr FI=2 Type=3 fname=/MYSQL/dump.sql 
> attr=A A IHA A A A A -B BAA B BWHP3q BWHP3q BWHP3q A A C lname= attrEx= 
> datastr=0 delta_seq=0
> bscan (100): sql_create.c:958-0 Fname=/MYSQL/dump.sql
> bscan (100): sql_create.c:959-0 put_file_into_catalog
> bscan (100): sql_create.c:966-0 db_create_filename_record: dump.sql
> bscan (100): sql_create.c:972-0 db_create_path_record: /MYSQL/
> bscan (100): sql_create.c:978-0 db_create_file_record OK
> bscan (100): sql_create.c:980-0 CreateAttributes Path=/MYSQL/ File=dump.sql 
> FilenameId=17
> bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=3
> Erreur de segmentation
> 
> 
> +---------+---------------------------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | MediaId | VolumeName                            | VolStatus | Enabled | 
> VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | 
> LastWritten         |
> +---------+---------------------------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> |       2 | Full-Database-akrb1lab1bkp01-weekly-0 | Archive   |       1 |     
>    0 |        0 |   31,536,000 |       0 |    0 |         0 | File      | 
> 0000-00-00 00:00:00 |
> |       3 | Full-Database-akrb1lab1bkp01-weekly-4 | Archive   |       1 |     
>    0 |        0 |   31,536,000 |       0 |    0 |         0 | File      | 
> 0000-00-00 00:00:00 |
> +---------+---------------------------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> 
> 
> But volume is 0 Bytes with 0 files (on Bareos-1 ~ 4MB).
> 
> Without debug : 
> 
> bscan: butil.c:271-0 Using device: 
> "/backups/Database_Storage/akrb1lab1bkp01/" for reading.
> 15-oct. 10:37 bscan JobId 0: Ready to read from volume 
> "Full-Database-akrb1lab1bkp01-weekly-4" on device 
> "device_production_db_akrb1lab1bkp01_monthly" 
> (/backups/Database_Storage/akrb1lab1bkp01/).
> bscan: bscan.c:337-0 Using Database: bareos, User: bareos
> bscan: bscan.c:529-0 Pool record for Full-Database-akrb1lab1bkp01-weekly 
> found in DB.
> bscan: bscan.c:543-0 Pool type "Backup" is OK.
> bscan: bscan.c:1125-0 Created Media record for Volume: 
> Full-Database-akrb1lab1bkp01-weekly-4
> bscan: bscan.c:574-0 Media type "File" is OK.
> bscan: bscan.c:587-0 VOL_LABEL: OK for Volume: 
> Full-Database-akrb1lab1bkp01-weekly-4
> bscan: bscan.c:1200-0 Created Client record for Client: ankbck02-fd
> bscan: bscan.c:1289-0 Created new JobId=3 record for original JobId=1239
> bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=179
> bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=3
> bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=158
> bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=3
> 
> Erreur de segmentation
> 
> 
> 
> Segmentation problem ?

-- 
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