cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 张仕博 <zhang...@neusoft.com>
Subject 答复: 答复: 虚拟路由磁盘写满导致不工作
Date Fri, 29 Aug 2014 05:13:45 GMT
高人,好用!!



-----邮件原件-----
发件人: linuxbqj@gmail.com [mailto:linuxbqj@gmail.com] 
发送时间: 2014年8月29日 13:11
收件人: users-cn
主题: Re: 答复: 虚拟路由磁盘写满导致不工作

找下 conntrackd.conf  把其中的 LogFile on 把这条设置为off
#
# General settings
#
General {
#
# Set the nice value of the daemon. This value goes from -20 # (most favorable scheduling)
to 19 (least favorable). Using a # negative value reduces the chances to lose state-change
events.
# Default is 0. See man nice(1) for more information.
#
Nice -1
#
# Select a different scheduler for the daemon, you can select between # RR and FIFO and the
process priority (minimum is 0, maximum is 99).
# See man sched_setscheduler(2) for more information. Using a RT # scheduler reduces the chances
to overrun the Netlink buffer.
#
# Scheduler {
# Type FIFO
# Priority 99
# }
#
# Number of buckets in the caches: hash table # HashSize 8192 # # Maximum number of conntracks:
# it must be >= $ cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max
#
HashLimit 65535
#
# Logfile: on (/var/log/conntrackd.log), off, or a filename # Default: off # #LogFile on #
# Syslog: on, off or a facility name (daemon (default) or local0..7) # Default: off # #Syslog
on # # Lockfile # LockFile /var/lock/conntrack.lock # # Unix socket configuration # UNIX {
Path /var/run/conntrackd.ctl Backlog 20 } # # Netlink socket buffer size # NetlinkBufferSize
262142 # # Increase the socket buffer up to maximun if required # NetlinkBufferSizeMaxGrowth
655355 # # By default, the daemon receives state updates following an # event-driven model.
You can modify this behaviour by switching to # polling mode with the PollSecs clause. This
clause tells conntrackd # to dump the states in the kernel every N seconds. With regards to
# synchronization mode, the polling mode can only guarantee that # long-lifetime states are
recovered. The main advantage of this method # is the reduction in the state replication at
the cost of reducing the # chances of recovering connections.
#
# PollSecs 15
#
# Event filtering: This clause allows you to filter certain traffic, # There are currently
three filter-sets: Protocol, Address and # State. The filter is attached to an action that
can be: Accept or # Ignore. Thus, you can define the event filtering policy of the # filter-sets
in positive or negative logic depending on your needs.
#
Filter {
#
# Accept only certain protocols: You may want to log the # state of flows depending on their
layer 4 protocol.
#
Protocol Accept {
TCP
# UDP
}
#
# Ignore traffic for a certain set of IP's.
#
Address Ignore {
IPv4_address 127.0.0.1 # loopback
# IPv6_address ::1
}
#
# Uncomment this line below if you want to filter by flow state.
# The existing TCP states are: SYN_SENT, SYN_RECV, ESTABLISHED, # FIN_WAIT, CLOSE_WAIT, LAST_ACK,
TIME_WAIT, CLOSED, LISTEN.
#
# State Accept {
# ESTABLISHED CLOSED TIME_WAIT CLOSE_WAIT for TCP # } } } Stats { # # If you enable this option,
the daemon writes the information about # destroyed connections to a logfile. Default is off.
# Logfile: on, off, or a filename
# Default file: (/var/log/conntrackd-stats.log) #

LogFile on 把这条设置为off


# If you want reliable event reporting over Netlink, set on this # option. If you set on this
clause, it is a good idea to set off # NetlinkOverrunResync. This option is off by default
and you need # a Linux kernel >= 2.6.31.
#
# NetlinkEventsReliable Off
#
# Enable connection logging via Syslog. Default is off.
# Syslog: on, off or a facility name (daemon (default) or local0..7) # If you set the facility,
use the same as in the General clause, # otherwise you'll get a warning message.
#
#Syslog on
}

2014-08-28 14:44 GMT+08:00 张仕博 <zhangshb@neusoft.com>:
> 现在就是定时清的方式,急需根本的解决办法
>
>
> -----邮件原件-----
> 发件人: aix.niuy [mailto:aix.niuy@gmail.com]
> 发送时间: 2014年8月28日 14:41
> 收件人: users-cn
> 主题: 回复: 虚拟路由磁盘写满导致不工作
>
> 做调度定时清空 我也遇到了没找到禁止写入的办法 现在1分钟进行一次
>
> cat /dev/null > /var/log/conntrackd-stats.log 2>/dev/null
>
> 然后加入
> /var/spool/cron/crontabs/root
> 2014-08-28
>
>
>
> aix.niuy
>
>
>
> 发件人:张仕博 <zhangshb@neusoft.com>
> 发送时间:2014-08-28 14:34
> 主题:虚拟路由磁盘写满导致不工作
> 收件人:"users-cn"<users-cn@cloudstack.apache.org>
> 抄送:
>
> router虚拟机磁盘被conntrackd服务日志写满大家遇到过么?
>
> Conntrackd-stats.log文件太大了,有什么办法禁用日志写入么?
>
>
>
> ----------------------------------------------------------------------
> ----------------------------- Confidentiality Notice: The information 
> contained in this e-mail and any accompanying attachment(s) is 
> intended only for the use of the intended recipient and may be 
> confidential and/or privileged of Neusoft Corporation, its 
> subsidiaries and/or its affiliates. If any reader of this 
> communication is not the intended recipient, unauthorized use, 
> forwarding, printing,  storing, disclosure or copying is strictly 
> prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies
from your system. Thank you.
> ----------------------------------------------------------------------
> -----------------------------
> ----------------------------------------------------------------------
> ----------------------------- Confidentiality Notice: The information 
> contained in this e-mail and any accompanying attachment(s) is 
> intended only for the use of the intended recipient and may be 
> confidential and/or privileged of Neusoft Corporation, its 
> subsidiaries and/or its affiliates. If any reader of this 
> communication is not the intended recipient, unauthorized use, 
> forwarding, printing,  storing, disclosure or copying is strictly 
> prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies
from your system. Thank you.
> ----------------------------------------------------------------------
> -----------------------------



--
白清杰 (Born Bai)

Mail: linuxbqj@gmail.com

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)

is intended only for the use of the intended recipient and may be confidential and/or privileged
of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication
is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or
copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please

immediately notify the sender by return e-mail, and delete the original message and all copies
from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------
Mime
View raw message