[CentOS] CENTOS DHCP Server and windows computer/host name ISSUE
Hi list, We are running few Centos5.4 and windows 2003 instance on CENTOS XEN virtualized environment , all the guest are getting the IP/NETWORK/GATEWAY setting from the DHCP Server running on CENTOS 5 server and the DNS configured on the windows 2003 server. All of the CENTOS Guests are getting the IP and the host name as per the DNS forward look up configured. For example If the CENTOS guest1 get x.y.z.1 as an IP and it gets the host name as machine1.example.com and so on . But none of the windows guest is getting the hostname or computer name from the DHCP server even though its getting the ip from the centos DHCP server properly , instead all the windows guest are setting up the hostname or computername as ORGNAME-withsomenumbers . eg: techsoft-342156 as a computer name . See at present we are not doing any static mapping of IP/HOSTNAME based on windows GUEST MAC address. So statically mapping the hostname/ip with guest MAC address is out of question now. Is there is any configuration to be tuned on dhcpd.conf or any files or parameter to be tuned on windows 2003 guests to get the hostname from the DHCP/DNS . i heard about some option like "*dhcpd opt 12*" on windows regisrty level will do the job , But am blank how to get things done . Also is there is a way to tune CENTOS DHCP Server to lease the ip to the dhcp client in uniform order rather it leases randomly . If any one throws me some light on how to get this done it will be really great full for me . Regards, Lingu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Guidance on Linux Kernel/OS Programming for Beginners
Hi List, I am working on LINUX for the past six years , and am a core linux guys since i started my career on linux . Working more on Redhat / centos / Fedora based distribution system administration . with some basic bash scripting knowledge. Now am looking to deep dive into programming to contribute or innovate some thing new on linux operating system or kernel space (More importantly on kvm virtualization front since am an expert on virtualization). So i need your guidance to start my new career on linux programming front . As of now am planned to start with below sequences . C C++ Linux kernel Programming python Java Kindly provide me some good web links or beginner to advanced docs for the above languages to start , also correct me if am wrong any where . Awaiting for your valuable input Regards, lingu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Guidance on Linux Kernel/OS Programming for Beginners
Hi List, I am working on LINUX for the past six years , and am a core linux guys since i started my career on linux . Working more on Redhat / centos / Fedora based distribution system administration . with some basic bash scripting knowledge. Now am looking to deep dive into programming to contribute or innovate some thing new on linux operating system or kernel space (More importantly on kvm virtualization front since am an expert on virtualization). So i need your guidance to start my new career on linux programming front . As of now am planned to start with below sequences . C C++ Linux kernel Programming python Java Kindly provide me some good web links or beginner to advanced docs for the above languages to start , also correct me if am wrong any where . Awaiting for your valuable input Regards, lingu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [Solved] BMC IPMI configuration on centos 5.4 64 BIT Server
hI all , I configured the IPMI Setting with the help of Intel management cd no my imitool as well fence_ipmilan works like an charm on all the 25 nodes. On Thu, Mar 4, 2010 at 9:52 AM, Rajagopal Swaminathan wrote: > Greetings, > > On Thu, Mar 4, 2010 at 12:39 AM, Joseph L. Casale > wrote: >>>Really its very urgent i have to handover the server in next 12 hours. > > If you are in India, get somehow the APC or any other power fencing or > put the authorities on to me I will tell and educate them. > > I don't trust HCL much. > > Regards, > > Rajagopal > ___ > 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] BMC IPMI configuration on centos 5.4 64 BIT Server
Hi all, I am implementing two node cluster , but the hardware they given me contains only the Base Board Management controller (BMC) . Also I HEARD SOME BMC wont support power fencing, how can i check my There is no management port like HP ILO or Dell DRAC for cluster fencing . This hardware belongs to the vendor HCL. For BMC Configuration they are providing the exe setup file for windows to configure IPMI ip,usernmae and password but there is no setup tools for centos 5. So i want help from some one in configuring the IPMI from Operating system level from OpenIpmi tools. if some one provide me the step by step instruction or how to in configuring the IPMI to use fence_ipmi on centos 5.4 x86_64 hardware . Really its very urgent i have to handover the server in next 12 hours. While googling i also came across the bug in ipmi of centos 5.4 is there is any way to fix alos help me a lot. https://bugzilla.redhat.com/show_bug.cgi?id=482913 Thanks in advance Regards, paps ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] pls help about changing network card but assign to another ethx
Hi, Thoght of sharing this with u will be handy I was upgrading my workstation yesterday, only the case and harddisks remained the same. Almost everything went well, even new init ramdisk wasn't required, but I was stuck on networking for a while. And the problem was called "eth0_rename". After querying google it was clear that this is the result of "network device persistency" feature and the cause is different MAC address assigned to the new eth0 device. Solution was easy - remove the old records from /etc/udev/rules.d/70-persistent-net.rules And add some custom udev mac binding rules like below cat /etc/udev/rules.d/10-redhat-custom-net.rules ##Realtek KERNEL=="eth*", SYSFS{address}=="00:16:3e:66:20:c7", NAME="eth0" ###Accton KERNEL=="eth*", SYSFS{address}=="00:16:3e:7e:a1:9c", NAME="eth1" http://www.gscore.org/blog/index.php/post/2008/12/16/udev-hell Thanks On Fri, Feb 5, 2010 at 12:51 AM, adrian kok wrote: > Hi > > I change eth1 from realtek to dlink but the centos is showing eth2 instead of > eth1 > > In another version of linux, I can change 70-persistent-net.rules but > > I check /etc/udev/rules.d/70-persistent-net.rules but it doesn't have the > file 70-persistent-net.rules > > please help > > Thank you > > Send instant messages to your online friends http://uk.messenger.yahoo.com > ___ > 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] perl question
Hi, Check line 18. of your code or paste your code so it will be more usefull and which version of OS you are running. On Sat, Jan 30, 2010 at 12:58 AM, Jerry Geis wrote: > I am trying to run a perl script that said it needs Net::SMPP > > I ran this: > your_host]# *perl -MCPAN -e shell* > cpan shell -- CPAN exploration and modules installation (v1.76) > ReadLine support enabled > cpan> *install Net::SNMP > > seemed to work. no errors reported. > however when I run perl I still get the same error saying needs > > ./sendmessage.pl > Can't locate Net/SMPP.pm in @INC (@INC contains: > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) > at ./sendmessage.pl line 18. > BEGIN failed--compilation aborted at ./sendmessage.pl line 18. > > What else do I need? > > Jerry > * > ___ > 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] Microsoft .mdb files in Open office
Hi, Is there is anyway to Open Microsoft .mdb files in open office on Centos 5.3 ? Thanks linux ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Apache Server Tuning for Performance
Hi all, I am facing facing performance issues with our web servers which is working for concurrent 250 requests properly and then stops responding when the requests are more than 250 . The current configuration parameters are as follows : apachectl -version Server version: Apache/2.0.52 Server built: Jan 30 2007 09:56:16 Kernel : 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux Server Hardware : MAIN MEMORY (i) Memory Size 4 GB Dual-Core Intel 5160 processors. httpd.conf Timeout 300 KeepAlive On MaxKeepAliveRequests 1000 KeepAliveTimeout 150 ## Server-Pool Size Regulation (MPM specific) # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # ServerLimit: maximum value for MaxClients for the lifetime of the server # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 8 MinSpareServers5 MaxSpareServers 20 ServerLimit 251 MaxClients 251 MaxRequestsPerChild 4000 # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 2 MaxClients150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 I want to know about the difference between worker MPM and Prefork MPM , how to find out which one will be used by my apache server and the recommended one for highly loaded server.If some one provide me the link that best explains above two comparison also be very use full. Can any one guide me tuning to be done for the maximum utilization of the Resources and better performance of the Servers. Regards, lingu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] oracle10gR2 start up script for Centos 5 rgmanager
HI, I am running oracle 10GR2 with ASM (raw luns) on two nodes running centos 5 cluster for high availability.Can any one provide me the oracle star tup (start,stop and status )script to use by the cluster rgmanager so that it will stop , start and check the status by the cluster .I am in last stage of testing but i get s trucked up because of the script. All of my oracle instances are running on the storage. Regards, papu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] kcapid heavy cpu usage
Hi, We are running java application on centos4 update 5 64 bit on sun blade x6250 hardware.But for the last couple of days we observed that kacpid daemon eating more cpu.Attached the top output below.Can any one suggest me how to fix the same since it is my critical production i need your help urgently . Top output PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 27 root 15 -10 000 R 98 0.0 5572:18 kacpid 25578 root 16 0 6416 1208 752 R9 0.0 0:08.96 top 6822 root 15 0 1343m 77m 14m S4 1.0 87:21.45 java 6102 root 16 0 41192 9900 1292 S0 0.1 0:24.37 aws_sadmin 1 root 16 0 4756 552 460 S0 0.0 0:01.38 init 2 root RT 0 000 S0 0.0 0:00.06 migration/0 Regards, pap ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] iptables questionson CentOS
Hi, If you want to allow one ip to access one destination then you can write the below rule in iptables. iptables -t nat -A POSTROUTING -s 192.168.101.230 -d centosip -j MASQUERADE iptables -t nat -A POSTROUTING -d 192.168.101.230 -s centosip -j MASQUERADE For remianing ip you can write a simple drop rule to centos ip. This is will work you out i am sure. Regards, paps On Thu, Dec 4, 2008 at 2:51 PM, Indunil Jayasooriya <[EMAIL PROTECTED]> wrote: > Hi, > > I know these are a few iptbales questions. NOT CentOS, anyway, I am > running a firewall on centos 5.x. > > If you can response, it would be fine. > > > I want to add a SNAT rule for one user in LAN to access one particular > destination on the internet. > > Let's say www.centos.org > > I added the below rule. But . it does NOT work > Pls assume 1.2.3.4 is the real ip of the firewall. > ip address 192.168.101.230 is the client PC > > iptables -t nat -A POSTROUTING -o eth0 -s 192.168.101.230 -j SNAT > --to-source 1.2.3.4 -d www.centos.org > > Any idea to achieve it? > > And Also, > > the below rule excludes 1 ip. it works fine. > > iptables -t nat -A PREROUTING -p tcp -m multiport -s ! 192.168.1.9 > --destination-port 80,465,995 -j DNAT --to-destination :3128 > > I want to exclude about 4 or 5 ips. > > let's say 192.168.1.11, 192.168.1.19, 192.168.1.20,192.168.1.25 > > Is there a way to do it? > > Hope to hear from you. > > > > -- > Thank you > Indunil Jayasooriya > ___ > 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] Adding RAM
Hi, Tell me how much is the swap space you assigned and also you can use below commands to trace out the cause of such huge I/O.Also are using SAN or local storage?.I don't think so you need explanation for below commands.Run all the commands and redirect it to some file and send it to the list. Normally there is no need to fine tune any parameter to upgrade memory on centos 4.7 32 bit, because i am running centos production with 8GB of physical memory but with only 4GB of swap space(not twice the physical ram normaly people use causing huge I/O while using swap memmory because system have to read cylinders and tracks of 8GB takes long time compared to 4GB of swap space) while true ; do (ps -eo pcpu,pid,user,args |sort -k1 -r |head -10 >> /root/sys-reports/top10-cpu-utilzn) ; sleep 2 ; done sar -u 2 1000 > /root/sys-reports/sar.txt mpstat -P ALL 5 | tee mpstat.txt top -b -i |tee top.txt vmstat -m 5 > vmstat.txt iostat -x 5 >> iostat.txt Regards, pap On Sat, Dec 6, 2008 at 5:22 AM, Matt <[EMAIL PROTECTED]> wrote: > I have a server running Centos 4.7 32bit. Will moving from 4Gig of > RAM to 8Gig do any good? Since its 32bit I assume it will only be > able to address the first 4Gig not? When I installed CentOS I did not > do anything special to enable using more then 4Gig if thats required. > Exim, spamassassin and Clamd seem to be the biggest load on this > machine. My biggest bottle neck is disk I/O anyway. > > Wish I had installed CentOS 5.x 64bit way back when but some of the > software I was using at time listed support for it as beta. > > Matt > ___ > 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] squid server for 10,000 accounts
Hi all, I am running squid proxy server integrated with Content filter Dansguardian, squidguard and clamav for Http level scanning on centos 5 .Configured webmin management tool to create and manage access control using squidguard plug in. Now it is serving request for 100 machines and Below is my hardware details. Hardware Details SUN BLADE 6000 2.67 GHz * 1 4 Gb RAM 2*146Gb HDD we intend to scale proxy servers with around 7000 to 1 users in future.Just i want to confirm whether the the above hardware is sufficient enough to serve 1 users.If not please recommend me the server configuration i have to go for and also how to calculate the same. And also to prevent single point of failure is it possible to configure squid in any load balancing mode (with another dedicated server) if so just guide me how to do the same or provide me the link that best explains squid proxy server in load balancing mode. Anticipating your reply Regards, Craz paps ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to delay failed ssh auth
Hi, You can create the iptables rules to block the ssh connection limit rate wise. Create a new chain named ssh_check /sbin/iptables -N SSH_CHECK Redirecting all request for 22 port to new chain SSH_CHECK /sbin/iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j SSH_CHECK Then allow all of your valid remote ip's that are allowed to login /sbin/iptables -I SSH_CHECK 1 -s 1.2.3.4 -j ACCEPT /sbin/iptables -I SSH_CHECK 2 -s 10.10.2.2 -j ACCEPT Then for the rest of the ip it wont allow more than 4 connection within this 60 seconds interval, its useful to prevent brute force attack. /sbin/iptables -A SSH_CHECK -m recent --update --seconds 60 --hitcount 4 --name SSH -j DROP Regards. crazy paps On Fri, Nov 28, 2008 at 12:36 PM, Veiko Kukk <[EMAIL PROTECTED]> wrote: > Hi! > > I need to delay failed ssh password authentication as an additional measure > against brute force ssh attacks. I understand, that shoud be accomplished > through pam, but googling gave me no example. I have CentOS 5.2. > > -- > Veiko Kukk > ___ > 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] Cluster fail over database getting stopped
Hi, I am running RHEL3u8 two node cluster,which is running oracle 9i database.I am facing problem while rebooting second node causing my oracle database get stopped in the active node 1 which is running my database.so i checked below probabilities to find out when the database get stopped. Version clumanager-1.2.31-1.x86_64.rpm I stopped both the node. started first node when the clumanager started during boot cycle on node 2 database running on node 1 get stopped(checked my oracle alert log telling the database get stopped exactly at the same time clumanager started on node 2) After that When i run clustat on node 1 its telling the service(database) is running. I am using /etc/init.d/scriptdb.sh in my cluster config file which is having both start.stop and status check. test 2: I stopped both the node and started the node 2 first and waited for 30 minutes. oracle was up and running by default on node 2 (clumanger started oracle service) started node 1 after 20 minutes when the clumanager started during boot cycle on node 1 database running on node 2 get stopped(checked my oracle alert log telling the database get stopped exactly at the same time clumanager started on node 1) After that When i run clustat on node 2 its telling the service(database) is running. Test2: If cluster relocate the service automatically by itself form node 1 to node 2 or node 2 to node 1 for some reason during the critical day time my database is not getting up during fail over on both the nodes. Test 3: If i manually relocate the service from node 1 to node 2 and vice versa my database is not getting stopped and it is working fine. Please some one help me to fix out this issue ,it is my critical production database. Below is my cluster config file cluster.xml Regards, crazy pap ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos