backup error

Yarden

Verified User
Joined
Nov 14, 2008
Messages
45
behezrat hashem

hellooooooooooooooooo!@@!!!!!

i did backup's cronjobs, and i have problem:

Unable to write /home/backup17/backups/oria/backup/domain.com/email/passwd : Unable to get Lock on file
Unable to write /home/backup17/backups/oria/backup/domain.com/email/quota : Unable to get Lock on file


i get this errors of all the users on server..
 
I'm having the same issue with is. Suddenly the backups stopped working and I have no idea why :/
 
I vaguely remember another recent thread on this subject.

Anyone?

Jeff
 
Is this bug still not fixed? I also got this errors on all the backups.

Unable to write /home/admin/backup/name...
-domain.com/email/passwd : Unable to get Lock on file

Unable to write /home/admin/backup/name...
-domain.com/email/quota : Unable to get Lock on file

Error reading /home/admin/backup/name/domain.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /home/admin/backup/name/domain.com/domain.conf for reading.

Hope you can fix it.

Kind regards.
 
Exactly the same problem

I upgrade from 1.31.1 to 1.33.7 to be able to backup on NFS share, when I try a backup on an NFS share, I have the error:

Code:
Unable to write /mnt/virtual/user/backup/domain.com/email/passwd : Unable to get Lock on file

Unable to write /mnt/virtual/user/backup/domain.com/email/quota : Unable to get Lock on file


Error reading /mnt/virtual/user/backup/domain.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /mnt/virtual/user/backup/domain.com/domain.conf for reading.


When I do backup on local HD, no problem.

I'm still using Cent0S 5.0

Regards,


Nicolas Heinen.
 
Last edited:
Make sure there is enough space on NFS partition, it's not mounted read only and there are no quotas enabled for it. If you are unsure, provide the output of the following commands so we can troubleshoot this further:
PHP:
df -h
mount
cat /etc/fstab
quota -v diradmin
 
Thanks for helping, here are the output you're asking:

Code:
[[email protected]]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             5.7G  536M  4.9G  10% /
/dev/sda3              99M   16M   79M  17% /boot
tmpfs                1014M     0 1014M   0% /dev/shm
/dev/mapper/datavg-lvhome
                       97G   56G   37G  61% /home
/dev/mapper/datavg-lvtmp
                      2.0G  127M  1.8G   7% /tmp
/dev/mapper/datavg-lvusr
                      9.7G  3.3G  6.0G  36% /usr
/dev/mapper/datavg-lvvar
                      9.7G  2.3G  7.0G  25% /var
192.168.0.47:/home/admin/admin_backups
                      192G   23G  160G  13% /mnt/virtual


[[email protected]]# mount
/dev/sda5 on / type ext3 (rw,usrquota,grpquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda3 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/mapper/datavg-lvhome on /home type ext3 (rw,usrquota,grpquota)
/dev/mapper/datavg-lvtmp on /tmp type ext3 (rw)
/dev/mapper/datavg-lvusr on /usr type ext3 (rw)
/dev/mapper/datavg-lvvar on /var type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.168.0.47:/home/admin/admin_backups on /mnt/virtual type nfs (rw,addr=192.168.0.47)



[[email protected]]# cat /etc/fstab
LABEL=/1                        /                       ext3    defaults,usrquota,grpquota      1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
/dev/datavg/lvhome              /home                   ext3    defaults,usrquota,grpquota      1 2
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
/dev/datavg/lvtmp       /tmp                    ext3    defaults        1 2
/dev/datavg/lvusr       /usr                    ext3    defaults        1 2
/dev/datavg/lvvar       /var                    ext3    defaults        1 2
LABEL=SWAP-sda8         swap                    swap    defaults        0 0



[[email protected]]# quota -v diradmin
Disk quotas for user diradmin (uid 100):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/sda5       0       0       0               0       0       0
/dev/mapper/datavg-lvhome
                      4       0       0               1       0       0

So I'm trying to save my backup in the /mnt/virtual directory which is mount on a NFS share with this command:

Code:
mount 192.168.0.47:/home/admin/admin_backups /mnt/virtual

On the NFS server, my /etc/exportfs file looks like this

Code:
/home/admin/admin_backups       10.0.0.2(rw,sync)

The backup file it is ended with does not contain that directory:

Code:
/mnt/virtual/user/backup/domain.com/email

so this is probably why it can't find the passwd and quota file

The file domain.conf is readable by root but not by anybody else because of it's permissions

Code:
[[email protected]]# pwd
/mnt/virtual/backup/domain.com

[[email protected]]# ls -l
total 12
[B]-rw------- 1 nfsnobody nfsnobody 190 Dec 14  2007 domain.conf[/B]
-rw------- 1 nfsnobody nfsnobody  56 Aug 25 00:12 domain.usage
-rw-r--r-- 1 nfsnobody nfsnobody 734 Aug 25  2009 domain.com.db

We even try the FTP solution by mounting /home/tmp on a NFS share but then we got even more errors :-(

Regards,


Nicolas.
 
It looks like anything you copy to your NFS partition gets stored under nfsnobody user (as far as your host is concerned), so it becomes inaccessible for directadmin user.

It has been a while since I used NFS, but I do remember it could be configured to preserve files ownership.

We even try the FTP solution by mounting /home/tmp on a NFS share but then we got even more errors :-(
My guess you ran into the same problem: DA created directory with user-only permissions then couldn't write to that location.
 
exportfs with no_root_sqash

I'm a fool because last time I had resolved the issue but didn't post the solution and today I ran into exactly the same problem and I wish I would have find the solution here, so for the sake of make it clear once and for all, when you do a backup on a NFS share, you have to export the NFS share with no_root_squash option, so your /etc/exports should looks like something like this:

Code:
[root@da2 backups]# cat /etc/exports 
/backups	*(rw,no_root_squash)

Then just reload the configuration with:

Code:
[root@da2 backups]# exportfs -a

Sorry for the reviving of that old thread, it now go down.

Regards,


Nicolas.
 
Back
Top