Re: [CentOS] Persisting iproute2 routes and rules

2009-09-11 Thread Justin Yao
you can add the routes to:
 /etc/sysconfig/network-scripts/route-eth0
 /etc/sysconfig/network-scripts/route-eth1
etc.

check script /etc/sysconfig/network-scripts/ifup-routes for details


On Fri, Sep 11, 2009 at 2:06 PM, Diogo Sperb Schneider  wrote:

> Greetings!
>
> I have defined a few routes and rules with:
>
> ip route add ...
> ip rule add ...
>
> And now I'd like to persist those so they're loaded when the system boots
> up.
>
> I'm doing this by means of calling a specific script from
> /etc/rc.d/rc.local but I believe there must be something cleaner than
> that, like another existing file.
>
> Thanks in advance,
> Diogo
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Persisting module loading

2009-09-11 Thread Justin Yao
You could put them into /etc/sysconfig/iptables-config

On Fri, Sep 11, 2009 at 2:08 PM, Diogo Sperb Schneider  wrote:

> Greetings!
>
> I have loaded a few modules:
>
> modprobe ip_nat_ftp
> modprobe ip_conntrack_ftp
>
> And now I'd like to persist those so they're loaded when the system boots
> up.
>
> I'm doing this by means of calling a specific script from
> /etc/rc.d/rc.local but I believe there must be something cleaner than
> that, like another existing file.
>
> I tried the /etc/rc.modules thing as shown in
>
> http://centos.org/docs/5/html/Deployment_Guide-en-US/s1-kernel-modules-persistant.html
> but /etc/rc.modules was not being called automatically until I called
> it from /etc/rc.d/rc.local
>
> Thanks in advance,
> Diogo
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Investigate the root cause of server reboot

2009-09-06 Thread Justin Yao
Hi Barry,

Thanks for your suggestion.
The load of my server is very light. I'll give remote syslog a try. If
remote syslog can't catch anything extra, is there any other clue?

Thanks,
Justin


On Sun, Sep 6, 2009 at 10:45 AM, Barry Brimer  wrote:

> > My CentOS will reboot every several days. There's nothing in
> > /var/log/messages. I want to find out why it reboots automatically. Is
> there
> > any log I can look at? Or any suggestions to monitor the server activity?
>
> You might try setting up remote syslogging to see if you catch anything
> extra there .. besides that .. if you have any indication that it is load
> related .. you might look at hangwatch
>  to try and get information
> from sysrq if load becomes too high.
>
> Barry
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Investigate the root cause of server reboot

2009-09-06 Thread Justin Yao
Hi,

My CentOS will reboot every several days. There's nothing in
/var/log/messages. I want to find out why it reboots automatically. Is there
any log I can look at? Or any suggestions to monitor the server activity?

Thanks,
Justin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos