SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Dont work automount for hdd partition
Author Message
Post Dont 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
Ñ ÓÄÅÌÁÌ ×Ó£ šÞÔÏ ÍÏÇ, ËÔÏ ÍÏÖÅÔ, ÐÕÓÔØ ÓÄÅÌÁÅÔ ÌÕÞÛÅ

Post Dont work automount for hdd partition 
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 Smile

James


From: Ivan Goncharov [mailto:goncharov.ivan.v < at > gmail.com]
Sent: 11 March 2010 12:13
To: bacula-users < at > lists.sourceforge.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
Ñ ÓÄÅÌÁÌ ×Ó£ ÞÔÏ ÍÏÇ, ËÔÏ ÍÏÖÅÔ, ÐÕÓÔØ ÓÄÅÌÁÅÔ ÌÕÞÛÅ

Post Dont work automount for hdd partition 
15 ÍÁÒÔÁ 2010 Ç. 17:44 ÐÏÌØÚÏ×ÁÔÅÌØ Beck J Mr <james.beck < at > shunsley.eril.net ([email]james.beck < at > shunsley.eril.net[/email])> ÎÁÐÉÓÁÌ:
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 Smile
š
James





Hello, James

Thanks for answer
I change Mount command as U was sad, but it do not work.
In /var/log/bacula/log I see next:
16-Mar 23:05 vanuch-sd JobId 80: Please mount Volume "Volumes0007" or label a new one for:
ššš Job:ššššššššš Client1.2010-03-16_23.05.00.03
ššš Storage:ššššš "FileStorage" (/backup)
ššš Pool:šššššššš Default
ššš Media type:šš File
17-Mar 00:05 vanuch-sd JobId 80: Please mount Volume "Volumes0007" or label a new one for:
ššš Job:ššššššššš Client1.2010-03-16_23.05.00.03
ššš Storage:ššššš "FileStorage" (/backup)
ššš Pool:šššššššš Default
ššš Media type:šš File

an in mount -l absent mount point /backupš


Bacula can not mount it.

I think - maybe user bacula can not permissions for run this command and add to sudoers next:
bacula ALL = NOPASSWD: /bin/mount,/bin/umount
bat this do not help me.
Do you have some others ideas?


--
Feci, quod potui, faciant meliora potentes
Ñ ÓÄÅÌÁÌ ×Ó£ šÞÔÏ ÍÏÇ, ËÔÏ ÍÏÖÅÔ, ÐÕÓÔØ ÓÄÅÌÁÅÔ ÌÕÞÛÅ





--
Feci, quod potui, faciant meliora potentes
Ñ ÓÄÅÌÁÌ ×Ó£ šÞÔÏ ÍÏÇ, ËÔÏ ÍÏÖÅÔ, ÐÕÓÔØ ÓÄÅÌÁÅÔ ÌÕÞÛÅ

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB