DNS only and daily message

upsforum

Well-Known Member
Jul 27, 2005
473
0
166
Every day I receive this message from one of DNS server:

Subject: Output from your job 187

Body:

repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.conf: No such file or directory
repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.conf: No such file or directory
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

Could you verify if Named is configured in a chroot environment? Post the output from:

Code:
rpm -qa|grep bind-chroot
cat /etc/sysconfig/named
Thank you.
 

upsforum

Well-Known Member
Jul 27, 2005
473
0
166
Code:
[email protected] [~]# rpm -qa|grep bind-chroot
bind-chroot-9.8.2-0.30.rc1.el6_6.1.x86_64
[email protected] [~]# cat /etc/sysconfig/named
# BIND named process options
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
# Currently, you can use the following options:
#
# ROOTDIR="/var/named/chroot"  --  will run named in a chroot environment.
#                            you must set up the chroot environment
#                            (install the bind-chroot package) before
#                            doing this.
#       NOTE:
#         Those directories are automatically mounted to chroot if they are
#         empty in the ROOTDIR directory. It will simplify maintenance of your
#         chroot environment.
#          - /var/named
#          - /etc/pki/dnssec-keys
#          - /etc/named
#          - /usr/lib64/bind or /usr/lib/bind (architecture dependent)
#
#         Those files are mounted as well if target file doesn't exist in
#         chroot.
#          - /etc/named.conf
#          - /etc/rndc.conf
#          - /etc/rndc.key
#          - /etc/named.rfc1912.zones
#          - /etc/named.dnssec.keys
#          - /etc/named.iscdlv.key
#
#       Don't forget to add "$AddUnixListenSocket /var/named/chroot/dev/log"
#       line to your /etc/rsyslog.conf file. Otherwise your logging becomes
#       broken when rsyslogd daemon is restarted (due update, for example).
#
# OPTIONS="whatever"     --  These additional options will be passed to named
#                            at startup. Don't add -t here, use ROOTDIR instead.
#
# KEYTAB_FILE="/dir/file"    --  Specify named service keytab file (for GSS-TSIG)
ROOTDIR=/var/named/chroot
[email protected] [~]#
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463

upsforum

Well-Known Member
Jul 27, 2005
473
0
166
I applied but now received this

repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.conf: No such file or directory
repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.rfc1912.zones: No such file or directory
repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.iscdlv.key: No such file or directory
repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.root.key: No such file or directory
repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.conf: No such file or directory
repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.rfc1912.zones: No such file or directory
repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.iscdlv.key: No such file or directory
repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.root.key: No such file or directory
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Try running the following commands:

Code:
/scripts/clear_orphaned_virtfs_mounts
/scripts/fixquotas
Do you still see the /var/named/chroot entries in the /proc/mounts file?

Thank you.
 

upsforum

Well-Known Member
Jul 27, 2005
473
0
166
this is my /proc/mounts

Code:
/dev/ploop28790p1 / ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /dev devtmpfs rw,relatime,mode=755 0 0
none /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
none /dev/shm tmpfs rw,relatime 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
/dev/ploop28790p1 \040(deleted)/var/named/chroot/etc/named.conf ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/ploop28790p1 \040(deleted)/var/named/chroot/etc/named.rfc1912.zones ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/ploop28790p1 \040(deleted)/var/named/chroot/etc/named.iscdlv.key ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/ploop28790p1 \040(deleted)/var/named/chroot/etc/named.root.key ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Are you able to remove these mounts with the "umount" command? EX:

Code:
umount /var/named/chroot/etc/named.conf
Thank you.