Backing up over NAS

itsensellc

Verified User
Joined
Jul 15, 2005
Messages
53
Has anyone gotten backing up over an NAS mount to work correctly? I am not having any luck with this right now. I keep getting:

Unable to write /nas/daily/1/user/backup/domain.com/email/passwd : Unable to get Lock on file

Unable to write /nas/daily/1/user/backup/domain.com/email/quota : Unable to get Lock on file

Error reading /nas/daily/1/user/backup/domain.com/domain.conf to insert local_domain & private_html_is_link: Unable to open /nas/daily/1/user/backup/domain.com/domain.conf for reading.


The mount point is mounted read/write, and I've tried playing around with the uid/gid attributes setting the diradmin user as the user/group, also tried admin but I have no idea who the process is running under to know if this is right. It looked to me as if it was running under root (which makes no sense?)

Thanks in advance.
 
What does this have to do with directadmin? Ask your nas provider.
 
Uhm, it has everything to do with DirectAdmin . The facilities built into directadmin, namely "Admin Backup/Transfer" will not backup to an NAS mount but will backup fine to local disk. There's no problem with the mount, it has to do with how DirectAdmin performs backups.
 
The nas has nothing to do with directadmin. Explain what a nas mount is? NFS?
 
CIFS specifically, but for all intents and purposes, a network mount mounted through fstab.
 
Read the error again, itsensellc. You'll see that the NAS mount won't allow the lock. So it has everything to do with the NAS; DirectAdmin has no problem writing to local disks.

The error is very specific; DirectAdmin can't lock the file to write to it. I've read in the past about certain remote file systems not properly managing locks. I'd suggest discussing workarounds with your NAS provider, and if the workaround is something that can be implemented on DirectAdmin, then come back here and post the suggested workaround.

Jeff
 
I think we are all on the same page here... whether or not we all agree this is a DA issue, it's related to the use of DA so it's not inappropriate to post this here.

I will check with the host - quick question though - what about the read error?

One thing I noticed about DA when it does the back to a local disk: it creates the backup folder (pre-gzip) in the owner's uid/gid (i.e. whatever user it's backing up as). I don't think it can do this on the mount point so is that part of the issue?

I tried another approach, by trying to get DA to FTP to the NAS mount instead which works, kind of. NCFTPPUT reports and error in writing - but that is because there's a delay copying to the mount so NCFTPPUT gets confused.

This is just a mess.

Read the error again, itsensellc. You'll see that the NAS mount won't allow the lock. So it has everything to do with the NAS; DirectAdmin has no problem writing to local disks.

The error is very specific; DirectAdmin can't lock the file to write to it. I've read in the past about certain remote file systems not properly managing locks. I'd suggest discussing workarounds with your NAS provider, and if the workaround is something that can be implemented on DirectAdmin, then come back here and post the suggested workaround.

Jeff
 
I don't know why your NAS isn't allowing DirectAdmin to read/write. That's why I suggest you ask them what's required.

My understanding is that the directadmin process runs as user nobody, but escalates it's privileges as required. I don't know how it does that. Perhaps if you need technical support on the inner workings of DirectAdmin you should ask DirectAdmin Support, since it's a closed source C++ program, and the rest of us are just guessing.

Jeff
 
Back
Top