Re: [CentOS] Does CentOS support dual graphics cards with 2 monitors each?

2013-04-07 Thread Richard Karhuse
I've got a triple-head set-up running where 1 monitor is off
the internal Intel HD-4000 GPU and 2x monitors are off a GT550-Ti
using the nVidia drivers.  I could not get xrandr support to work
(and attributed that to Intel / nVidia not co-operating).  I found that
using the nVidia xserver setting GUI and hand-editing the xorg.conf
file to be the best solution.  I have similar (but slightly) different
set-ups working under Fedora-17 and CentOS-6.  All 3x screens are
in on large canvass (so screens can be drag from any monitor to any
where on the canvass, e.g., xinerama) across 2x X-servers -- so full
screen either occupies the 1x Dell 24" or the 2x E-Bay 27" "specials".
The key I found is locking things in with the BusID w/PCI designation
settings.

HTH

   -rak-

Here is the xorg.conf -- in case that helps:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 304.37  (mockbuild@)  Tue Aug 14 06:30:17 CEST 2012


Section "ServerLayout"
Identifier "Layout0"
Screen  0  "Screen0" 0 0
Screen1  "Screen1" RightOf "Screen0"
InputDevice"Keyboard0" "CoreKeyboard"
InputDevice"Mouse0" "CorePointer"
Option "Xinerama" "1"
EndSection

Section "Files"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from data in "/etc/sysconfig/keyboard"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
EndSection

Section "Monitor"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName  "FRT DIGITAL"
HorizSync   30.0 - 91.0
VertRefresh 56.0 - 61.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier"Monitor1"
VendorName "Dell"
ModelName  "Dell 2405FPW"
HorizSync   30.0 - 81.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName  "GeForce GTX 550 Ti"
BusID   "PCI:1:0:0"
EndSection

Section "Device"
Identifier "Device1"
Driver"intel"
VendorName "intel"
BoardName  "intel"
BusID"PCI:0:2:0"
Option"monitor-HDMI2" "Monitor1"
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device0"
Monitor"Monitor0"
DefaultDepth24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "DFP-0: 2560x1440 +0+0, DFP-2:
2560x1440 +2560+0; DFP-0: nvidia-auto-select +0+0, DFP-2:
nvidia-auto-select +2560+0"
#Option "metamodes" "DFP-0: 2560x1440 +0+0; DFP-0:
nvidia-auto-select +0+0"
SubSection "Display"
Depth   24
EndSubSection
EndSection


Section "Screen"
Identifier "Screen0"
Device"Device1"
Monitor"Monitor1"
DefaultDepth 24
Option  "metamodes" "HDMI1: 1920x1200 +0+0"
SubSection"Display"
   Depth 24
EndSubSection
EndSection
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] qemu-kvm high cpu usage with idle windows guest

2013-04-07 Thread Micky
Windows 2k8 R2 guest with updated virtio drivers is idle inside but on
the host qemu-kvm process uses 7-15% cpu.

Things that have been tried without any significant success
- removed tablet device
- manually set cpu topology for cores per socket

Is it just me or the qemu-kvm has little tolerance with windows?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [CentOS-virt] qemu-kvm high cpu usage with idle windows guest

2013-04-07 Thread Micky
On Sun, Apr 7, 2013 at 8:32 PM, Zoltan Frombach  wrote:
> Check out these threads they may help you solve your issue with Windows VMs:

Well I did. Upstream provides rpms till version 0.12.1.x. Even the
RHEV srpm (the one I am using) has the same version. And I don't want
to compile both libvirt and qemu-kvm from source since it is the
production machine.

> http://forum.proxmox.com/threads/5770-Windows-guest-high-context-switch-rate-when-idle
>
> http://serverfault.com/questions/146922/why-is-idle-windows-vm-using-so-much-cpu


>
> On 4/7/2013 5:18 PM, Banyan He wrote:
>> Maybe you can print out what it is doing, then try to figure out if they
>> are doing good. My linux works good, never tried windows.
>>

Did. Nothing abnormal.
A quick perf shows this:

#     ..
..
#
 4.96%  qemu-kvm  [kvm]   [k] kvm_arch_vcpu_ioctl_run
 4.83%  qemu-kvm  [kvm_intel] [k] vmx_vcpu_run
 4.47%  qemu-kvm  [kernel.kallsyms]   [k] find_busiest_group
 3.23%  qemu-kvm  [kernel.kallsyms]   [k] _spin_lock
 3.10%  qemu-kvm  [kernel.kallsyms]   [k] native_write_msr_safe
 1.24%  qemu-kvm  [kernel.kallsyms]   [k] _spin_lock_irq
 1.22%  qemu-kvm  [kvm]   [k] paging64_walk_addr
 1.21%  qemu-kvm  [kvm]   [k] x86_decode_insn
 1.21%  qemu-kvm  [kvm_intel] [k] vmcs_writel

