Re: [CentOS] Dual-boot with WinXP, CentOS already installed

2009-04-22 Thread Sorin Srbu
>-Original Message-
>From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf
>Of JohnS
>Sent: Tuesday, April 21, 2009 11:42 PM
>To: CentOS mailing list
>Subject: Re: [CentOS] Dual-boot with WinXP, CentOS already installed
>
>> It's either Aopen or Asus. Can't tell just yet, there's a course going on
>> now on the computers. 8-)
>>
>> Would you mind elaborating on the killing part?
>-
>
>If the board is an ASUS Press F8 during POST. That will then give you a
>Selection of Devices.

Didn't follow your train of thought before. I do now. Thanks for clarifying. 
8-)
-- 
/Sorin


smime.p7s
Description: S/MIME cryptographic signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Dual-boot with WinXP, CentOS already installed

2009-04-22 Thread JohnS

On Wed, 2009-04-22 at 09:25 +0200, Sorin Srbu wrote:
> >-Original Message-
> >From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf
> >Of JohnS
> >Sent: Tuesday, April 21, 2009 11:42 PM
> >To: CentOS mailing list
> >Subject: Re: [CentOS] Dual-boot with WinXP, CentOS already installed
> >
> >> It's either Aopen or Asus. Can't tell just yet, there's a course going on
> >> now on the computers. 8-)
> >>
> >> Would you mind elaborating on the killing part?
> >-
> >
> >If the board is an ASUS Press F8 during POST. That will then give you a
> >Selection of Devices.
> 
> Didn't follow your train of thought before. I do now. Thanks for clarifying. 
> 8-)
-

:-)

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


Re: [CentOS] tg3 BCM5755 intermittantly stops working after upgrade to 5.3.

2009-04-22 Thread Mangesh S. Umbarje

The machine has a static IP. If I try to change speed or 
autoneg or both the network completely stops. It starts working only after 
I issue service network restart.

Regards,
Mangesh

On Tue, 21 Apr 2009, Michael Iatrou wrote:

> When the date was Tuesday 21 April 2009, Mangesh S. Umbarje wrote:
>
>>I have checked the physical connectivity which is perfectly
>> fine. This machine is very critical which we need to keep running as much
>> as possible. So I had gone to older kernel 2.6.18-92.1.17.el5. But along
>> with this kernel, I had added one more Dlink ethernet card which shows to
>> be
>>
>> 05:09.0 Ethernet controller: D-Link System Inc DGE-530T Gigabit Ethernet
>> Adapter (rev 11) (rev 11)
>>
>> and it uses the skge driver.
>>
>>So I could test the machine with this new card and
>> kernel-2.6.18-92.1.17.el5 togather. Still I do get the network breaks but
>> the frequency reduced to factor of Ten. The corresponding messages seen
>> in the /var/log/messages are as follow.
>>
>> Apr 21 10:18:32 kernel: skge eth1: Link is down.
>> Apr 21 10:18:36 kernel: skge eth1: Link is up at 1000 Mbps, full duplex,
>> flow control none Apr 21 10:18:55 kernel: skge eth1: Link is down.
>> Apr 21 10:18:57 kernel: skge eth1: Link is up at 1000 Mbps, full duplex,
>> flow control none Apr 21 10:18:58 kernel: skge eth1: Link is down.
>> Apr 21 10:19:01 kernel: skge eth1: Link is up at 1000 Mbps, full duplex,
>> flow control none
>
> Try to disable auto-negotiation for the NIC, using ethtool. Set manually the
> speed to 100 and then 1000 Mbps and see what happens.
>
> The machine has static IP or it uses DHCP? It's a good idea to do some
> traffic capture and check if there is any correlation between the traffic
> and the link state.
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] tg3 BCM5755 intermittantly stops working after upgrade to 5.3.

2009-04-22 Thread D Tucny
2009/4/22 Mangesh S. Umbarje 

>
>The machine has a static IP. If I try to change speed or
> autoneg or both the network completely stops. It starts working only after
> I issue service network restart.
>

You can't have a gigabit connection with autoneg off and to manually set the
speed you'd need to set it on both sides of the connection...

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


[CentOS] Cannot set user quotas

2009-04-22 Thread Xn Nooby
Hello, I am having some trouble getting quota's to work. When I try to
set the quota for a user, it does not show up when I run repquota. I
am doing this on a Redhat (RHEL5) machine (I assume it is the same on
Centos). I think I am missing a step, but this is what I am doing:


(1) I add usrquota to the /etc/fstab file, then reboot

  LABEL=/home  /home  ext3  defaults,usrquota 1 2

(2) Verify /home is /dev/hda3

  /sbin/tune2fs -l /dev/hda3 | grep volume
Filesystem volume name:   /home


(3) Create the user quota file

  quotacheck -cmu /home
  ls –l /home/aquota.user
  repquota /home


  [r...@mail ~]# repquota /home
  *** Report for user quotas on device /dev/hda3
  Block grace time: 7days; Inode grace time: 7days
  Block limitsFile limits
  Userusedsofthard  graceused  soft  hard  grace
  --
  root  --  184224   0   0  4 0 0
  12345 -- 208   0   0 49 0 0
  54321 -- 172   0   0 40 0 0


(4) Turn on quotas

  quoataon /home

(5) Add a user quota

  setquota -u 12345 1 11000 0 0 -a /dev/hda3

(6) Recalculate the quotas

   quotaoff /home
   quotacheck -amu
   quotaon /home

(7) Check if the quotas are active

  ls –l /home/aquota.user
  repquota /home


  [r...@mail ~]# repquota /home
  *** Report for user quotas on device /dev/hda3
  Block grace time: 7days; Inode grace time: 7days
  Block limitsFile limits
  Userusedsofthard  graceused  soft  hard  grace
  --
  root  --  184224   0   0  4 0 0
  12345 -- 208   0   0 49 0 0
  54321 -- 172   0   0 40 0 0


(8) Shouldn't the limits look like this: ???


  Userusedsofthard  graceused  soft  hard  grace
  --
  root  --  184224   0   0  4 0 0
  12345 -- 208   1   11000 49 0 0
  54321 -- 172   0   0 40 0 0
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cannot set user quotas

2009-04-22 Thread Xn Nooby
edquota show's the quota, but the quota command does not:

[r...@mail ~]# setquota -u 12345 1 11000 0 0 -a /dev/hda3

[r...@mail ~]# edquota -u 12345
Disk quotas for user 12345 (uid 12345):
  Filesystem   blocks   soft   hard inodes
soft hard
  /dev/hda3 0  1  11000  0
   00
~
~

[r...@mail ~]# quota -u 12345
Disk quotas for user #12345 (uid 12345): none


On Wed, Apr 22, 2009 at 9:38 AM, Xn Nooby  wrote:
> Hello, I am having some trouble getting quota's to work. When I try to
> set the quota for a user, it does not show up when I run repquota. I
> am doing this on a Redhat (RHEL5) machine (I assume it is the same on
> Centos). I think I am missing a step, but this is what I am doing:
>
>
> (1) I add usrquota to the /etc/fstab file, then reboot
>
>  LABEL=/home  /home  ext3  defaults,usrquota 1 2
>
> (2) Verify /home is /dev/hda3
>
>  /sbin/tune2fs -l /dev/hda3 | grep volume
>    Filesystem volume name:   /home
>
>
> (3) Create the user quota file
>
>  quotacheck -cmu /home
>  ls –l /home/aquota.user
>  repquota /home
>
>
>  [r...@mail ~]# repquota /home
>  *** Report for user quotas on device /dev/hda3
>  Block grace time: 7days; Inode grace time: 7days
>                          Block limits                File limits
>  User            used    soft    hard  grace    used  soft  hard  grace
>  --
>  root      --  184224       0       0              4     0     0
>  12345     --     208       0       0             49     0     0
>  54321     --     172       0       0             40     0     0
>
>
> (4) Turn on quotas
>
>  quoataon /home
>
> (5) Add a user quota
>
>  setquota -u 12345 1 11000 0 0 -a /dev/hda3
>
> (6) Recalculate the quotas
>
>   quotaoff /home
>   quotacheck -amu
>   quotaon /home
>
> (7) Check if the quotas are active
>
>  ls –l /home/aquota.user
>  repquota /home
>
>
>  [r...@mail ~]# repquota /home
>  *** Report for user quotas on device /dev/hda3
>  Block grace time: 7days; Inode grace time: 7days
>                          Block limits                File limits
>  User            used    soft    hard  grace    used  soft  hard  grace
>  --
>  root      --  184224       0       0              4     0     0
>  12345     --     208       0       0             49     0     0
>  54321     --     172       0       0             40     0     0
>
>
> (8) Shouldn't the limits look like this: ???
>
>
>  User            used    soft    hard  grace    used  soft  hard  grace
>  --
>  root      --  184224       0       0              4     0     0
>  12345     --     208   1   11000             49     0     0
>  54321     --     172       0       0             40     0     0
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread David . Mackintosh
On Tue, Apr 21, 2009 at 10:25:59PM +0100, Daniel Bird wrote:

> Take a look at Netdisco. I seem to remember it's a little tricky to set
> up on CentOS but I wouldn't live without it now.

"A little tricky"?

Last time I looked at it, I described the installation process as
only slightly less complicated than building a Saturn-V rocket out of
1960's era TV parts.  

-- 
 /\oo/\
/ /()\ \ David Mackintosh | 
 d...@xdroop.com  | http://www.xdroop.com


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


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Sean Carolan
> Last time I looked at it, I described the installation process as
> only slightly less complicated than building a Saturn-V rocket out of
> 1960's era TV parts.

You were not kidding - I some how managed to get netdisco installed
using the CentOS installer script but there were several points where
I had to install things by hand.  Unfortunately it's not discovering
my devices properly, I will take that up on the netdisco mailing list.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Les Mikesell
david.mackint...@xdroop.com wrote:
> On Tue, Apr 21, 2009 at 10:25:59PM +0100, Daniel Bird wrote:
> 
>> Take a look at Netdisco. I seem to remember it's a little tricky to set
>> up on CentOS but I wouldn't live without it now.
> 
> "A little tricky"?
> 
> Last time I looked at it, I described the installation process as
> only slightly less complicated than building a Saturn-V rocket out of
> 1960's era TV parts.  

I'll repeat my recommendation for OpenNMS.  Getting started is as easy 
as 'yum install' (almost...).  And it can do about anything you'd want 
in a monitoring system - including matching up those switch ports with 
the connected devices.

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


[CentOS] Centos 5.3 NetworkManager success story

2009-04-22 Thread Robert Moskowitz
In the past I have not been able to use NetworkManager.  It failed to 
provide a connection to my WPA-PSK AP (hey don't argue WPA-PSK security 
with me, I helped right the spec on it, and wrote the paper on the 
attack on it! It works here, as I use it.).  So I have continued to use 
my set of scripts and hand-coded wpa_supplicant.conf file.

So I decided to give NetworkManager another chance given the upgrade and 
IT WORKS!  WOW!

Now when I come out of Hibernation, I have my network connection right 
away; I don't have to restart all sorts of services manually.

Unfortunately, I am not at RSA to test it with their AES-8021X setup (my 
son's wedding monday kind of took precedence over going to a conference 
;) ), so I don't know how it would work with that setup...

But I am a happier camper right now!


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


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Sean Carolan
> I'll repeat my recommendation for OpenNMS.  Getting started is as easy
> as 'yum install' (almost...).  And it can do about anything you'd want
> in a monitoring system - including matching up those switch ports with
> the connected devices.

Les, at first I didn't heed your advice because I figured it would be
another ten hour battle to get opennms installed.  I was pleasantly
surprised to find that that it installed in ten minutes using yum on
my CentOS 5 box.  Much slicker interface than netdisco, and it
discovered all the ports on my switches on the first try.  Thanks for
the suggestion!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] QuickBooks Enterprise DB Server

