Re: [CentOS-docs] Review and maintenance of the JavaOnCentOS article.

2008-10-05 Thread Akemi Yagi
On Sun, Oct 5, 2008 at 8:04 AM, Johnny Wahnstroem [EMAIL PROTECTED] wrote:
 Hello everyone!

 In a CentOS forum thread[1], I was asked by forum member AlanJBartlett
 if I would like to take on the care and feeding of the latter (section
 3?) part of the JavaOnCentOS article.

 Initially, I would like to correct the Sun JDK 1.6 part, which instructs
 readers to download the wrong Sun JDK file (there are two, one .bin and
 one rpm.bin) for the actual steps listed.

 When that's done, I can review and update the other JDK parts as and
 when needed.

 I have registered on the wiki as JohnnyWahnstroem

 [1] CentOS 5 - Server Support, How to add Java support to CentOS 5.2:
 http://www.centos.org/modules/newbb/viewtopic.php?topic_id=16218forum=41

I always welcome people who wish to help make our wiki better and
up-to-date.  The java page is referenced quite often not only in the
forums but in all other channels.

You might want to coordinate with MikaelFridh whose name appears as
the maintainer of that section of the java article.

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


[CentOS-docs] Review and maintenance of the JavaOnCentOS article.

2008-10-05 Thread R P Herrold

On Sun, 5 Oct 2008, Akemi Yagi wrote:

I always welcome people who wish to help make our wiki 
better and up-to-date.  The java page is referenced quite 
often not only in the forums but in all other channels.


You might want to coordinate with MikaelFridh whose name 
appears as the maintainer of that section of the java 
article.


I do see such an indication (of a name appearing as a 
'maintainer') of a sub-part.  But MikaelFridh has not touched 
it in months, and seemingly lacks an enabled 'mailto' as no 
envelope appears next to his EditName [ ;) ]. He was added to 
the top for edit rights, did a couple changes, and then 
seemingly abandoned the 'Maintainer' role.  I will remove the 
sub-section 'Maintainer' indication on that section next time 
I am in that page, absent him picking up the torch again.



The revision history for a given page is under the 'info'
button on every wiki page, and perhaps gives a better picture
perhaps of who are tending a given page.


REQUEST: As to the matter of adding edit rights after a 
request here, I would ask that the person asking, affirm that 
they are 'reachible' through the wiki mecahnism, and have set 
up their account with the 'userprefs':

Publish my email (not my wiki homepage) in author info
clicked on, such that this envelope would appear in the 'Info' 
log.


I don't see that we presently have a wiki page describing the 
process of requesting edit rights for persons newly coming and 
seeking such [my 'wiki search foo' may be weak].

 http://wiki.centos.org/HowToContribute/EditingCentOSWiki
is close, but not exactly right

I would add the language I suggested there, or at:
http://wiki.centos.org/EditGroup

Thoughts?

-- Russ herrold
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Review and maintenance of the JavaOnCentOS article.

2008-10-05 Thread Akemi Yagi
On Sun, Oct 5, 2008 at 2:34 PM, R P Herrold [EMAIL PROTECTED] wrote:

 The revision history for a given page is under the 'info'
 button on every wiki page, and perhaps gives a better picture
 perhaps of who are tending a given page.

One minor problem and a solution.

Problem - If you do not already have edit rights to the page, you do
not see the info button (or any other tabs).

Solution - However, you can get to the info page by adding a
'?action=info' to the page's URL.

I have been wondering on this subject.  Why not make the menu (info
and other options) available to people who do not have edit rights?

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


[CentOS-docs] Review and maintenance of the JavaOnCentOS article.

2008-10-05 Thread R P Herrold

On Sun, 5 Oct 2008, Akemi Yagi wrote:


I have been wondering on this subject.  Why not make the menu (info
and other options) available to people who do not have edit rights?


dunno for sure -- preventing 'lowhanging fruit' automated 
webbish spamming comes to mind


-- Russ herrold
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


[CentOS-announce] CESA-2008:0892 Important CentOS 5 i386 xen Update

2008-10-05 Thread Karanbir Singh

CentOS Errata and Security Advisory 2008:0892 Important

Upstream details at : https://rhn.redhat.com/errata/RHSA-2008-0892.html

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

i386:
d169c9920b4a95dd2052558b63719cf3  xen-3.0.3-64.el5_2.3.i386.rpm
3a8a43ff61763d423ffea4e61b369ae2  xen-devel-3.0.3-64.el5_2.3.i386.rpm
7ef12e2caf4d4f356a4b81fa225b4602  xen-libs-3.0.3-64.el5_2.3.i386.rpm

Source:
65c582ec1e3fe56880622ac80a1eeac5  xen-3.0.3-64.el5_2.3.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, [EMAIL PROTECTED]

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


[CentOS-announce] CEBA-2008:0647 CentOS 5 x86_64 dhcpv6 Update

2008-10-05 Thread Karanbir Singh

CentOS Errata and Bugfix Advisory 2008:0647

Upstream details at : https://rhn.redhat.com/errata/RHBA-2008-0647.html

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

