View Issue Details

IDProjectCategoryView StatusLast Update
0000954bareos-core[All Projects] storage daemonpublic2019-07-10 17:34
ReporternwhisperAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Product Version17.2.5 
Target VersionFixed in Version 
Summary0000954: Share is not mounted automaticly
DescriptionI tried to get an NFS share mounted before doing a backup job.

Device section:

Device {
  Name = storage_on_stor01_1
  Media Type = File
  Archive Device = /mnt/stor01/1/msk-hq-s-bu01/bareos_storage
  Label Media = yes
  Always Open = no
  Random Access = yes
  Automatic Mount = yes
  Removable Media = yes
  Requires Mount = yes
  Mount Point = /mnt/stor01/1
  Mount Command = "/usr/bin/sudo /bin/mount %m"
  Unmount Command = "/usr/bin/sudo /bin/umount %m"
}

Storage {
  Name = storage_on_stor01
  Address = localhost
  Password = "PaSsWoRd"
  Device = storage_on_stor01_1
  Media Type = File
  Maximum Concurrent Jobs = 1
}

If the share is not mounted, it does not get mounted automaticly.
When I mount manual befor doing a Job, all works fine.

With gareos-sd -f -d 200 a get log:

bu01-sd (110): socket_server.c:80-0 Conn: Hello Director bu01-dir calling
bu01-sd (110): socket_server.c:98-0 Got a DIR connection at 29-май-2018 15:27:14
bu01-sd (50): cram-md5.c:68-0 send: auth cram-md5 <438525708.4027596834@bu01-sd> ssl=0
bu01-sd (100): cram-md5.c:123-0 cram-get received: auth cram-md5 <1936000572.1527126834@bu01-dir> ssl=0
bu01-sd (99): cram-md5.c:143-0 sending resp to challenge: f6/C0Q/Pk5MPri+mF4842D
bu01-sd (90): dir_cmd.c:285-0 Message channel init completed.
bu01-sd (199): dir_cmd.c:296-0 <dird: JobId=1511 job=msk-r1-s-mx01-backup.2018-05-29_15.27.12_22 job_name=msk-r1-s-mx01-backup client_name=msk-r1-s-mx01-fd type=66 level=70 FileSet=msk-r1-s-mx01-fileset NoAttr=0 SpoolAttr=0 FileSetMD5=jDE904+mkbgsdfg/SozARcA SpoolData=0 PreferMountedVols=1 SpoolSize=0 rerunning=0 VolSessionId=0 VolSessionTime=0 Quota=0 Protocol=0 BackupFormat=Native
bu01-sd (200): dir_cmd.c:314-0 Do command: JobId=
bu01-sd (100): job.c:87-0 <dird: JobId=1511 job=msk-r1-s-mx01-backup.2018-05-29_15.27.12_22 job_name=msk-r1-s-mx01-backup client_name=msk-r1-s-mx01-fd type=66 level=70 FileSet=msk-r1-s-mx01-fileset NoAttr=0 SpoolAttr=0 FileSetMD5=jDE904+mkbgsdfg/SozARcA SpoolData=0 PreferMountedVols=1 SpoolSize=0 rerunning=0 VolSessionId=0 VolSessionTime=0 Quota=0 Protocol=0 BackupFormat=Native
bu01-sd (100): job.c:107-0 rerunning=0 VolSesId=0 VolSesTime=0 Protocol=0
bu01-sd (50): job.c:154-1511 Quota set as 0
bu01-sd (50): job.c:162-1511 >dird jid=1511: 3000 OK Job SDid=1 SDtime=1527596800 Authorization=AABB-LLII-IOMG-ABCC-DIDN-HDJG-APKG-NCPH
bu01-sd (199): dir_cmd.c:296-1511 <dird: getSecureEraseCmd
bu01-sd (200): dir_cmd.c:314-1511 Do command: getSecureEraseCmd
bu01-sd (199): dir_cmd.c:296-1511 <dird: use storage=storage_on_stor01 media_type=File pool_name=msk-r1-s-mx01-full pool_type=Backup append=1 copy=0 stripe=0
bu01-sd (200): dir_cmd.c:314-1511 Do command: use storage=
bu01-sd (150): reserve.c:208-1511 <dird: use storage=storage_on_stor01 media_type=File pool_name=msk-r1-s-mx01-full pool_type=Backup append=1 copy=0 stripe=0
bu01-sd (150): reserve.c:239-1511 <dird device: use device=storage_on_stor01_1
bu01-sd (150): reserve.c:465-1511 Start find_suit_dev PrefMnt=1 exact=1 suitable=0 chgronly=0 any=0
bu01-sd (150): reserve.c:642-1511 Try match res=storage_on_stor01_2 wanted storage_on_stor01_1
bu01-sd (150): reserve.c:642-1511 Try match res=storage_on_stor01_1 wanted storage_on_stor01_1
bu01-sd (150): reserve.c:717-1511 chk MediaType device=File request=File
bu01-sd (150): reserve.c:576-1511 No usable device found.
bu01-sd (150): reserve.c:586-1511 Leave find_suit_dev: no dev found.
bu01-sd (150): reserve.c:465-1511 Start find_suit_dev PrefMnt=1 exact=0 suitable=0 chgronly=0 any=0
bu01-sd (150): reserve.c:642-1511 Try match res=storage_on_stor01_2 wanted storage_on_stor01_1
bu01-sd (150): reserve.c:642-1511 Try match res=storage_on_stor01_1 wanted storage_on_stor01_1
bu01-sd (150): reserve.c:717-1511 chk MediaType device=File request=File
bu01-sd (150): reserve.c:576-1511 No usable device found.
bu01-sd (150): reserve.c:586-1511 Leave find_suit_dev: no dev found.
bu01-sd (150): reserve.c:465-1511 Start find_suit_dev PrefMnt=1 exact=0 suitable=0 chgronly=0 any=1
bu01-sd (150): reserve.c:642-1511 Try match res=storage_on_stor01_2 wanted storage_on_stor01_1
bu01-sd (150): reserve.c:642-1511 Try match res=storage_on_stor01_1 wanted storage_on_stor01_1
bu01-sd (150): reserve.c:717-1511 chk MediaType device=File request=File
bu01-sd (150): reserve.c:576-1511 No usable device found.
bu01-sd (150): reserve.c:586-1511 Leave find_suit_dev: no dev found.
bu01-sd (150): reserve.c:383-1511 Fail. !suitable_device || !wait_for_device
bu01-sd (150): reserve.c:403-1511 >dird: 3924 Device "storage_on_stor01_1" not in SD Device resources or no matching Media Type.
bu01-sd (190): dir_cmd.c:317-1511 Command use storage= requests quit
bu01-sd (200): job.c:458-1511 Start stored free_jcr
bu01-sd (100): jcr.c:184-1511 write_last_jobs seek to 192
bu01-sd (200): job.c:585-1511 End stored free_jcr
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

arogge

arogge

2019-07-10 17:34

developer   ~0003433

Did you reload the configuration?
The do_mount() function in the backend logs "do_mount: cmd=%s mounted=%d\n" on level 100 and that's not in your log.

Issue History

Date Modified Username Field Change
2018-05-29 14:42 nwhisper New Issue
2019-07-10 17:34 arogge Status new => feedback
2019-07-10 17:34 arogge Note Added: 0003433