2009-04-22 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joseph L. Casale wrote:
> Anyone running this POS on CentOS and can spare some info? Support
> is useless, and it's just not working:)I am not getting a qbdir.dat
> file created, and the error log is, well, empty!

We threw in the towel on this POS and just purchased a full XP license
to run under VMWare to host it.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFJ7zfwCFu3bIiwtTARAqM4AKCYfjkSovl2MpYdSWqOp9YYwEUlLwCeOB18
nbtTFsPO2R76/wr38yx0wNc=
=zkcP
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Les Mikesell
Sean Carolan wrote:
>> I'll repeat my recommendation for OpenNMS.  Getting started is as easy
>> as 'yum install' (almost...).  And it can do about anything you'd want
>> in a monitoring system - including matching up those switch ports with
>> the connected devices.
> 
> Les, at first I didn't heed your advice because I figured it would be
> another ten hour battle to get opennms installed.  I was pleasantly
> surprised to find that that it installed in ten minutes using yum on
> my CentOS 5 box.  Much slicker interface than netdisco, and it
> discovered all the ports on my switches on the first try.  Thanks for
> the suggestion!

It was somewhat difficult to install on Centos (mostly just getting a 
Sun JVM installed sanely) until they added the yum repository.  It is 
still somewhat complicated to deal with all of the things it can do so 
I'd suggest joining the mailing list if you haven't already.  It does 
support many more devices out of the box than netdisco, including hosts 
as well as network equipment. If you want it to collect snmp data for 
graphs on the switch ports that don't have addresses you can set 
collection manually for each one or just change snmpStorageFlag to "all' 
in datacollection-config.xml.

-- 
   Les Mikesell
lesmikes...@gmail.com

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


Re: [CentOS] Cannot set user quotas

2009-04-22 Thread Xn Nooby
I think my problem was that because I am using all-numeric usernames,
setquota was assuming I was giving it a UID. So I used the "-x" option
and now it is working:

setquota -x 12345 1 11000 0 0 -a /dev/hda3


On Wed, Apr 22, 2009 at 9:52 AM, Xn Nooby  wrote:
> edquota show's the quota, but the quota command does not:
>
> [r...@mail ~]# setquota -u 12345 1 11000 0 0 -a /dev/hda3
>
> [r...@mail ~]# edquota -u 12345
> Disk quotas for user 12345 (uid 12345):
>  Filesystem                   blocks       soft       hard     inodes
>    soft     hard
>  /dev/hda3                         0      1      11000          0
>       0        0
> ~
> ~
>
> [r...@mail ~]# quota -u 12345
> Disk quotas for user #12345 (uid 12345): none
>
>
> On Wed, Apr 22, 2009 at 9:38 AM, Xn Nooby  wrote:
>> Hello, I am having some trouble getting quota's to work. When I try to
>> set the quota for a user, it does not show up when I run repquota. I
>> am doing this on a Redhat (RHEL5) machine (I assume it is the same on
>> Centos). I think I am missing a step, but this is what I am doing:
>>
>>
>> (1) I add usrquota to the /etc/fstab file, then reboot
>>
>>  LABEL=/home  /home  ext3  defaults,usrquota 1 2
>>
>> (2) Verify /home is /dev/hda3
>>
>>  /sbin/tune2fs -l /dev/hda3 | grep volume
>>    Filesystem volume name:   /home
>>
>>
>> (3) Create the user quota file
>>
>>  quotacheck -cmu /home
>>  ls –l /home/aquota.user
>>  repquota /home
>>
>>
>>  [r...@mail ~]# repquota /home
>>  *** Report for user quotas on device /dev/hda3
>>  Block grace time: 7days; Inode grace time: 7days
>>                          Block limits                File limits
>>  User            used    soft    hard  grace    used  soft  hard  grace
>>  --
>>  root      --  184224       0       0              4     0     0
>>  12345     --     208       0       0             49     0     0
>>  54321     --     172       0       0             40     0     0
>>
>>
>> (4) Turn on quotas
>>
>>  quoataon /home
>>
>> (5) Add a user quota
>>
>>  setquota -u 12345 1 11000 0 0 -a /dev/hda3
>>
>> (6) Recalculate the quotas
>>
>>   quotaoff /home
>>   quotacheck -amu
>>   quotaon /home
>>
>> (7) Check if the quotas are active
>>
>>  ls –l /home/aquota.user
>>  repquota /home
>>
>>
>>  [r...@mail ~]# repquota /home
>>  *** Report for user quotas on device /dev/hda3
>>  Block grace time: 7days; Inode grace time: 7days
>>                          Block limits                File limits
>>  User            used    soft    hard  grace    used  soft  hard  grace
>>  --
>>  root      --  184224       0       0              4     0     0
>>  12345     --     208       0       0             49     0     0
>>  54321     --     172       0       0             40     0     0
>>
>>
>> (8) Shouldn't the limits look like this: ???
>>
>>
>>  User            used    soft    hard  grace    used  soft  hard  grace
>>  --
>>  root      --  184224       0       0              4     0     0
>>  12345     --     208   1   11000             49     0     0
>>  54321     --     172       0       0             40     0     0
>>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
Hey there -

This morning I ran the yum updater through Webmin as I do every month  
or so - after about two hours I realized that I still had the same  
updating screen going - and no response.   Seemed strange.

Simple attempts to kill it didn't work so I sent a command to reboot  
the system - that seemed to work, till I turned on the monitor  
directly connected to the server -

I saw this error go by - and then only a spinning cursor - never get  
to a login screen.  (I power cycled again and saw it go by again - and  
recognized it when I tried again at Webmin and through a terminal  
connection).

Traceback (most recent call last):
   File "/usr/bin/yum", line 28, in ?
 import yummain
   File "/usr/share/yum-cli/yummain.py", line 29, in ?
 import cli
   File "/usr/share/yum-cli/cli.py", line 30, in ?
 import output
   File "/usr/share/yum-cli/output.py", line 26, in ?
 from i18n import _
ImportError: No module named i18n

I deleted the yum cash and no improvement.  I tried the yum clean and  
no imporvement
[r...@trailrunner yum]# yum clean all
Traceback (most recent call last):
   File "/usr/bin/yum", line 28, in ?
 import yummain
   File "/usr/share/yum-cli/yummain.py", line 29, in ?
 import cli
   File "/usr/share/yum-cli/cli.py", line 30, in ?
 import output
   File "/usr/share/yum-cli/output.py", line 26, in ?
 from i18n import _
ImportError: No module named i18n
[r...@trailrunner yum]#

Not at all sure what happened or why, or where I even start trying to  
straighten this mess out.

How do I blow away the apparent yum junk in the hope of getting a  
local login capability back?

How or what should I do to reset yum - seems reinstalling the latest  
version is probably the route.  What is the version that CentOS  
uses?   Should I go the RPM route or try something more specific?

Totally unexpected problem and leaving me feeling very uncertain about  
things.


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


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Sean Carolan
> It was somewhat difficult to install on Centos (mostly just getting a
> Sun JVM installed sanely) until they added the yum repository.  It is
> still somewhat complicated to deal with all of the things it can do so
> I'd suggest joining the mailing list if you haven't already.  It does
> support many more devices out of the box than netdisco, including hosts
> as well as network equipment. If you want it to collect snmp data for
> graphs on the switch ports that don't have addresses you can set
> collection manually for each one or just change snmpStorageFlag to "all'
> in datacollection-config.xml.

OpenNMS is now crawling my network and discovering all the servers.
I'm not seeing how to find which switch and port each device is
plugged into.  If I browse to a node and click on it's network
interface, it says this:

--
Link Node/Interface
No link information has been collected for this interface.
--

Is that where the port and switch information is supposed to show up?
Or am I looking in the wrong place?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Lanny Marcus
On Wed, Apr 22, 2009 at 11:47 AM, Dan Roberts  wrote:
> This morning I ran the yum updater through Webmin as I do every month
> or so - after about two hours I realized that I still had the same
> updating screen going - and no response.   Seemed strange.

No idea why you are getting this problem or using Webmin to update
your box, but I suggest you rethink the idea of only doing updates
"every month or so". You could have the box exposed to an exploit for
a long time, with that schedule. Hopefully someone else on the list
will have a solution for your immediate problem. GL
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Jim Perrin
On Wed, Apr 22, 2009 at 12:47 PM, Dan Roberts  wrote:
> Hey there -
>
> This morning I ran the yum updater through Webmin as I do every month
> or so - after about two hours I realized that I still had the same
> updating screen going - and no response.   Seemed strange.

So you probably missed the notes and announcements about the 5.3
release, as well as the release notes about upgrade hiccups.
There are also quite a few updates here, so the update will take some
time to run.

> Simple attempts to kill it didn't work so I sent a command to reboot
> the system - that seemed to work, till I turned on the monitor
> directly connected to the server -

Updating via webmin may not be the best approach, as some things may
update which could impact webmin.

> I saw this error go by - and then only a spinning cursor - never get
> to a login screen.  (I power cycled again and saw it go by again - and
> recognized it when I tried again at Webmin and through a terminal
> connection).

Power cycling a system should be considered a last-resort option, not
a method for troubleshooting.

> Traceback (most recent call last):
>   File "/usr/bin/yum", line 28, in ?
>     import yummain
>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>     import cli
>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>     import output
>   File "/usr/share/yum-cli/output.py", line 26, in ?
>     from i18n import _
> ImportError: No module named i18n
>
> I deleted the yum cash and no improvement.  I tried the yum clean and
> no imporvement
> [r...@trailrunner yum]# yum clean all
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 28, in ?
>     import yummain
>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>     import cli
>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>     import output
>   File "/usr/share/yum-cli/output.py", line 26, in ?
>     from i18n import _
> ImportError: No module named i18n
> [r...@trailrunner yum]#
>
> Not at all sure what happened or why, or where I even start trying to
> straighten this mess out.

For systems which experienced issues moving from 5.2 to 5.3, a 'yum
clean all' resolved the majority of issues.

> How do I blow away the apparent yum junk in the hope of getting a
> local login capability back?

Yum doesn't have anything to do with logging into the system at all.
I'm not sure why you think this would help. However as previously
stated a 'yum clean all' should 'blow away' the yum bits. Further
nuking yum transactions is not to be done lightly, and requires the
yum-utils package to be installed. We'll go over that command later if
we have to.

> How or what should I do to reset yum - seems reinstalling the latest
> version is probably the route.  What is the version that CentOS
> uses?   Should I go the RPM route or try something more specific?
>
> Totally unexpected problem and leaving me feeling very uncertain about
> things.

Please subscribe to the Centos-Announce list. You got blind-sided by a
very public release because you only update every month or so, and
don't generally follow updates in a manner most admins would consider
'good practice'. I believe that had you been aware of the 5.3 release,
you would have been a bit more careful in things.


-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Les Mikesell
Sean Carolan wrote:
>> It was somewhat difficult to install on Centos (mostly just getting a
>> Sun JVM installed sanely) until they added the yum repository.  It is
>> still somewhat complicated to deal with all of the things it can do so
>> I'd suggest joining the mailing list if you haven't already.  It does
>> support many more devices out of the box than netdisco, including hosts
>> as well as network equipment. If you want it to collect snmp data for
>> graphs on the switch ports that don't have addresses you can set
>> collection manually for each one or just change snmpStorageFlag to "all'
>> in datacollection-config.xml.
> 
> OpenNMS is now crawling my network and discovering all the servers.
> I'm not seeing how to find which switch and port each device is
> plugged into.  If I browse to a node and click on it's network
> interface, it says this:
> 
> --
> Link Node/Interface
> No link information has been collected for this interface.
> --
> 
> Is that where the port and switch information is supposed to show up?
> Or am I looking in the wrong place?

