<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hi guys!</DIV>
<DIV>I can’t find an answer in google, so my last hope is this mailing
list.</DIV>
<DIV> </DIV>
<DIV>Story.</DIV>
<DIV>I have two servers with same arrays. Servers connected by DRBD.</DIV>
<DIV>I used ocfs2 as file system, also I used NFS4 to access to the </DIV>
<DIV>ocfs2 drive. I do not have any idea, but the allocated descriptors in</DIV>
<DIV>/proc/sys/fs/file-nr increasing every time while drive accessed.</DIV>
<DIV>So after some time allocated descriptions over max value and all</DIV>
<DIV>processes make error “To much opened files” (something like</DIV>
<DIV>this). I do not see any error messages in log files... Any idea?</DIV>
<DIV>I haven’t sleep two days <IMG
style="BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none"
class="wlEmoticon wlEmoticon-sadsmile" alt="Печальная рожица"
src="cid:58094B92858442519F0B64AC1CCED919@VasylD"></DIV>
<DIV> </DIV>
<DIV>Thank you all in advance.</DIV>
<DIV> </DIV>
<DIV>Configs:</DIV>
<DIV><EM>cat /etc/drbd.conf</EM></DIV>
<DIV><EM># You can find an example in
/usr/share/doc/drbd.../drbd.conf.example</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>include "drbd.d/global_common.conf";</EM></DIV>
<DIV><EM>include "drbd.d/*.res";</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>resource nfs {</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM> protocol C;</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM> handlers {</EM></DIV>
<DIV><EM>
split-brain "/usr/lib/drbd/notify-split-brain.sh root";</EM></DIV>
<DIV><EM>
pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";</EM></DIV>
<DIV><EM>
pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";</EM></DIV>
<DIV><EM>
local-io-error "echo o > /proc/sysrq-trigger ; halt -f";</EM></DIV>
<DIV><EM> }</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM> startup {</EM></DIV>
<DIV><EM>
become-primary-on both;</EM></DIV>
<DIV><EM>
degr-wfc-timeout 120;</EM></DIV>
<DIV><EM> }</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM> disk {</EM></DIV>
<DIV><EM>
on-io-error detach;</EM></DIV>
<DIV><EM> }</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM> net {</EM></DIV>
<DIV><EM>
cram-hmac-alg sha1;</EM></DIV>
<DIV><EM>
shared-secret "password";</EM></DIV>
<DIV>
<DIV><EM></EM></DIV><EM>
allow-two-primaries;</EM></DIV>
<DIV><EM>
after-sb-0pri discard-zero-changes;</EM></DIV>
<DIV><EM>
after-sb-1pri discard-secondary;</EM></DIV>
<DIV><EM>
after-sb-2pri disconnect;</EM></DIV>
<DIV><EM>
rr-conflict disconnect;</EM></DIV>
<DIV><EM> }</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM> syncer {</EM></DIV>
<DIV><EM>
rate 500M;</EM></DIV>
<DIV><EM>
verify-alg sha1;</EM></DIV>
<DIV><EM>
al-extents 257;</EM></DIV>
<DIV><EM> }</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM> on st01 {</EM></DIV>
<DIV><EM>
device /dev/drbd0;</EM></DIV>
<DIV><EM>
disk /dev/sdb;</EM></DIV>
<DIV><EM>
address 192.168.3.151:7788;</EM></DIV>
<DIV><EM>
meta-disk internal;</EM></DIV>
<DIV><EM> }</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM> on st02 {</EM></DIV>
<DIV><EM>
device /dev/drbd0;</EM></DIV>
<DIV><EM>
disk /dev/sdb;</EM></DIV>
<DIV><EM>
address 192.168.3.152:7788;</EM></DIV>
<DIV><EM>
meta-disk internal;</EM></DIV>
<DIV><EM> }</EM></DIV>
<DIV><EM>}</EM></DIV>
<DIV> </DIV>
<DIV>---</DIV>
<DIV><EM>cat /etc/ocfs2/cluster.conf</EM></DIV>
<DIV><EM>#/etc/ocfs2/cluster.conf</EM></DIV>
<DIV><EM>node:</EM></DIV>
<DIV><EM> ip_port = 7777</EM></DIV>
<DIV><EM> ip_address = 192.168.1.151</EM></DIV>
<DIV><EM> number = 1</EM></DIV>
<DIV><EM> name = st01</EM></DIV>
<DIV><EM> cluster = ocfs2</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>node:</EM></DIV>
<DIV><EM> ip_port = 7777</EM></DIV>
<DIV><EM> ip_address = 192.168.1.152</EM></DIV>
<DIV><EM> number = 2</EM></DIV>
<DIV><EM> name = st02</EM></DIV>
<DIV><EM> cluster = ocfs2</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>cluster:</EM></DIV>
<DIV><EM> node_count = 2</EM></DIV>
<DIV><EM> name = ocfs2</EM></DIV>
<DIV><EM>---</EM></DIV>
<DIV><EM>cat /etc/exports</EM></DIV>
<DIV><EM># /etc/exports: the access control list for filesystems which may be
exported</EM></DIV>
<DIV><EM>#
to NFS clients. See exports(5).</EM></DIV>
<DIV><EM>/snfs
192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check,fsid=0)</EM></DIV>
<DIV><EM>/snfs/projects
192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)</EM></DIV>
<DIV><EM>/snfs/configs
192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)</EM></DIV>
<DIV><EM>/snfs/variables
192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)</EM></DIV>
<DIV><EM>/snfs/backups
192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)</EM></DIV>
<DIV>---</DIV></DIV></DIV></BODY></HTML>