>> Banyan He
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] nfs timeout

2013-04-07 Thread Rita
hi,

I use automounter to mount to many hosts

/net//dir

When the hostname is unavaliable it seems NFS gets stuck. I would like to
set a NFS timeout (say 60 secs). If not available then error. I need to use
hardmount but is there such a thing as NFS client timeout?




-- 
--- Get your facts first, then you can distort them as you please.--
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] nfs timeout

2013-04-07 Thread keshab mahapatra
Hi Rita,
As i m not perfect on this but still you can try once as i have written bellow
You can modify a configuration file.
Search for a word called "TIMEOUT " in "/etc/sysconfig/autofs".  By
default it is 300, you need to change according your requirement.
# /etc/sysconfig/autofs
TIMEOUT=60
:wq!

# service autofs reload

On Sun, Apr 7, 2013 at 9:25 PM, Rita  wrote:
> hi,
>
> I use automounter to mount to many hosts
>
> /net//dir
>
> When the hostname is unavaliable it seems NFS gets stuck. I would like to
> set a NFS timeout (say 60 secs). If not available then error. I need to use
> hardmount but is there such a thing as NFS client timeout?
>
>
>
>
> --
> --- Get your facts first, then you can distort them as you please.--
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos



-- 
With Thanks & Regards,

Keshaba Mahapatra
Sr.Technical Consultant
Mob - +91 7569071776
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] nfs timeout

2013-04-07 Thread James Pearson
Rita wrote:
> hi,
> 
> I use automounter to mount to many hosts
> 
> /net//dir
> 
> When the hostname is unavaliable it seems NFS gets stuck. I would like to
> set a NFS timeout (say 60 secs). If not available then error. I need to use
> hardmount but is there such a thing as NFS client timeout?

If the client has already mounted the server using the hard option - and 
then the server goes away, the client will hang on the mount point until 
the server reappears - there is no such thing as a 'timeout' with hard 
mounts ...

However, if you mean reducing the mount failure timeout when the client 
attempts to mount a server that is not available, then have a look at 
the NFS 'retry' option in the nfs man page

But if you are using /etc/auto.net to automount under /net, then this 
uses showmount to find exported mounts from a server, so will error 
fairly quickly anyway if the server is available

James Pearson
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] floppy drives

2013-04-07 Thread mark
Yes, really. I've got hundreds of the damn things here at home, and I 
want to go through them and get rid of them all.

But... to do that I want to read them. I have both a 5.25" and a 3.5" 
drive, both are plugged in, but in the BIOS, all I see is the 3.5". 
Fine, I figure I'll take care of those.

Nope. I see /dev/fd0 once I've booted up, but neither konqueror nor 
mount nor fdisk works - the latter telling me that /dev/fd0 is not a 
valid block device. After some googling, I tried modprobe floppy, which 
installed it, but still no joy.

Anyone have a clue?

mark
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread Les Mikesell
On Sun, Apr 7, 2013 at 2:45 PM, mark  wrote:
> Yes, really. I've got hundreds of the damn things here at home, and I
> want to go through them and get rid of them all.
>
> But... to do that I want to read them. I have both a 5.25" and a 3.5"
> drive, both are plugged in, but in the BIOS, all I see is the 3.5".
> Fine, I figure I'll take care of those.
>
> Nope. I see /dev/fd0 once I've booted up, but neither konqueror nor
> mount nor fdisk works - the latter telling me that /dev/fd0 is not a
> valid block device. After some googling, I tried modprobe floppy, which
> installed it, but still no joy.
>
> Anyone have a clue?

What file system is on them?  Or did you do something like raw tar
writes to them?   If it is typical dos/window FAT, try the programs
from the mtools package. mdir, mcopy, etc.   I hate to fight with
stuff like that so I'd probably use a windows box connected to a samba
share to move things over.

--
  Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread mark
On 04/07/13 16:04, Les Mikesell wrote:
> On Sun, Apr 7, 2013 at 2:45 PM, mark  wrote:
>> Yes, really. I've got hundreds of the damn things here at home, and I
>> want to go through them and get rid of them all.
>>
>> But... to do that I want to read them. I have both a 5.25" and a 3.5"
>> drive, both are plugged in, but in the BIOS, all I see is the 3.5".
>> Fine, I figure I'll take care of those.
>>
>> Nope. I see /dev/fd0 once I've booted up, but neither konqueror nor
>> mount nor fdisk works - the latter telling me that /dev/fd0 is not a
>> valid block device. After some googling, I tried modprobe floppy, which
>> installed it, but still no joy.
>>
>> Anyone have a clue?
>
> What file system is on them?  Or did you do something like raw tar
> writes to them?   If it is typical dos/window FAT, try the programs
> from the mtools package. mdir, mcopy, etc.   I hate to fight with
> stuff like that so I'd probably use a windows box connected to a samba
> share to move things over.