Back to my first email message when I thought you were already using 
OpenNMS...  You have to uncomment the Linkd service in 
etc/service-configuration.xml, then restart opennms and give it some 
time to probe.  Then it should show from the 'View Node Link Detailed 
Info' at the top left of a node page.  The weakest part of the program 
is the web admin section.  While it does a lot, there is much more that 
you can control via the xml config files.

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


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Sean Carolan
> Back to my first email message when I thought you were already using
> OpenNMS...  You have to uncomment the Linkd service in
> etc/service-configuration.xml, then restart opennms and give it some
> time to probe.  Then it should show from the 'View Node Link Detailed
> Info' at the top left of a node page.  The weakest part of the program
> is the web admin section.  While it does a lot, there is much more that
> you can control via the xml config files.

Thanks again, Les, this is going to be a very useful tool for us!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
thanks for the details - As the server lives in a closet without a  
monitor on it or even easy access I opted for Webmin so as to have the  
ability to get in and work with it.

I will resubscribe and get back into a better habit - I had been  
checking every day a year ago, and then life got busy.

Things were fine, and I had no trouble the in January when i put a  
monitor on it for some other reasons - but after the hang today it now  
is stuck.

As my cut and past below indicates, the "yum clean all" results in a  
consistent set of errors - any yum command seems to return the same  
errors.

Regardless of how or why they were caused, the issue now is how to  
clear them out so that I can actually get yum to work -

[r...@trailrunner yum]# yum clean all
Traceback (most recent call last):
   File "/usr/bin/yum", line 28, in ?
 import yummain
   File "/usr/share/yum-cli/yummain.py", line 29, in ?
 import cli
   File "/usr/share/yum-cli/cli.py", line 30, in ?
 import output
   File "/usr/share/yum-cli/output.py", line 26, in ?
 from i18n import _
ImportError: No module named i18n
[r...@trailrunner yum]#




On Apr 22, 2009, at 11:15 AM, Jim Perrin wrote:

> On Wed, Apr 22, 2009 at 12:47 PM, Dan Roberts  wrote:
>> Hey there -
>>
>> This morning I ran the yum updater through Webmin as I do every month
>> or so - after about two hours I realized that I still had the same
>> updating screen going - and no response.   Seemed strange.
>
> So you probably missed the notes and announcements about the 5.3
> release, as well as the release notes about upgrade hiccups.
> There are also quite a few updates here, so the update will take some
> time to run.
>
>> Simple attempts to kill it didn't work so I sent a command to reboot
>> the system - that seemed to work, till I turned on the monitor
>> directly connected to the server -
>
> Updating via webmin may not be the best approach, as some things may
> update which could impact webmin.
>
>> I saw this error go by - and then only a spinning cursor - never get
>> to a login screen.  (I power cycled again and saw it go by again -  
>> and
>> recognized it when I tried again at Webmin and through a terminal
>> connection).
>
> Power cycling a system should be considered a last-resort option, not
> a method for troubleshooting.
>
>> Traceback (most recent call last):
>>   File "/usr/bin/yum", line 28, in ?
>> import yummain
>>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>> import cli
>>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>> import output
>>   File "/usr/share/yum-cli/output.py", line 26, in ?
>> from i18n import _
>> ImportError: No module named i18n
>>
>> I deleted the yum cash and no improvement.  I tried the yum clean and
>> no imporvement
>> [r...@trailrunner yum]# yum clean all
>> Traceback (most recent call last):
>>   File "/usr/bin/yum", line 28, in ?
>> import yummain
>>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>> import cli
>>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>> import output
>>   File "/usr/share/yum-cli/output.py", line 26, in ?
>> from i18n import _
>> ImportError: No module named i18n
>> [r...@trailrunner yum]#
>>
>> Not at all sure what happened or why, or where I even start trying to
>> straighten this mess out.
>
> For systems which experienced issues moving from 5.2 to 5.3, a 'yum
> clean all' resolved the majority of issues.
>
>> How do I blow away the apparent yum junk in the hope of getting a
>> local login capability back?
>
> Yum doesn't have anything to do with logging into the system at all.
> I'm not sure why you think this would help. However as previously
> stated a 'yum clean all' should 'blow away' the yum bits. Further
> nuking yum transactions is not to be done lightly, and requires the
> yum-utils package to be installed. We'll go over that command later if
> we have to.
>
>> How or what should I do to reset yum - seems reinstalling the latest
>> version is probably the route.  What is the version that CentOS
>> uses?   Should I go the RPM route or try something more specific?
>>
>> Totally unexpected problem and leaving me feeling very uncertain  
>> about
>> things.
>
> Please subscribe to the Centos-Announce list. You got blind-sided by a
> very public release because you only update every month or so, and
> don't generally follow updates in a manner most admins would consider
> 'good practice'. I believe that had you been aware of the 5.3 release,
> you would have been a bit more careful in things.
>
>
> -- 
> During times of universal deceit, telling the truth becomes a  
> revolutionary act.
> George Orwell
> ___
> 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] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Rob Kampen



Dan Roberts wrote:
thanks for the details - As the server lives in a closet without a  
monitor on it or even easy access I opted for Webmin so as to have the  
ability to get in and work with it.


I will resubscribe and get back into a better habit - I had been  
checking every day a year ago, and then life got busy.


Things were fine, and I had no trouble the in January when i put a  
monitor on it for some other reasons - but after the hang today it now  
is stuck.


As my cut and past below indicates, the "yum clean all" results in a  
consistent set of errors - any yum command seems to return the same  
errors.


Regardless of how or why they were caused, the issue now is how to  
clear them out so that I can actually get yum to work -


[r...@trailrunner yum]# yum clean all
Traceback (most recent call last):
   File "/usr/bin/yum", line 28, in ?
 import yummain
   File "/usr/share/yum-cli/yummain.py", line 29, in ?
 import cli
   File "/usr/share/yum-cli/cli.py", line 30, in ?
 import output
   File "/usr/share/yum-cli/output.py", line 26, in ?
 from i18n import _
ImportError: No module named i18n
[r...@trailrunner yum]#


  
there was an issue with the update to 5.3 in that the glibc libraries 
needed to be updated prior to the remainder otherwise rpm had issues - 
this is probably what yum is choking on

try
#>rpm -uv glibc*
after that try yum clean all and then see what happens
HTH


On Apr 22, 2009, at 11:15 AM, Jim Perrin wrote:

  
___

CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
  
begin:vcard
fn:Rob Kampen
n:Kampen;Rob
email;internet:r...@kampensonline.net
tel;cell:407-341-3815
version:2.1
end:vcard

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
Hmmm -

# rpm -uv glibc*
-uv: unknown option

Ok - so I go with -Uv instead
# rpm -Uv glibc*
error: File not found by glob: glibc*

But this is strange because I know that glib-2.0 is there - fairly  
easy to confirm - is something missing?
# locate glibc
/usr/lib/glib-2.0/include/glibconfig.h
/usr/lib/valgrind/glibc-2.2.supp
/usr/lib/valgrind/glibc-2.3.supp
/usr/lib/valgrind/glibc-2.4.supp
/usr/sbin/glibc_post_upgrade.i686
/usr/share/doc/glibc-2.5
/usr/share/doc/glibc-common-2.5
/usr/share/doc/glibc-2.5/BUGS
/usr/share/doc/glibc-2.5/CONFORMANCE
/usr/share/doc/glibc-2.5/COPYING
/usr/share/doc/glibc-2.5/COPYING.LIB
/usr/share/doc/glibc-2.5/FAQ
/usr/share/doc/glibc-2.5/INSTALL
/usr/share/doc/glibc-2.5/LICENSES
/usr/share/doc/glibc-2.5/NEWS
/usr/share/doc/glibc-2.5/NOTES
/usr/share/doc/glibc-2.5/PROJECTS
/usr/share/doc/glibc-2.5/README
/usr/share/doc/glibc-2.5/README.hesiod
/usr/share/doc/glibc-2.5/README.libm
/usr/share/doc/glibc-common-2.5/ChangeLog.15.bz2
/usr/share/doc/glibc-common-2.5/ChangeLog.16.bz2
/usr/share/doc/glibc-common-2.5/ChangeLog.bz2
/usr/share/doc/glibc-common-2.5/README.timezone
/usr/share/doc/glibc-common-2.5/README.ufc-crypt
/usr/share/doc/glibc-common-2.5/gai.conf


On Apr 22, 2009, at 12:08 PM, Rob Kampen wrote:

>
>
> Dan Roberts wrote:
>> thanks for the details - As the server lives in a closet without a   
>> monitor on it or even easy access I opted for Webmin so as to have  
>> the  ability to get in and work with it.
>>
>> I will resubscribe and get back into a better habit - I had been   
>> checking every day a year ago, and then life got busy.
>>
>> Things were fine, and I had no trouble the in January when i put a   
>> monitor on it for some other reasons - but after the hang today it  
>> now  is stuck.
>>
>> As my cut and past below indicates, the "yum clean all" results in  
>> a  consistent set of errors - any yum command seems to return the  
>> same  errors.
>>
>> Regardless of how or why they were caused, the issue now is how to   
>> clear them out so that I can actually get yum to work -
>>
>> [r...@trailrunner yum]# yum clean all
>> Traceback (most recent call last):
>>   File "/usr/bin/yum", line 28, in ?
>> import yummain
>>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>> import cli
>>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>> import output
>>   File "/usr/share/yum-cli/output.py", line 26, in ?
>> from i18n import _
>> ImportError: No module named i18n
>> [r...@trailrunner yum]#
>>
>>
>>
> there was an issue with the update to 5.3 in that the glibc  
> libraries needed to be updated prior to the remainder otherwise rpm  
> had issues - this is probably what yum is choking on
> try
> #>rpm -uv glibc*
> after that try yum clean all and then see what happens
> HTH
>>
>> On Apr 22, 2009, at 11:15 AM, Jim Perrin wrote:
>> 
>>  ___
>> 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 mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Les Mikesell
Jim Perrin wrote:
> 
> So you probably missed the notes and announcements about the 5.3
> release, as well as the release notes about upgrade hiccups.

You guys just have to screw up more often to keep everyone on their toes.

-- 
   Les Mikesell
lesmikes...@gmail.com

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Richard Foltyn
Dan Roberts wrote:

> thanks for the details - As the server lives in a closet without a
> monitor on it or even easy access I opted for Webmin so as to have the
> ability to get in and work with it.

I think most people on this list would recommend using ssh + screen for
remote administration, not webmin.

Even if your connection is lost you can log into the remote screen
session with screen -r from the local console and see what went wrong.


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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Craig White
On Wed, 2009-04-22 at 13:28 -0500, Les Mikesell wrote:
> Jim Perrin wrote:
> > 
> > So you probably missed the notes and announcements about the 5.3
> > release, as well as the release notes about upgrade hiccups.
> 
> You guys just have to screw up more often to keep everyone on their toes.

that ignores the fact that the problem was noted in upstream release
notes as well.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Michael Holmes
2009/4/22 Dan Roberts :
> thanks for the details - As the server lives in a closet without a
> monitor on it or even easy access I opted for Webmin so as to have the
> ability to get in and work with it.
>
> I will resubscribe and get back into a better habit - I had been
> checking every day a year ago, and then life got busy.
>
> Things were fine, and I had no trouble the in January when i put a
> monitor on it for some other reasons - but after the hang today it now
> is stuck.
>
> As my cut and past below indicates, the "yum clean all" results in a
> consistent set of errors - any yum command seems to return the same
> errors.
>
> Regardless of how or why they were caused, the issue now is how to
> clear them out so that I can actually get yum to work -
>
> [r...@trailrunner yum]# yum clean all
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 28, in ?
>     import yummain
>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>     import cli
>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>     import output
>   File "/usr/share/yum-cli/output.py", line 26, in ?
>     from i18n import _
> ImportError: No module named i18n
> [r...@trailrunner yum]#

