SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Bacula and Extended Attributes
Author Message
Post Bacula and Extended Attributes 
Attachments: Message as HTML

Dear all,

We are using Samba 3.0.x here in our site as the file server. In samba, it
supports W2K style ACLs by using Posix ACLs and Extended Attributes together
(user.SAMBA_PAI).

Part of the smb.conf
ea support = yes
inherit acls = Yes
map acl inherit = Yes
store dos attributes = Yes

We deploy the samba server on top of Linux Ext3 fs.

However, it seems that Bacula does not support backing up of extended
attributes other than ACLs, are there any good ways to backup all these
using other tools together with Bacula or even use another backup system?

Thx.

Cheers,
Hui Chun Kit
Hong Kong

Post Bacula and Extended Attributes 
Mandi! Chun Kit Hui
In chel di` si favelave...

However, it seems that Bacula does not support backing up of extended
attributes other than ACLs, are there any good ways to backup all these
using other tools together with Bacula or even use another backup system?

AFAIK the only way (apart adding to bacula ATTR support Wink is to use a
pre script that call getfattr to dump ATTR to a textual file, and
backup that.

--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797

Post Bacula and Extended Attributes 
Chun Kit Hui wrote:
Dear all,

We are using Samba 3.0.x here in our site as the file server. In samba, it
supports W2K style ACLs by using Posix ACLs and Extended Attributes together
(user.SAMBA_PAI).

Part of the smb.conf
ea support = yes
inherit acls = Yes
map acl inherit = Yes
store dos attributes = Yes

We deploy the samba server on top of Linux Ext3 fs.

However, it seems that Bacula does not support backing up of extended
attributes other than ACLs, are there any good ways to backup all these
using other tools together with Bacula or even use another backup system?

Thx.

Cheers,
Hui Chun Kit
Hong Kong

The other good way is too use a Enterprise ready filesystem like xfs.
The other good point to xfs is cpu less intensive than ext3/reiserfs3 on complex acl access with samba.

--

Bruno Friedmann bruno < at > io...

Ioda-Net Sàrl - http://www.ioda-net.ch
2830 Vellerat - Switzerland

Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : http://www.cfcel.com

Post Bacula and Extended Attributes 
Attachments: Message as HTML

Dear Bruno,

But how does the use of XFS help solve the problem on backup of extended
attributes using bacula?

Jacky

On Feb 11, 2008 7:10 PM, Bruno Friedmann <bruno < at > io...> wrote:

Chun Kit Hui wrote:
Dear all,

We are using Samba 3.0.x here in our site as the file server. In samba,
it
supports W2K style ACLs by using Posix ACLs and Extended Attributes
together
(user.SAMBA_PAI).

Part of the smb.conf
ea support = yes
inherit acls = Yes
map acl inherit = Yes
store dos attributes = Yes

We deploy the samba server on top of Linux Ext3 fs.

However, it seems that Bacula does not support backing up of extended
attributes other than ACLs, are there any good ways to backup all these
using other tools together with Bacula or even use another backup
system?

Thx.

Cheers,
Hui Chun Kit
Hong Kong

The other good way is too use a Enterprise ready filesystem like xfs.
The other good point to xfs is cpu less intensive than ext3/reiserfs3 on
complex acl access with samba.



--

Bruno Friedmann bruno < at > io...

Ioda-Net Sàrl - http://www.ioda-net.ch
2830 Vellerat - Switzerland

Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : http://www.cfcel.com



Post Bacula and Extended Attributes 
Chun Kit Hui wrote:
Dear Bruno,

But how does the use of XFS help solve the problem on backup of extended
attributes using bacula?

Jacky


XFS as this attribute inside and are perfectly saved by bacula. So they are restored also as needed.
You should give it a try on a xfs partition to see if you get saved and restored all you need.

--

Bruno Friedmann bruno < at > io...

Ioda-Net Sàrl - http://www.ioda-net.ch
2830 Vellerat - Switzerland

Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : http://www.cfcel.com

Post Bacula and Extended Attributes 
Attachments: Message as HTML

Dear Bruno,

You mean that xfs will save ACLs and extended data together with the file
instead of meta-data? And without special configuration, Bacula will backup
all these "meta-data" together with the files?

Let me have a trial later today.

Cheers,
Jacky

On Feb 11, 2008 10:02 PM, Bruno Friedmann <bruno < at > io...> wrote:

Chun Kit Hui wrote:
Dear Bruno,

But how does the use of XFS help solve the problem on backup of extended
attributes using bacula?

Jacky


XFS as this attribute inside and are perfectly saved by bacula. So they
are restored also as needed.
You should give it a try on a xfs partition to see if you get saved and
restored all you need.


--

Bruno Friedmann bruno < at > io...

Ioda-Net Sàrl - http://www.ioda-net.ch
2830 Vellerat - Switzerland

Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : http://www.cfcel.com



Post Bacula and Extended Attributes 
On Feb 11, 2008 11:13 AM, Chun Kit Hui <huichunkit < at > gm...> wrote:
Dear Bruno,

You mean that xfs will save ACLs and extended data together with the file
instead of meta-data? And without special configuration, Bacula will backup
all these "meta-data" together with the files?

Let me have a trial later today.

Cheers,
Jacky



On Feb 11, 2008 10:02 PM, Bruno Friedmann <bruno < at > io...> wrote:

Chun Kit Hui wrote:
Dear Bruno,

But how does the use of XFS help solve the problem on backup of extended
attributes using bacula?

Jacky


XFS as this attribute inside and are perfectly saved by bacula. So they
are restored also as needed.
You should give it a try on a xfs partition to see if you get saved and
restored all you need.


--




Bruno Friedmann bruno < at > io...

Ioda-Net Sàrl - http://www.ioda-net.ch
2830 Vellerat - Switzerland

Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : http://www.cfcel.com




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users



interesting suggestion about xfs, but according to the xfs faq:
http://oss.sgi.com/projects/xfs/faq.html#backingupxfs
'''
Q: How can I backup a XFS filesystem and ACLs?

You can backup a XFS filesystem with utilities like xfsdump(Cool and
standard tar(1) for standard files. If you want to backup ACLs you
will need to use xfsdump, this is the only tool at the moment that
supports backing up extended attributes. xfsdump can also be
integrated with amanda(Cool.
'''
comments/clarifications about this point would be good.

on the current state of linux filesystems:

The xfs linux port and support/development going forward is somewhat
doubtful. SGI has been paying the devs to do the port, but they're
not the healthiest of companies these days. Other people could pick
up the ball, but there's no guarantee of that of course.

Yes, xfs is in the kernel so it is maintained by the kernel devs, but
there are outstanding issues which even the xfs port team says you may
not want to use xfs due to. There's a huge compatability layer (for
instance), basically to interface xfs to the linux kernel (instead of
IRIX). And there are some issues with data corruption with journal
playback/fsck under certain circumstances.

However, some of these issues have been fixed fairly recently, so you
need to check your kernel version/patches etc. The xfs faq linked
above hits upon many of the issues, some of them having been addresses
only withing the last 6-12 months.

reiserfs v3/4 is in a similar boat. development is pretty much
suspended, and was never terribly popular with the core kernel devs.

ext3 _really_ seems to be the safest bet these days, with ext4 in the
future. Wasn't my first choice in filesystems for linux either, but
it by far makes the most sense for today and going forward. It's just
plain supported the best by far and has a very solid history.

I guess the point I'm trying to make is linux has multiple filesystems
for a reason: they're not all perfect.

--
Noah Dain
"The beatings will continue, until morale improves" - the Management



Re: [Bacula-users] btape fill: that last block on the first tape ok or not? From: K. M. Peterson

Attachments: Message as HTML

On Mon, Feb 11, 2008 at 12:49 PM, Dan Langille <dan < at > la...> wrote:

K. M. Peterson wrote:
...
Error reading block: ERR=block.c:1008 Read zero bytes at 1180:0 on
device "Drive-1" (/dev/nst0).

Have you tried a different tape as the second tape?


Hi,

No, I haven't. I only have two DLT-S4 tapes at the moment, but I'll swap
them and rerun the 'fill' tonight.

Also, the compression question was more along the lines of: with a volume
capacity of 812GB, and a write speed of 45MB/sec I presume that the drive
isn't compressing the data. This would either be because the drive isn't
set properly (although tapeinfo says DataCompEnabled: yes) or because fill
writes really random data that isn't compressible. So I was wondering which
of these explanations is more likely.

I also played with the blocksize directives. tapeinfo says that the drive
can write 16MB blocks; that would presumably be the fastest way to write to
tape. However, btape says that's too big a blocksize so I'm wondering
whether there is an issue with the size that the kernel/device is set to
use.

But really I'd be happy if btape - fill doesn't throw an error, and I'd
still like any suggestions of things to try.

Thanks!


--
Dan Langille

BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon - The PostgreSQL Conference: http://www.pgcon.org/


Post Bacula and Extended Attributes 
Noah Dain wrote:
On Feb 11, 2008 11:13 AM, Chun Kit Hui <huichunkit < at > gm...> wrote:
Dear Bruno,

You mean that xfs will save ACLs and extended data together with the file
instead of meta-data? And without special configuration, Bacula will backup
all these "meta-data" together with the files?

Let me have a trial later today.

Cheers,
Jacky



On Feb 11, 2008 10:02 PM, Bruno Friedmann <bruno < at > io...> wrote:
Chun Kit Hui wrote:
Dear Bruno,

But how does the use of XFS help solve the problem on backup of extended
attributes using bacula?

Jacky

XFS as this attribute inside and are perfectly saved by bacula. So they
are restored also as needed.
You should give it a try on a xfs partition to see if you get saved and
restored all you need.

--




Bruno Friedmann bruno < at > io...

Ioda-Net Sàrl - http://www.ioda-net.ch
2830 Vellerat - Switzerland

Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : http://www.cfcel.com



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users



interesting suggestion about xfs, but according to the xfs faq:
http://oss.sgi.com/projects/xfs/faq.html#backingupxfs
'''
Q: How can I backup a XFS filesystem and ACLs?

You can backup a XFS filesystem with utilities like xfsdump(Cool and
standard tar(1) for standard files. If you want to backup ACLs you
will need to use xfsdump, this is the only tool at the moment that
supports backing up extended attributes. xfsdump can also be
integrated with amanda(Cool.
'''
comments/clarifications about this point would be good.

on the current state of linux filesystems:

The xfs linux port and support/development going forward is somewhat
doubtful. SGI has been paying the devs to do the port, but they're
not the healthiest of companies these days. Other people could pick
up the ball, but there's no guarantee of that of course.

Yes, xfs is in the kernel so it is maintained by the kernel devs, but
there are outstanding issues which even the xfs port team says you may
not want to use xfs due to. There's a huge compatability layer (for
instance), basically to interface xfs to the linux kernel (instead of
IRIX). And there are some issues with data corruption with journal
playback/fsck under certain circumstances.

However, some of these issues have been fixed fairly recently, so you
need to check your kernel version/patches etc. The xfs faq linked
above hits upon many of the issues, some of them having been addresses
only withing the last 6-12 months.

reiserfs v3/4 is in a similar boat. development is pretty much
suspended, and was never terribly popular with the core kernel devs.

ext3 _really_ seems to be the safest bet these days, with ext4 in the
future. Wasn't my first choice in filesystems for linux either, but
it by far makes the most sense for today and going forward. It's just
plain supported the best by far and has a very solid history.

I guess the point I'm trying to make is linux has multiple filesystems
for a reason: they're not all perfect.

Absolutely Noah, not perfect was our case with ext3 and reiserfs. We have huge data ( big tiff files ) and numerous of files
that are shared by samba, with very complex acl (around 700GB). All of the day big files are created and removed by users.
xfs is the best one to do this. (just make a test to delete a iso file under xfs compared to ext3).
On the samba server with xfs the current load is below the 1.00. When ext3 or reiserfs were used it's run under a 2.5/5.0 load
and make long time to respond to a long directory listing.
That's why we choose it, after running crash tests, xfs has always respond and could recover data.

Afterall, bacula save correctly our acl and restore them. By precaution we also have a getfacl/getfattr job running the sunday.
Just in case :-)

--

Bruno Friedmann bruno < at > io...

Ioda-Net Sàrl - http://www.ioda-net.ch
2830 Vellerat - Switzerland

Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : http://www.cfcel.com

Post Bacula and Extended Attributes 
Bruno Friedmann schrieb:
Noah Dain wrote:
On Feb 11, 2008 11:13 AM, Chun Kit Hui <huichunkit < at > gm...> wrote:
Dear Bruno,

You mean that xfs will save ACLs and extended data together with the file
instead of meta-data? And without special configuration, Bacula will backup
all these "meta-data" together with the files?

Let me have a trial later today.
[...]
Afterall, bacula save correctly our acl and restore them. By
precaution we also have a getfacl/getfattr job running the sunday.
Just in case :-)

Are you sure that bacula can backup and restore xfs's extended
attributes? I just did a test restore of some files with extended
attributes. And they were not restored. ACLs were restored fine.

Ralf

Post Bacula and Extended Attributes 
Ralf Gross wrote:
Bruno Friedmann schrieb:
Noah Dain wrote:
On Feb 11, 2008 11:13 AM, Chun Kit Hui <huichunkit < at > gm...> wrote:
Dear Bruno,

You mean that xfs will save ACLs and extended data together with the file
instead of meta-data? And without special configuration, Bacula will backup
all these "meta-data" together with the files?

Let me have a trial later today.
[...]
Afterall, bacula save correctly our acl and restore them. By
precaution we also have a getfacl/getfattr job running the sunday.
Just in case :-)

Are you sure that bacula can backup and restore xfs's extended
attributes? I just did a test restore of some files with extended
attributes. And they were not restored. ACLs were restored fine.

Ralf


True for attr, the only things used with our configuration is acl ...

For attr and quotas etc ... I thing the need of xfs_dump is inevitable or a pre getfattr job.

For curiosity and learning , what type of attr are you using ?

--

Bruno Friedmann bruno < at > io...

Ioda-Net Sàrl - http://www.ioda-net.ch
2830 Vellerat - Switzerland

Tél : ++41 32 435 7171
Fax : ++41 32 435 7172
gsm : ++41 78 802 6760

C'est Facile et Cool d'Évoluer en ligne : http://www.cfcel.com

Post Bacula and Extended Attributes 
Bruno Friedmann schrieb:
Ralf Gross wrote:
Bruno Friedmann schrieb:
Noah Dain wrote:
On Feb 11, 2008 11:13 AM, Chun Kit Hui <huichunkit < at > gm...> wrote:
Dear Bruno,

You mean that xfs will save ACLs and extended data together with the file
instead of meta-data? And without special configuration, Bacula will backup
all these "meta-data" together with the files?

Let me have a trial later today.
[...]
Afterall, bacula save correctly our acl and restore them. By
precaution we also have a getfacl/getfattr job running the sunday.
Just in case :-)

Are you sure that bacula can backup and restore xfs's extended
attributes? I just did a test restore of some files with extended
attributes. And they were not restored. ACLs were restored fine.


True for attr, the only things used with our configuration is acl
...
For attr and quotas etc ... I thing the need of xfs_dump is
inevitable or a pre getfattr job.
For curiosity and learning , what type of attr are you using ?

I use EAs for our samba samba shares (store dos attributes, ea
support, map acl inherit).

# getfattr 164_971FK019_20071029_035200.tgz
# file: 164_971FK019_20071029_035200.tgz
user.DOSATTRIB

The attributes can also be backed up with 'getfattr -R'.

Ralf

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