sysvol replcation rsync error

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

sysvol replcation rsync error

Samba - General mailing list
Hello ,

( samba 4.6.9 - centos 6 DC1  centos DC2 )

I tried to sync sysvol as described in
https://wiki.samba.org/index.php/Rsync_based_SysVol_replication_workaround
between two DC

but rsync shows some errors like this
rsync: set_acl:
sys_acl_set_file(apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas,
ACL_TYPE_ACCESS): Argument list too long (7)

DC1 rsync version 3.0.6  protocol version 30
DC2 rsync version 3.0.9  protocol version 30

do someone knows a way to avoid this error ?

thank you

giuseppe

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
Hi,

Does your fs support xattr?

Check here: https://wiki.samba.org/index.php/File_System_Support

MJ

On 11/03/2017 08:41 AM, Giuseppe Arvati via samba wrote:

> Hello ,
>
> ( samba 4.6.9 - centos 6 DC1  centos DC2 )
>
> I tried to sync sysvol as described in
> https://wiki.samba.org/index.php/Rsync_based_SysVol_replication_workaround
> between two DC
>
> but rsync shows some errors like this
> rsync: set_acl:
> sys_acl_set_file(apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas,
> ACL_TYPE_ACCESS): Argument list too long (7)
>
> DC1 rsync version 3.0.6  protocol version 30
> DC2 rsync version 3.0.9  protocol version 30
>
> do someone knows a way to avoid this error ?
>
> thank you
>
> giuseppe
>

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
Best guess..

Can you check this :

( from the wiki )
Good:
rsync --dry-run -XAavz --delete-after --password-file=/usr/local/samba/etc/rsync-sysvol.secret rsync://sysvol-replication@{IP-of-you-PDC}/SysVol/ /path/to/your/sysvol/folder/

Wrong.
rsync --dry-run -XAavz --delete-after --password-file=/usr/local/samba/etc/rsync-sysvol.secret rsync://sysvol-replication@{IP-of-you-PDC}/SysVol/* /path/to/your/sysvol/folder/

The difference is the * after Sysvol, so check if "*" is in the rsync line.

Greetz,

Louis






> -----Oorspronkelijk bericht-----
> Van: samba [mailto:[hidden email]] Namens mj via samba
> Verzonden: vrijdag 3 november 2017 9:51
> Aan: [hidden email]
> Onderwerp: Re: [Samba] sysvol replcation rsync error
>
> Hi,
>
> Does your fs support xattr?
>
> Check here: https://wiki.samba.org/index.php/File_System_Support
>
> MJ
>
> On 11/03/2017 08:41 AM, Giuseppe Arvati via samba wrote:
> > Hello ,
> >
> > ( samba 4.6.9 - centos 6 DC1  centos DC2 )
> >
> > I tried to sync sysvol as described in
> >
> https://wiki.samba.org/index.php/Rsync_based_SysVol_replicatio
> n_workaround
> > between two DC
> >
> > but rsync shows some errors like this
> > rsync: set_acl:
> >
> sys_acl_set_file(apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-
> 918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4
> C4-226BAA665E3A}.aas,
> > ACL_TYPE_ACCESS): Argument list too long (7)
> >
> > DC1 rsync version 3.0.6  protocol version 30
> > DC2 rsync version 3.0.9  protocol version 30
> >
> > do someone knows a way to avoid this error ?
> >
> > thank you
> >
> > giuseppe
> >
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
In reply to this post by Samba - General mailing list
Hello,

1) fs acl support
I use XFS

I did the tests (  https://wiki.samba.org/index.php/File_System_Support 
) and no errors
[root@dc1ucp ~]# setfattr -n user.test -v test test.txt
[root@dc1ucp ~]# setfattr -n security.test -v test2 test.txt
[root@dc1ucp ~]# getfattr -d test.txt
# file: test.txt
user.test="test"

[root@dc1ucp ~]# getfattr -n security.test -d test.txt
# file: test.txt
security.test="test2"