This looks like a problem with python to me. Try removing the python
RPM and reinstalling, perhaps?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
Given the mess that I have already got, would you care to provide a  
clear list of the steps to do that - I certainly don't want to blow a  
hole in something else by mistake.


On Apr 22, 2009, at 12:37 PM, Michael Holmes wrote:

> 2009/4/22 Dan Roberts :
>> thanks for the details - As the server lives in a closet without a
>> monitor on it or even easy access I opted for Webmin so as to have  
>> the
>> ability to get in and work with it.
>>
>> I will resubscribe and get back into a better habit - I had been
>> checking every day a year ago, and then life got busy.
>>
>> Things were fine, and I had no trouble the in January when i put a
>> monitor on it for some other reasons - but after the hang today it  
>> now
>> is stuck.
>>
>> As my cut and past below indicates, the "yum clean all" results in a
>> consistent set of errors - any yum command seems to return the same
>> errors.
>>
>> Regardless of how or why they were caused, the issue now is how to
>> clear them out so that I can actually get yum to work -
>>
>> [r...@trailrunner yum]# yum clean all
>> Traceback (most recent call last):
>>   File "/usr/bin/yum", line 28, in ?
>> import yummain
>>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>> import cli
>>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>> import output
>>   File "/usr/share/yum-cli/output.py", line 26, in ?
>> from i18n import _
>> ImportError: No module named i18n
>> [r...@trailrunner yum]#
>
> This looks like a problem with python to me. Try removing the python
> RPM and reinstalling, perhaps?
> ___
> 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] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Lanny Marcus
On Wed, Apr 22, 2009 at 12:48 PM, Dan Roberts  wrote:
> thanks for the details - As the server lives in a closet without a
> monitor on it or even easy access I opted for Webmin so as to have the
> ability to get in and work with it.

There are other ways you can get into a headless server or a server
that is remote to your location. SSH for example.

> I will resubscribe and get back into a better habit - I had been
> checking every day a year ago, and then life got busy.

If you subscribe to this mailing list and read the messages, you will
learn a lot. I have.

As someone pointed out, there was an issue with glibc. From the CentOS
5.3 Release Notes:


4. Known Issues

* When updating from 5.2 to 5.3 you can run into a problem with
rpm: "rpmdb: unable to lock mutex: Invalid argument". To avoid this
please update glibc before updating the rest of the installation:

  yum clean all && yum update glibc\* && yum update

After you solve the issue(s) you have with the server at this moment,
I suggest that you do some reading on the CentOS Wiki, about how to
begin securing your server.

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Les Mikesell
Craig White wrote:
> On Wed, 2009-04-22 at 13:28 -0500, Les Mikesell wrote:
>> Jim Perrin wrote:
>>> So you probably missed the notes and announcements about the 5.3
>>> release, as well as the release notes about upgrade hiccups.
>> You guys just have to screw up more often to keep everyone on their toes.
> 
> that ignores the fact that the problem was noted in upstream release
> notes as well.

Yes, but we've all gotten used to things "just working", so nobody reads 
that stuff.

-- 
   Les Mikesell
lesmikes...@gmail.com


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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
Thanks -

I will start reading again and striving to improve things.  I have  
previously taken steps to secure the server, and was under the  
impression that it was so.

that aside - I can't run the command you suggest because any yum  
operation results in the same error message.


# yum clean all && yum update glibc\* && yum update
Traceback (most recent call last):
   File "/usr/bin/yum", line 28, in ?
 import yummain
   File "/usr/share/yum-cli/yummain.py", line 29, in ?
 import cli
   File "/usr/share/yum-cli/cli.py", line 30, in ?
 import output
   File "/usr/share/yum-cli/output.py", line 26, in ?
 from i18n import _
ImportError: No module named i18n

On Apr 22, 2009, at 12:41 PM, Lanny Marcus wrote:

> On Wed, Apr 22, 2009 at 12:48 PM, Dan Roberts  wrote:
>> thanks for the details - As the server lives in a closet without a
>> monitor on it or even easy access I opted for Webmin so as to have  
>> the
>> ability to get in and work with it.
>
> There are other ways you can get into a headless server or a server
> that is remote to your location. SSH for example.
>
>> I will resubscribe and get back into a better habit - I had been
>> checking every day a year ago, and then life got busy.
>
> If you subscribe to this mailing list and read the messages, you will
> learn a lot. I have.
>
> As someone pointed out, there was an issue with glibc. From the CentOS
> 5.3 Release Notes:
> 
>
> 4. Known Issues
>
>* When updating from 5.2 to 5.3 you can run into a problem with
> rpm: "rpmdb: unable to lock mutex: Invalid argument". To avoid this
> please update glibc before updating the rest of the installation:
>
>  yum clean all && yum update glibc\* && yum update
>
> After you solve the issue(s) you have with the server at this moment,
> I suggest that you do some reading on the CentOS Wiki, about how to
> begin securing your server.
> 
> ___
> 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] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Michael Holmes
2009/4/22 Dan Roberts :
> Given the mess that I have already got, would you care to provide a
> clear list of the steps to do that - I certainly don't want to blow a
> hole in something else by mistake.

Can you tell me what version Python is? A simple "python -v" (without
quotes of course) should work.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Lanny Marcus
On Wed, Apr 22, 2009 at 1:46 PM, Dan Roberts  wrote:
> I will start reading again and striving to improve things.  I have
> previously taken steps to secure the server, and was under the
> impression that it was so.

I hope so. If not, you have a tiger by the tail.
>
> that aside - I can't run the command you suggest because any yum
> operation results in the same error message.
>
> # yum clean all && yum update glibc\* && yum update
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 28, in ?
>     import yummain
>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>     import cli
>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>     import output
>   File "/usr/share/yum-cli/output.py", line 26, in ?
>     from i18n import _
> ImportError: No module named i18n



Have you tried yum install i18n  ?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Michael Holmes
2009/4/22 Lanny Marcus :
> On Wed, Apr 22, 2009 at 1:46 PM, Dan Roberts  wrote:
>> I will start reading again and striving to improve things.  I have
>> previously taken steps to secure the server, and was under the
>> impression that it was so.
>
> I hope so. If not, you have a tiger by the tail.
>>
>> that aside - I can't run the command you suggest because any yum
>> operation results in the same error message.
>>
>> # yum clean all && yum update glibc\* && yum update
>> Traceback (most recent call last):
>>   File "/usr/bin/yum", line 28, in ?
>>     import yummain
>>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>>     import cli
>>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>>     import output
>>   File "/usr/share/yum-cli/output.py", line 26, in ?
>>     from i18n import _
>> ImportError: No module named i18n
>
> 
>
> Have you tried yum install i18n  ?
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

That wouldn't work because yum is broken?

Just my two cents.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Lanny Marcus
On 4/22/09, Michael Holmes  wrote:
> 2009/4/22 Lanny Marcus :
>> On Wed, Apr 22, 2009 at 1:46 PM, Dan Roberts  wrote:
>>> I will start reading again and striving to improve things.  I have
>>> previously taken steps to secure the server, and was under the
>>> impression that it was so.
>>
>> I hope so. If not, you have a tiger by the tail.
>>>
>>> that aside - I can't run the command you suggest because any yum
>>> operation results in the same error message.

>>>   File "/usr/share/yum-cli/output.py", line 26, in ?
>>> from i18n import _
>>> ImportError: No module named i18n
>>
>> 
>>
>> Have you tried yum install i18n  ?

> That wouldn't work because yum is broken?
> Just my two cents.

Michael: 2 cents well spent. You are correct.  Looks like he needs to
install or update i18n, but not with yum.
Lanny
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Les Mikesell
Dan Roberts wrote:

> that aside - I can't run the command you suggest because any yum  
> operation results in the same error message.
> 
> 
> # yum clean all && yum update glibc\* && yum update
> Traceback (most recent call last):
>File "/usr/bin/yum", line 28, in ?
>  import yummain
>File "/usr/share/yum-cli/yummain.py", line 29, in ?
>  import cli
>File "/usr/share/yum-cli/cli.py", line 30, in ?
>  import output
>File "/usr/share/yum-cli/output.py", line 26, in ?
>  from i18n import _
> ImportError: No module named i18n

I think this is your immediate problem.  Do you have a 
/usr/share/yum-cli/i18n.py file?

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Lanny Marcus
On 4/22/09, Dan Roberts  wrote:
> I will start reading again and striving to improve things.  I have
> previously taken steps to secure the server, and was under the
> impression that it was so.

If you were only updating every month or so, impossible for the server
to have been secure or anything approaching that. In addition to
keeping the server up to date, there are many things you can do, to
try to make it more secure. If it is connected to the Internet, many
people would like to take it over, so it is their server, not yours.
Try to make it harder for them.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Les Mikesell
Michael Holmes wrote:
>
>> On Wed, Apr 22, 2009 at 1:46 PM, Dan Roberts  wrote:
>>> I will start reading again and striving to improve things.  I have
>>> previously taken steps to secure the server, and was under the
>>> impression that it was so.
>> I hope so. If not, you have a tiger by the tail.
>>> that aside - I can't run the command you suggest because any yum
>>> operation results in the same error message.
>>>
>>> # yum clean all && yum update glibc\* && yum update
>>> Traceback (most recent call last):
>>>   File "/usr/bin/yum", line 28, in ?
>>> import yummain
>>>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>>> import cli
>>>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>>> import output
>>>   File "/usr/share/yum-cli/output.py", line 26, in ?
>>> from i18n import _
>>> ImportError: No module named i18n
>> 
>>
>> Have you tried yum install i18n  ?
>> ___
> 
> That wouldn't work because yum is broken?
> 
> Just my two cents.

I have always wondered about the sanity of using python for system 
administration tools, but this should be a yum file in /usr/share/yum-cli/.

-- 
   Les Mikesell
lesmikes...@gmail.com

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
My current version of python appears to be python 2.4.3

