The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Case 74417] Pigz rysncable option

Discussion in 'General Discussion' started by kernow, Jul 27, 2013.

  1. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I believe when using the new backup system with pigz, the rsync or -R option is not being used. Can anybody tell me where the config file that executes cpbackup pigz options resides so we can check?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can enable or disable Pigz by editing the following option under the "Compression" tab in "WHM Home » Server Configuration » Tweak Settings":

    "Use pigz"

    This setting is stored in /var/cpanel/cpanel.config:

    Code:
    [~]# grep gzip_use_pigz /var/cpanel/cpanel.config
    gzip_use_pigz=0 
    The "Pigz" binary itself is located at:

    Code:
    /usr/local/cpanel/3rdparty/bin/pigz
    However, it's not possible to force it to use a specific flag during the backup process. You can open a feature request for this via:

    Submit A Feature Request

    Thank you.
     
  3. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks for the reply.
    Can you confirm that the -R or rsyncable option is not being used as we suspect? because if thats the case its pointless using pigz and we might as well revert back to gzip which is using rsync :(
    It must be possible to add the -R switch as the options to set the number of pigz processes and chunks per compression are in tweak settings.
     
    #3 kernow, Jul 29, 2013
    Last edited: Jul 29, 2013
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, the "--rsyncable" option should be used for Pigz from the information I was able to obtain. Could you open a support ticket if this is not the case so we can take a closer look?

    Submit A Ticket

    You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  5. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks for checking.
    To save trouble of opening a ticket, can you say what config file has that "--rsyncable" option listed? We can then check it ourselves.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    There is not a configuration file where it's enabled or disabled for backups. Instead, a check is made to see if the "--rsyncable" option is available and it's automatically used if it is. This is the case for both gzip and pigz. Thus, if it's not working as designed, you can open a support ticket and we can take a closer look.

    Thank you.
     
  7. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Support ticket: 4308391
     
  8. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Update.
    A senior cpanel tech is still investigating but one thing discovered, is there IS a config file Mr cPanelMichael ;)
    This file /var/cpanel/backups/config on our servers contain a line that reads;
    GZIPRSYNCOPTS ' '
    What it should say is:
    GZIPRSYNCOPTS '--rsyncable'
    Which should be auto generated. Will update here when its fixed.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, the backup configuration file itself is located at:

    Code:
    /var/cpanel/backups/config
    The option referred to is the configuration entry for the legacy backup system in /etc/cpbackup.conf:

    Code:
    GZIPRSYNCOPTS --rsyncable
    This value is not applied to /var/cpanel/backups/config by default, and there is no configuration option for it in the "Backup Configuration" area in Web Host Manager. This implies there is no configuration file that controls the use of the "rsyncable" option on the new backup system. Thus, it's likely an internal case is necessary to address this issue. I will update this thread with more information as it becomes available.

    Thank you.
     
  10. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Update.
    Its now been confirmed the --rsyncable option is not being passed to pigz. There is now an internal case for this.
    internal case ID #74417
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    An internal case has been opened to address this issue. For reference, the case number is 74417. A resolution is tentatively scheduled for inclusion with cPanel version 11.38.3. The change log can be monitored to see when a resolution is released:

    cPanel - Change Log

    Thank you.
     
  12. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I can confirm that the fix for this does now work. A test on one of our servers returned a speedup of 23, so the backup of accounts using rsync to remote backup server now takes 3 hours instead of 36 hours :)
     
Loading...

Share This Page