All of 'em are old DOS. Just tried mdir a:, and the same: can't open, 
can't initials A:. I really doubt the drives themselves are dead, but

mark


-- 
"UN-altered REPRODUCTION and DISSEMINATION of this IMPORTANT information 
is ENCOURAGED!"
   - Robert McElwain, Net.kook
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread Frank Cox
On Sun, 07 Apr 2013 16:18:29 -0400
mark wrote:

> All of 'em are old DOS. Just tried mdir a:, and the same: can't open, 
> can't initials A:. I really doubt the drives themselves are dead, but

Floppy disks have a finite usable life.  Depending on where and how you have
been storing them, they may be shot.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread mark
On 04/07/13 16:22, Frank Cox wrote:
> On Sun, 07 Apr 2013 16:18:29 -0400
> mark wrote:
>
>> All of 'em are old DOS. Just tried mdir a:, and the same: can't open,
>> can't initials A:. I really doubt the drives themselves are dead, but
>
> Floppy disks have a finite usable life.  Depending on where and how you have
> been storing them, they may be shot.
>
Yeah, but I tried three of 'em, three different OEM, and three ages, 
and they all give me fdisk saying it's not a valid block device.

Is it possibly that there's some driver missing?

mark

-- 
"Necessity is the plea for every infringement of
human freedom. It is the argument of tyrants; it is
the creed of slaves." William Pitt, 1783

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


Re: [CentOS] floppy drives

2013-04-07 Thread Brian Miller
On Sun, 2013-04-07 at 16:43 -0400, mark wrote:
> On 04/07/13 16:22, Frank Cox wrote:
> > Floppy disks have a finite usable life.  Depending on where and how you have
> > been storing them, they may be shot.
> >
> Yeah, but I tried three of 'em, three different OEM, and three ages, 
> and they all give me fdisk saying it's not a valid block device.

If they were all written with the same drive it's also possible the head
alignment had drifted which will make things...interesting.

Try formatting a scratch floppy to see if you can write.  If that works
but you still can't read, evidence that it's indeed an alignment
mismatch.

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


Re: [CentOS] floppy drives

2013-04-07 Thread mark
On 04/07/13 17:11, Brian Miller wrote:
> On Sun, 2013-04-07 at 16:43 -0400, mark wrote:
>> On 04/07/13 16:22, Frank Cox wrote:
>>> Floppy disks have a finite usable life.  Depending on where and how you have
>>> been storing them, they may be shot.
>>>
>> Yeah, but I tried three of 'em, three different OEM, and three ages,
>> and they all give me fdisk saying it's not a valid block device.
>
> If they were all written with the same drive it's also possible the head
> alignment had drifted which will make things...interesting.
>
> Try formatting a scratch floppy to see if you can write.  If that works
> but you still can't read, evidence that it's indeed an alignment
> mismatch.

These are many years of disks, written on many machines.

At any rate, I just tried mformat a:, and it tells me that it can't open 
/dev/fd0: No such device or address.

mark
-- 
Though I don't think (object-oriented programming) has much to offer 
good  programmers, except in certain specialized domains, it is 
irresistible to  large organizations. Object-oriented programming offers 
a sustainable way  to write spaghetti code.  - Paul Graham
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread Frank Cox
On Sun, 07 Apr 2013 17:29:14 -0400
mark wrote:

> At any rate, I just tried mformat a:, and it tells me that it can't open 
> /dev/fd0: No such device or address.

ls -l /dev/fd?

What do you see?

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread Max Pyziur
On Sun, 7 Apr 2013, Frank Cox wrote:

> On Sun, 07 Apr 2013 17:29:14 -0400
> mark wrote:
>
>> At any rate, I just tried mformat a:, and it tells me that it can't open
>> /dev/fd0: No such device or address.
>
> ls -l /dev/fd?
>
> What do you see?


It's been years since I used floppies on a linux system; but when I still 
hada 3.5 inch drive, I recall that I first had to put a floppy in, then do 
a mount command.

I realize that the contributors on this thread, as well as the originator, 
may take this is a given, but in the event this hasn't been done, and it's 
a way to get the disk readable (I haven't seen it mentioned yet as 
possible solution).

My two cents,

MP
p...@brama.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread Frank Cox
On Sun, 7 Apr 2013 18:22:12 -0400 (EDT)
Max Pyziur wrote:

> I realize that the contributors on this thread, as well as the originator, 
> may take this is a given, but in the event this hasn't been done, and it's 
> a way to get the disk readable (I haven't seen it mentioned yet as 
> possible solution).