python - v (without quotes returned a slue of lines, but near the  
bottom it said
Python 2.4.3 (#1, Jan 21 2009, 01:10:13)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2

As to the question below - I have that directory, but not that file.



On Apr 22, 2009, at 1:04 PM, Les Mikesell wrote:

> Dan Roberts wrote:
>
>> that aside - I can't run the command you suggest because any yum
>> operation results in the same error message.
>>
>>
>> # yum clean all && yum update glibc\* && yum update
>> Traceback (most recent call last):
>>   File "/usr/bin/yum", line 28, in ?
>> import yummain
>>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>> import cli
>>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>> import output
>>   File "/usr/share/yum-cli/output.py", line 26, in ?
>> from i18n import _
>> ImportError: No module named i18n
>
> I think this is your immediate problem.  Do you have a
> /usr/share/yum-cli/i18n.py file?
>
> -- 
>   Les Mikesell
>lesmikes...@gmail.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Lanny Marcus
On 4/22/09, Les Mikesell  wrote:
>>> On Wed, Apr 22, 2009 at 1:46 PM, Dan Roberts  wrote:

 that aside - I can't run the command you suggest because any yum
 operation results in the same error message.

 # yum clean all && yum update glibc\* && yum update
 Traceback (most recent call last):

   File "/usr/share/yum-cli/output.py", line 26, in ?
 from i18n import _
 ImportError: No module named i18n
>>> 
>>>
>>> Have you tried yum install i18n  ?

>> That wouldn't work because yum is broken?
>>
>> Just my two cents.
>
> I have always wondered about the sanity of using python for system
> administration tools, but this should be a yum file in /usr/share/yum-cli/.

Les: Is i18n installed by Webmin during the Webmin installation?
Possibly he needs to add another yum repository? Lanny
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Lanny Marcus
On 4/22/09, Les Mikesell  wrote:
> Michael Holmes wrote:

> I have always wondered about the sanity of using python for system
> administration tools, but this should be a yum file in /usr/share/yum-cli/.

I found i18n on my CentOS 5.3 Desktop. It's in /etc/sysconfig/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Toby Bluhm
Les Mikesell wrote:
> Dan Roberts wrote:
> 
>> that aside - I can't run the command you suggest because any yum  
>> operation results in the same error message.
>>
>>
>> # yum clean all && yum update glibc\* && yum update
>> Traceback (most recent call last):
>>File "/usr/bin/yum", line 28, in ?
>>  import yummain
>>File "/usr/share/yum-cli/yummain.py", line 29, in ?
>>  import cli
>>File "/usr/share/yum-cli/cli.py", line 30, in ?
>>  import output
>>File "/usr/share/yum-cli/output.py", line 26, in ?
>>  from i18n import _
>> ImportError: No module named i18n
> 
> I think this is your immediate problem.  Do you have a 
> /usr/share/yum-cli/i18n.py file?
> 

Run on my four C5.3 systems here

yum provides "/usr/share/yum-cli/i18n.py"
rpm -q --whatprovides /usr/share/yum-cli/i18n.py
ls -las /usr/share/yum-cli/i18n.py

I got zip.


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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Les Mikesell
Dan Roberts wrote:
> My current version of python appears to be python 2.4.3
> 
> python - v (without quotes returned a slue of lines, but near the  
> bottom it said
> Python 2.4.3 (#1, Jan 21 2009, 01:10:13)
> [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
> 
> As to the question below - I have that directory, but not that file.
> 

Does 'rpm -Vv yum' say it was installed by is now missing?

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
Yes - I have it in that location too - but clearly it is not getting  
found by yum

On Apr 22, 2009, at 1:23 PM, Lanny Marcus wrote:

> On 4/22/09, Les Mikesell  wrote:
>> Michael Holmes wrote:
> 
>> I have always wondered about the sanity of using python for system
>> administration tools, but this should be a yum file in /usr/share/ 
>> yum-cli/.
>
> I found i18n on my CentOS 5.3 Desktop. It's in /etc/sysconfig/
> ___
> 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] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Kwan Lowe
On Wed, Apr 22, 2009 at 12:47 PM, Dan Roberts  wrote:
> Hey there -
>
> This morning I ran the yum updater through Webmin as I do every month
> or so - after about two hours I realized that I still had the same
> updating screen going - and no response.   Seemed strange.
>
> Simple attempts to kill it didn't work so I sent a command to reboot
> the system - that seemed to work, till I turned on the monitor
> directly connected to the server -

My first approach would be to use the lower level rpm to determine
what packages may be in error. Start with yum:

   rpm -qV yum

It will list files that have changed from the initial package installation:
  [u108...@linbox ~]$ rpm -qV yum
  S.5T  c /etc/yum.conf

If you see any files besides the user editable ones (such as the
yum.conf, for example) it could mean you have a corrupted binary.  If
so, re-install the package:

  rpm -ivh yum-x.x.x..rpm

You may need to use the --oldpackage flag  or even --force.

If you don't see anything that jumps out as wrong, try running the rpm
verify against all packages;

  rpm -qaV

Ignore things like conf files and logs and look for packages with a S
(checksum change) in the results colums..

Once you can get yum reinstalled, update glibc first, then the rest of
the system.



> I saw this error go by - and then only a spinning cursor - never get
> to a login screen.  (I power cycled again and saw it go by again - and
> recognized it when I tried again at Webmin and through a terminal
> connection).
>
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 28, in ?
>     import yummain
>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>     import cli
>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>     import output
>   File "/usr/share/yum-cli/output.py", line 26, in ?
>     from i18n import _
> ImportError: No module named i18n
>
> I deleted the yum cash and no improvement.  I tried the yum clean and
> no imporvement
> [r...@trailrunner yum]# yum clean all
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 28, in ?
>     import yummain
>   File "/usr/share/yum-cli/yummain.py", line 29, in ?
>     import cli
>   File "/usr/share/yum-cli/cli.py", line 30, in ?
>     import output
>   File "/usr/share/yum-cli/output.py", line 26, in ?
>     from i18n import _
> ImportError: No module named i18n
> [r...@trailrunner yum]#
>
> Not at all sure what happened or why, or where I even start trying to
> straighten this mess out.
>
> How do I blow away the apparent yum junk in the hope of getting a
> local login capability back?
>
> How or what should I do to reset yum - seems reinstalling the latest
> version is probably the route.  What is the version that CentOS
> uses?   Should I go the RPM route or try something more specific?
>
> Totally unexpected problem and leaving me feeling very uncertain about
> things.
>
>
> ___
> 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] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Filipe Brandenburger
Hi,

On Wed, Apr 22, 2009 at 15:17, Dan Roberts  wrote:
> As to the question below - I have that directory, but not that file.

yum-3.2.8-9.el5.centos.2.1 (from CentOS 5.2) has /usr/share/yum-cli/i18n.py

yum-3.2.19-18.el5.centos (from CentOS 5.3) no longer has that file.

Probably you broke your update in the middle so you got things in an
inconsistent state.

Try this command to see which yum you have installed:
# rpm -q yum

And then you can verify if the package's integrity is compromised with:
# rpm -V yum

I believe to solve your problem you will have to reinstall the RPM for
"yum" manually.

To do that, download this RPM:
http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm

And then run:
# rpm -Uvh --force yum-3.2.19-18.el5.centos.noarch.rpm

After that is done, your yum should start working again.

If it does not, report any issues you have, together with the output
of "rpm -q yum" and "rpm -V yum" after reinstalling the package.

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Filipe Brandenburger
On Wed, Apr 22, 2009 at 15:23, Lanny Marcus  wrote:
>> I have always wondered about the sanity of using python for system
>> administration tools, but this should be a yum file in /usr/share/yum-cli/.
>
> I found i18n on my CentOS 5.3 Desktop. It's in /etc/sysconfig/

The /etc/sysconfig/i18n file has nothing to do with Python. Just
because it's named i18n does not mean it's the file you are looking
for. It definitely is not.

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


Re: [CentOS] QuickBooks Enterprise DB Server

2009-04-22 Thread Joseph L. Casale
>We threw in the towel on this POS and just purchased a full XP license
>to run under VMWare to host it.

I am getting there, trust me:) I can't believe support! Just useless.
Their forums are filled with equally upset people, but one of the list
members has contacted me and hopefully I can see what he did right!

Its working for him.

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
Hi Filipe -

Clearly I have indeed got things broken -
# rpm -q yum
package yum is not installed

So I downloaded the rpm for a reinstall as you suggested - but clearly  
I have more to get and install -

I downloaded to my home directory and ran the rpm -Uvh from there

# rpm -Uvh --force yum-3.2.19-18.el5.centos.noarch.rpm
error: Failed dependencies:
rpm >= 0:4.4.2 is needed by yum-3.2.19-18.el5.centos.noarch
rpm-python is needed by yum-3.2.19-18.el5.centos.noarch
yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch

Either I am running this in the wrong location, or there is a lot of  
other stuff out of whack.


On Apr 22, 2009, at 1:29 PM, Filipe Brandenburger wrote:

> Hi,
>
> On Wed, Apr 22, 2009 at 15:17, Dan Roberts  wrote:
>> As to the question below - I have that directory, but not that file.
>
> yum-3.2.8-9.el5.centos.2.1 (from CentOS 5.2) has /usr/share/yum-cli/ 
> i18n.py
>
> yum-3.2.19-18.el5.centos (from CentOS 5.3) no longer has that file.
>
> Probably you broke your update in the middle so you got things in an
> inconsistent state.
>
> Try this command to see which yum you have installed:
> # rpm -q yum
>
> And then you can verify if the package's integrity is compromised  
> with:
> # rpm -V yum
>
> I believe to solve your problem you will have to reinstall the RPM for
> "yum" manually.
>
> To do that, download this RPM:
> http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm
>
> And then run:
> # rpm -Uvh --force yum-3.2.19-18.el5.centos.noarch.rpm
>
> After that is done, your yum should start working again.
>
> If it does not, report any issues you have, together with the output
> of "rpm -q yum" and "rpm -V yum" after reinstalling the package.
>
> HTH,
> Filipe
> ___
> 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] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Filipe Brandenburger
Hi,

On Wed, Apr 22, 2009 at 15:40, Dan Roberts  wrote:
> # rpm -Uvh --force yum-3.2.19-18.el5.centos.noarch.rpm
> error: Failed dependencies:
>        rpm >= 0:4.4.2 is needed by yum-3.2.19-18.el5.centos.noarch
>        rpm-python is needed by yum-3.2.19-18.el5.centos.noarch
>        yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
> Either I am running this in the wrong location, or there is a lot of
> other stuff out of whack.

It looks like your system is closer to 5.2 than 5.3.

In that case, I suggest you try to install this RPM of yum instead:
http://mirror.centos.org/centos/5.2/updates/i386/RPMS/yum-3.2.8-9.el5.centos.2.1.noarch.rpm

If it still asks about dependencies, you will have to download them
and install/upgrade them manually using RPM.

Look for them here:
http://mirror.centos.org/centos/5.2/os/i386/CentOS/
And here:
http://mirror.centos.org/centos/5.2/updates/i386/RPMS/

Once you get to install yum-3.2.8-9.el5.centos.2.1, yum should start
working again.

When you got that done, you can try to use it to upgrade again, but
this time I advise you to do it on a screen session from an SSH
connection, and not through Webmin. And do not reboot the server in
the middle of the upgrade, since that is probably what started your
problems in this case.

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


[CentOS] udev & libvolume packages not updating

2009-04-22 Thread Ray Leventhal
Hi all,

CentOS 5.2, not yet updated to 5.3.

Based on the alert on udev, I attempted to update udev and libvolume 
packages with the following result.

A check of what's currently on the system reveals udev-095-14.19.el5 
which I believe to be the affected version. Is it just that it hasn't 
rolled out to all the mirrors yet?

Thanks in advance,
-Ray


[r...@wh01]# yum clean all
Loading "downloadonly" plugin
Loading "fastestmirror" plugin
Loading "priorities" plugin
Cleaning up Everything
[r...@wh01 yum.repos.d]# yum install udev-095-14.20.el5_3.i386.rpm 
libvolume_d-095-14.20.el5_3.i386.rpm 
libvolume_id-devel-095-14.20.el5_3.i386.rpm
Loading "downloadonly" plugin
Loading "fastestmirror" plugin
Loading "priorities" plugin
Determining fastest mirrors
 * base: mirror.steadfast.net
 * updates: centos.mirror.nac.net
 * addons: mirror.nyi.net
 * extras: mirror.atlanticmetro.net
base  100% |=| 1.1 kB00:00
primary.xml.gz100% |=| 878 kB00:12
base  : ## 2508/2508
updates   100% |=|  951 B00:00
primary.xml.gz100% |=| 101 kB00:00
updates   : ## 156/156
addons   951 B 00:00
primary.xml.gz   157 B 00:00
extras100% |=| 1.1 kB00:00
primary.xml.gz100% |=|  90 kB00:00
extras: ## 298/298
0 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
No package udev-095-14.20.el5_3.i386.rpm available.
No package libvolume_d-095-14.20.el5_3.i386.rpm available.
No package libvolume_id-devel-095-14.20.el5_3.i386.rpm available.
Nothing to do

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Craig White
On Wed, 2009-04-22 at 13:40 -0600, Dan Roberts wrote:
> Hi Filipe -
> 
> Clearly I have indeed got things broken -
> # rpm -q yum
> package yum is not installed
> 
> So I downloaded the rpm for a reinstall as you suggested - but clearly  
> I have more to get and install -
> 
> I downloaded to my home directory and ran the rpm -Uvh from there
> 
> # rpm -Uvh --force yum-3.2.19-18.el5.centos.noarch.rpm
> error: Failed dependencies:
>   rpm >= 0:4.4.2 is needed by yum-3.2.19-18.el5.centos.noarch
>   rpm-python is needed by yum-3.2.19-18.el5.centos.noarch
>   yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
> 
> Either I am running this in the wrong location, or there is a lot of  
> other stuff out of whack.

you've been spoiled by the dependency resolution by yum which doesn't
exist with rpm so in order to get yum installed, you going to need to do
some manual downloading and installation of dependencies.

I wouldn't recommend that you use '--force' for any rpm commands unless
you know what you're doing.

Open a web browser and depending upon your installation (I am using i386
here)...

http://mirror.centos.org/centos/5/os/i386/CentOS/

(it's possible that you may need something from updates)
http://mirror.centos.org/centos/5/updates/i386/RPMS/

and you will undoubtedly need to download
rpm-4.4.2.3-9.el5.i386.rpm  
rpm-libs-4.4.2.3-9.el5.i386.rpm  
rpm-python-4.4.2.3-9.el5.i386.rpm

possibly popt and maybe some python stuff - and install locally like...

rpm -Uvh *rpm

and you will probably have to also do that for yum and
yum-fastest-mirror packages as well. Once yum is installed, you can then
update the rest.

rpm


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [CentOS] udev & libvolume packages not updating

2009-04-22 Thread Filipe Brandenburger
Hi,

Before you think about updating this single package:

> CentOS 5.2, not yet updated to 5.3.

Does not make much sense. You should update and move on to 5.3, if not
for other reasons, to keep your machine secure. Updating individual
packages might not work, it might even end up breaking your machine.


On Wed, Apr 22, 2009 at 15:54, Ray Leventhal  wrote:
> [r...@wh01 yum.repos.d]# yum install udev-095-14.20.el5_3.i386.rpm
> libvolume_d-095-14.20.el5_3.i386.rpm
> libvolume_id-devel-095-14.20.el5_3.i386.rpm

What you want is either:
# yum update udev libvolume_id libvolume_id-devel

Or (should be enough, since yum gets dependencies automatically):
# yum update udev

Or:
# rpm -Uvh udev-095-14.20.el5_3.i386.rpm
libvolume_d-095-14.20.el5_3.i386.rpm
libvolume_id-devel-095-14.20.el5_3.i386.rpm


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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Les Mikesell
Filipe Brandenburger wrote:
> Hi,
> 
> On Wed, Apr 22, 2009 at 15:40, Dan Roberts  wrote:
>> # rpm -Uvh --force yum-3.2.19-18.el5.centos.noarch.rpm
>> error: Failed dependencies:
>>rpm >= 0:4.4.2 is needed by yum-3.2.19-18.el5.centos.noarch
>>rpm-python is needed by yum-3.2.19-18.el5.centos.noarch
>>yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
>> Either I am running this in the wrong location, or there is a lot of
>> other stuff out of whack.
> 
> It looks like your system is closer to 5.2 than 5.3.
> 
> In that case, I suggest you try to install this RPM of yum instead:
> http://mirror.centos.org/centos/5.2/updates/i386/RPMS/yum-3.2.8-9.el5.centos.2.1.noarch.rpm
> 
> If it still asks about dependencies, you will have to download them
> and install/upgrade them manually using RPM.
> 
> Look for them here:
> http://mirror.centos.org/centos/5.2/os/i386/CentOS/
> And here:
> http://mirror.centos.org/centos/5.2/updates/i386/RPMS/
> 
> Once you get to install yum-3.2.8-9.el5.centos.2.1, yum should start
> working again.
> 
> When you got that done, you can try to use it to upgrade again, but
> this time I advise you to do it on a screen session from an SSH
> connection, and not through Webmin. And do not reboot the server in
> the middle of the upgrade, since that is probably what started your
> problems in this case.

Once yum is basically working you might be able to
yum install yum-utils
and
yum-complete-transaction
to pick up where you left off.  I had to do this on one box where the 
update process kicked me off and died with a bunch of duplicate packages 
still in the rpm database.

-- 
   Les Mikesell
lesmikes...@gmail.com




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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Filipe Brandenburger
Hi,

On Wed, Apr 22, 2009 at 16:00, Craig White  wrote:
> I wouldn't recommend that you use '--force' for any rpm commands unless
> you know what you're doing.

I suggested the --force just in case the RPM database already had the
yum package registered, but the package was corrupt.

I agree with your statement that --force should be only used if you
know what you're doing.

> Open a web browser and depending upon your installation (I am using i386
> here)...
> http://mirror.centos.org/centos/5/os/i386/CentOS/

I suggested that the OP gets the packages for 5.2, since his install
seems to be closer to a 5.2 than a 5.3. That way he may end up getting
yum to work again quicker, and then he can use yum to update his
system to the latest packages.

Using /5/ (CentOS 5.3) is also doable, but the number of packages he
will have to download and install manually will certainly be larger.

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Dan Roberts
Ok - something truly bad appears to have happened.Yes, I will  
concede that cycling the system was a bad thing - but after two hours  
it should have returned from the update, still I was bad.

There are indeed updates that it wants - and I went back to the site  
to get them, but then things continue to show up as missing.
# rpm -Uvh --force rpm-4.4.2-48.el5.i386.rpm
error: Failed dependencies:
librpm-4.4.so is needed by rpm-4.4.2-48.el5.i386
librpmbuild-4.4.so is needed by rpm-4.4.2-48.el5.i386
librpmdb-4.4.so is needed by rpm-4.4.2-48.el5.i386
librpmio-4.4.so is needed by rpm-4.4.2-48.el5.i386
popt = 1.10.2 is needed by rpm-4.4.2-48.el5.i386

Clearly I have a pretty big hole here.  Yes I have been spoiled by yum  
and rpm.  Years ago I use to command line build, make and install  
everything - but dropped that habit in favor of the ease of yum.

Are there are set of core files that seem reasonable to pull and  
install -

It is beginning to seem that I may be ahead of the curve to download  
the new Centos 5.3 i386 images and install a fresh system on another  
hard drive and then move my mail, websites and other relevant files  
over.


On Apr 22, 2009, at 1:48 PM, Filipe Brandenburger wrote:

> Hi,
>
> On Wed, Apr 22, 2009 at 15:40, Dan Roberts  wrote:
>> # rpm -Uvh --force yum-3.2.19-18.el5.centos.noarch.rpm
>> error: Failed dependencies:
>>rpm >= 0:4.4.2 is needed by yum-3.2.19-18.el5.centos.noarch
>>rpm-python is needed by yum-3.2.19-18.el5.centos.noarch
>>yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
>> Either I am running this in the wrong location, or there is a lot of
>> other stuff out of whack.
>
> It looks like your system is closer to 5.2 than 5.3.
>
> In that case, I suggest you try to install this RPM of yum instead:
> http://mirror.centos.org/centos/5.2/updates/i386/RPMS/yum-3.2.8-9.el5.centos.2.1.noarch.rpm
>
> If it still asks about dependencies, you will have to download them
> and install/upgrade them manually using RPM.
>
> Look for them here:
> http://mirror.centos.org/centos/5.2/os/i386/CentOS/
> And here:
> http://mirror.centos.org/centos/5.2/updates/i386/RPMS/
>
> Once you get to install yum-3.2.8-9.el5.centos.2.1, yum should start
> working again.
>
> When you got that done, you can try to use it to upgrade again, but
> this time I advise you to do it on a screen session from an SSH
> connection, and not through Webmin. And do not reboot the server in
> the middle of the upgrade, since that is probably what started your
> problems in this case.
>
> HTH,
> Filipe
> ___
> 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] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Craig White
On Wed, 2009-04-22 at 16:06 -0400, Filipe Brandenburger wrote:
> Hi,
> 
> On Wed, Apr 22, 2009 at 16:00, Craig White  wrote:
> > I wouldn't recommend that you use '--force' for any rpm commands unless
> > you know what you're doing.
> 
> I suggested the --force just in case the RPM database already had the
> yum package registered, but the package was corrupt.
> 
> I agree with your statement that --force should be only used if you
> know what you're doing.
> 
> > Open a web browser and depending upon your installation (I am using i386
> > here)...
> > http://mirror.centos.org/centos/5/os/i386/CentOS/
> 
> I suggested that the OP gets the packages for 5.2, since his install
> seems to be closer to a 5.2 than a 5.3. That way he may end up getting
> yum to work again quicker, and then he can use yum to update his
> system to the latest packages.
> 
> Using /5/ (CentOS 5.3) is also doable, but the number of packages he
> will have to download and install manually will certainly be larger.

you could be correct on using 5.2 version of yum might be easier

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [CentOS] udev & libvolume packages not updating

2009-04-22 Thread Ray Leventhal

> Does not make much sense. You should update and move on to 5.3, if not
> for other reasons, to keep your machine secure. Updating individual
> packages might not work, it might even end up breaking your machine.
>
>
> On Wed, Apr 22, 2009 at 15:54, Ray Leventhal  wrote:
>   
>> [r...@wh01 yum.repos.d]# yum install udev-095-14.20.el5_3.i386.rpm
>> libvolume_d-095-14.20.el5_3.i386.rpm
>> libvolume_id-devel-095-14.20.el5_3.i386.rpm
>> 
>
> What you want is either:
> # yum update udev libvolume_id libvolume_id-devel
>
> Or (should be enough, since yum gets dependencies automatically):
> # yum update udev
>
> Or:
> # rpm -Uvh udev-095-14.20.el5_3.i386.rpm
> libvolume_d-095-14.20.el5_3.i386.rpm
> libvolume_id-devel-095-14.20.el5_3.i386.rpm
>
>
>   
Thanks, Filipe...

Your sound advice is taken under advisement

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Craig White
On Wed, 2009-04-22 at 15:05 -0500, Les Mikesell wrote:

> Once yum is basically working you might be able to
> yum install yum-utils
> and
> yum-complete-transaction
> to pick up where you left off.  I had to do this on one box where the 
> update process kicked me off and died with a bunch of duplicate packages 
> still in the rpm database.

me too...punished for not using screen to update.

yum-complete-transaction actually required a leap of faith because there
were hundreds of packages it wanted to remove  ;-)

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread William L. Maltby

