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.

.backupmount_locks remain after backup

Discussion in 'Data Protection' started by uhhosting, Oct 28, 2011.

  1. uhhosting

    uhhosting Member
    PartnerNOC

    Joined:
    Jan 21, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I'm using the mount / umount feature for weekly cPanel incremental backups.

    But I've noticed after the backup is successful (according to the log file):

    [backupmount] Shutting down mount
    [backupmount] running: /bin/mount -o remount,ro /backups
    [backupmount] running: /bin/umount /backups
    [cpbackup] Completed at Fri Oct 28 03:22:40 2011
    Notification => a@a.com via EMAIL [level => 2]
    root@rweb4-v [/usr/local/cpanel/logs/cpbackup]# ls -alh /backups
    total 36K
    drwx--x--x 4 root root 4.0K Oct 28 03:22 ./
    drwxr-xr-x 40 root root 4.0K Oct 28 06:36 ../
    -rw-r--r-- 1 root root 20 Oct 28 03:22 .backupmount_locks
    drwx--x--x 3 root root 4.0K Oct 12 09:15 cpbackup/
    drwx------ 2 root root 16K Oct 12 09:04 lost+found

    The file .backupmount_locks still remains. My understanding is when the backup runs again for this server, it will fail to mount because it will encounter the lock file?
     
  2. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    Yes we are seeing this as of recently as well. In our case we are backing up to a NAS, and performing the mount/umount with the cpbackup in WHM. However, it does appear to be remounting with /bin/mount -o remount,rw /backup. Check your backup logs to ensure it's working.
     
    #2 ujr, Nov 8, 2011
    Last edited: Nov 8, 2011
  3. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Just a quick check on pkgacct.static script shows that the backup does not actually have a problem with this file. The script just checks for its existence, and if it is absent, creates one. It does not stop if this file exist.

    Could you let me know if this file has any content ? The script seems to read this file and if we can come to know of the content, then it is possible that we can come to know of its use.

    The script does not actually delete the lock file but deletes some content from inside it, which explains why the file remains.
     

Share This Page