Bacula-users

Re: [Bacula-users] Don't work automount for hdd partition

2010-03-15 11:48:11
Subject: Re: [Bacula-users] Don't work automount for hdd partition
From: "Beck J Mr" <james.beck AT shunsley.eril DOT net>
To: "Ivan Goncharov" <goncharov.ivan.v AT gmail DOT com>, <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 15 Mar 2010 15:44:57 -0000
Ivan,
 
You don't need anything in fstab for this to work; get rid of that line if you don't need it for anything else.
 
You need to tell the mount command which disk volume to mount. I think bacula.conf should read:
 
Mount Command = "/bin/mount /dev/disk/by-uuid/44a05141-9107-4288-bc71-1ccdaa04d0b1 %m"
Unmount Command = "/bin/umount %m"
 
If anybody has a better way of doing this, please feel free to correct me :)
 
James


From: Ivan Goncharov [mailto:goncharov.ivan.v AT gmail DOT com]
Sent: 11 March 2010 12:13
To: bacula-users AT lists.sourceforge DOT net
Subject: [Bacula-users] Don't work automount for hdd partition

Hi all
I wont make backup on partition which not mounted as default.
In fstab it is like :
#Entry for /dev/sdc2 (backup) :
UUID=44a05141-9107-4288-bc71-1ccdaa04d0b1    /backup    reiserfs    relatime,noauto    0    2

So bacula should mount partition before start backup and unmount after backup
in bacula-sd.conf i write this:

Storage {                             # definition of myself
  Name = vanuch-sd
  SDPort = 9103                  # Director's port     
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
}
Director {
  Name = vanuch-dir
  Password = "d6mVbcoWYZbTlyWs3ccYu927QRv3TM23c"
}
Director {
  Name = vanuch-mon
  Password = "awHa8ySSpEfiVXhfe2gLTX6EnkfSGyzIR"
  Monitor = yes
}Device {
  Name = FileStorage
  Media Type = File
  Device Type = File
  Archive Device = /backup
  LabelMedia = Yes;                   # lets Bacula label unlabeled media
  Removable media = Yes;
  Random Access = Yes;
  AutomaticMount = Yes;               # when device opened, read it
  Requires Mount = Yes;
  Mount Point = /backup/
  Mount Command = "/bin/mount %m"
  Unmount Command = "/bin/umount %m"
  AlwaysOpen = no;
}
....


bat this did not work:(
pls, explain me, how turn on automount

I use ubuntu 9.04 and bacula 2.4.4 from ubuntu repositories.

P.S. sorry for my bad English, it not my  native language

--
Feci, quod potui, faciant meliora potentes
я сделал всё  что мог, кто может, пусть сделает лучше

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>