On Wed, 2009-04-22 at 14:06 -0600, Dan Roberts wrote:
> 

I know very little about this, but maybe Felipe et al can fill in the
holes.

I recall times that folks on the list indicated an rpm rebuild db be
done. Is that possibly needed here?

Did the glibc get updated? If so/not what should be done.

Just hoping this sparks knowledgeable folks to hit the right path for
you.

HTH
-- 
Bill

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Filipe Brandenburger
Hi,

On Wed, Apr 22, 2009 at 16:06, Dan Roberts  wrote:
> There are indeed updates that it wants - and I went back to the site
> to get them, but then things continue to show up as missing.
> # rpm -Uvh --force rpm-4.4.2-48.el5.i386.rpm
> error: Failed dependencies:
>        librpm-4.4.so is needed by rpm-4.4.2-48.el5.i386
>        librpmbuild-4.4.so is needed by rpm-4.4.2-48.el5.i386
>        librpmdb-4.4.so is needed by rpm-4.4.2-48.el5.i386
>        librpmio-4.4.so is needed by rpm-4.4.2-48.el5.i386
>        popt = 1.10.2 is needed by rpm-4.4.2-48.el5.i386

See my previous e-mail, try with the previous version of yum from
CentOS 5.2 first.

Once you get yum running, you can use it to update your whole system
to 5.3 (in screen and SSH).

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Les Mikesell
Craig White wrote:
> On Wed, 2009-04-22 at 15:05 -0500, Les Mikesell wrote:
> 
>> Once yum is basically working you might be able to
>> yum install yum-utils
>> and
>> yum-complete-transaction
>> to pick up where you left off.  I had to do this on one box where the 
>> update process kicked me off and died with a bunch of duplicate packages 
>> still in the rpm database.
> 
> me too...punished for not using screen to update.