[root@dc1ucp ~]# setfacl -m g:adm:rwx test.txt
[root@dc1ucp ~]# getfacl test.txt
# file: test.txt
# owner: root
# group: root
user::rw-
group::r--
group:adm:rwx
mask::rwx
other::r--


2) rsync command I used

#!/bin/bash

PWDFILE=/usr/local/samba/etc/rsync-sysvol.secret
SVOLPATH=/usr/local/samba/var/locks/sysvol/
ROPT="-XAavz --delete-after"

rsync $ROPT --password-file=$PWDFILE
rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH


thank you


Il 03/11/2017 09:50, mj via samba ha scritto:

> Hi,
>
> Does your fs support xattr?
>
> Check here: https://wiki.samba.org/index.php/File_System_Support
>
> MJ
>
> On 11/03/2017 08:41 AM, Giuseppe Arvati via samba wrote:
>> Hello ,
>>
>> ( samba 4.6.9 - centos 6 DC1  centos DC2 )
>>
>> I tried to sync sysvol as described in
>> https://wiki.samba.org/index.php/Rsync_based_SysVol_replication_workaround 
>>
>> between two DC
>>
>> but rsync shows some errors like this
>> rsync: set_acl:
>> sys_acl_set_file(apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas,
>> ACL_TYPE_ACCESS): Argument list too long (7)
>>
>> DC1 rsync version 3.0.6  protocol version 30
>> DC2 rsync version 3.0.9  protocol version 30
>>
>> do someone knows a way to avoid this error ?
>>
>> thank you
>>
>> giuseppe
>>
>


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
In reply to this post by Samba - General mailing list
On Fri, 3 Nov 2017 10:18:14 +0100
"L.P.H. van Belle via samba" <[hidden email]> wrote:

> Best guess..
>
> Can you check this :
>
> ( from the wiki )
> Good:
> rsync --dry-run -XAavz --delete-after
> --password-file=/usr/local/samba/etc/rsync-sysvol.secret
> rsync://sysvol-replication@{IP-of-you-PDC}/SysVol/ /path/to/your/sysvol/folder/
>
> Wrong.
> rsync --dry-run -XAavz --delete-after
> --password-file=/usr/local/samba/etc/rsync-sysvol.secret
> rsync://sysvol-replication@{IP-of-you-PDC}/SysVol/* /path/to/your/sysvol/folder/
>
> The difference is the * after Sysvol, so check if "*" is in the rsync
> line.
>
> Greetz,
>
> Louis

That could make things worse :-(

What does this command show:

ls
-R /usr/local/samba/var/locks/sysvol/apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas

(It all should be one line)

Rowland

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
Il 03/11/2017 11:27, Rowland Penny via samba ha scritto:
> ls
> -R/usr/local/samba/var/locks/sysvol/apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas
Hello Rowland

this is the result

[root@apamfs2 ~]# ls -R
/usr/local/samba/var/locks/sysvol/apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4
                                                  C4-226BAA665E3A}.aas
/usr/local/samba/var/locks/sysvol/apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas
[root@apamfs2 ~]#

same result on both DC


thank you

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
In reply to this post by Samba - General mailing list
Hai, yes, sorry, thats what i meant, useing "*" is wrong..  

Thats that same  when you do... ( in a folder with miljoens files. )
ls * Or rm *
Same argument error.
Encounterd that 2 weeks ago and thats not a samba thing.

Greetz,