x86_64:
3296f6a38a1a2801526f1ef8a912da9a  dhcpv6-1.0.10-4.el5_2.3.x86_64.rpm
e7d96a3d363c02a698544ab0186d721a  dhcpv6-client-1.0.10-4.el5_2.3.x86_64.rpm
7cabeb87d1034b529630b4a01f247afa  libdhcp6client-1.0.10-4.el5_2.3.i386.rpm
79037cb0d605d2cc8416fcf004254852  libdhcp6client-1.0.10-4.el5_2.3.x86_64.rpm
a37d3e179268fd9e3bde32ed6dfad0f8  libdhcp6client-devel-1.0.10-4.el5_2.3.i386.rpm
74f451044d97963ee7c13b92f26d106a  
libdhcp6client-devel-1.0.10-4.el5_2.3.x86_64.rpm

Source:
9b095b1f0aa59fb29a429a10f3f8d281  dhcpv6-1.0.10-4.el5_2.3.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, [EMAIL PROTECTED]

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


[CentOS-announce] CEBA-2008:0902 CentOS 5 i386 krb5 Update

2008-10-05 Thread Karanbir Singh

CentOS Errata and Bugfix Advisory 2008:0902 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2008-0902.html

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

i386:
40a782b218851801e9e3f8a470a3a212  krb5-devel-1.6.1-25.el5_2.1.i386.rpm
2f30b4e4a1d3d209dbd8cc8b7e6a43c7  krb5-libs-1.6.1-25.el5_2.1.i386.rpm
12d35a8d50ebab4269c3a0814fcb9833  krb5-server-1.6.1-25.el5_2.1.i386.rpm
c0e17f1d0cc5a51b021cb74b912a3b80  krb5-workstation-1.6.1-25.el5_2.1.i386.rpm

Source:
e66ecf84ee115ddd6194f3dddc406d7e  krb5-1.6.1-25.el5_2.1.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, [EMAIL PROTECTED]

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


[CentOS-announce] CEBA-2008:0902 CentOS 5 x86_64 krb5 Update

2008-10-05 Thread Karanbir Singh

CentOS Errata and Bugfix Advisory 2008:0902 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2008-0902.html

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

x86_64:
d638ce74d13fed0c7573ebf3b9357641  krb5-devel-1.6.1-25.el5_2.1.i386.rpm
0e9dd19226feb7d810aa11489dfa19e0  krb5-devel-1.6.1-25.el5_2.1.x86_64.rpm
df8a3cd393c951569ddabb3851efbeb5  krb5-libs-1.6.1-25.el5_2.1.i386.rpm
2e0fa2db1a30bf51185cedf3e161bc9e  krb5-libs-1.6.1-25.el5_2.1.x86_64.rpm
6fea4d6250d2d982b4caa359c26dc6e4  krb5-server-1.6.1-25.el5_2.1.x86_64.rpm
1eb6614591fd9eb6a6de800cdd0ff2bd  krb5-workstation-1.6.1-25.el5_2.1.x86_64.rpm

Source:
e66ecf84ee115ddd6194f3dddc406d7e  krb5-1.6.1-25.el5_2.1.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, [EMAIL PROTECTED]

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


[CentOS-announce] CESA-2008:0907 Moderate CentOS 5 x86_64 pam_krb5 Update

2008-10-05 Thread Karanbir Singh

CentOS Errata and Security Advisory 2008:0907 Moderate

Upstream details at : https://rhn.redhat.com/errata/RHSA-2008-0907.html

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

x86_64:
170d6bff250c6421af85fe945afac813  pam_krb5-2.2.14-1.el5_2.1.i386.rpm
52cd3e3625edcd04e98bef7f50c4e19d  pam_krb5-2.2.14-1.el5_2.1.x86_64.rpm

Source:
16d994e0703fd6e62b9984147c83d095  pam_krb5-2.2.14-1.el5_2.1.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, [EMAIL PROTECTED]

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


[CentOS] problem talking to server postgrey/socket: Permission denied

2008-10-05 Thread Dirk H. Schulz

Hi folks,

I have installed postgrey from the rpmforge repo, but it does not work well 
with postfix from CentOS 5.2: I always get the error:


warning: connect to postgrey/socket: Permission denied
problem talking to server postgrey/socket: Permission denied

But the permissions on the socket seem okay (postfix could write to it):
srw-rw-rw- 1 postgrey postgrey0  4. Okt 14:48 socket

I also tried restorecon -R /var/spool/postfix/postgrey, but that did not 
change anything, either.


Googling does not show anything recent and helpful. Any hint or help is 
appreciated.


Dirk



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


Re: [CentOS] Trouble using date function in centos

2008-10-05 Thread Thomas Johansson

Stephen Harris wrote:

On Sat, Oct 04, 2008 at 09:48:28PM +0200, Thomas Johansson wrote:
Is there someone that can explain why I get incorrect results on centos 
4.6 and 4.7 but not on centos 5.2??