I sort-of expected yum to be smart enough to trap sighup's during 
transactions. And I think the connection broke because the process 
underneath died - so screen would probably have croaked too.

> yum-complete-transaction actually required a leap of faith because there
> were hundreds of packages it wanted to remove  ;-)

Same here... I did do a sanity check with rpm -q package for some of 
them to see that two versions were actually there (or rpm thought there 
were).

-- 
   Les Mikesell
lesmikes...@gmail.com

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Craig White
On Wed, 2009-04-22 at 15:37 -0500, Les Mikesell wrote:
> Craig White wrote:
> > On Wed, 2009-04-22 at 15:05 -0500, Les Mikesell wrote:
> > 
> >> Once yum is basically working you might be able to
> >> yum install yum-utils
> >> and
> >> yum-complete-transaction
> >> to pick up where you left off.  I had to do this on one box where the 
> >> update process kicked me off and died with a bunch of duplicate packages 
> >> still in the rpm database.
> > 
> > me too...punished for not using screen to update.
> 
> I sort-of expected yum to be smart enough to trap sighup's during 
> transactions. And I think the connection broke because the process 
> underneath died - so screen would probably have croaked too.
> 
> > yum-complete-transaction actually required a leap of faith because there
> > were hundreds of packages it wanted to remove  ;-)
> 
> Same here... I did do a sanity check with rpm -q package for some of 
> them to see that two versions were actually there (or rpm thought there 
> were).

well interesting...so it probably wouldn't have mattered if I had used
screen. This only happened on one of the servers that I updated and it
is possible that I didn't update glibc first...it was one of the last
systems I updated so I may have been too cavalier about the process. The
first few I carefully updated glibc first, then yum and then finally the
rest.

And yes, when yum-complete-transaction is telling you it is removing
like 500 packages, you do a double and triple take, start checking the
packages it intends to remove to make certain that it will leave a new
version but still, I wasn't going to check everything so I eventually
had to make the leap.

While the updates don't always go perfectly, especially when one gets
lackadaisical, the yum-tools seem to clean up behind you pretty well.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


[CentOS] Bzip2 Compress directories

2009-04-22 Thread James Matthews
Hi,

How do you get bzip2 to compress directories?

Thanks
James

-- 

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


Re: [CentOS] Bzip2 Compress directories

2009-04-22 Thread Frank Cox
On Thu, 23 Apr 2009 00:23:35 +0300
James Matthews wrote:

> How do you get bzip2 to compress directories?

use tar.

tar cvjf mydirectory.tar.bz2 mydirectory

That will tar and bzip2 the directory called mydirectory and leave you with a
file named mydirectory.tar.bz2

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bzip2 Compress directories

2009-04-22 Thread Filipe Brandenburger
Hi,

On Wed, Apr 22, 2009 at 17:23, James Matthews  wrote:
> How do you get bzip2 to compress directories?

You use "tar" to create a tar with the directory contents, and then
bzip2 to compress that tarfile.

You can use the "-j" option of tar to bzip2 on the fly.

This is probably what you want:

$ tar -cvjf filename.tar.bz2 dirname/

Replace "filename" and "dirname" with something that is appropriate to you.

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


Re: [CentOS] QuickBooks Enterprise DB Server

2009-04-22 Thread Barry L. Kline
Joseph L. Casale wrote:

> I am getting there, trust me:) I can't believe support! Just useless.
> Their forums are filled with equally upset people, but one of the list
> members has contacted me and hopefully I can see what he did right!
> 
> Its working for him.

If you find out please tell us what the secret is.  I'd love to know.

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


Re: [CentOS] Yum update corrupted something badly - can only get access through SSH terminal or Webmin

2009-04-22 Thread Scott Silva
on 4-22-2009 11:18 AM Dan Roberts spake the following:
> Hmmm -
> 
> # rpm -uv glibc*
> -uv: unknown option
> 
> Ok - so I go with -Uv instead
> # rpm -Uv glibc*
> error: File not found by glob: glibc*
> 
> But this is strange because I know that glib-2.0 is there - fairly  
> easy to confirm - is something missing?
You might have to manually download glibc and yum rpm's and install them since
you cleaned the cache.



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Grub configuration from within Windows

2009-04-22 Thread Marko Vojinovic
My friend uses a typical dual-boot setup (Windows XP and Centos 5.3).
The machine is online 24/7 and he often uses it from a remote location
(Linux via ssh -X, Windows via rdesktop).

The problem is that he wants to be able to remotely configure which of
these two OSes is to be the default on next reboot, so he can switch
from one OS to the other and back remotely. If Linux is up, he just
needs to reconfigure grub.conf, but if Windows is up (and default) he
has no way of accessing grub.conf.

Now, he has several partitions on the drive, some ntfs, some vfat and
some ext3. Is there a clean way of putting grub.conf on a vfat
partition? Is there a way for Windows to have rw access to ext3
filesystem (namely, /)? Is there some other way of handling this
without physical access to the machine while it boots?

I have suggested virtualization of Windows, so he could run them both
concurrently without pain, but for certain (computational performance)
reasons that is not a good option for him --- he wants hard reboots
between OSes.

Any suggestions?

Thanks! :-)
Marko
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Grub configuration from within Windows

2009-04-22 Thread Les Mikesell
Marko Vojinovic wrote:
> My friend uses a typical dual-boot setup (Windows XP and Centos 5.3).
> The machine is online 24/7 and he often uses it from a remote location
> (Linux via ssh -X, Windows via rdesktop).
> 
> The problem is that he wants to be able to remotely configure which of
> these two OSes is to be the default on next reboot, so he can switch
> from one OS to the other and back remotely. If Linux is up, he just
> needs to reconfigure grub.conf, but if Windows is up (and default) he
> has no way of accessing grub.conf.
> 
> Now, he has several partitions on the drive, some ntfs, some vfat and
> some ext3. Is there a clean way of putting grub.conf on a vfat
> partition? Is there a way for Windows to have rw access to ext3
> filesystem (namely, /)? Is there some other way of handling this
> without physical access to the machine while it boots?
> 
> I have suggested virtualization of Windows, so he could run them both
> concurrently without pain, but for certain (computational performance)
> reasons that is not a good option for him --- he wants hard reboots
> between OSes.

You don't really have to choose VMs or dual-boot - you can run a 
bootable partition under VMware, and perhaps virtualbox and others.  It 
is somewhat more convenient to make the windows install the host, 
though, because otherwise it wants to be re-licensed every time you 
switch and it sees different hardware.  I suppose you could fire up the 
centos VM under windows to edit the grub.conf file, then shut it down 
and reboot the physical machine.

-- 
   Les Mikesell
lesmikes...@gmail.com

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


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Craig White
On Wed, 2009-04-22 at 12:22 -0500, Les Mikesell wrote:
> Sean Carolan wrote:
> >> It was somewhat difficult to install on Centos (mostly just getting a
> >> Sun JVM installed sanely) until they added the yum repository.  It is
> >> still somewhat complicated to deal with all of the things it can do so
> >> I'd suggest joining the mailing list if you haven't already.  It does
> >> support many more devices out of the box than netdisco, including hosts
> >> as well as network equipment. If you want it to collect snmp data for
> >> graphs on the switch ports that don't have addresses you can set
> >> collection manually for each one or just change snmpStorageFlag to "all'
> >> in datacollection-config.xml.
> > 
> > OpenNMS is now crawling my network and discovering all the servers.
> > I'm not seeing how to find which switch and port each device is
> > plugged into.  If I browse to a node and click on it's network
> > interface, it says this:
> > 
> > --
> > Link Node/Interface
> > No link information has been collected for this interface.
> > --
> > 
> > Is that where the port and switch information is supposed to show up?
> > Or am I looking in the wrong place?
> 
> Back to my first email message when I thought you were already using 
> OpenNMS...  You have to uncomment the Linkd service in 
> etc/service-configuration.xml, then restart opennms and give it some 
> time to probe.  Then it should show from the 'View Node Link Detailed 
> Info' at the top left of a node page.  The weakest part of the program 
> is the web admin section.  While it does a lot, there is much more that 
> you can control via the xml config files.

OK, I've been tracking this conversation, installed/configured/started
OpenNMS and have discovered everything and in fact, edited
service-configuration.xml as recommended.

I'm sort of comparing this to Zenoss which I had to stop (snmp
conflicts) to run OpenNMS.

I can see each port on the 48 port managed switch and go to 'View Node
Link Detailed Info' but it doesn't tell me much about the
device/computer plugged into a specific port.

While I don't want to be quick to dismiss OpenNMS, it seems to fall way
short of Zenoss so I'm thinking that there's a bunch of stuff that
probably needs to be tweaked.

I got the impression that NetDisco would actually tell me the IP Address
(perhaps reverse the DNS name) of the device connected to specific port
on my managed switch. I didn't go for the NetDisco route for install
because I didn't like the idea of getting a bunch of CPAN perl modules
installed rather than using rpm packages.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [CentOS] QuickBooks Enterprise DB Server

2009-04-22 Thread Tim Nelson
- "Barry L. Kline"  wrote:
> Joseph L. Casale wrote:
> 
> > I am getting there, trust me:) I can't believe support! Just
> useless.
> > Their forums are filled with equally upset people, but one of the
> list
> > members has contacted me and hopefully I can see what he did right!
> > 
> > Its working for him.
> 
> If you find out please tell us what the secret is.  I'd love to know.
> 
> Barry

Ye.

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


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Les Mikesell
Craig White wrote:
>
> OK, I've been tracking this conversation, installed/configured/started
> OpenNMS and have discovered everything and in fact, edited
> service-configuration.xml as recommended.
> 
> I'm sort of comparing this to Zenoss which I had to stop (snmp
> conflicts) to run OpenNMS.
> 
> I can see each port on the 48 port managed switch and go to 'View Node
> Link Detailed Info' but it doesn't tell me much about the
> device/computer plugged into a specific port.

Let it soak overnight.  It goes out of its way not to kill your network 
and has a long startup delay and times between polls - all tunable in 
the xml files, of course.

> While I don't want to be quick to dismiss OpenNMS, it seems to fall way
> short of Zenoss so I'm thinking that there's a bunch of stuff that
> probably needs to be tweaked.

It mostly does the right thing by default, although if you want 
bandwidth graphs on the non-IP ports on your switches you either need to 
set it up for each node or change snmpStorageFlag to "all'
in datacollection-config.xml

I am interested in a comparison with Zenoss - but wait until you know 
your way around opennms.  Just ask on the opennms list if it doesn't do 
something you expect.

> I got the impression that NetDisco would actually tell me the IP Address
> (perhaps reverse the DNS name) of the device connected to specific port
> on my managed switch. I didn't go for the NetDisco route for install
> because I didn't like the idea of getting a bunch of CPAN perl modules
> installed rather than using rpm packages.

Assuming it can get the info from the switch, it will - and give you 
clickable link to the other device's node info.

-- 
   Les Mikesell
 lesmikes...@gmail.com

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


Re: [CentOS] Bzip2 Compress directories

2009-04-22 Thread Robert Heller
At Wed, 22 Apr 2009 17:30:51 -0400 CentOS mailing list  
wrote:

> 
> Hi,
> 
> On Wed, Apr 22, 2009 at 17:23, James Matthews  wrote:
> > How do you get bzip2 to compress directories?
> 
> You use "tar" to create a tar with the directory contents, and then
> bzip2 to compress that tarfile.
> 
> You can use the "-j" option of tar to bzip2 on the fly.
> 
> This is probably what you want:
> 
> $ tar -cvjf filename.tar.bz2 dirname/
> 
> Replace "filename" and "dirname" with something that is appropriate to you.

