• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Plesk and vhosts on NFS

E

ErlandM

Guest
Hi all,

At our hostingcompany we work with a Netapp filer from which we mount the /srv/www/vhosts dir via NFS.
When deleting a domain with plesk we always get the following error:

ERROR: PleskFatalException

Unable to remove hosting: Unable to delete system user: SysUser->systemRemove() failed: usermng failed: usermng: Unable to unlink directory entry .nfs0072ed3b0000b345: Device or resource busy

System error 16: Device or resource busy

0: /usr/local/psa/admin/plib/class.PhDomain.php:290
PhDomain->reset(integer '0', boolean true, boolean false)
1: /usr/local/psa/admin/plib/class.BsDomain.php:307
BsDomain->reset(integer '0')
2: /usr/local/psa/admin/plib/class.BsDomain.php:301
BsDomain->delete(integer '0')
3: /usr/local/psa/admin/plib/class.BsDomain.php:541
mdeleteDomains(array)
4: /usr/local/psa/admin/plib/class.Manager.php:352
Manager->removeDomains(array)
5: /usr/local/psa/admin/htdocs/domains/removeDomains.php3:44

I have tracked the problem down to the fact that NFS makes "silly names" copies .nfsXXXXXXXXXXXXX of files still in use. Since the access log and error log seem to be in use durig the delete of the vhost tree this creates the problem. The .nfs files are owned root.root.

Since i am currently setting up a server for another customer under plesk 9.2 i'm going to try reproducing the error in that version.

Does anybody have a clue how to resolve this problem?

Tia,
Erland.
 
Yeah thats a locking issue with NFS, Ive run into it before as well. Some services are more NFS friendly than others, qmail and postfix for example you can use NFS volumes with safely. Apache, and Mysql not so much, let me guess that was in /var/www/vhosts right?
 
It's indeed a locking problem with NFS, but should be, imho, possible to work around if plesk would delete the domain in an other order.

The files that give problems are /srv/www/vhosts/<domainname>/statistics/logs/access_log and error_log. I think plesk tries to delete the directory at the moment apache and the vhost are still active.

By disabling the vhost first and restarting apache, and then deleting the directory-tree the problem should be resolved.

I would have liked to enter a problem ticket with plesk but unfortunately we bought plesk from a reseller who's standard reply is "we can't do anything about it".

As i have written i'm at the moment setting up another server with plesk 9.2.1. I'll try to reproduce the problem there. Maybe plesk has solved the problem in a new version.

Greets,
Erland.
 
Its not pretty, but what you can do is either build a wrapper around the various utilities like usermng to shut down services or force a sync via nfs. Another option I hadnt tried yet was to try and do the same thing using the event manager.
 
I have just tested it in 9.2.1, same setup as with the 8.3 version and the bug doesn't seem to exist there.

Erland.
 
We have this issue with Plesk 9.5.x and 10.2.0. As a workaround we remove the domain from the zz010_psa_httpd.conf file, reload the apache daemon and delete the domain using the Plesk CLI. This works fine.
We just opened a case with Parallels and hope they fix it soon (really annoying for reseller customers to ask us for domain deletions...).
 
Parallels found a workaround: Suspend the domain before deletion. For us it works with Plesk 9.5.x and 10.2.
Can anyone else confirm it?
 
Back
Top