Sponsored Content
Full Discussion: Lsyncd Configuration
Top Forums UNIX for Beginners Questions & Answers Lsyncd Configuration Post 303038591 by stomp on Friday 6th of September 2019 04:54:45 PM
Old 09-06-2019
I used lsyncd to migrate(p2v) servers to minimize downtime when migrating. Had lot's of files(1K-1M).

Like plain rsync it's good for a lot of things. It's very bad for syncing big files which change often(-> big database files), because lsyncd will constantly syncing those big files if only one byte changes. ( I had ~100 smaller mysql databases on some server. This worked fine.)

Worked like charm. You can apply rsync args with rsync/_extra:

Code:
sync {
    default.rsync,
    source    = "/",
    target    = "1.2.3.42:/disk/",
    exclude   = {
                "/proc/**",
                "/sys/**",
                "/dev/**"
                },
    rsync     = {
        archive  = true,
        _extra  = { "-v", "-H", "--numeric-ids" }
    }
}

Update:
Since you copy files from nfs to nfs I recommend to check disabling the Delta-Transfer with -W.

If not lsyncd/rsync will read the whole file from the source-nfs before transferring the 5 (Bytes? MBytes? GBytes?) that have changed.


The above is default, when - like in this case - both source and target path are local(begin with /).

If you have so many files and access it via nfs the initial phase is of course taking long. (I had backup issues of servers with 4-8 million files, took 10-30 hours for an rsync backup to take place even if little changed - and that was with a local source). This should be either with lsyncd or rsync. But I'm curious if plain rsync is faster.

If you just have vanishing many files, this should not cause heavy load.

I think there's not so much difference between lsyncd and rsync. Because the former is just like a wrapper of the latter.

Last edited by stomp; 09-07-2019 at 09:09 AM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Configuration

Can anyone please tell me anything about the following: AIX O/S - IBM RS6000 server I want to know where I can go to check and see how much RAM is intalled in the server, how many Processors are installed in the server, and how I can run a sar command to show me processor statistics? I... (4 Replies)
Discussion started by: Docboyeee
4 Replies

2. BSD

X configuration

HEllo, I try to Launch OOO, but I have X configuration problem. I 'm searching in man pages but if someone can help me... Of course I set the DISPLAY as explain in the man page but with no more result: setenv DISPLAY myws:0 Thanks in advance (1 Reply)
Discussion started by: SoulCoder
1 Replies

3. Post Here to Contact Site Administrators and Moderators

configuration

how to configure servor dns on windows servor 2003 (0 Replies)
Discussion started by: djest
0 Replies

4. Linux

configuration

hello, I don't know how to configure servor dns on linux,please help I thanck YOU (1 Reply)
Discussion started by: djest
1 Replies

5. AIX

Need help on IP Configuration

I have an RS/6000 running AIX 5.3. I would like to get either dhcp client working or assigning it an ip would be fine as well. I have tried using smit to do it many times trying different things, and I can get an ip assigned but it doesn't communicate with the network or internet. I haven't been... (3 Replies)
Discussion started by: izzzy
3 Replies

6. SCO

printer configuration

Dear all i have install printer in sco open 5 , i m not getting print out , but printing is showing in que plz help (7 Replies)
Discussion started by: sudhir69
7 Replies

7. Red Hat

LDAP configuration

I have installed openldap-servers package in server machine i have edited vi /etc/openldap/ldap.conf i have added following line BASE dc=abcd,dc=com URI ldap://ldap.abcd.com ldap://ldap-master.abcd.com:666 i have restarted the ldap service then client pc i have installed... (0 Replies)
Discussion started by: ainstin
0 Replies

8. UNIX for Advanced & Expert Users

Postfix Configuration

Hi, i have to configure postfix in this mode: - if i receive a mail from a@a.a relay to - if i receive a mail NOT from a@a.a relay the mail to user "test" that is on localhost For the first rule i do this in main.cf: sender_dependent_default_transport_maps = hash:/etc/postfix/sender_check... (0 Replies)
Discussion started by: certo85
0 Replies
AuBucketAttributes(3)					     Library Functions Manual					     AuBucketAttributes(3)

Name
       AuBucketAttributes - bucket attributes structure

Structures
       #include <audio/audiolib.h>

       typedef struct _AuBucketAttributes
       {
	   . . .
       }AuBucketAttributes;

Members
       Do not dereference the members of the AuBucketAttributes structure directly.  Instead use the access macros.

       ba is a pointer to a AuBucketAttributes structure.

       AuBucketValueMask(ba)
		 Accesses the AuMask value indicating which attributes are present.  This is a bitwise inclusive OR of these constants: AuCompCom-
		 monIDMask, AuCompCommonKindMask, AuCompCommonUseMask, AuCompCommonFormatMask, AuCompCommonNumTracksMask,  AuCompCommonAccessMask,
		 AuCompCommonDescriptionMask, AuCompBucketSampleRateMask, and AuCompBucketNumSamplesMask.

       AuBucketChangableMask(ba)
		 Accesses  the AuMask value indicating which of the attributes can be changed.	This is a bitwise inclusive OR of these constants:
		 AuCompCommonIDMask, AuCompCommonKindMask, AuCompCommonUseMask, AuCompCommonFormatMask, AuCompCommonNumTracksMask, AuCompCommonAc-
		 cessMask, AuCompCommonDescriptionMask, AuCompBucketSampleRateMask, and AuCompBucketNumSamplesMask.

       AuBucketIdentifier(ba)
		 Accesses the AuBucketID ID of the bucket.

       AuBucketKind(ba)
		 Accesses the int value indicating the kind of component.  Buckets will always be AuComponentKindBucket.

       AuBucketUse(ba)
		 Accesses  the	AuMask value indicating what uses of the bucket are permitted.	This is a bitwise inclusive OR of these constants:
		 AuComponentUseImportMask and AuComponentUseExportMask.

       AuBucketFormat(ba)
		 Accesses the int value indicating the audio data format the bucket uses.  Currently, the following formats are defined: AuFormat-
		 ULAW8,  AuFormatLinearUnsigned8,  AuFormatLinearSigned8,  AuFormatLinearSigned16MSB, AuFormatLinearUnsigned16MSB, AuFormatLinear-
		 Signed16LSB, and AuFormatLinearUnsigned16LSB.

       AuBucketNumTracks(ba)
		 Accesses the int value indicating the number of tracks the bucket supports.

       AuBucketAccess(ba)
		 Accesses the AuMask value indicating what kinds of access the bucket allows.  This is a bitwise inclusive OR of these	constants:
		 AuAccessImportMask, AuAccessExportMask, AuAccessDestroyMask, and AuAccessListMask.

       AuBucketDescription(ba)
		 Accesses the AuString structure containing a textual description of the bucket.

       AuBucketSampleRate(ba)
		 Accesses the unsigned int value indicating the sample rate of the bucket.

       AuBucketNumSamples(ba)
		 Accesses the AuUint32 value indicating the number of samples the bucket contains.

Description
       The AuBucketAttributes structure describes the server-local storage of audio data.

See Also
       AuGetBucketAttributes, AuListBuckets.

       audiolib - Network Audio System C Language Interface

audiolib - bucket attributes					       1.9.3						     AuBucketAttributes(3)
All times are GMT -4. The time now is 03:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy