[CentOS] CENTOS DHCP Server and windows computer/host name ISSUE

2010-08-24 Thread linux-crazy
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


Re: [CentOS] [Solved] BMC IPMI configuration on centos 5.4 64 BIT Server

2010-03-06 Thread linux-crazy
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
raju.rajs...@gmail.com wrote:
 Greetings,

 On Thu, Mar 4, 2010 at 12:39 AM, Joseph L. Casale
 jcas...@activenetwerx.com 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

2010-03-03 Thread linux-crazy
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

2010-02-05 Thread linux-crazy
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 adriankok2...@yahoo.com.hk 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

2010-01-29 Thread linux-crazy
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 ge...@pagestation.com 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

2009-11-23 Thread linux-crazy
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

2009-01-20 Thread linux-crazy
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

IfModule prefork.c

StartServers   8
MinSpareServers5
MaxSpareServers   20
ServerLimit  251
MaxClients   251
MaxRequestsPerChild  4000
/IfModule

# 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
IfModule worker.c
StartServers 2
MaxClients150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule

 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

2009-01-06 Thread linux-crazy
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

2009-01-03 Thread linux-crazy
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] Adding RAM

2008-12-09 Thread linux-crazy
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


Re: [CentOS] iptables questionson CentOS

2008-12-09 Thread linux-crazy
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


[CentOS] squid server for 10,000 accounts

2008-12-06 Thread linux-crazy
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

2008-11-28 Thread linux-crazy
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

2008-11-23 Thread linux-crazy
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

?xml version=1.0?
cluconfig version=3.0
  clumembd broadcast=yes interval=100 loglevel=5
multicast=no multicast_ipaddress= thread=yes tko_count=25/
  cluquorumd loglevel=7 pinginterval=5 tiebreaker_ip=/
  clurmtabd loglevel=7 pollinterval=4/
  clusvcmgrd loglevel=7/
  clulockd loglevel=7/
  cluster config_viewnumber=4
key=6672bc0a71be2ec9486f6a2f5846c172 name=DBCLUSTER/
  sharedstate driver=libsharedraw.so rawprimary=/dev/raw/raw1
rawshadow=/dev/raw/raw2 type=raw/
  members
member id=0 name=cluster1 watchdog=yes/
member id=1 name=cluster2 watchdog=yes/
  /members
  services
service checkinterval=10 failoverdomain=oracle_db id=0
maxfalsestarts=0 maxrestarts=0 name=database
userscript=/etc/init.d/script_db.sh
  service_ipaddresses
service_ipaddress broadcast=None id=0
ipaddress=20.2.135.35 monitor_link=1 netmask=255.255.0.0/
  /service_ipaddresses
  device id=0 name=/dev/cciss/c0d0p1 sharename=
mount forceunmount=yes fstype=ext3 mountpoint=/vol1
options=rw/
  /device
  device id=1 name=/dev/cciss/c0d0p2 sharename=
mount forceunmount=yes fstype=ext3 mountpoint=/vol2
options=rw/
  /device
  device id=2 name=/dev/cciss/c0d0p5 sharename=
mount forceunmount=yes fstype=ext3 mountpoint=/vol3
options=rw/
  /device
  device id=3 name=/dev/cciss/c0d0p6 sharename=
mount forceunmount=yes fstype=ext3 mountpoint=/vol4
options=rw/
  /device
  device id=4 name=/dev/cciss/c0d0p7 sharename=
mount forceunmount=yes fstype=ext3 mountpoint=/vol5
options=rw/
  /device
  device id=5 name=/dev/cciss/c0d0p8 sharename=
mount forceunmount=yes fstype=ext3 mountpoint=/vol6
options=rw/
  /device
  device id=6 name=/dev/cciss/c0d0p9 sharename=
mount forceunmount=yes fstype=ext3 mountpoint=/vol7
options=rw/
  /device
  device id=7 name=/dev/cciss/c0d0p10 sharename=
mount forceunmount=yes fstype=ext3 mountpoint=/vol8
options=rw/
  /device
/service
  /services
  failoverdomains
failoverdomain id=0 name=oracle_db ordered=no restricted=yes
  failoverdomainnode id=0 name=cluster1/
  failoverdomainnode id=1 name=cluster2/
/failoverdomain
  /failoverdomains
/cluconfig



Regards,
crazy pap
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos