Re: [Bacula-users] Linux: backup and restore of file capabilities ?

2012-01-03 Thread Wolfgang Denk
Dear Marco,

In message <4f030530.7050...@planets.elm.net> you wrote:
>
> But I think I have found the problem.
> 
> First of all we have a snarfu due to fixing bug #1610 see
> 
> http://bugs.bacula.org/view.php?id=1806
...
> http://bugs.bacula.org/view.php?id=1807
> 
> I need to think how we are going to solve that.

I understand the problem is located, and no further testing on my side
is needed?

Thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
"...one of the main causes of the fall of the Roman Empire was  that,
lacking  zero,  they had no way to indicate successful termination of
their C programs." - Robert Firth

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Linux: backup and restore of file capabilities ?

2012-01-03 Thread Marco van Wieringen

On 01/ 3/12 11:10 AM, Simone Caronni wrote:

Hello,

> > > So I would say give the xattr=yes a go on your install and see
> > > if it works for these attributes. You could create a test
fileset
> > > with a known file with a posix file capability and run the
bacula-fd
> > > with a debug level of 100 and watch for xattr save messages.


I can confirm the version of Bacula in Fedora 16 you're mentioning is 
compiled with the xattr support.
If you want to try a later build with the same version you can 
download the latest update which is still in updates-testing. To 
install you should do (as root):


yum -y --enablerepo=updates-testing update bacula-\*

Here are the update requests with the changes:

https://admin.fedoraproject.org/updates/bacula-5.0.3-17.fc16
https://admin.fedoraproject.org/updates/bacula-5.0.3-17.fc15

The line that states "POSIX.1e" capabilities in the changelog is only 
relevant to the enablement of bacula-fd regarding the ReadAll 
capability (-k).


Ok interesting I'm currently looking at this code as I'm not so sure it 
wise to use
that if you want to save acls and xattr successfully. I still have to 
see how this

priviledge stuff works on Linux but we might need some more to be able
to save acl and xattr data.


Otherwise you can try the latest 5.2.3 backported from rawhide:

http://repos.fedorapeople.org/repos/slaanesh/bacula/
http://repos.fedorapeople.org/repos/slaanesh/bacula/README.txt


For now I just compiled the code myself so that I can run a debugger on it.

But I think I have found the problem.

First of all we have a snarfu due to fixing bug #1610 see

http://bugs.bacula.org/view.php?id=1806

for those interested. We currently save on Linux and OSX one and only
one xattr for any file.

The fix for that was obvious and is commited.

I also created a second bug for the posix file capability restore issue.
Because when I fix bug 1806 the backup of the posix file capability
works and the restore also (when I strace the process I see
the restore of the data taking place.) But we run into an other
problem as Bacula restores the mode and owner later on
and does a chown and chmod on the restored file and
that clears the posix file capability.

For those interested:

http://bugs.bacula.org/view.php?id=1807

I need to think how we are going to solve that.

Marco
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Storage Resouce address scripting?

2012-01-03 Thread Adrian Reyer
On Fri, Dec 30, 2011 at 01:23:42PM +0100, René Moser wrote:
> This means, from the bacula-fds point of view, the storage daemon has
> several different addresses depending on the clients network.

Ok.

> So, this means I need to define as much storage resources to the same
> device as networks exists, which is kind of inconvenient.

Why? Wont using 0.0.0.0 as listen address work?

> I tried to "script" the storage resource address like
> Storage {
> ...
> Address = @|"sh /etc/bacula/scripts/get-backup-network %n"
> ...
> }

The config is parsed at startup time, so no reasonable %n will be there.

> or define the address on client side:
> Storage {
> ...
> Address = "\\ ...
> }

You should be able to use a hostname there. Either fqdn or just a
hostname.
If this hostname has to point to a different IP on each server, you
could
a) use some small DNS-Server to provide the correct entry for that
subnet, e.g. dnsmasq, overriding the default hostname
b) if the servers in differnet networks have their own search pathes,
just add the bacula-sd-host as unqualified name and resolvie it via the
dns
c) just place an appropriate entry in /etc/hosts

Regards,
Adrian
-- 
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
Mail: li...@lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart


signature.asc
Description: Digital signature
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Linux: backup and restore of file capabilities ?

2012-01-03 Thread Simone Caronni
Hello,


> > > > So I would say give the xattr=yes a go on your install and see
> > > > if it works for these attributes. You could create a test fileset
> > > > with a known file with a posix file capability and run the bacula-fd
> > > > with a debug level of 100 and watch for xattr save messages.
>

I can confirm the version of Bacula in Fedora 16 you're mentioning is
compiled with the xattr support.
If you want to try a later build with the same version you can download the
latest update which is still in updates-testing. To install you should do
(as root):

yum -y --enablerepo=updates-testing update bacula-\*

Here are the update requests with the changes:

https://admin.fedoraproject.org/updates/bacula-5.0.3-17.fc16
https://admin.fedoraproject.org/updates/bacula-5.0.3-17.fc15

The line that states "POSIX.1e" capabilities in the changelog is only
relevant to the enablement of bacula-fd regarding the ReadAll capability
(-k).

Otherwise you can try the latest 5.2.3 backported from rawhide:

http://repos.fedorapeople.org/repos/slaanesh/bacula/
http://repos.fedorapeople.org/repos/slaanesh/bacula/README.txt

Regards,
--Simone

-- 
You cannot discover new oceans unless you have the courage to lose sight of
the shore (R. W. Emerson).
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Inegrity of the volumes after a sector error

2012-01-03 Thread Martin Simmons
> On Fri, 16 Dec 2011 10:05:52 +0100, afuentes  said:
> 
> I have some volumes in a disk that gave me some sector errors. Ive fixed
> the sector errors on the disk. Is there a way to check the integrity of
> the data in the volumes?

Running bls -j /path/to/volume will test checksums in the volume.

__Martin

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users