mediaid limits?

7 views
Skip to first unread message

Chad William Seys

unread,
Feb 12, 2021, 12:53:40 PM2/12/21
to bareos-users
Hi all,
If we are not recycling our tapes the mediaid is incremented when a
new tape is labelled. How large of a mediaid is supported?
If we delete older volumes from the database (not recycle) will
Bareos choose small mediaids which no longer have a volume associated
with it?


Thanks!
C.

spadaj

unread,
Feb 12, 2021, 2:27:53 PM2/12/21
to bareos...@googlegroups.com
W dniu 12.02.2021 o 18:53, 'Chad William Seys' via bareos-users pisze:
I wouldn't worry about exhausting mediaid.

bareos=# \d media_mediaid_seq
Sequence "public.media_mediaid_seq"
Type | Start | Minimum | Maximum | Increment | Cycles? |
Cache
--------+-------+---------+---------------------+-----------+---------+-------
bigint | 1 | 1 | 9223372036854775807 | 1 | no |
1
Owned by: public.media.mediaid

But old mediaids will not be reused.

Chad William Seys

unread,
Feb 12, 2021, 2:46:43 PM2/12/21
to bareos...@googlegroups.com
LOL! Not in my lifetime I'd guess! Thanks for looking!

C.
Reply all
Reply to author
Forward
0 new messages