Hello listmates, I have two seemingly identical (in this reglard, at least) machine - both of them are running CentOS 6.2 with bind (bind-chroot) installed. I used webmin to edit the DNS configuration. One one of them it seems to work fine, on the other I get messages akin to the following: Failed to create master zone : Failed to replace /var/named/chroot/etc/named.conf with /var/named/chroot/etc/named.conf.webmintmp.13214 : Device or resource busy>From what I can tell, the file/var/named/chroot/etc/named.conf.webmintmp.13214 never even gets created to begin with. Has anyone experienced that? Does anyone know what the issue is? Thanks. Boris.
On 5/9/2012 4:38 PM, Boris Epstein wrote:> Hello listmates, > > I have two seemingly identical (in this reglard, at least) machine - both > of them are running CentOS 6.2 with bind (bind-chroot) installed. I used > webmin to edit the DNS configuration. One one of them it seems to work > fine, on the other I get messages akin to the following: > > Failed to create master zone : Failed to replace > /var/named/chroot/etc/named.conf with > /var/named/chroot/etc/named.conf.webmintmp.13214 : Device or resource busy > > > From what I can tell, the file > /var/named/chroot/etc/named.conf.webmintmp.13214 never even gets created to > begin with. > > Has anyone experienced that? Does anyone know what the issue is? > > Thanks. > > Boris. > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >I don't know anything about webmin, but I know in 6.x the zone files go in /var/named... and then when you reload named, they are chrooted...but you should let named do that. I might hazard to guess webmin is trying to put it where it should not go?
From: Boris Epstein <borepstein at gmail.com>>I have two seemingly identical (in this reglard, at least) machine - both >of them are running CentOS 6.2 with bind (bind-chroot) installed. I used >webmin to edit the DNS configuration. One one of them it seems to work >fine, on the other I get messages akin to the following: >Failed to create master zone : Failed to replace >/var/named/chroot/etc/named.conf with >/var/named/chroot/etc/named.conf.webmintmp.13214 : Device or resource busyhttp://www.virtualmin.com/node/19608>From that page: "The best fix for now would be tostop using the chroot completely, as it has few real security benefits in my opinion." JD
On Wednesday 09 May 2012 16:38, the following was written:> I have two seemingly identical (in this reglard, at least) machine - both > of them are running CentOS 6.2 with bind (bind-chroot) installed. I used > webmin to edit the DNS configuration. One one of them it seems to work > fine, on the other I get messages akin to the following:Sounds to me as if you have SELinux set to enforce on the one that is giving you issues. you can check this with; getenforce You should get one of the following responses; Enforcing Permissive SELinux only allows writing to /var/named/chroot/slave by default Another question I have is why do you not have your servers setup as Master and Slave? -- Regards Robert Linux The adventure of a lifetime. Linux User #296285 Get Counted http://linuxcounter.net/