Mandi! Josh Fisher via Bacula-users
  In chel di` si favelave...

> I don't see that Dir is reporting any errors invoking vchanger, no 
> timeouts or vchanger errors, but are there any vchanger processes still 
> running? The vchanger processes should be very short lived. In

No, there's no vchanger, bconsole or other bacula binary running, apart the
SD (and a fd).


> Are you sure that the filesystem is mounted at the mount point pointed 
> to by /var/spool/vchanger/SDPVE2RDX/0 ? Versions of vchanger before 
> 1.0.3 used the nohup command in udev scripts which does not work as 
> expected when invoked by udev and can cause the udev auto-mounting to fail.
> 
> Another problem with versions before 1.0.3 is that the locking used to 
> serializes concurrent vchanger processes had a race condition that could 
> prevent a vchanger instance from running and cause a LOAD or UNLOAD 
> command to fail, although that should be logged as a timeout error by 
> bacula-dir. As a diagnostic aid, you can turn off this behavior in the 
> vchanger config by setting bconsole="". That will prevent vchanger from 
> invoking bconsole at all and eliminate the possibility of the race 
> condition.

Vchanger is version 1.0.3, and effectively no, there's no link to the loaded
media, that seems coherent anyway:

 root@sdpve2:~# df | grep vchanger
 /dev/sdc1           1921798404 222569068 1601537480  13% 
/mnt/vchanger/49a2d36c-d620-426c-90de-de8c009aeeeb
 root@sdpve2:~# ls -la /var/spool/vchanger/SDPVE2RDX/
 total 2
 drwxr-x--- 2 bacula tape    4 Dec 12 06:37 .
 drwxr-xr-x 3 bacula bacula  3 Jul 12 16:17 ..
 -rw-r----- 1 bacula bacula 47 Dec 12 14:37 bay_state-1
 -rw-r----- 1 bacula tape   17 Dec 12 14:37 dynamic.conf


> Also, you have tried using 'umount' and 'update slots' in bconsole, but 
> did you try the 'mount' command? It is the mount command that would 
> cause bacula-dir to choose a volume and invoke vchanger to load it.

If i try on 'drive 0' i got:

 *mount storage=SDPVE2RDX 
 Automatically selected Catalog: BaculaLNF
 Using Catalog "BaculaLNF"
 Enter autochanger drive[0]: 
 Enter autochanger slot: 
 3001 Device ""RDXStorage0" (/var/spool/vchanger/SDPVE2RDX/0)" is doing acquire.

on drive 1:

 *mount storage=SDPVE2RDX
 Automatically selected Catalog: BaculaLNF
 Using Catalog "BaculaLNF"
 Enter autochanger drive[0]: 1
 Enter autochanger slot: 
 3906 File device ""RDXStorage1" (/var/spool/vchanger/SDPVE2RDX/1)" is always 
mounted.
 * 
 *umount storage=SDPVE2RDX
 Enter autochanger drive[0]: 1
 3901 Device ""RDXStorage1" (/var/spool/vchanger/SDPVE2RDX/1)" is already 
unmounted.
 *
 *mount storage=SDPVE2RDX
 Enter autochanger drive[0]: 1
 Enter autochanger slot: 
 3906 File device ""RDXStorage1" (/var/spool/vchanger/SDPVE2RDX/1)" is always 
mounted.


Now i need to restart the SD...

-- 
  Qualche saggio scriveva che l'unico sistema economico funzionante
  gli pareva il libero mercato in cui il governo tiene la pistola puntata
  alla tempia delle corporations.  Peccato che il governo sia più solito
  offrire modiche quantità di vaselina al consumatore, occasionalmente...
                                                (Emanuele Pucciarelli)




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

Reply via email to