mtools doesn't require that the disk be mounted.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread mark
On 04/07/13 17:49, Frank Cox wrote:
> On Sun, 07 Apr 2013 17:29:14 -0400
> mark wrote:
>
>> At any rate, I just tried mformat a:, and it tells me that it can't open
>> /dev/fd0: No such device or address.
>
> ls -l /dev/fd?
>
> What do you see?
>
lrwxrwxrwx 1 root root 13 Apr  7 15:03 /dev/fd -> /proc/self/fd/

And, while we're at it, ll of /dev/floppy shows

lrwxrwxrwx 1 root root 3 Apr  7 15:03 /dev/floppy -> fd0

mark
--  
Fascism is an extreme right-wing ideology which embraces nationalism,
xenophobia, militarism, and supremacist ideals. Though actually secular,
it emphasizes mythic beliefs such as divine mandates; and concentrates
power in the hands of an elite selected by, and often of, the wealthiest
groups of society, from whom all authority flows to lesser elites, such
as law enforcement, intellectuals, and the media.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread John R. Dennison
On Sun, Apr 07, 2013 at 07:35:17PM -0400, mark wrote:
> >
> > ls -l /dev/fd?
> >
> > What do you see?
> >
> lrwxrwxrwx 1 root root 13 Apr  7 15:03 /dev/fd -> /proc/self/fd/

Interesting as that doesn't match the pattern /dev/fd?

> And, while we're at it, ll of /dev/floppy shows
> 
> lrwxrwxrwx 1 root root 3 Apr  7 15:03 /dev/floppy -> fd0

fd0 should have been shown by the ls -l /dev/fd? pattern so is that a
broken link?

"lsmod | grep floppy" - does it show the floppy module loaded?

If "ls -l /dev/fd0*" does not show a series of device nodes try:

"/sbin/MAKEDEV fd0"

and retry the operations that are failing.

If this still fails ensure that the device is enabled in the system's
bios.  Speaking of that, is the device seen at boot time?

"dmesg | grep ^Floppy" or "grep ^Floppy /var/log/dmesg" should show fd0
and a size.




John
-- 
Another age must be the judge.

-- Charles Babbage, realizing the technology did not exist to construct his
   "difference engine", 1837; a full-size implementation exists at the Mountain
   View, CA Computer History Museum (CHM), where this quote is displayed.  The
   same can be said of the PLATO computer project, which was celebrated in the
   PLATO@50 conference at the CHM, 2-3 June 2010


pgpCC5ziXAwTP.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread Frank Cox
On Sun, 7 Apr 2013 18:53:54 -0500
John R. Dennison wrote:

> > lrwxrwxrwx 1 root root 13 Apr  7 15:03 /dev/fd -> /proc/self/fd/
> 
> Interesting as that doesn't match the pattern /dev/fd?

Note that /dev/fd has nothing to do with floppy drives.  /dev/fd deals with file
descriptors, not floppy drives. 

Just to avoid confusion.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread mark
On 04/07/13 19:53, John R. Dennison wrote:
> On Sun, Apr 07, 2013 at 07:35:17PM -0400, mark wrote:
>>>
>>> ls -l /dev/fd?
>>>
>>> What do you see?
>>>
>> lrwxrwxrwx 1 root root 13 Apr  7 15:03 /dev/fd -> /proc/self/fd/
>
> Interesting as that doesn't match the pattern /dev/fd?
>
>> And, while we're at it, ll of /dev/floppy shows
>>
>> lrwxrwxrwx 1 root root 3 Apr  7 15:03 /dev/floppy -> fd0
>
> fd0 should have been shown by the ls -l /dev/fd? pattern so is that a
> broken link?
>
> "lsmod | grep floppy" - does it show the floppy module loaded?
>
> If "ls -l /dev/fd0*" does not show a series of device nodes try:
>
> "/sbin/MAKEDEV fd0"
>
> and retry the operations that are failing.
>
> If this still fails ensure that the device is enabled in the system's
> bios.  Speaking of that, is the device seen at boot time?
>
> "dmesg | grep ^Floppy" or "grep ^Floppy /var/log/dmesg" should show fd0
> and a size.

Ok, ll /dev/fd - which is a directory - shows it pointing to 
/proc/self/fd/. Under tghat is 0-3, where 0-2 are links to /dev/pts/0, 
*all* the same. 3 is a link to /proc/5038/fd/, which does not exist.

Is it time to try MAKEDEV?

mark

-- 
And yet less thanks have we than you. Users scowl at us, and reporters
give us scornful names. "Geek" I am to one fat man who lives a firewall
away from foes that would steal his identity or lay his little computer
in ruin, if it was not guarded ceaselessly. Yet we would not have it
otherwise.  ---Aragorn, sysadmin.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] floppy drives

