Snapshot creation fail at Virutozzo 7

Discussion in 'Installation, Update and Configuration' started by Machiasiaweb, Aug 19, 2016.

  1. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    169
    Hello,

    It have experience error while create snapshot under Virtuozzo 7

    ======================
    # prlctl snapshot 494832 -n orignal -d "orginal one"
    Creating the snapshot...
    PRL_ERR_VZCTL_OPERATION_FAILED (Details: Failed to checkpoint the Container
    All dump files and logs were saved to /vz/private/494832/dump/{936860df-2eae-4201-8bde-d06790d185a9}.fail
    Failed tp dump the Container, status pipe unexpectedly closed
    Failed to dump Container
    Failed to resume Container
    Failed to create snapshot
    )
    Failed to create the snapshot: Unknown
    =====================
    Check with following KB but it looks not work under Virtuozzo 7
    https://kb.plesk.com/en/123534

    Is there some way to fix?

    Thanks!
     
  2. Pavel

    Pavel A.I. Auto-Responder Odin Team

    Messages:
    433
    Hello,

    Article is irrelevant here. Issue cannot be investigated by this output alone.
    What's in /vz/private/494832/dump/{936860df-2eae-4201-8bde-d06790d185a9}.fail ?
    Post contents here or to the pastebin
     
  3. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    169
    Hello,

    That is a folder but forum have file size limited. Anywhere I can upload?

    Thanks!
     
  4. Pavel

    Pavel A.I. Auto-Responder Odin Team

    Messages:
    433
    I've created a temporary FTP directory for you, upload it here:
    ftp://fe.virtuozzo.com/4b611adb840d5b1255fc9620f6208ce3/

    You may also use rsync protocol:
    rsync://fe.virtuozzo.com/4b611adb840d5b1255fc9620f6208ce3/
     
  5. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    169
    Hello,

    I just upload to there. Please check.

    Thanks!
     
  6. Pavel

    Pavel A.I. Auto-Responder Odin Team

    Messages:
    433
    Hello,

    Thanks for uploading the logs, they were helpful.

    =============================================
    (00.476228) Collecting mappings (pid: 86204)
    (00.476238) ----------------------------------------
    (00.476517) Dumping path for -3 fd via self 21 [/tmp/apc.ly8t8r (deleted)]
    (00.476532) Strip ' (deleted)' tag from './tmp/apc.ly8t8r (deleted)'
    (00.476542) Dumping ghost file for fd 21 id 0x7c
    (00.476553) Error (files-reg.c:708): Can't dump ghost file /tmp/apc.ly8t8r of 67108864 size, increase limit
    (00.476571) Error (cr-dump.c:1215): Collect mappings (pid: 86204) failed with -1
    =============================================

    Turned out some httpd process had locked "deleted" file of 64 Mb - those are called "ghost files" - it seems like deleted from the filesystem perspective, but still accessible as long as there is some process having a handle opened for it.

    There is a size limit in CRIU for such files, currently it is 50 Mb. File didn't fit, hence the error. I'll pass this feedback to development team - they will consider increasing the limit.
     
    Last edited: Aug 23, 2016
  7. Pavel

    Pavel A.I. Auto-Responder Odin Team

    Messages:
    433
    In fact, you can increase the limit on your own:
    Code:
    # cat /usr/libexec/libvzctl/scripts/vz-cpt | grep ghost
                    --ghost-limit 50M                       \
    
    You can adjust this value to 100M, that should cover your case.
     
  8. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    169
    Problem can be solved. Thank you!
     

Share This Page