|
From: Marco G. <ga...@li...> - 2025-02-04 14:40:11
|
Mandi! Bill Arlofski via Bacula-users
In chel di` si favelave...
> I guess you could simply set up a disk-based storage and pool, bcopy from tape to file-based media in this new pool, then
> bcopy from that disk-based media to another tape.
OK, done but i catch some mysterious error...
I've setup a storage device and a pool, the i've tried to run:
root@pppve3:/etc/bacula# bcopy LTO5Storage FileStorage -i PPPVE3_0003 -o PPPVE3LTOCopy_0001
bcopy: butil.c:292-0 Using device: "LTO5Storage" for reading.
04-Feb 15:02 bcopy JobId 0: Ready to read from volume "PPPVE3_0003" on Tape device "LTO5Storage" (/dev/nst0).
bcopy: butil.c:290-0 Using device: "FileStorage" for writing.
04-Feb 15:02 bcopy JobId 0: Warning: vol_mgr.c:386 Could not reserve volume "PPPVE3LTOCopy_0001" for append, because it will be read.
bcopy: label.c:375-0 === ERROR: write_volume_label called with NULL VolName
bcopy: label.c:375-0 === ERROR: write_volume_label called with NULL VolName
bcopy: mount.c:215-0 Open of File device "FileStorage" (/rpool-backup/bacula) Volume "" failed: ERR=Could not open file device "FileStorage" (/rpool-backup/bacula). No Volume name given.
04-Feb 15:02 bcopy JobId 0: Warning: mount.c:215 Open of File device "FileStorage" (/rpool-backup/bacula) Volume "" failed: ERR=Could not open file device "FileStorage" (/rpool-backup/bacula). No Volume name given.
04-Feb 15:02 bcopy JobId 0: Marking Volume "" in Error in Catalog.
bcopy: label.c:375-0 === ERROR: write_volume_label called with NULL VolName
bcopy: label.c:375-0 === ERROR: write_volume_label called with NULL VolName
bcopy: mount.c:215-0 Open of File device "FileStorage" (/rpool-backup/bacula) Volume "" failed: ERR=Could not open file device "FileStorage" (/rpool-backup/bacula). No Volume name given.
04-Feb 15:02 bcopy JobId 0: Warning: mount.c:215 Open of File device "FileStorage" (/rpool-backup/bacula) Volume "" failed: ERR=Could not open file device "FileStorage" (/rpool-backup/bacula). No Volume name given.
04-Feb 15:02 bcopy JobId 0: Marking Volume "" in Error in Catalog.
bcopy: label.c:375-0 === ERROR: write_volume_label called with NULL VolName
bcopy: label.c:375-0 === ERROR: write_volume_label called with NULL VolName
bcopy: mount.c:215-0 Open of File device "FileStorage" (/rpool-backup/bacula) Volume "" failed: ERR=Could not open file device "FileStorage" (/rpool-backup/bacula). No Volume name given.
04-Feb 15:02 bcopy JobId 0: Warning: mount.c:215 Open of File device "FileStorage" (/rpool-backup/bacula) Volume "" failed: ERR=Could not open file device "FileStorage" (/rpool-backup/bacula). No Volume name given.
04-Feb 15:02 bcopy JobId 0: Marking Volume "" in Error in Catalog.
bcopy: label.c:375-0 === ERROR: write_volume_label called with NULL VolName
bcopy: label.c:375-0 === ERROR: write_volume_label called with NULL VolName
bcopy: mount.c:215-0 Open of File device "FileStorage" (/rpool-backup/bacula) Volume "" failed: ERR=Could not open file device "FileStorage" (/rpool-backup/bacula). No Volume name given.
04-Feb 15:02 bcopy JobId 0: Warning: mount.c:215 Open of File device "FileStorage" (/rpool-backup/bacula) Volume "" failed: ERR=Could not open file device "FileStorage" (/rpool-backup/bacula). No Volume name given.
04-Feb 15:02 bcopy JobId 0: Marking Volume "" in Error in Catalog.
Mount Volume "" on device "FileStorage" (/rpool-backup/bacula) and press return when ready:
Clearly pool esit and contain the volume:
*list volume pool=FVG-PP-PPPVE3LTOCopyPool
Automatically selected Catalog: BaculaLNF
Using Catalog "BaculaLNF"
+---------+--------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | voltype | volparts | lastwritten | expiresin |
+---------+--------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
| 1,305 | PPPVE3LTOCopy_0001 | Append | 1 | 245 | 0 | 1,728,000 | 1 | 0 | 0 | File | 1 | 0 | | 0 |
+---------+--------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------+----------+-------------+-----------+
Seems to me that bacula try to mount the volume 'PPPVE3LTOCopy_0001', fail
in some mysterious way ('because it will be read'), then try to mount the ""
volume.
If i try to mount manually the volume in the device, fail because is a file
device and so:
*mount storage=PPPVE3File PPPVE3LTOCopy_0001
3906 File device ""FileStorage" (/rpool-backup/bacula)" is always mounted.
What i'm missing? Thanks.
--
|