2013-04-07 Thread mark
On 04/07/13 19:53, John R. Dennison wrote:
> On Sun, Apr 07, 2013 at 07:35:17PM -0400, mark wrote:
>>>
>>> ls -l /dev/fd?
>>>
>>> What do you see?
>>>
>> lrwxrwxrwx 1 root root 13 Apr  7 15:03 /dev/fd -> /proc/self/fd/
>
> Interesting as that doesn't match the pattern /dev/fd?
>
>> And, while we're at it, ll of /dev/floppy shows
>>
>> lrwxrwxrwx 1 root root 3 Apr  7 15:03 /dev/floppy -> fd0
>
> fd0 should have been shown by the ls -l /dev/fd? pattern so is that a
> broken link?
>
> "lsmod | grep floppy" - does it show the floppy module loaded?
>
> If "ls -l /dev/fd0*" does not show a series of device nodes try:

It does - /dev/fd0, along with all 14 sizes of floppies, of a patter 
/dev/fd0u

mark

-- 
And yet less thanks have we than you. Users scowl at us, and reporters
give us scornful names. "Geek" I am to one fat man who lives a firewall
away from foes that would steal his identity or lay his little computer
in ruin, if it was not guarded ceaselessly. Yet we would not have it
otherwise.  ---Aragorn, sysadmin.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [Dovecot] Configuring dovecot to use tcp wrappers

2013-04-07 Thread Max Pyziur
On Mon, 8 Apr 2013, Timo Sirainen wrote:

> On 8.4.2013, at 1.31, "Max Pyziur"  wrote:
>
>> However, once I make the changes to the configuration files, I get the
>> following error when restarting dovecot:
>> root@brama /etc/dovecot/conf.d> service dovecot restart
>> Stopping Dovecot Imap: [  OK  ]
>> Starting Dovecot Imap: doveconf: Fatal: Error in configuration file
>> /etc/dovecot/dovecot.conf: service(tcpwrap): executable is empty
>>   [FAILED]
>
> You most likely didn't compile Dovecot with tcpwrap support. See if you have 
> /usr/lib*/dovecot/tcpwrap binary?

Any idea, then, as to where those CentOS dovecot src.rpms are kept?

Max Pyziur
p...@brama.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [Dovecot] Configuring dovecot to use tcp wrappers

2013-04-07 Thread Max Pyziur
On Sun, 7 Apr 2013, Max Pyziur wrote:

> On Mon, 8 Apr 2013, Timo Sirainen wrote:
>
>> On 8.4.2013, at 1.31, "Max Pyziur"  wrote:
>> 
>>> However, once I make the changes to the configuration files, I get the
>>> following error when restarting dovecot:
>>> root@brama /etc/dovecot/conf.d> service dovecot restart
>>> Stopping Dovecot Imap: [  OK  ]
>>> Starting Dovecot Imap: doveconf: Fatal: Error in configuration file
>>> /etc/dovecot/dovecot.conf: service(tcpwrap): executable is empty
>>>   [FAILED]
>> 
>> You most likely didn't compile Dovecot with tcpwrap support. See if you 
>> have /usr/lib*/dovecot/tcpwrap binary?
>
> Any idea, then, as to where those CentOS dovecot src.rpms are kept?

Yanking my own chain:
http://vault.centos.org/6.4/updates/Source/SPackages/

> Max Pyziur
> p...@brama.com
[...recycle ...]


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


Re: [CentOS] Apache Issue on CentOS 6

2013-04-07 Thread Banyan He
I did a quick test on el5 and el6 with these package,

httpd-2.2.3-43.el5.centos
httpd-2.2.15-15.el6.centos.1.i686

I kept the configuration as what it is in default. The index page is 
about 7k, 100 connections per second. I barely find the connection is 
marked as R. Mostly C and _. This is done by ab from httpd.

I also did a quick test with slow attack. It's basically slowing the 
client itself to collect the data from the server. I did 200 connections 
per second. My server is ok seems. A little bit slow, but not too much.

el5




CWS.

el6




RRRCCCCRWCWCCWWCCC..


I also did the capture on the network traffic that I can find out the 
connections are doing something bad. You may follow the lead here as I 
mentioned.



Banyan He
Blog: http://www.rootong.com
Email: ban...@rootong.com