test000:/% date -d 2008-10-25 +1 days +%Y-%m-%d
2008-10-26
test000:/% date -d 2008-10-26 +1 days +%Y-%m-%d
2008-10-26



My initial immediate guess would be daylight savings related; if in
your timezone the clock goes back on the 26th then 2008-10-26 (which
means 00:00) + 24 hours would only be 2008-10-26 23:00.

That was my problem. Became confused when i got different behavior on 
centos 4 and centos 5. Problem solved! Thank you!


To avoid that kind of trouble i moved to perl for the date functionality 
in my script. That solution is also more portable across my different 
*nix platforms.

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


Re: [CentOS] problem talking to server postgrey/socket: Permission denied

2008-10-05 Thread Kai Schaetzl
Dirk H. Schulz wrote on Sun, 05 Oct 2008 10:28:06 +0200:

 warning: connect to postgrey/socket: Permission denied
 problem talking to server postgrey/socket: Permission denied

SELinux enabled?

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



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


Re: [CentOS] problem talking to server postgrey/socket: Permission denied

2008-10-05 Thread Ned Slider

Dirk H. Schulz wrote:

Hi folks,

I have installed postgrey from the rpmforge repo, but it does not work 
well with postfix from CentOS 5.2: I always get the error:


warning: connect to postgrey/socket: Permission denied
problem talking to server postgrey/socket: Permission denied

But the permissions on the socket seem okay (postfix could write to it):
srw-rw-rw- 1 postgrey postgrey0  4. Okt 14:48 socket

I also tried restorecon -R /var/spool/postfix/postgrey, but that did 
not change anything, either.


Googling does not show anything recent and helpful. Any hint or help is 
appreciated.


Dirk



Hi Dirk,

You're correct in your assumption that this is an SELinux issue. You 
need to write a custom policy to allow connection and writing to the socket.


How to do this is covered in the SELinux Wiki guide here:

http://wiki.centos.org/HowTos/SELinux#head-faa96b3fdd922004cdb988c1989e56191c257c01

and luckily for you, the example used is for postgrey/postfix so you can 
use the example provided.


Hope that helps.

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


Re: [CentOS] Re: Question on Wireless Setup

2008-10-05 Thread Olaf Mueller
Ashish Vijaywargiya wrote:

Hello.

 Can you please look at my problem ?
