bind only using 1 CPU when chrooted (perfect server setup etch) is this the solution?

Discussion in 'HOWTO-Related Questions' started by Dennis, Apr 19, 2008.

  1. Dennis

    Dennis New Member

    [Solved] bind only using 1 CPU when chrooted (perfect server setup etch)

    I am running Debian Etch 64bit on an Athlon 64 x2.

    After installing bind, I get this in syslog:

    When bind runs chrooted (see http://www.howtoforge.com/perfect_setup_debian_etch_p4), it only detects 1 CPU.

    I think this user has the same problem:
    http://groups.google.com/group/comp.protocols.dns.bind/browse_thread/thread/4aab4b2a0ad4a3e0

    The solution (see above link) was mounting /proc in chroot:
    But another user had some security concerns, so that they advise to mount read-only:

    Now, I have done the following:

    1. mkdir /var/lib/named/proc
    2. mount --bind /proc /var/lib/named/proc

    Syslog:
    Looks good, but is it really correct? And, how do I mount read-only?

    Thank you!
     
    Last edited: Apr 22, 2008
  2. o.meyer

    o.meyer ISPConfig Developer ISPConfig Developer

    Hi Dennis,

    Code:
    mount --bind /proc /var/lib/named/proc -o ro
    Best regards,

    Olli
     
  3. Dennis

    Dennis New Member

    After a reboot the mounting is lost. I tried to edit /etc/fstab, but I still had to mount manually. I added this code:

    Code:
    /proc /var/lib/named/proc ext3 auto,ro 0 0
    I also tried this:

    Code:
    /proc /var/lib/named/proc ext3 defaults 0 0
    Is this the wrong code or are you not able to mount it automatically?
     
  4. o.meyer

    o.meyer ISPConfig Developer ISPConfig Developer

    Hi Dennis,

    try this:

    Code:
    /proc /var/lib/named/proc none bind,ro 0 0
    Best regards,

    Olli
     
  5. Dennis

    Dennis New Member

    Thank you, Olli! It is working great now.

    I had a feeling that the file type was wrong, but I never would have added the bind option. After knowing the solution, you see that all this was in the mount man page.
     

Share This Page