Hello,

The VolType is an internal field that corresponds to the device type,
and the device type list is defined in baconfig.h

enum {
   B_FILE_DEV = 1,
   B_TAPE_DEV = 2,
   B_DVD_DEV  = 3,
   B_FIFO_DEV = 4,
   B_VTAPE_DEV= 5,                    /* change to B_TAPE_DEV after init */
   B_FTP_DEV =  6,
   B_VTL_DEV =  7,                    /* Virtual tape library device */
   B_ADATA_DEV = 8,                   /* Aligned data Data file */
   B_ALIGNED_DEV = 9,                 /* Aligned data Meta file */
...
};

When it is 0, it probably means that the volume was never used. Normally it's
handled automatically, so maybe you have a MediaType or a Pool issue.

Hope it helps!

Best Regards,
Eric

On 3/3/23 16:48, kjohn...@eclypse.org wrote:
Rob,

Thanks for this helpful reply.  It had not occurred to me to look through the 
configuration files.

As far as the current manual is concerned, "searches in main.pdf dated 14 Sep 2022 for 
"voltype" and "Volume Type" both came up empty."  Perhaps different search terms 
would have been more helpful.

I have not used Baculum or BWeb, so I cannot comment there.

It may be that my problem had nothing to do with voltype.  The volume I was 
using had recently been added to the pool, and had never been used in that 
pool.  Purging that volume allowed the backup to proceed when I restarted the 
job.  I did not foresee that an empty volume would need to be purged before use.

Ken



From: r...@craeon.net [mailto:r...@craeon.net]
Sent: Wednesday, March 01, 2023 3:22 PM
To: kjohn...@eclypse.org
Cc: bacula-users
Subject: Re: [Bacula-users] What is 'voltype'?

Voltype is an arbitrary name given to a certain type of volume. It must be consistent across all bacula 
configuration files. For example in my setup I have "LTO8" as a voltype. This references my actual 
LTO 8 tapes, but I could have named them anything, like "George" or "duck".

I kind of think that maybe a voltype "0" and "2" is not very informative for 
someone who must maintain the system.

I think (but can't remember for sure), voltype must be defined in SD conf and 
referenced in bacula director conf for each job.

Web tools like Baculum and BWeb may strip out all comments, making it more 
difficult to examine how bacula is configured.

I don't have it in front of me, but try to find the current manual pdf on the 
bacula website. I had to dig around to find the correct manual for my version.
Robert Gerber
402-237-8692
r...@craeon.net

On Wed, Mar 1, 2023, 1:12 PM <kjohn...@eclypse.org> wrote:
bconsole list volume displays a field called 'voltype'.  What is this used for, 
and how can I set it?

Searches in main.pdf dated 14 Sep 2022 for "voltype" and "Volume Type" both 
came up empty.

I have a backup job that should run on a volume that has a voltype of 0, and it 
will not progress.  I observe that all other volumes in that pool have a 
voltype of 2.

Thanks.


Ken





_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to