On 4/7/2013 12:23 AM, linuxsupport wrote:
> There is no problem with the hardware, If I installed CentOS 5 then it 
> works well, at a time out of total 44 concurrent requests 34 were in 
> reading state
>
>
> On Sat, Apr 6, 2013 at 2:03 PM, Banyan He  > wrote:
>
> I went to the source code to check this. Seems like it's used for
> against the slow request attack from the rate. There is a timeout
> and rate set for header and body.
>
> I'd keep that thought, capture one connection from tcpdump seeing
> if they are doing something bad. If not, you seem need a new
> server balancing the traffic.
>
> 
> Banyan He
> Blog:http://www.rootong.com
> Email:ban...@rootong.com  
>
> On 4/6/2013 3:06 PM, linuxsupport wrote:
>> I have already checked but all requests are from different IP's
>> and even different subnet
>> When there are less requests it works ok even if there are more
>> than 60% reading requests but during peak time when concurrent
>> requests goes beyond 150, due to reading requests it becomes 300+
>> requests processing at the same time and that then Apache stop
>> responding as maxclient is set to 300. CPU load also goes up and
>> thing become very slow.
>>
>>
>> On Sat, Apr 6, 2013 at 10:33 AM, Banyan He > > wrote:
>>
>> I'd recommend you to sort out the connections. Find out if
>> they are coming from the same client or the same subnet of
>> the clients. Doing a simple tcpdump capture to analyze the
>> data seeing if it's a good R or a bad R.
>>
>> Don't really think it's because of the version.
>>
>> 
>> Banyan He
>> Blog: http://www.rootong.com
>> Email: ban...@rootong.com 
>>
>>
>> On 4/6/2013 12:24 PM, linuxsupport wrote:
>>
>> I am facing a problem with Apache on CentOS 6
>>
>> Apache 2.2.19 is complied from source.
>>
>> I see so many reading requests in Apache status page, as
>> per my previous
>> experience this "reading request" issue mainly comes when
>> any of the
>> internet route having any problem and it request takes
>> time to completely
>> reach to Apache, but this time there is no network issue.
>>
>> I have ran same setup on CentOS 5 it works well, but on
>> CentOS 6 it show
>> 60%+ reading requests, web site has 20-25 requests per
>> second that becomes
>> 80+
>>
>> I also tried to upgrade Apache to 2.2.24 but it is same
>> on new version as
>> well.
>>
>> Anyone else has experienced this issue?
>> ___
>> 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] Apache Issue on CentOS 6

2013-04-07 Thread linuxsupport
your both el5 and el6 Apache status show lots of R -- Reading


On Mon, Apr 8, 2013 at 10:24 AM, Banyan He  wrote:

>  I did a quick test on el5 and el6 with these package,
>
> httpd-2.2.3-43.el5.centos
> httpd-2.2.15-15.el6.centos.1.i686
>
> I kept the configuration as what it is in default. The index page is about
> 7k, 100 connections per second. I barely find the connection is marked as
> R. Mostly C and _. This is done by ab from httpd.
>
> I also did a quick test with slow attack. It's basically slowing the
> client itself to collect the data from the server. I did 200 connections
> per second. My server is ok seems. A little bit slow, but not too much.
>
> el5
>
> 
> 
> 
> CWS.
>
> el6
>
> 
> 
> 
> RRRCCCCRWCWCCWWCCC..
>
>
> I also did the capture on the network traffic that I can find out the
> connections are doing something bad. You may follow the lead here as I
> mentioned.
>
>
>
> 
> Banyan He
> Blog: http://www.rootong.com
> Email: ban...@rootong.com
>
> On 4/7/2013 12:23 AM, linuxsupport wrote:
>
> There is no problem with the hardware, If I installed CentOS 5 then it
> works well, at a time out of total 44 concurrent requests 34 were in
> reading state
>
>
>  On Sat, Apr 6, 2013 at 2:03 PM, Banyan He  wrote:
>
>>  I went to the source code to check this. Seems like it's used for
>> against the slow request attack from the rate. There is a timeout and rate
>> set for header and body.
>>
>> I'd keep that thought, capture one connection from tcpdump seeing if they
>> are doing something bad. If not, you seem need a new server balancing the
>> traffic.
>>
>> 
>> Banyan He
>> Blog: http://www.rootong.com
>> Email: ban...@rootong.com
>>
>>   On 4/6/2013 3:06 PM, linuxsupport wrote:
>>
>>  I have already checked but all requests are from different IP's and
>> even different subnet
>>  When there are less requests it works ok even if there are more than 60%
>> reading requests but during peak time when concurrent requests goes beyond
>> 150, due to reading requests it becomes 300+ requests processing at the
>> same time and that then Apache stop responding as maxclient is set to 300.
>> CPU load also goes up and thing become very slow.
>>
>>
>> On Sat, Apr 6, 2013 at 10:33 AM, Banyan He  wrote:
>>
>>> I'd recommend you to sort out the connections. Find out if they are
>>> coming from the same client or the same subnet of the clients. Doing a
>>> simple tcpdump capture to analyze the data seeing if it's a good R or a bad
>>> R.
>>>
>>> Don't really think it's because of the version.
>>>
>>> 
>>> Banyan He
>>> Blog: http://www.rootong.com
>>> Email: ban...@rootong.com
>>>
>>>
>>> On 4/6/2013 12:24 PM, linuxsupport wrote:
>>>
  I am facing a problem with Apache on CentOS 6

 Apache 2.2.19 is complied from source.

 I see so many reading requests in Apache status page, as per my previous
 experience this "reading request" issue mainly comes when any of the
 internet route having any problem and it request takes time to
 completely
 reach to Apache, but this time there is no network issue.

 I have ran same setup on CentOS 5 it works well, but on CentOS 6 it show
 60%+ reading requests, web site has 20-25 requests per second that
 becomes
 80+

 I also tried to upgrade Apache to 2.2.24 but it is same on new version
 as
 well.

 Anyone else has experienced this issue?
  ___
 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] Audit logs source of account triggering it.

