[CentOS] slapd 100% cpu

2012-09-21 Thread Darod Zyree
Greetings,

We have been attempting to set up a centos ldap server and then tried
to log in with a user account specified in our ldap environment on a
centos workstation.

As soon as we attempt any kind of login from the centos workstation,
be it via gdm or su ldap_user, the slapd process on the ldap server
goes to 100% cpu.

Is this normal behaviour?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] slapd 100% cpu

2012-09-21 Thread m . roth
Darod Zyree wrote:
> Greetings,
>
> We have been attempting to set up a centos ldap server and then tried
> to log in with a user account specified in our ldap environment on a
> centos workstation.
>
> As soon as we attempt any kind of login from the centos workstation,
> be it via gdm or su ldap_user, the slapd process on the ldap server
> goes to 100% cpu.
>
> Is this normal behaviour?

As underwhelmed as I was when I was working with openldap a few years ago,
I never saw that behaviour. My first thought would be to wonder if you had
some circular loops in your configuration. You have tried doing lookups of
users using the ldap tool, right?

   mark

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


Re: [CentOS] slapd 100% cpu

2012-09-21 Thread Darod Zyree
2012/9/21  :
> Darod Zyree wrote:
>> Greetings,
>>
>> We have been attempting to set up a centos ldap server and then tried
>> to log in with a user account specified in our ldap environment on a
>> centos workstation.
>>
>> As soon as we attempt any kind of login from the centos workstation,
>> be it via gdm or su ldap_user, the slapd process on the ldap server
>> goes to 100% cpu.
>>
>> Is this normal behaviour?
>
> As underwhelmed as I was when I was working with openldap a few years ago,
> I never saw that behaviour. My first thought would be to wonder if you had
> some circular loops in your configuration. You have tried doing lookups of
> users using the ldap tool, right?
>
>mark


You mean something like this?


[root@pc1 /]# ldapsearch -x -b "cn=Darod Zyree,ou=users,dc=local,dc=test"
# extended LDIF
#
# LDAPv3
# base  with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# Darod Zyree, users, local.test
dn: cn=Darod Zyree,ou=users,dc=local,dc=test
cn: Darod Zyree
givenName: Darod
gidNumber: 500
sn: Zyree
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
userPassword:: e01ENX03cVVOakFLS1ZBVkZhMWhXaWNTaE1BPT0=
uidNumber: 1000
uid: dzyree
loginShell: /bin/bash
homeDirectory: /home/dzyree

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

This works on both the server and the workstation without any issue,
not even causing 100% slapd cpu.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] placing x11 libraries in an alternate location

2012-09-21 Thread Karanbir Singh
On 09/21/2012 12:02 AM, Gordon Messmer wrote:
> On 09/20/2012 03:07 PM, Karanbir Singh wrote:
>> you should look at puppet, since it does all of those things and a bunch
>> more
> 
> So I'd log in to a client managed by puppet and type what to see a 
> 'diff' style report indicating how the puppet master would modify the 
> system?

puppetd --test --noop

you can even partially apply manifests etc,

Also, we are likely offtopic here, the puppet lists are a good resource
for these things

-- 
Karanbir Singh
+44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
ICQ: 2522219| Yahoo IM: z00dax  | Gtalk: z00dax
GnuPG Key : http://www.karan.org/publickey.asc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 91, Issue 15

2012-09-21 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CentOS-announce digest..."


Today's Topics:

   1. CESA-2012:1288 Moderate CentOS 6 libxml2 Update (Johnny Hughes)
   2. CEBA-2012:1303  CentOS 5 perl-LDAP Update (Johnny Hughes)
   3. CEBA-2012:1302  CentOS 6 cvs FASTTRACK Update (Johnny Hughes)


--

Message: 1
Date: Thu, 20 Sep 2012 15:54:36 +
From: Johnny Hughes 
Subject: [CentOS-announce] CESA-2012:1288 Moderate CentOS 6 libxml2
Update
To: centos-annou...@centos.org
Message-ID: <20120920155436.ga23...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2012:1288 Moderate

Upstream details at : https://rhn.redhat.com/errata/RHSA-2012-1288.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 


i386:
2b6de2c0535cb046fe2f14403593c7bf861642a053c3d3bc8a33de2bf7bf7195  
libxml2-2.7.6-8.el6_3.3.i686.rpm
02aa9a568651f51b4e5e8703afa54ea3019a855183e4573922c2bdd0a27b6b4a  
libxml2-devel-2.7.6-8.el6_3.3.i686.rpm
02f314003fd9b49cc0c0ab68b02da4f6e1ffdaf0d0a66317218d2b1f8a8c7a0a  
libxml2-python-2.7.6-8.el6_3.3.i686.rpm
75c282ddd44ef390f20a2fce1cf17a74241fb99edf30785508d2bed1b954fc7c  
libxml2-static-2.7.6-8.el6_3.3.i686.rpm

x86_64:
2b6de2c0535cb046fe2f14403593c7bf861642a053c3d3bc8a33de2bf7bf7195  
libxml2-2.7.6-8.el6_3.3.i686.rpm
d0e45ec7ce669eadfeb398dd8c056ad2dac66b7d8731e2fea33b1ffd848cb4aa  
libxml2-2.7.6-8.el6_3.3.x86_64.rpm
02aa9a568651f51b4e5e8703afa54ea3019a855183e4573922c2bdd0a27b6b4a  
libxml2-devel-2.7.6-8.el6_3.3.i686.rpm
86faf54ce03950a637731c7bf19ffe8a311ba4bf5bbd995a89dff2bd35acaccb  
libxml2-devel-2.7.6-8.el6_3.3.x86_64.rpm
5fcba2b219bab6e1c4c3df0cfe5eed59b4b693f615361fc63e40339442b11ef5  
libxml2-python-2.7.6-8.el6_3.3.x86_64.rpm
c9f0ccfbdfc8e1accfceb6c77a1d9db36d581a527737c53988eae124bbe62200  
libxml2-static-2.7.6-8.el6_3.3.x86_64.rpm

Source:
2edba25aadd60339e2de0ae85629202c7e242323de05fd2bebb345aa082ae00d  
libxml2-2.7.6-8.el6_3.3.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

Message: 2
Date: Fri, 21 Sep 2012 15:31:13 +
From: Johnny Hughes 
Subject: [CentOS-announce] CEBA-2012:1303  CentOS 5 perl-LDAP Update
To: centos-annou...@centos.org
Message-ID: <20120921153113.ga28...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2012:1303 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2012-1303.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 

i386:
ecedb15f467cd4069263127e663047c2aa10b5e2db886e56a6c948b8e07c3f80  
perl-LDAP-0.33-4.el5_8.noarch.rpm

x86_64:
ecedb15f467cd4069263127e663047c2aa10b5e2db886e56a6c948b8e07c3f80  
perl-LDAP-0.33-4.el5_8.noarch.rpm

Source:
facceedb76ec2250cc717d66b528d7872e9439f26d1ce7169f38666d9a8b5d91  
perl-LDAP-0.33-4.el5_8.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

Message: 3
Date: Fri, 21 Sep 2012 15:39:50 +
From: Johnny Hughes 
Subject: [CentOS-announce] CEBA-2012:1302  CentOS 6 cvs FASTTRACK
Update
To: centos-annou...@centos.org
Message-ID: <20120921153950.ga28...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2012:1302 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2012-1302.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 


i386:
cef98ad1b8da26a05f54c89b93922c3362bbf6c4ec40078fdaef5cf32d90b4d5  
cvs-1.11.23-15.el6.i686.rpm
085a80bda8cf4627a71ddcb078f4a5c13fdf7b69da5faf4b8fbbee43febd11ea  
cvs-inetd-1.11.23-15.el6.noarch.rpm

x86_64:
e85a76b7a959db0566c656b82fb4ad69ddec2ab448e111086716c63e18945c33  
cvs-1.11.23-15.el6.x86_64.rpm
455178ca3ab78b5f0403da16f4512ac9f5d2481e191329f5b7f02ef7b05b2423  
cvs-inetd-1.11.23-15.el6.noarch.rpm

Source:
6a2959f12c886eca469dc0de0412dbb0344af5deb3a7f5735d103522ac9adb62  
cvs-1.11.23-15.el6.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

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


End of CentOS-announce Digest, Vol 91, Issue 