In my opinion you have not give us enough information to solve this
problem. Are you using wep, wpa, wpa2, wpa_supplicant, *-fwcutter? What
module are you loading, anything blacklisted in /etc/modprobe.conf
or /etc/modprobe.d/*?

If you are using wpa_supplicant, is it started on boot *before* network?
Are your entries in /etc/sysconfig/wpa_supplicant correct?

 I kept a file iwlwifi-3945-1.ucode into the /lib/firmware/
What does this mean? With *-fwcutter? Is your driver loaded (lsmod  |
grep driver)?

My /etc/sysconfig/wpa_supplicant:
# wlan0 and wifi0
# INTERFACES=-iwlan0 -iwifi0
INTERFACES=-ieth1
# ndiswrapper and prism
# DRIVERS=-Dndiswrapper -Dprism
#DRIVERS=-Dndiswrapper
DRIVERS=-Dwext

My settings on boot for /etc/init.d/wpa_supplicant
and /etc/init.d/network:
# grep chkconfig /etc/init.d/wpa_supplicant /etc/init.d/network
/etc/init.d/wpa_supplicant:# chkconfig:   - 9 88
/etc/init.d/network:# chkconfig: 2345 10 90


regards
Olaf

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


Re: [CentOS] OT: C++ Newbie Hello World problem SOLVED

2008-10-05 Thread Lanny Marcus
On Wed, Oct 1, 2008 at 5:19 PM,  [EMAIL PROTECTED] wrote:
 Lanny Marcus wrote:

 Note: This began in the thread [CentOS] Probably a bad setup but
 which one? but I don't want to hijack that thread.  tech began with
 a similar problem, with the Perl Hello World script.

 Oh no not another n00b. n00bs should probably have to go to boot camp or :-

There are some very helpful people in the UK on this list. I am sorry
that you have such disdain for newbies. Not all of us were born
knowing everything.

To the many many people on this mailing list who are extremely
helpful, to me and others, you have my sincere appreciation. I'm sure
that the others who do not find everything intuitively obvious are
also very grateful for your time and help! My belief is that even the
gurus on this list learn new things, from time to time.

 1. Don't top post.

I did not top post. I do not top post.  I began a new thread.

 2. Don't hijack another thread with new unrelated info.

I posted in the other thread that I did not want to hijack the thread
begun by tech. I was amused that the other person had a similar
problem, in Perl, with a hello world problem and I posted that I was
having the same problem, with C++.

 3. Trim your responses.

That I could have done. I should have eliminated the code that I
included at the bottom, but, I thought possibly someone else on this
list would find that C++ book very useful, especially since it can be
downloaded, free.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Solved: Dell PE2850 with 4GB RAM - Get a hold of yourself

2008-10-05 Thread Lanny Marcus
On Fri, Oct 3, 2008 at 11:32 AM, MHR [EMAIL PROTECTED] wrote:
 On Fri, Oct 3, 2008 at 4:48 AM, Vandaman [EMAIL PROTECTED] wrote:

 Look at the following post and welcome to the CentOS Mailing List.
 http://lists.centos.org/pipermail/centos/2008-October/065626.html

 Trim your mails, turn off html in your client and do some basic
 homework on your problem offlist and you'll be a star.

 This list is for people who need, want or can give help w.r.t. CentOS
 and peripherally related issues.

 For someone whose name does not even appear in the archives yet, you
 seem awfully hostile to everyone who deviates even slightly from the
 norm here, including people who are long-time members of this list.
 Tone it down, and if you have nothing helpful or advisory to say
 w.r.t. the problem presented, kindly save our time and stop wasting
 your own by typing it in.

AMEN Mark! I waited several days to reply to him, after the blasting I
got. And, I do not remember him being an active participant in this
mailing list before. I recognize and deeply appreciate many of the
people who are and have been so helpful, for such a long time, in this
mailing list. He's not one of them.

 Yes, I prefer not to read people's personal ramblings, and I don't
 like top posters, unedited response trails and so on, but you make me
 look nice about it

 FTR, Sorin's posts were all rather nicely trimmed, though I admit I
 was wondering when he was going to stop Rumsfelding us.

 Lighten up.  Someday, you, too, may need help and not be quite so
 particular with the guidelines.

That's also true. It might even be me or another newbie who has the
answer to his problem.
However, it is so obvious that he knows *EVERYTHING* I'm not sure why
he has begun to participate in this mailing list.  Simply to tell
others how to post or not post. Has he helped anyone here?

If one of the Developers wants us out, we will leave, but, I do not
believe the Developers agree with what vandaman writes.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: C++ Newbie Hello World problem SOLVED

2008-10-05 Thread MHR
On Sun, Oct 5, 2008 at 10:08 AM, Lanny Marcus [EMAIL PROTECTED] wrote:
 On Wed, Oct 1, 2008 at 5:19 PM,  [EMAIL PROTECTED] wrote:

 Oh no not another n00b. n00bs should probably have to go to boot camp or :-

 There are some very helpful people in the UK on this list. I am sorry
 that you have such disdain for newbies. Not all of us were born
 knowing everything.


I've noticed Lanny's name on posts going back as far as my own
(rocky-start) membership on this list, and I find it hard to believe
that he could still be considered a n00b, except, perhaps, by
comparison to some with 10+ years (or way more) with computers, Linux,
CentOS, etc.

Then there are some whose names are not even in the archives yet

:-)

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


RE: [CentOS] Re: mysqld breaks yum, help?

2008-10-05 Thread RobertH

 
 z00dax in irc made a good point, that I should mention that this is a
 VPS and i have root access. No one else is on this machine.
 
 Furthermore, disabling the fastestmirror plugin solves the problem
 for now. (thanks z00dax)
 
 If anything else weird happens i'll write back.
 
 Thanks for the help.
 

Dac

Interesting...

Why does disabling something that the centos website says is highly
recommended (multiple times) fix this issue?

For those that do not know, you can disable this plugin by removing it or by
going to the /etc/yum directory, and then go to the plugin directory below
there and editing the proper file and zeroing out the enable line

 -rh

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


Re: [CentOS] Re: Question on Wireless Setup

2008-10-05 Thread Akemi Yagi
On Sun, Oct 5, 2008 at 5:29 AM, Olaf Mueller [EMAIL PROTECTED] wrote:
 Ashish Vijaywargiya wrote:

 Can you please look at my problem ?
 In my opinion you have not give us enough information to solve this
 problem. Are you using wep, wpa, wpa2, wpa_supplicant, *-fwcutter? What
 module are you loading, anything blacklisted in /etc/modprobe.conf
 or /etc/modprobe.d/*?

Ashish,

Sorry for not getting back to you sooner.

As Olaf pointed out, we need more info from you.  I understand you now
run the centosplus kernel.  If the system detected your network device
correctly, it should have loaded the iwl3945 driver.  Please show us
the output of:

/sbin/lspci | egrep -i 'ethernet|network|wireless'

dmesg | grep 3945

/sbin/lsmod | grep 3945

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


[CentOS] Software Raid Expert Needed

2008-10-05 Thread Iulian Badea

Hello all,

I have 2 x 250GB sata disks (sda and sdb).

# fdisk -l /dev/sda

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1   14939   119997486   fd  Linux raid
autodetect
/dev/sda2   14940   29878   119997517+  fd  Linux raid
autodetect
/dev/sda3   29879   30400 4192965   fd  Linux raid
autodetect

# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1   *   1 522 4192933+  fd  Linux raid
autodetect

# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdb1[1] sda3[0]
  4192832 blocks [2/2] [UU]

md1 : active raid1 sda2[1] sda1[0]
  119997376 blocks [2/2] [UU]

What I want to do:
- have on each disk 2 partitions (4gb for swap and the 200gb+ the rest for
/)
- raid 1 between them

This is what I wanted in the beginning, but...I didn't paid attention...

What can I do to rebuild it to my needs (without loosing data or
reformatting)?

Thanks 

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


Re: [CentOS] Software Raid Expert Needed

2008-10-05 Thread John R Pierce

Iulian Badea wrote:

Hello all,

I have 2 x 250GB sata disks (sda and sdb).

# fdisk -l /dev/sda

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1   14939   119997486   fd  Linux raid
autodetect
/dev/sda2   14940   29878   119997517+  fd  Linux raid
autodetect
/dev/sda3   29879   30400 4192965   fd  Linux raid
autodetect

# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1   *   1 522 4192933+  fd  Linux raid
autodetect

# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdb1[1] sda3[0]
  4192832 blocks [2/2] [UU]

md1 : active raid1 sda2[1] sda1[0]
  119997376 blocks [2/2] [UU]

What I want to do:
- have on each disk 2 partitions (4gb for swap and the 200gb+ the rest for
/)
- raid 1 between them

This is what I wanted in the beginning, but...I didn't paid attention...

What can I do to rebuild it to my needs (without loosing data or
reformatting)?
  


ouch.

I'd boot a rescue CD, drop the mirrors, repartition and mkfs on sdb1, 
dump both file systems to it, drop both metadisks, repartition sda1 as 2 
x raid1 w/o any active mirrors, mkfs on them, restore the dumps to these 
new md0, md1, then repartition sdb again as the two mirrors and join 
them to md0, md1


but thats just me.  others might do it differently.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Software Raid Expert Needed

2008-10-05 Thread Iulian Badea

My solution, please tell me if I'm right:

-remove the entire sdb disk from raid
-remove sda2 from raid
-resize sda1 (the rest of disk)
-copy partition table from sda to sdb
-make raid between sda1/sdb1 and sda3 and sdb3

Is this possible?

On Sun, 05 Oct 2008 15:15:40 -0700, John R Pierce [EMAIL PROTECTED]
wrote:
 Iulian Badea wrote:
 Hello all,

 I have 2 x 250GB sata disks (sda and sdb).

 # fdisk -l /dev/sda

 Disk /dev/sda: 250.0 GB, 250059350016 bytes
 255 heads, 63 sectors/track, 30401 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot  Start End  Blocks   Id  System
 /dev/sda1   *   1   14939   119997486   fd  Linux raid
 autodetect
 /dev/sda2   14940   29878   119997517+  fd  Linux raid
 autodetect
 /dev/sda3   29879   30400 4192965   fd  Linux raid
 autodetect

 # fdisk -l /dev/sdb

 Disk /dev/sdb: 250.0 GB, 250059350016 bytes
 255 heads, 63 sectors/track, 30401 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot  Start End  Blocks   Id  System
 /dev/sdb1   *   1 522 4192933+  fd  Linux raid
 autodetect

 # cat /proc/mdstat
 Personalities : [raid1]
 md2 : active raid1 sdb1[1] sda3[0]
   4192832 blocks [2/2] [UU]

 md1 : active raid1 sda2[1] sda1[0]
   119997376 blocks [2/2] [UU]

 What I want to do:
 - have on each disk 2 partitions (4gb for swap and the 200gb+ the rest
 for
 /)
 - raid 1 between them

 This is what I wanted in the beginning, but...I didn't paid attention...

 What can I do to rebuild it to my needs (without loosing data or
 reformatting)?

 
 ouch.
 
 I'd boot a rescue CD, drop the mirrors, repartition and mkfs on sdb1,
 dump both file systems to it, drop both metadisks, repartition sda1 as 2
 x raid1 w/o any active mirrors, mkfs on them, restore the dumps to these
 new md0, md1, then repartition sdb again as the two mirrors and join
 them to md0, md1
 
 but thats just me.  others might do it differently.
 ___
 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] mysqld breaks yum, help?

2008-10-05 Thread Kai Schaetzl
RobertH wrote on Sun, 5 Oct 2008 13:39:26 -0700:

 Why does disabling something that the centos website says is highly
 recommended (multiple times) fix this issue?

Because he has a non-standard setup. In case you didn't recognize: 
stopping mysqld also fixes his problem! He installed some software that 
affects threading and it's likely other things (that he didn't notice yet) 
are also affected. It's still weird, though. If you do not overwrite any 
base files you won't hit this problem.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



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


Re: [CentOS] OT: C++ Newbie Hello World problem SOLVED

2008-10-05 Thread Lanny Marcus
On Sun, Oct 5, 2008 at 3:12 PM, MHR [EMAIL PROTECTED] wrote:
 On Sun, Oct 5, 2008 at 10:08 AM, Lanny Marcus [EMAIL PROTECTED] wrote:
 On Wed, Oct 1, 2008 at 5:19 PM,  [EMAIL PROTECTED] wrote:

 Oh no not another n00b. n00bs should probably have to go to boot camp or :-

 There are some very helpful people in the UK on this list. I am sorry
 that you have such disdain for newbies. Not all of us were born
 knowing everything.

 I've noticed Lanny's name on posts going back as far as my own
 (rocky-start) membership on this list, and I find it hard to believe
 that he could still be considered a n00b, except, perhaps, by
 comparison to some with 10+ years (or way more) with computers, Linux,
 CentOS, etc.

 Then there are some whose names are not even in the archives yet

Vandaman just began posting in this mailing list and he is already
Chief of the Mailing List Police? I certainly consider myself a newbie
with regards to Linux and trying to get my head around C++ (OOP) is
not easy, because I began with Assembly Language, Machine Language and
Fortran. Using Linux at home, as I do, is not the same as using it at
work 40-80 hours a week, as a bunch of the wonderful people on this
mailing list do.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Software Raid Expert Needed

2008-10-05 Thread Bob Hoffman
 
I think you are saying not only do you want to keep the data but also keep
the whole system setup.
Not sure how to do that...however..

If I could back the whole drive up on a third I would just start over and
then move my config files and data over after done.

Hope this tutorial helps, this is how I figured out how to do a raid 1. But
does not cover your exact issue, but since you are new like me, maybe this
will help you.
http://www.bobhoffman.com/wordpress/?page_id=44

Good luck.
Sometimes it is just quiker to start over.

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


Re: [CentOS] Software Raid Expert Needed

2008-10-05 Thread John R Pierce

Bob Hoffman wrote:
 
I think you are saying not only do you want to keep the data but also keep

the whole system setup.


I tersely outlined how to do this earlier. 


in more detail...

   1) boot a rescue CD,
   2) drop the mirrors on sdb,
   3) repartition and mkfs on sdb1 to use as temporary file space to 
hold the backups of the existing md0, md1

   4) dump both file systems on md0, md1 to the temp file system on sdb1
   5) delete both metadisks
   6) repartition sda as 2 x raid1 w/o any active mirrors,
   7) mkfs on the new md0, md1
   8) restore the dumps on sdb1 to these new md0, md1
   9) repartition sdb again as the two mirrors and join them to md0, md1
  


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


Re: [CentOS] Software Raid Expert Needed

2008-10-05 Thread Sam

Iulian Badea wrote:

Hello all,

I have 2 x 250GB sata disks (sda and sdb).

# fdisk -l /dev/sda

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1   14939   119997486   fd  Linux raid
autodetect
/dev/sda2   14940   29878   119997517+  fd  Linux raid
autodetect
/dev/sda3   29879   30400 4192965   fd  Linux raid
autodetect

# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1   *   1 522 4192933+  fd  Linux raid
autodetect

# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdb1[1] sda3[0]
  4192832 blocks [2/2] [UU]

md1 : active raid1 sda2[1] sda1[0]
  119997376 blocks [2/2] [UU]

What I want to do:
- have on each disk 2 partitions (4gb for swap and the 200gb+ the rest for
/)
- raid 1 between them

This is what I wanted in the beginning, but...I didn't paid attention...

What can I do to rebuild it to my needs (without loosing data or
reformatting)?

Thanks 


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



I don't know if you are going to keep lvm or not but here is a howto:
http://www.howtoforge.com/set-up-raid1-on-a-running-lvm-system-fedora8

Also just search for raid1 on that website and you can find more stuff.

Sam

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


Re: [CentOS] OT: C++ Newbie Hello World problem SOLVED

2008-10-05 Thread Lanny Marcus
On Sun, Oct 5, 2008 at 6:06 PM, R P Herrold [EMAIL PROTECTED] wrote:
 On Sun, 5 Oct 2008, Lanny Marcus wrote:
 On Sun, Oct 5, 2008 at 3:12 PM, MHR [EMAIL PROTECTED] wrote:
 On Sun, Oct 5, 2008 at 10:08 AM, Lanny Marcus [EMAIL PROTECTED]
 wrote:
 On Wed, Oct 1, 2008 at 5:19 PM,  [EMAIL PROTECTED] wrote:
 Vandaman just began posting in this mailing list and he is already
 Chief of the Mailing List Police?

  * cough *

 The Chief of the Mailing List Police on ** any ** mailing list is those
 persons with access to the 'mailman' configuration, or deeper magic via the
 ability to set procmail rules and such.

 If it comes from someone with a working '@centos.org' return email address,
 they might be 'on the force'

Russ: LOL.  By your definition, Vandaman is not a member of the police
force. Not only is he not one of the wonderful  hardworking
Developers, he just began posting on this list.  Lanny
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ejabberd 2.0.2 vs SELinux vs CentOS 5

2008-10-05 Thread Damian S

On Sun, 2008-10-05 at 03:02 +1100, Damian S wrote:
 Anyway, to cut a long story short, I have discovered that SELinux is
 preventing erlang from accessing its crypto libs.
 This message appears in the SELinux audit logs:
 type=AVC msg=audit(1223133076.770:102): avc:  denied  { execmod } for
 pid=3878 comm=beam.smp
 path=/opt/ejabberd-2.0.2_2/lib/crypto-1.5.2/priv/linux-x86/lib/crypto_drv.so
  dev=dm-0 ino=26738869 scontext=user_u:system_r:unconfined_t:s0 
 tcontext=user_u:object_r:usr_t:s0 tclass=file

Just one final thing (hope it helps someone in future), according to Dan
Walsh, much better (more fine-grained) than setting the allow_execmem
boolean is to do this:
chcon -t unconfined_execmem_exec_t /opt/ejabberd-2.0.2_2/bin/beam.smp


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


Re: [CentOS] mysqld breaks yum, help?

2008-10-05 Thread Dac Chartrand


On 5-Oct-08, at 10:10 PM, nate wrote:


Perhaps you should use a distribution that includes all of the
packages you need rather than trying to bolt a bunch of
3rd party stuff on to CentOS.


Only a the PHP packages came from a 3rd party, Everything else as far  
as I know comes from CentOS-Base.repo. I later removed the 3rd party  
PHP rpms (see log) and re-installed what was available from CentOS- 
Testing.repo



I never, ever directly use 3rd party repositories. Never
have had a problem. I even download mysql from mysql.com and
build it from source, even go so far as rebuilding php
to link against the newer mysql(in CentOS 4's case). No
problems.


Well. this is definitely good advice. But for the rest of us looking  
to use yum, you know, the default CentOS package management software,  
it seems a bit odd top to say you shouldn't have used yum when all  
the documentation I searched for led to it?


---
http://www.trotch.com/




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


Re: [CentOS] mysqld breaks yum, help?

2008-10-05 Thread Dac Chartrand


On 5-Oct-08, at 10:10 PM, nate wrote:


Are there any packages installed that weren't part of the
*base* CentOS?


PS: I can't answer this question. I inherited a CentOS 5.2 VPS and  
moved forward from there.


I wrote support and they looked into it. None of their other installs  
exhibit the same behavior.


I accept I could have messed up the system somehow, but I equally  
submit that yum broke something while I followed standard procedure.


Accusing me of screwing something up when I pretty much did `yum  
update`, all the while setting up and obeying priorities as outlined  
in the docs, and pretty much nothing else, is a bit overzealous IMHO.  
See log and the rest of this thread for a full scrutiny of my  
activities.


Anyway, for now. Disabling fastestmirror works, full yum log is there  
for people to review, the pyhthon error is easily reproducible  
(happens when mysqld is on, and only when fastmirror is enabled).


Don't know what else I can add here.

---
http://www.trotch.com/




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


Re: [CentOS] mysqld breaks yum, help?

2008-10-05 Thread nate
Dac Chartrand wrote:


 Well. this is definitely good advice. But for the rest of us looking
 to use yum, you know, the default CentOS package management software,
 it seems a bit odd top to say you shouldn't have used yum when all
 the documentation I searched for led to it?

I didn't mean don't use yum, I meant if you want a really
stable system don't use 3rd party repos. Stick to what
is in base, or use a distribution that has the apps/versions
that are closer to what your needs are.

nate

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


Re: [CentOS] mysqld breaks yum, help?

2008-10-05 Thread nate
Dac Chartrand wrote:

 On 5-Oct-08, at 10:10 PM, nate wrote:

 Are there any packages installed that weren't part of the
 *base* CentOS?

 PS: I can't answer this question. I inherited a CentOS 5.2 VPS and
 moved forward from there.

 Accusing me of screwing something up when I pretty much did `yum
 update`, all the while setting up and obeying priorities as outlined
 in the docs, and pretty much nothing else, is a bit overzealous IMHO.

I don't recall accusing you of that, you mention above you
inherited that system, it's possible that whoever had it before
you screwed it up before you got it.

Did I mention I don't trust VPS either ?:) I pay a bit extra
and co-lo my own server a local facility so I have complete
control over it and knowledge of what is/is not installed
(Runs Debian stable instead of CentOS since Debian has more
packages that I want/need/like).

I inherited  more than 300 RHEL 3/4 systems earlier this
year in various states of dysfunction. So I do have somewhat
of an idea of how  you feel!

The previous admin didn't really know what they were doing
in many cases. It'll probably be another 6-8 months before
I have everything cleaned up at this rate(getting downtime
to re-install each system fresh takes a while amongst my
other projects). I'd rather not try to hunt down and fix
every system, just backup, re-install and start fresh so
everything is in a known good, consistent state.

My habits generally involve more work up front but
once that work is done the long term benefits more than
compensate for it.

nate

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


[CentOS] python-sybase on Centos 5 x86_64

2008-10-05 Thread Michael Best
Installed the freetds rpms from centos-extras, also tried the ones in 
rpmforge

http://mirror.centos.org/centos/5/extras/x86_64/RPMS/freetds-0.64-11.el5.centos.x86_64.rpm
http://mirror.centos.org/centos/5/extras/x86_64/RPMS/freetds-devel-0.64-11.el5.centos.x86_64.rpm

Compiled python-sybase-0.39 by hand, and also via rpm.

http://www.redhat.com/archives/fedora-package-review/2008-August/msg01790.html

This spec file modified to compile on x86_64:
http://gohanman.com/rpm/Fedora9/freetds-devel/freetds-devel.spec

--- python-sybase.spec  2008-10-05 21:53:49.0 -0600
+++ python-sybase.spec.new  2008-10-05 21:53:36.0 -0600
@@ -27,6 +27,6 @@
 %install
 rm -rf $RPM_BUILD_ROOT
-PYVERSION=`python --version 21 | sed -e s/.* 
\([0-9]*\.[0-9]*\)\.[0-9]*/\1/g`

-export PYTHONPATH=$RPM_BUILD_ROOT/usr/lib/python$PYVERSION/site-packages
+PYVERSION=`python -V 21 | sed -e s/.* \([0-9]*\.[0-9]*\)\.[0-9]*/\1/g`
+export 
PYTHONPATH=$RPM_BUILD_ROOT/usr/lib64/python$PYVERSION/site-packages

 mkdir -p $PYTHONPATH
 export SYBASE=/usr

Both the source version and the rpm are built basically the same way, 
and the final result after installation is something like:


# python
Python 2.4.3 (#1, Mar 14 2007, 19:01:42)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] on linux2
Type help, copyright, credits or license for more information.
 import Sybase
Traceback (most recent call last):
  File stdin, line 1, in ?
  File build/bdist.linux-x86_64/egg/Sybase.py, line 11, in ?
  File build/bdist.linux-x86_64/egg/sybasect.py, line 7, in ?
  File build/bdist.linux-x86_64/egg/sybasect.py, line 6, in __bootstrap__
ImportError: 
/home/mbest/.python-eggs/python_sybase-0.39-py2.4-linux-x86_64.egg-tmp/sybasect.so: 
undefined symbol: blk_alloc


As per this thread:
http://mlblog.osdir.com/python.sybase/2004-03/

Something may be going wrong in linking, as the sybasect.so doesn't seem 
to be linked to the sybase libraries.


$ ldd 
~/.python-eggs/python_sybase-0.39-py2.4-linux-x86_64.egg-tmp/sybasect.so

libpthread.so.0 = /lib64/libpthread.so.0 (0x2acdf000)
libc.so.6 = /lib64/libc.so.6 (0x2aef9000)
/lib64/ld-linux-x86-64.so.2 (0x4000)

Suggestions, comments, fixes, would all be useful.

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


[CentOS] Boot disk order: h/w vs. grub

2008-10-05 Thread MHR
I'm still having conceptual trouble with this one.

I have two PATA and two SATA disks in my home system.  When the system
comes up, these are, espectively, /dev/hda, /dev/hdb, /dev/sda and
/dev/sdb.  I have the boot order of the drives in the boot PROM set to
boot from /dev/sda (hard drive 2), then /dev/hda (hd 0), and usually
that works fine.  /dev/sda is properly set up with the MBR and /boot
lives there as well.

However, when the system has to be shut down, usually for some length
of time more than just a few seconds, when it comes back up, it can't
find the boot image.

I forgot how I got around this the first time.  The second time, when
it wasn't booting past the GRUB part of the grub announcement, I
used the installation disk, booted into linux resuce mode, chroot'd to
the actual system disk and re-did grub-install.  Still, a few days
later (last Tuesday) when my video card went south, I just edited the
grub boot line to use root(hd2, 0) and it came up, followed by several
reboots with unmodified grub config lines.

I guess I'm wondering if there's some more permanent way around this
issue.  Do I need to overwrite the MBR on hd0?  Should I reconfigure
the system so the PATA drives are not connected to the m/b at all
(i.e., usb enclosures)?  Is this a bug in grub?  All this is assuming
that I do not get rid of the PATA drives and/or get a new m/b that has
something else

It seems strange that this should be such a pain, even though in a
rather oddball way it makes sense.

Thoughts?

Thanks

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


Re: [CentOS] mysqld breaks yum, help?

2008-10-05 Thread John
On Sun, 2008-10-05 at 22:52 -0400, Dac Chartrand wrote:
 
 On 5-Oct-08, at 10:10 PM, nate wrote:
 
  Are there any packages installed that weren't part of the
  *base* CentOS?

Could please you possibly do a list of all the installed RPMs on the
system in question. Just for cause do a grep to list any packages like
rf = rpmforge, jason or litka centos

 Anyway, for now. Disabling fastestmirror works, full yum log is there
 for people to review, the pyhthon error is easily
 reproducible (happens when mysqld is on, and only when fastmirror is
 enabled). 
 
 
 Don't know what else I can add here.
---

JohnStanley Writes:
Just by thought and maybe this is going to far off the subject. If it is
I appologize. What lets yum run the correct way when fastest mirror is
not loaded as a plugin? That there in sense does not sound right at all.
The thing that makes me think is a possible botched yum update that yums
meta data was hijacked and in turn got packages that were bugged or
malwared? IE...The Lateness of the update from the mirrors. Makes me
think. I know I know it's just a question.



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