2013-04-07 Thread Gregory Machin
Hi.

The auditd logs are full of lines referencing 28756E6B6E6F776E207573657229
, but I can't identify this account

type=USER_LOGIN msg=audit(1364926580.306:249814): user pid=22565 uid=0
auid=4294967295 ses=4294967295 msg='op=login
acct=28756E6B6E6F776E207573657229 exe="/usr/sbin/sshd" hostname=?
addr=127.0.0.1 terminal=ssh res=failed'


What would typically cause this ? There are no other references in any of
the other logs to 28756E6B6E6F776E207573657229 and its to long for our
typical UID / GID .

Thanks

G
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache Issue on CentOS 6

2013-04-07 Thread Banyan He
Yes, they do because I'm using slow access to attack my servers. To your 
environment, you can use tcpdump to capture one connection to check if 
it's the slow access attack.

If it's an attack, we focus on fixing that part. If it's the code 
problem, then, we can get back to the httpd daemon checking what it goes 
wrong.


Banyan He
Blog: http://www.rootong.com
Email: ban...@rootong.com

On 4/8/2013 1:03 PM, linuxsupport wrote:
> your both el5 and el6 Apache status show lots of R -- Reading
>
>
> On Mon, Apr 8, 2013 at 10:24 AM, Banyan He  > wrote:
>
> I did a quick test on el5 and el6 with these package,
>
> httpd-2.2.3-43.el5.centos
> httpd-2.2.15-15.el6.centos.1.i686
>
> I kept the configuration as what it is in default. The index page
> is about 7k, 100 connections per second. I barely find the
> connection is marked as R. Mostly C and _. This is done by ab from
> httpd.
>
> I also did a quick test with slow attack. It's basically slowing
> the client itself to collect the data from the server. I did 200
> connections per second. My server is ok seems. A little bit slow,
> but not too much.
>
> el5
>
> 
> 
> 
> CWS.
>
> el6
>
> 
> 
> 
> RRRCCCCRWCWCCWWCCC..
>
>
> I also did the capture on the network traffic that I can find out
> the connections are doing something bad. You may follow the lead
> here as I mentioned.
>
>
>
> 
> Banyan He
> Blog:http://www.rootong.com
> Email:ban...@rootong.com  
>
> On 4/7/2013 12:23 AM, linuxsupport wrote:
>> There is no problem with the hardware, If I installed CentOS 5
>> then it works well, at a time out of total 44 concurrent requests
>> 34 were in reading state
>>
>>
>> On Sat, Apr 6, 2013 at 2:03 PM, Banyan He > > wrote:
>>
>> I went to the source code to check this. Seems like it's used
>> for against the slow request attack from the rate. There is a
>> timeout and rate set for header and body.
>>
>> I'd keep that thought, capture one connection from tcpdump
>> seeing if they are doing something bad. If not, you seem need
>> a new server balancing the traffic.
>>
>> 
>> Banyan He
>> Blog:http://www.rootong.com
>> Email:ban...@rootong.com  
>>
>> On 4/6/2013 3:06 PM, linuxsupport wrote:
>>> I have already checked but all requests are from different
>>> IP's and even different subnet
>>> When there are less requests it works ok even if there are
>>> more than 60% reading requests but during peak time when
>>> concurrent requests goes beyond 150, due to reading requests
>>> it becomes 300+ requests processing at the same time and
>>> that then Apache stop responding as maxclient is set to 300.
>>> CPU load also goes up and thing become very slow.
>>>
>>>
>>> On Sat, Apr 6, 2013 at 10:33 AM, Banyan He
>>> mailto:ban...@rootong.com>> wrote:
>>>
>>> I'd recommend you to sort out the connections. Find out
>>> if they are coming from the same client or the same
>>> subnet of the clients. Doing a simple tcpdump capture to
>>> analyze the data seeing if it's a good R or a bad R.
>>>
>>> Don't really think it's because of the version.
>>>
>>> 
>>> Banyan He
>>> Blog: http://www.rootong.com
>>> Email: ban...@rootong.com 
>>>
>>>
>>> On 4/6/2013 12:24 PM, linuxsupport wrote:
>>>
>>> I am facing a problem with Apache on CentOS 6
>>>
>>> Apache 2.2.19 is complied from source.
>>>
>>> I see so many reading requests in Apache status
>>> page, as per my previous
>>> experience this "reading request" issue mainly comes
>>> when any of the
>>> internet route having any problem and it request
>>> takes time to completely
>>> reach to Apache, but this time there is no network
>>> issue.
>>>
>>> I have ran same setup on CentOS 5 it works well, but
>>> on CentOS 6 it show
>>> 60%+ reading requests, web site

Re: [CentOS] Apache Issue on CentOS 6

2013-04-07 Thread linuxsupport
I was not able to reproduce it while sending so many requests from ab or
any other tool, it only appears when requests come from browser, I had
posted this question to Apache users as well and someone told that it is
due to Chrome uses preconnection, though this feature was available on
Chrome since version 7, till kernel version 2.6.31.14 these preconnection
requests were not coming to Apache status page but from 2.6.32 they started
appearing on Apache status.

Following thread also talks about preconnection
https://code.google.com/p/chromium/issues/detail?id=85229



On Mon, Apr 8, 2013 at 10:37 AM, Banyan He  wrote:

>  Yes, they do because I'm using slow access to attack my servers. To your
> environment, you can use tcpdump to capture one connection to check if it's
> the slow access attack.
>
> If it's an attack, we focus on fixing that part. If it's the code problem,
> then, we can get back to the httpd daemon checking what it goes wrong.
>
> 
> Banyan He
> Blog: http://www.rootong.com
> Email: ban...@rootong.com
>
> On 4/8/2013 1:03 PM, linuxsupport wrote:
>
> your both el5 and el6 Apache status show lots of R -- Reading
>
>
> On Mon, Apr 8, 2013 at 10:24 AM, Banyan He  wrote:
>
>>  I did a quick test on el5 and el6 with these package,
>>
>> httpd-2.2.3-43.el5.centos
>> httpd-2.2.15-15.el6.centos.1.i686
>>
>> I kept the configuration as what it is in default. The index page is
>> about 7k, 100 connections per second. I barely find the connection is
>> marked as R. Mostly C and _. This is done by ab from httpd.
>>
>> I also did a quick test with slow attack. It's basically slowing the
>> client itself to collect the data from the server. I did 200 connections
>> per second. My server is ok seems. A little bit slow, but not too much.
>>
>> el5
>>
>> 
>> 
>> 
>> CWS.
>>
>> el6
>>
>> 
>> 
>> 
>> RRRCCCCRWCWCCWWCCC..
>>
>>
>> I also did the capture on the network traffic that I can find out the
>> connections are doing something bad. You may follow the lead here as I
>> mentioned.
>>
>>
>>
>> 
>> Banyan He
>> Blog: http://www.rootong.com
>> Email: ban...@rootong.com
>>
>>   On 4/7/2013 12:23 AM, linuxsupport wrote:
>>
>> There is no problem with the hardware, If I installed CentOS 5 then it
>> works well, at a time out of total 44 concurrent requests 34 were in
>> reading state
>>
>>
>>  On Sat, Apr 6, 2013 at 2:03 PM, Banyan He  wrote:
>>
>>>  I went to the source code to check this. Seems like it's used for
>>> against the slow request attack from the rate. There is a timeout and rate
>>> set for header and body.
>>>
>>> I'd keep that thought, capture one connection from tcpdump seeing if
>>> they are doing something bad. If not, you seem need a new server balancing
>>> the traffic.
>>>
>>> 
>>> Banyan He
>>> Blog: http://www.rootong.com
>>> Email: ban...@rootong.com
>>>
>>>   On 4/6/2013 3:06 PM, linuxsupport wrote:
>>>
>>>  I have already checked but all requests are from different IP's and
>>> even different subnet
>>>  When there are less requests it works ok even if there are more than
>>> 60% reading requests but during peak time when concurrent requests goes
>>> beyond 150, due to reading requests it becomes 300+ requests processing at
>>> the same time and that then Apache stop responding as maxclient is set to
>>> 300. CPU load also goes up and thing become very slow.
>>>
>>>
>>> On Sat, Apr 6, 2013 at 10:33 AM, Banyan He  wrote:
>>>
 I'd recommend you to sort out the connections. Find out if they are
 coming from the same client or the same subnet of the clients. Doing a
 simple tcpdump capture to analyze the data seeing if it's a good R or a bad
 R.

 Don't really think it's because of the version.

 
 Banyan He
 Blog: http://www.rootong.com
 Email: ban...@rootong.com


 On 4/6/2013 12:24 PM, linuxsupport wrote:

>  I am facing a problem with Apache on CentOS 6
>
> Apache 2.2.19 is complied from source.
>
> I see so many reading requests in Apache status page, as per my
> previous
> experience this "reading request" issue mainly comes when any of the
> internet route having any problem and it request takes time to
> completely
> reach to Apache, but this time there is no network issue.
>
> I have ran same setup on CentOS 5 it works well, but on CentOS 6 it
> show
> 60%+ reading requests, web site has 20-25 requests per second that
> becomes
>