[CentOS] Detect if a drive is USB?

2012-09-21 Thread Lists
I'm updating a script to work with EL6 (previously worked on EL5) and am 
stumped, google fu is failing me. Part of the script is to detect USB 
drives and mount them. Previously, It worked something like

isUsbDevice() {
if [ -f /sys/block/$1/usb ] ; then
  // do stuff
  fi;
}

but I don't find the "usb" file/directory anywhere to be found any more 
on el6. I've tried the output of lsusb and lsusb -v but in no case have 
I been able to find anything there matching anything in /sys/block that 
matching anything in lsusb's output.

Given an available drive (EG: /dev/sdk) how can I reliably tell it's 
interface type? (USB/SATA/PATA/SCSI ?)


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


Re: [CentOS] Detect if a drive is USB?

2012-09-21 Thread Lists
Answering my own message for posterity's sake: This line will output "E: 
ID_BUS=usb" for any block
device connected to a USB bus:

udevadm info --query=all --name=$file 2>/dev/null | grep -i BUS=usb;

The basic idea is to
1) use udevadm to get all info on device $file (where $file is a string 
like "sde")
 a) send all errors to /dev/null.
2) grep the output of udevadm for the string "BUS=usb" which appears on 
USB devices.

Note that you must have $file defined with a device name which I got by 
listing the contents of /sys/block.

Good luck! Also, if anybody has a better solution, please reply. The 
above appeared to be "good enough"
to finish porting my admin script.

-Ben

On 09/21/2012 11:36 AM, Lists wrote:
> I'm updating a script to work with EL6 (previously worked on EL5) and am
> stumped, google fu is failing me. Part of the script is to detect USB
> drives and mount them. Previously, It worked something like
>
> isUsbDevice() {
> if [ -f /sys/block/$1/usb ] ; then
>// do stuff
>fi;
> }
>
> but I don't find the "usb" file/directory anywhere to be found any more
> on el6. I've tried the output of lsusb and lsusb -v but in no case have
> I been able to find anything there matching anything in /sys/block that
> matching anything in lsusb's output.
>
> Given an available drive (EG: /dev/sdk) how can I reliably tell it's
> interface type? (USB/SATA/PATA/SCSI ?)
>
>
> ___
> 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] slapd 100% cpu

2012-09-21 Thread Craig White

On Sep 21, 2012, at 8:05 AM, Darod Zyree wrote:

> Greetings,
> 
> We have been attempting to set up a centos ldap server and then tried
> to log in with a user account specified in our ldap environment on a
> centos workstation.
> 
> As soon as we attempt any kind of login from the centos workstation,
> be it via gdm or su ldap_user, the slapd process on the ldap server
> goes to 100% cpu.
> 
> Is this normal behavior?

definitely not

as a server, OpenLDAP resources will use RAM based upon the number of entries 
but until you get upwards of 100,000 entries it shouldn't be of any concern and 
CPU usage should be extremely light save the brief moment of starting the 
daemon.

Craig

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


[CentOS] automatic repartitioning

2012-09-21 Thread Abel Lopez
Hello all.
Does anyone have any suggestions for making centos cloud images that can 
automatically repartition the root device to resize the filesystem?

All the Ubuntu UEC images do this, so using the same image, you can launch 
cloud instances of a variety of flavors and the VM instance will repartition 
the root disk and resize the fs. 
The Ubuntu images utilize scripts in the initramfs dpkg that handle this. Just 
curious if anyone has been able to replicate this functionality.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] automatic repartitioning

2012-09-21 Thread m . roth
Abel Lopez wrote:
> Hello all.
> Does anyone have any suggestions for making centos cloud images that can
> automatically repartition the root device to resize the filesystem?
>
> All the Ubuntu UEC images do this, so using the same image, you can launch
> cloud instances of a variety of flavors and the VM instance will
> repartition the root disk and resize the fs.
> The Ubuntu images utilize scripts in the initramfs dpkg that handle this.
> Just curious if anyone has been able to replicate this functionality.

I'm unfamiliar with Ubuntu's facility, but it sounds like a ks thing.

   mark

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


Re: [CentOS] slapd 100% cpu