Note that is also possible to use dump or cpio as well.  Unlike the
MS-Windows zip/unzip, which combines compressing and archiving in a
single program, the 'UNIX' way is to separate these functions.  bzip2
only compresses.  Other programs (tar, dump, cpio) create archives -- 
bundle a group of files and/or directory trees into a single file.

> 
> HTH,
> Filipe
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
>   
>

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/

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


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Craig White
On Wed, 2009-04-22 at 17:50 -0500, Les Mikesell wrote:
> Craig White wrote:
> >
> > OK, I've been tracking this conversation, installed/configured/started
> > OpenNMS and have discovered everything and in fact, edited
> > service-configuration.xml as recommended.
> > 
> > I'm sort of comparing this to Zenoss which I had to stop (snmp
> > conflicts) to run OpenNMS.
> > 
> > I can see each port on the 48 port managed switch and go to 'View Node
> > Link Detailed Info' but it doesn't tell me much about the
> > device/computer plugged into a specific port.
> 
> Let it soak overnight.  It goes out of its way not to kill your network 
> and has a long startup delay and times between polls - all tunable in 
> the xml files, of course.

yeah, Zenoss seems to default on collecting each device every 12 hours
and I never bothered with the timing of it.

> > While I don't want to be quick to dismiss OpenNMS, it seems to fall way
> > short of Zenoss so I'm thinking that there's a bunch of stuff that
> > probably needs to be tweaked.
> 
> It mostly does the right thing by default, although if you want 
> bandwidth graphs on the non-IP ports on your switches you either need to 
> set it up for each node or change snmpStorageFlag to "all'
> in datacollection-config.xml
> 
> I am interested in a comparison with Zenoss - but wait until you know 
> your way around opennms.  Just ask on the opennms list if it doesn't do 
> something you expect.

I was hoping not to subscribe to another list but maybe I will and just
monitor the list.

Thus far (and admittedly this is premature), I find Zenoss a lot beefier
but I spent a ton of time setting it up the first time until I figured
things out whereas I spent comparatively no time setting OpenNMS up. But
I have learned things along the way, especially getting SNMP set up on
everything I could.

> > I got the impression that NetDisco would actually tell me the IP Address
> > (perhaps reverse the DNS name) of the device connected to specific port
> > on my managed switch. I didn't go for the NetDisco route for install
> > because I didn't like the idea of getting a bunch of CPAN perl modules
> > installed rather than using rpm packages.
> 
> Assuming it can get the info from the switch, it will - and give you 
> clickable link to the other device's node info.

That's something that I've never been able to do in Zenoss and if it's
possible, I don't know. I think Zenoss only has forums and not mail list
and I truly don't like forums.

This is a Dell PowerConnect 6248 'managed' switch so I would think it
could. I enabled monitoring on all of the ports just in case. That would
beat the brains out of the spreadsheets I've been maintaining on
interconnects between patch panel, switch and office map to identify but
since this is newly rewired, I am not having much trouble.

One thing that is throwing me for a loop is that it says all the
Macintosh systems are a 10Mbps SNMP connection but on the Macs
themselves, they clearly indicate 1Gbps. This somewhat tracks all of the
pain that I have had with SNMP collection on the Macs, which on Zenoss
has been less than spectacular. For example, I get installed software
list, total installed memory, total hard drive space, free hard drive
space on all Linux and Windows systems but only get total hard drive
space and total installed memory on Macs. On Zenoss, I have resorted to
ssh collection on Macs because snmp collection just sort of sucks.

Craig



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [CentOS] Bzip2 Compress directories

2009-04-22 Thread Frank Cox
On Wed, 22 Apr 2009 19:29:52 -0400
Robert Heller wrote:

> Note that is also possible to use dump or cpio as well.  Unlike the
> MS-Windows zip/unzip, which combines compressing and archiving in a
> single program, the 'UNIX' way is to separate these functions.  bzip2
> only compresses.  Other programs (tar, dump, cpio) create archives -- 
> bundle a group of files and/or directory trees into a single file.

Depending on your needs, you can obtain better compression with programs other
than bzip2.  The price paid for the additional compression can be processing
time, ram requirements, robustness, compatibility and several or none of the
above.

rzip, lzip and 7za come to mind as alternatives that you may want to look
into.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bzip2 Compress directories

2009-04-22 Thread nate
Frank Cox wrote:
> On Wed, 22 Apr 2009 19:29:52 -0400
> Robert Heller wrote:
>
>> Note that is also possible to use dump or cpio as well.  Unlike the
>> MS-Windows zip/unzip, which combines compressing and archiving in a
>> single program, the 'UNIX' way is to separate these functions.  bzip2
>> only compresses.  Other programs (tar, dump, cpio) create archives --
>> bundle a group of files and/or directory trees into a single file.
>
> Depending on your needs, you can obtain better compression with programs
> other
> than bzip2.  The price paid for the additional compression can be processing
> time, ram requirements, robustness, compatibility and several or none of the
> above.

pbzip2 is available too if you have more than 1 cpu core:
http://compression.ca/pbzip2/

Though I prefer pigz(parallel gzip), both pbzip2 and pigz
are completely compatible with regular bzip2 and gzip.

http://www.zlib.net/pigz/

bzip2 is reallly slow, but if you happen to have a 8 core
or better system you can get some pretty good speed out
of pbzip2, though in both cases the parallellness is only
available on compression not on decompression(last I
checked).

I've been using pigz on a daily basis to backup databases
for more than a year now, I always run gzip -t afterward
as part of the backup script and so far have never had
an error.

nate


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


Re: [CentOS] Bzip2 Compress directories

2009-04-22 Thread nate
Robert Heller wrote:

> Note that is also possible to use dump or cpio as well.  Unlike the
> MS-Windows zip/unzip, which combines compressing and archiving in a
> single program, the 'UNIX' way is to separate these functions.  bzip2
> only compresses.  Other programs (tar, dump, cpio) create archives --
> bundle a group of files and/or directory trees into a single file.

zip and some of the other compression tools also have a habbit
of not preserving file system permissions or ownership, which can
be handy in a backup, also may not support special devices(e.g.
sockets, fifos, character/block device entries etc). If you rely
upon file system ACLs on top of regular unix permissions things
might get more complicated, I don't use ACLs, so don't have
experience with preserving them in archives.

nate

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


Re: [CentOS] Weird performance problem

2009-04-22 Thread Mike Fedyk
Can you find the first time this problem occoured?  How about trying
older kernel versions?

You are either dealing with misbehaving hardware/driver or you need to
tweak the settings on your clock source.

Believe it or not but good sources of info to fix this affect vmware
also so read those docs.

On 4/20/09, Ugo Bellavance  wrote:
> JohnS a écrit :
>> On Sun, 2009-04-19 at 09:02 -0700, Akemi Yagi wrote:
>>> On Sun, Apr 19, 2009 at 8:34 AM, JohnS  wrote:
>>>
 I don't reacall any one really saying if there was indeed a fix put into
 that PAE or any Specific Kernel for CentOS. Can the CentOS Kernel
 Builder Comment Please?

 Also See: +1
 http://wiki.centos.org/TipsAndTricks/VMWare_Server?highlight=(100hz)

 JohnStanley
>>> As noted at the top of that wiki page, the contents need to be
>>> updated.  When I added that note, I intended to do it asap but have
>>> not had a chance to do so.  However, the link referenced in there (
>>> http://kb.vmware.com/kb/1006427 ) is the best source for timekeeping
>>> at this moment.  In short, CentOS no longer offers 100Hz kernels
>>> because the divider=10 kernel option now works.
>>>
>>> Akemi
>> 
>> Thanks Akemi for the update on it. That should fix hin up,
>
> I'm not using VMWare, I'm using OpenVZ...
>
> Ugo
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

-- 
Sent from my mobile device
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Grub configuration from within Windows

2009-04-22 Thread Brian Mathis
On Wed, Apr 22, 2009 at 5:58 PM, Marko Vojinovic  wrote:
> My friend uses a typical dual-boot setup (Windows XP and Centos 5.3).
> The machine is online 24/7 and he often uses it from a remote location
> (Linux via ssh -X, Windows via rdesktop).
>
> The problem is that he wants to be able to remotely configure which of
> these two OSes is to be the default on next reboot, so he can switch
> from one OS to the other and back remotely. If Linux is up, he just
> needs to reconfigure grub.conf, but if Windows is up (and default) he
> has no way of accessing grub.conf.
>
> Now, he has several partitions on the drive, some ntfs, some vfat and
> some ext3. Is there a clean way of putting grub.conf on a vfat
> partition? Is there a way for Windows to have rw access to ext3
> filesystem (namely, /)? Is there some other way of handling this
> without physical access to the machine while it boots?
>
> I have suggested virtualization of Windows, so he could run them both
> concurrently without pain, but for certain (computational performance)
> reasons that is not a good option for him --- he wants hard reboots
> between OSes.
>
> Any suggestions?
>
> Thanks! :-)
> Marko
>

I have not done this, but maybe a small vfat partition with syslinux
instead of grub as the boot loader.  Then you could edit the
configuration from both Windows and Linux.

It might also be a good idea for him to look into one of these
single-port IP/KVMs in case he needs to get to the console:
http://www.lantronix.com/it-management/kvm-over-ip/securelinx-spider.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] One for the Cisco experts...

2009-04-22 Thread Les Mikesell
Craig White wrote:
> 
> Thus far (and admittedly this is premature), I find Zenoss a lot beefier
> but I spent a ton of time setting it up the first time until I figured
> things out whereas I spent comparatively no time setting OpenNMS up. But
> I have learned things along the way, especially getting SNMP set up on
> everything I could.

Basically, Opennms will auto-discover the ranges you give it, detecting 
an assortment of services and snmp, then automatically poll what it 
discovers on 5 minute intervals and report outages.  You can configure 
thresholds levels in the snmp data to generate alarms.  You have to add 
whatever setup you want for external notificatons - they are off by 
default but you can set up email destinations, a jabber group 
conference, etc.  There are near-infinite other options, of course, but 
that covers most of what you are likely to want.

I found this pdf with a much nicer overview:
http://www.google.com/url?sa=U&start=2&q=http://www.ukuug.org/events/spring2009/programme/introduction-to-opennms.pdf&ei=jNvvSd3xDtTelQfphIDZDA&sig2=7vpdGBzMcZoATeczKIZh7g&usg=AFQjCNEy6gnHrSgQOneREKleuRvgAssmHw

> This is a Dell PowerConnect 6248 'managed' switch so I would think it
> could. I enabled monitoring on all of the ports just in case.

I wouldn't be too hopeful without some extra work.  I have a pair of 
Dell 5324's and am not getting the link info, but it works on a bunch of 
different cisco models.  It does collect the bandwidth data from the 
Dells - the rest might be a matter of adding more of the oid trees to 
the 'included' view but the Dell switch management is kind of weird.

Per http://www.opennms.org/index.php/Linkd you need the 
.iso.org.dod.internet.mgmt.mib-2.ip.ipNetToMediaTable values.

> One thing that is throwing me for a loop is that it says all the
> Macintosh systems are a 10Mbps SNMP connection but on the Macs
> themselves, they clearly indicate 1Gbps. This somewhat tracks all of the
> pain that I have had with SNMP collection on the Macs, which on Zenoss
> has been less than spectacular.

I hadn't tried a Mac before - the default settings don't look that 
promising.  It should all boil down to getting the oid trees you need 
exposed, though.

 > For example, I get installed software
> list, total installed memory, total hard drive space, free hard drive
> space on all Linux and Windows systems but only get total hard drive
> space and total installed memory on Macs. On Zenoss, I have resorted to
> ssh collection on Macs because snmp collection just sort of sucks.

Might be a good topic for the opennms list.

-- 
   Les Mikesell
lesmikes...@gmail.com

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