Re: [Bacula-users] Again vchanger and volumes in error...

2024-03-18 Thread Bill Arlofski via Bacula-users

On 3/18/24 12:53, Heitor Faria wrote:

Hello Bill,

RDX has to working modes: disks and VTL.
Many years ago I configured it as a VTL with Bacula, and it worked very well.
For Disk mode, maybe configuring a Bacula Storage for each disk could be manageable. Or a crazier idea would be to create a 
CEPH cluster on the top of all disks.


Rgds.


Hello Heitor!  :)

The use-case for the RDX is that you will (typically) have one bay, always connected to the host computer, and the magazines 
are removable. So there is typically never a scenario when all the RDX magazines are all plugged in at the same time.


This, of course, is where the Bacula + eSATA + cryptoLUKS + autofs + vchanger 
combination really shines.

But with RDX instead of eSATA, due to the scenario I described previously, there will need to be some manual interventions 
when changing RDX magazines.



Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Again vchanger and volumes in error...

2024-03-18 Thread Heitor Faria
Hello Bill,
RDX has to working modes: disks and VTL.
Many years ago I configured it as a VTL with Bacula, and it worked very well.
For Disk mode, maybe configuring a Bacula Storage for each disk could be manageable. Or a crazier idea would be to create a CEPH cluster on the top of all disks.
Rgds.
Get BlueMail for Android 
On Mar 18, 2024, at 3:42 PM, Bill Arlofski via Bacula-users  wrote:
This is in response to Josh...In my experience, with RDX, the docking bay itself shows up as a device... (/dev/usbX or /dev/sdX, I forget)But plugging/unplugging an RDX cartridge does not notify the kernel in any way, so udev rules are not possible to do anything automatically with RDX.This was my experience about 8 or more years ago which is why I abandoned any attempts to use RDX with my own customers, and went with plain old removable eSATA drives, fully encrypted with LUKs, and auto-mounted with autofs.I'd love to know if something has changed in this regard in the past 8 years or so. :)___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Again vchanger and volumes in error...

2024-03-18 Thread Bill Arlofski via Bacula-users

This is in response to Josh...

In my experience, with RDX, the docking bay itself shows up as a device... 
(/dev/usbX or /dev/sdX, I forget)

But plugging/unplugging an RDX cartridge does not notify the kernel in any way, so udev rules are not possible to do anything 
automatically with RDX.


This was my experience about 8 or more years ago which is why I abandoned any attempts to use RDX with my own customers, and 
went with plain old removable eSATA drives, fully encrypted with LUKs, and auto-mounted with autofs.


I'd love to know if something has changed in this regard in the past 8 years or 
so. :)

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Again vchanger and volumes in error...

2024-03-18 Thread Josh Fisher via Bacula-users



On 3/15/24 12:28, Marco Gaiarin wrote:

Following the hint on:

https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/issues/2683

i (re)post here, seeking feedback.


Situation: bacula 9.4 (debian buster), using RDX cassette/disks for backup,
using the wonderful 'vchanger' virtual autochanger script.

Following the vchanger doc:
https://vchanger.sourceforge.io/

https://sourceforge.net/projects/vchanger/files/vchangerHowto.html/download

it is needed to create a virtual changer device for every 'media' in the
'media pool'; so my SD configuration is:

  Autochanger {
Name = RDXAutochanger
Description = "RDX Virtual Autochanger on ODPVE2"
Device = RDXStorage0
Device = RDXStorage1
Device = RDXStorage2
Changer Command = "/usr/bin/vchanger %c %o %S %a %d"
Changer Device = "/etc/vchanger/ODPVE2RDX.conf"
  }
  Device {
Name = RDXStorage0
Description = "RDX 0 File Storage on ODPVE2"
Drive Index = 0
Device Type = File
Media Type = RDX
RemovableMedia = no
RandomAccess = yes
Maximum Concurrent Jobs = 1
Archive Device = "/var/spool/vchanger/ODPVE2RDX/0"
  }
  Device {
Name = RDXStorage1
Description = "RDX 1 File Storage on ODPVE2"
Drive Index = 1
Device Type = File
Media Type = RDX
RemovableMedia = no
RandomAccess = yes
Maximum Concurrent Jobs = 1
Archive Device = "/var/spool/vchanger/ODPVE2RDX/1"
  }
  Device {
Name = RDXStorage2
Description = "RDX 2 File Storage on ODPVE2"
Drive Index = 2
Device Type = File
Media Type = RDX
RemovableMedia = no
RandomAccess = yes
Maximum Concurrent Jobs = 1
Archive Device = "/var/spool/vchanger/ODPVE2RDX/2"
  }

every 'media' in 'media pool' have some volumes in the pool, more or less
like inserting in an (real) autochanger a set of tapes.

So when i insert a cartdrige, i get:

  root@odpve2:~# bconsole
  Connecting to Director bacula.lnf.it:9101
  1000 OK: 103 lnfbacula-dir Version: 9.4.2 (04 February 2019)
  Enter a period to cancel a command.
  *list media pool=VEN-OD-ODPVE2RDXPool
  Automatically selected Catalog: BaculaLNF
  Using Catalog "BaculaLNF"
  
+-+-+---+-+-+--+--+-+--+---+---+-+--+-+---+
  | mediaid | volumename  | volstatus | enabled | volbytes| 
volfiles | volretention | recycle | slot | inchanger | mediatype | voltype | 
volparts | lastwritten | expiresin |
  
+-+-+---+-+-+--+--+-+--+---+---+-+--+-+---+
  |  25 | ODPVE2RDX__ | Used  |   1 |  15,258,511,119 | 
   3 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-04 23:09:08 |   798,842 |
  |  26 | ODPVE2RDX__0001 | Used  |   1 |  17,769,884,030 | 
   4 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-06 23:11:49 |   971,803 |
  |  27 | ODPVE2RDX__0002 | Used  |   1 |  65,296,705,760 | 
  15 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-03 02:09:00 |   636,834 |
  |  28 | ODPVE2RDX__0003 | Used  |   1 |  14,995,402,621 | 
   3 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-02 23:09:13 |   626,047 |
  |  29 | ODPVE2RDX__0004 | Used  |   1 |  16,099,504,717 | 
   3 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-05 23:12:59 |   885,473 |
  |  30 | ODPVE2RDX__0005 | Used  |   1 |  15,067,862,578 | 
   3 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-03 23:11:20 |   712,574 |
  |  31 | ODPVE2RDX__0006 | Used  |   1 |  15,359,960,121 | 
   3 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-08 09:55:38 | 1,096,832 |
  |  32 | ODPVE2RDX__0007 | Used  |   1 | 259,203,030,230 | 
  60 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-01 23:35:29 |   541,223 |
  |  55 | ODPVE2RDX_0001_ | Used  |   1 |  16,354,496,268 | 
   3 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-12 23:10:10 | 1,486,504 |
  |  56 | ODPVE2RDX_0001_0001 | Used  |   1 |  15,253,608,839 | 
   3 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-10 23:11:32 | 1,317,386 |
  |  57 | ODPVE2RDX_0001_0002 | Used  |   1 |  65,139,795,652 | 
  15 |1,728,000 |   1 |0 | 0 | RDX   |   1 |
0 | 2024-03-10 02:09:59 | 1,241,693 |
  |