2012-09-21 Thread Steve Thompson
On Fri, 21 Sep 2012, Craig White wrote:

> as a server, OpenLDAP resources will use RAM based upon the number of 
> entries but until you get upwards of 100,000 entries it shouldn't be of 
> any concern and CPU usage should be extremely light save the brief 
> moment of starting the daemon.

As an example, I run three OpenLDAP servers that are accessed through a 
load balancer from 400+ clients. Total CPU usage of all three servers by 
slapd averages a bit less than 2 hours per day.

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


Re: [CentOS] automatic repartitioning

2012-09-21 Thread SilverTip257
Yes, it can be done.
Kickstart configs are the solution.

Note:  I generally do not have more than one LV or physical partition
that is set to --grow.  But it was out of simplicity and I didn't have
a need.

Given the online documentation, it does look like you can specify more
than one.  But it does appear to only apply to LVM LVs.
Look for the following line in the documentation [0].
logvol / --vgname=myvg --size=1 --name=rootvol --grow --percent=90

I won't get around to testing this until Monday, so if you find
something out before then please share!
I can see this being plenty helpful for a web server kickstart I have
(where /var grows and / is fixed ... might be nice to have them
balance out a bit).


[0] 
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html

---~~.~~---
Mike
//  SilverTip257  //


On Fri, Sep 21, 2012 at 5:19 PM, Abel Lopez  wrote:
> Hello all.
> Does anyone have any suggestions for making centos cloud images that can 
> automatically repartition the root device to resize the filesystem?
>
> All the Ubuntu UEC images do this, so using the same image, you can launch 
> cloud instances of a variety of flavors and the VM instance will repartition 
> the root disk and resize the fs.
> The Ubuntu images utilize scripts in the initramfs dpkg that handle this. 
> Just curious if anyone has been able to replicate this functionality.
> ___
> 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] automatic repartitioning

2012-09-21 Thread Karanbir Singh
On 09/21/2012 10:19 PM, Abel Lopez wrote:
> Hello all.
> Does anyone have any suggestions for making centos cloud images that can 
> automatically repartition the root device to resize the filesystem?


this is done via a hook in cloud-init ( which is available for CentOS-5
and 6 in EPEL ). You just need to make sure your cloud instance provides
the right config information.


-- 
Karanbir Singh
+44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
ICQ: 2522219| Yahoo IM: z00dax  | Gtalk: z00dax
GnuPG Key : http://www.karan.org/publickey.asc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] automatic repartitioning

2012-09-21 Thread Nux!
On 21.09.2012 22:19, Abel Lopez wrote:
> Hello all.
> Does anyone have any suggestions for making centos cloud images that
> can automatically repartition the root device to resize the
> filesystem?
>
> All the Ubuntu UEC images do this, so using the same image, you can
> launch cloud instances of a variety of flavors and the VM instance
> will repartition the root disk and resize the fs.
> The Ubuntu images utilize scripts in the initramfs dpkg that handle
> this. Just curious if anyone has been able to replicate this
> functionality.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

Hi,

You want to read this
http://lists.centos.org/pipermail/centos-devel/2012-September/008893.html

-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] automatic repartitioning

2012-09-21 Thread Abel Lopez
Thanks Nux, I used your image, and I see resizing works as expected.
Odd, I too use the cloud-init rpm, but mine just ignores it. I can take what 
you have and make it work.

On Sep 21, 2012, at 3:45 PM, Nux! wrote:

> On 21.09.2012 22:19, Abel Lopez wrote:
>> Hello all.
>> Does anyone have any suggestions for making centos cloud images that
>> can automatically repartition the root device to resize the
>> filesystem?
>> 
>> All the Ubuntu UEC images do this, so using the same image, you can
>> launch cloud instances of a variety of flavors and the VM instance
>> will repartition the root disk and resize the fs.
>> The Ubuntu images utilize scripts in the initramfs dpkg that handle
>> this. Just curious if anyone has been able to replicate this
>> functionality.
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
> 
> Hi,
> 
> You want to read this
> http://lists.centos.org/pipermail/centos-devel/2012-September/008893.html
> 
> -- 
> Sent from the Delta quadrant using Borg technology!
> 
> Nux!
> www.nux.ro
> ___
> 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