Articles of linux

如何在降级模式下运行CentOS(红帽)群集?

我在CentOS 6.5上安装了Red Hat的集群软件,并使用它来提供从一个networking到另一个networking的冗余路由。 这工作正常,我有一对盒子提供服务,所以如果一个失败(例如,如果我通过删除其networking连接testing),另一个接pipe路由。 但是,如果我必须对剩下的盒子做任何事情,由于rgmanager的问题,我无法重新启动它: service rgmanager stop 挂起,停止这个过程的唯一方法是kill -9它。 这显然也会影响任何试图停止服务的操作,如reboot或reboot 。 当我设法自己启动服务器时,虽然集群启动,但是rgmanager并没有显示为在clustat运行,并且冗余路由服务都不可见,更不用说启动了。 例如,如果将这些盒子部署到远程位置,并且在我们有机会更换出现故障的盒子之前需要closures电源,这可能会导致问题。 这是我的cluster.conf: <?xml version="1.0"?> <cluster config_version="2" name="router-ha"> <fence_daemon/> <clusternodes> <clusternode name="router-01" nodeid="1"/> <clusternode name="router-02" nodeid="2"/> </clusternodes> <cman expected_votes="1" two_node="1"/> <fencedevices/> <rm> <failoverdomains/> <resources> <ip address="10.0.0.1" monitor_link="1" sleeptime="0"/> <ip address="10.0.0.2" monitor_link="1" sleeptime="0"/> <ip address="10.2.0.1" monitor_link="1" sleeptime="0"/> <ip address="10.4.0.1" monitor_link="1" sleeptime="0"/> </resources> <service autostart="1" […]

代理服务器在我的Linux Mint服务器上没有被禁用?

我已经取消设置所有代理环境variables,并且在networking代理下将代理更改为无。 尽pipe这样做,每当我运行sudo apt-get更新它尝试连接到代理服务器。 问题在哪里?

freeSSHd SCP Linux到Windows失败,“通道0上的exec请求失败”

Windows已经安装了freeSSHd。 使用Windowslogin凭据通过SSH从Ubuntu 14.04 LTSloginssh可以正常工作。 使用SFTPlogin也可以正常工作。 此testing正在从VirtualBox中的虚拟机运行到运行Windows 7 Professional的主机。 尝试各种组合(端口是2222): scp -v -P 2222 [email protected]:at.exe . 失败 Next authentication method: password [email protected]'s password: debug1: Authentication succeeded (password). Authenticated to 172.26.170.180 ([172.26.170.180]:2222). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug1: Sending command: scp -v -f at.exe […]

Nagios检查未知的自定义脚本

当我手动运行用户nagios时,我有bash脚本返回正确的结果。 在nagiosconfiguration中configuration失败。 nagiosconfiguration中的条目 define command { command_name check_s3descrepency command_line /usr/lib64/nagios/plugins/check_s3descrepency $ARG1$ } define service{ use generic-service service_description Check android_event S3 descrepency host_name nagios-server check_command check_s3descrepency!android_event } [root@nagios nagios]# sudo -u nagios /usr/lib64/nagios/plugins/check_s3descrepency android_event OK – 2014-05-07-22-00 Data size match with pre week 2014-04-30-22-00 by 102% [root@nagios nagios]# 启用debugging,以下是日志 [1399529584.757820] [016.0] [pid=1089] Checking service 'Check android_event […]

Red Hat 6使用freetds连接到MS SQL Server 2005; pdo_dblib和php

我在使用freetds从红帽子框连接到我的Microsoft SQL Server 2005时遇到问题。 我的最终目标是能够使用php的PDO进行连接,但在使用“tsql”进行testing时似乎无法连接。 我不认为这是一个防火墙问题,因为我可以telnet到它就好了。 $ telnet <ip> 1433 Trying <ip>… Connected to <ip>. Escape character is '^]'. 运行下面的命令会产生以下结果: $ TDSVER=7.1 tsql -H <ip> -p 1433 -U <user> -P <pass> locale is "en_US.UTF-8" locale charset is "UTF-8" using default charset "UTF-8" 5Error 20003 (severity 6): Adaptive Server connection timed out OS error 115, "Operation […]

反向代理模式下的Squid:需要重写主机头

我试图在服务器上部署鱿鱼,我可以指向一些域名,并从我的主域www.example.com,这是我的私人networking加载内容。 基本上我需要一种方法来重写从客户端发送到www.example.com的主机头,否则后端服务器将不会响应未知的虚拟主机(不能改变这一点)。 有没有办法做到这一点? 已经尝试指定defaultsite,但只有在客户端没有发送主机头时才起作用。 也试过 header_replace Host www.example.com 没有效果。 TIA

networkingping回复:延迟交替低和高

我在networking中遇到一台机器的麻烦。 当我ping它时,ping回应像这样旋转: 64 bytes from 10.0.100.10: icmp_seq=156 ttl=62 time=100 ms 64 bytes from 10.0.100.10: icmp_seq=157 ttl=62 time=1099 ms 64 bytes from 10.0.100.10: icmp_seq=158 ttl=62 time=93.0 ms 64 bytes from 10.0.100.10: icmp_seq=159 ttl=62 time=1091 ms 64 bytes from 10.0.100.10: icmp_seq=160 ttl=62 time=84.3 ms 什么可能导致这种问题? 我正在ping的机器是Ubuntu 12.04服务器。 我无法通过SSH访问它,但它已经启动并正在运行。

升级RAID 1到RAID 0 + 1和引导程序问题

我正在尝试将当前的RAID 1转换为RAID0 + 1,并在安装bootloader时遇到问题 – 请看看我在做什么。 我目前的configuration是RAID1(2 * 10GB): [root @ localhost〜]#mdadm –detail / dev / md0 的/ dev / md0的: Version : 1.0 Creation Time : Thu May 8 20:13:26 2014 Raid Level : raid1 Array Size : 10279808 (9.80 GiB 10.53 GB) Used Dev Size : 10279808 (9.80 GiB 10.53 GB) Raid Devices […]

RabbitMQ服务器随机,神秘停止

我按照他们网站上的RPM安装说明在我的EC2盒子上安装了RabbitMQ。 我的操作系统是CentOS。 rabbitMQ服务器偶尔停止运行,在rabbitmq shutdown_err日志中什么也没有显示出来,并且没有任何关于rabbitmq的其他日志显示出来。 我不确定哪些信息有助于debugging,因此无论您需要什么,只要问一下,我都会提供。

build立多个VPN与静态IP与PPTP只有1 VPNlogin

我有一个VPS与Ubuntu 12.04的X64,我需要连接118 VPN的接口(PON VPN名称)。 我已经做了一个脚本,创build他们所有的问题是,没有接口将有一个独特的本地IP地址,我认为这是因为脚本的速度,因为当我运行它慢一点效果更好(但仍然不是一切都是独特的)..我已经尝试过,连续5个小时与其他程序员search,我们找不到任何好东西。 我只需要给所有vpn主机名不同的静态ip的和我的问题解决了,但我不能得到它的工作,即使不与configuration文件。 在此先感谢你们!