Louis



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:[hidden email]] Namens
> Rowland Penny via samba
> Verzonden: vrijdag 3 november 2017 11:28
> Aan: [hidden email]
> Onderwerp: Re: [Samba] sysvol replcation rsync error
>
> On Fri, 3 Nov 2017 10:18:14 +0100
> "L.P.H. van Belle via samba" <[hidden email]> wrote:
>
> > Best guess..
> >
> > Can you check this :
> >
> > ( from the wiki )
> > Good:
> > rsync --dry-run -XAavz --delete-after
> > --password-file=/usr/local/samba/etc/rsync-sysvol.secret
> > rsync://sysvol-replication@{IP-of-you-PDC}/SysVol/
> /path/to/your/sysvol/folder/
> >
> > Wrong.
> > rsync --dry-run -XAavz --delete-after
> > --password-file=/usr/local/samba/etc/rsync-sysvol.secret
> > rsync://sysvol-replication@{IP-of-you-PDC}/SysVol/*
> /path/to/your/sysvol/folder/
> >
> > The difference is the * after Sysvol, so check if "*" is in
> the rsync
> > line.
> >
> > Greetz,
> >
> > Louis
>
> That could make things worse :-(
>
> What does this command show:
>
> ls
> -R
> /usr/local/samba/var/locks/sysvol/apam-ad.apam.it/Policies/{D7
25AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75> -D832-429B-B4C4-226BAA665E3A}.aas
>
> (It all should be one line)
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
In reply to this post by Samba - General mailing list
On Fri, 3 Nov 2017 11:50:33 +0100
Giuseppe Arvati <[hidden email]> wrote:

> Il 03/11/2017 11:27, Rowland Penny via samba ha scritto:
> > ls
> > -R/usr/local/samba/var/locks/sysvol/apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas
> Hello Rowland
>
> this is the result
>
> [root@apamfs2 ~]# ls -R
> /usr/local/samba/var/locks/sysvol/apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4
>                                                   C4-226BAA665E3A}.aas
> /usr/local/samba/var/locks/sysvol/apam-ad.apam.it/Policies/{D725AAC4-27E8-46AC-918D-55B560988386}/Machine/Applications/{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas
> [root@apamfs2 ~]#
>
> same result on both DC
>
>
> thank you

Strange, there is nothing under
'{031B2C75-D832-429B-B4C4-226BAA665E3A}.aas'

I expected an error because 'Argument list too long' is usually a bash
error

Rowland

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
In reply to this post by Samba - General mailing list
On Fri, 3 Nov 2017 10:32:23 +0100
Giuseppe Arvati via samba <[hidden email]> wrote:

> Hello,
>
> 2) rsync command I used
>
> #!/bin/bash
>
> PWDFILE=/usr/local/samba/etc/rsync-sysvol.secret
> SVOLPATH=/usr/local/samba/var/locks/sysvol/
> ROPT="-XAavz --delete-after"
>
> rsync $ROPT --password-file=$PWDFILE
> rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH
>

Looking at your bash script, I wonder if you are running into a similar
problem that I ran into last week. I was trying to run an ldbsearch in
a script, but it wouldn't work, though the expanded command ran in a
terminal did. I traced it down to something similar to what you are
doing, you are setting '$ROPT' to '-XAavz --delete-after'. In my case
bash seemed to treating this as one component instead of two, try
making the command this:

rsync -XAavz --delete-after --password-file=$PWDFILE
 rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH

Rowland

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
Il 03/11/2017 12:18, Rowland Penny via samba ha scritto:

> On Fri, 3 Nov 2017 10:32:23 +0100
> Giuseppe Arvati via samba <[hidden email]> wrote:
>
>> Hello,
>>
>> 2) rsync command I used
>>
>> #!/bin/bash
>>
>> PWDFILE=/usr/local/samba/etc/rsync-sysvol.secret
>> SVOLPATH=/usr/local/samba/var/locks/sysvol/
>> ROPT="-XAavz --delete-after"
>>
>> rsync $ROPT --password-file=$PWDFILE
>> rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH
>>
>
> Looking at your bash script, I wonder if you are running into a similar
> problem that I ran into last week. I was trying to run an ldbsearch in
> a script, but it wouldn't work, though the expanded command ran in a
> terminal did. I traced it down to something similar to what you are
> doing, you are setting '$ROPT' to '-XAavz --delete-after'. In my case
> bash seemed to treating this as one component instead of two, try
> making the command this:
>
> rsync -XAavz --delete-after --password-file=$PWDFILE
>   rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH
>

I changed the script as you suggested but I got the same errors.
Now the script is:
#!/bin/bash

PWDFILE=/usr/local/samba/etc/rsync-sysvol.secret
SVOLPATH=/usr/local/samba/var/locks/sysvol/

rsync -XAavz --delete-after --password-file=$PWDFILE
rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH

and the output is:
rsync: set_acl:
sys_acl_set_file(apam-ad.apam.it/Policies/{706AE068-BD20-40CC-B844-6A7E05094C2A},
ACL_TYPE_ACCESS): Argument list too long (7)
rsync: set_acl:
sys_acl_set_file(apam-ad.apam.it/Policies/{706AE068-BD20-40CC-B844-6A7E05094C2A}/GPT.INI,
ACL_TYPE_ACCESS): Argument list too long (7)
rsync: set_acl:
sys_acl_set_file(apam-ad.apam.it/Policies/{706AE068-BD20-40CC-B844-6A7E05094C2A}/Machine,
ACL_TYPE_ACCESS): Argument list too long (7)

I tried to run rsync from command line and got same errors

thank you
giuseppe


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: sysvol replcation rsync error

Samba - General mailing list
If i read the error correct,

 > rsync: set_acl:  ACL_TYPE_ACCESS): Argument list too long (7)
For this policy GUID : 706AE068-BD20-40CC-B844-6A7E05094C2A

Look up which one this is, and how may groups/users/computers, etc. other things, are set on the policy.
And, what happens if you ( if your able to ) remove the one temperarly.

I dont know if there is a restrition in ACL for user/groups on XFS, but a thing you can loop up.
Me << not centos/XFS guy..


Greetz,

Louis



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:[hidden email]] Namens
> Giuseppe Arvati via samba
> Verzonden: vrijdag 3 november 2017 14:52
> Aan: Rowland Penny; [hidden email]
> Onderwerp: Re: [Samba] sysvol replcation rsync error
>
> Il 03/11/2017 12:18, Rowland Penny via samba ha scritto:
> > On Fri, 3 Nov 2017 10:32:23 +0100
> > Giuseppe Arvati via samba <[hidden email]> wrote:
> >
> >> Hello,
> >>
> >> 2) rsync command I used
> >>
> >> #!/bin/bash
> >>
> >> PWDFILE=/usr/local/samba/etc/rsync-sysvol.secret
> >> SVOLPATH=/usr/local/samba/var/locks/sysvol/
> >> ROPT="-XAavz --delete-after"
> >>
> >> rsync $ROPT --password-file=$PWDFILE
> >> rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH
> >>
> >
> > Looking at your bash script, I wonder if you are running
> into a similar
> > problem that I ran into last week. I was trying to run an
> ldbsearch in
> > a script, but it wouldn't work, though the expanded command ran in a
> > terminal did. I traced it down to something similar to what you are
> > doing, you are setting '$ROPT' to '-XAavz --delete-after'.
> In my case
> > bash seemed to treating this as one component instead of two, try
> > making the command this:
> >
> > rsync -XAavz --delete-after --password-file=$PWDFILE
> >   rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH
> >
>
> I changed the script as you suggested but I got the same errors.
> Now the script is:
> #!/bin/bash
>
> PWDFILE=/usr/local/samba/etc/rsync-sysvol.secret
> SVOLPATH=/usr/local/samba/var/locks/sysvol/
>
> rsync -XAavz --delete-after --password-file=$PWDFILE
> rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH
>
> and the output is:
> rsync: set_acl:
> sys_acl_set_file(apam-ad.apam.it/Policies/{706AE068-BD20-40CC-
> B844-6A7E05094C2A},
> ACL_TYPE_ACCESS): Argument list too long (7)
> rsync: set_acl:
> sys_acl_set_file(apam-ad.apam.it/Policies/{706AE068-BD20-40CC-
> B844-6A7E05094C2A}/GPT.INI,
> ACL_TYPE_ACCESS): Argument list too long (7)
> rsync: set_acl:
> sys_acl_set_file(apam-ad.apam.it/Policies/{706AE068-BD20-40CC-
> B844-6A7E05094C2A}/Machine,
> ACL_TYPE_ACCESS): Argument list too long (7)
>
> I tried to run rsync from command line and got same errors
>
> thank you
> giuseppe
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba