[CentOS] rebuilding firefox-2.0.0.16 from fc8

2008-07-28 Thread Mark Pryor
hello,

I started with
ftp://download.fedora.redhat.com/pub/fedora/linux/updates/8/SRPMS/firefox-2.0.0.16-1.fc8.src.rpm

with the hope of rebuilding it for el5/centos.

All of the dependencies were available (mostly from rpmforge) except one: 
something called system-bookmarks. I elected to comment out this from the spec, 
firefox.spec

I did the extracts with CPIO
rpm2cpio firefox-xxx.src.rpm | cpio -i firefox.spec
then i extracted everything else and copied it to my buildroot
~/redhat/SOURCES

then the moment of truth. I didn't see another way except to rebuild all so I 
did
>rpmbuild -ba --sign ~/SPECS/firefox.spec

while the above worked, it took long enough that I was able to go to dinner and 
have a beer before it finished. On top of that, thermal alarms went off as the 
CPU/PWM reached 57C/67C.

a new RPM, and src.RPM were written to the BR and the RPM (i386) works fine.

Was it necessary to do the complete build (-ba) since I only eliminated a 
single build-requires value?

-- 
Mark



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


Re: [CentOS] Shell script - ping

2008-07-28 Thread Gopinath Achari

thank u all

On Mon, 2008-07-28 at 16:11 +0300, Javor Nikolov wrote:
> Hi,
> 
> If you you want a quicker execution - you could also run the pings to
> separate hosts in parallel starting the jobs in background (&) and
> waiting for them with "wait" after that. You'll have to be more
> careful about the outputs in that case - e.g. redirect them to
> separate files.
> 
> Regards,
> Javor
> 
> On Mon, Jul 28, 2008 at 2:57 PM, Laurence Alexander Hurst
> <[EMAIL PROTECTED]> wrote:
> Gopinath Achari wrote:
> hi,
> 
>how to write a scripts which launches
> 10 pings to different
> destinations at execution of single shell scripts
> 
> please help me any ideas
> 
> regards,
> Gopinath
> Do you mean something like:
> ping -c10 host1
> ping -c10 host2
> 
> which will ping host1 10 times, then host2 10 times etc. (see
> `man ping` for details of the options).
> 
> If you have a list of hosts in a file, you could do:
> for host in `cat [filename]`
> do
>ping -c10 $host
> done
> 
> or:
> 
> while read host
> do
>ping -c10 $host
> done << [filename]
> 
> If you only want to ping each host once, you can substitute
> '-c10' with '-c1' (again, see the man page).
> 
> Hope this helps
> Laurence
> 
> 
> ___
> 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] Change Web Server to another disk in Centos 5.2

2008-07-28 Thread Kuang-Chun Cheng
On Tue, Jul 29, 2008 at 12:43 PM, Victor Padro <[EMAIL PROTECTED]> wrote:
>
>
> On Mon, Jul 28, 2008 at 11:40 PM, Salvador Torres <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi,
>>
>> I'm new to CentOS 5.2 and I want to know how can I change the
>> /var/www/html directory to another disk. That disk is not even partitioned.
>> I've googled and even searched in centos.org forums and documentation, and
>> found nothing.

Check apache's configuration.  Change "DocumentRoot" from /var/www/html
to new location you want.

Or simply, move /var/www/html to new disk ... and make a symbolic link
/var/www/html @-> your_new_path


KC


>>
>>
>>
>> I want to have in separate disks CentOS and my web server.
>>
>>
>>
>> Can anybody recommend any CentOS 5.2 book, because every time I want to
>> find an answer to my questions I spend a lot of time searching for it in the
>> centos.org website and googling and nothing useful comes up.
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
> The best info you could find is in here: http://www.centos.org/docs/5/
>
>
> --
> "It is human nature to think wisely and act in an absurd fashion."
>
> "Todo el desorden del mundo proviene de las profesiones mal o mediocremente
> servidas"
>
> ___
> 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] Change Web Server to another disk in Centos 5.2

2008-07-28 Thread Victor Padro
Looking more closely on your apache issue, you can take a look in here:
http://www.centos.org/docs/5/html/5.2/Deployment_Guide/s2-apache-tips.html


-- 
"It is human nature to think wisely and act in an absurd fashion."

"Todo el desorden del mundo proviene de las profesiones mal o mediocremente
servidas"
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Change Web Server to another disk in Centos 5.2

2008-07-28 Thread Victor Padro
On Mon, Jul 28, 2008 at 11:40 PM, Salvador Torres
<[EMAIL PROTECTED]>wrote:

>  Hi,
>
> I'm new to CentOS 5.2 and I want to know how can I change the /var/www/html
> directory to another disk. That disk is not even partitioned. I've googled
> and even searched in centos.org forums and documentation, and found
> nothing.
>
>
>
> I want to have in separate disks CentOS and my web server.
>
>
>
> Can anybody recommend any CentOS 5.2 book, because every time I want to
> find an answer to my questions I spend a lot of time searching for it in the
> centos.org website and googling and nothing useful comes up.
>
>
>
> Thanks
>
>
>
>
>
>
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
The best info you could find is in here: http://www.centos.org/docs/5/


-- 
"It is human nature to think wisely and act in an absurd fashion."

"Todo el desorden del mundo proviene de las profesiones mal o mediocremente
servidas"
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Change Web Server to another disk in Centos 5.2

2008-07-28 Thread Salvador Torres
Hi,

I'm new to CentOS 5.2 and I want to know how can I change the /var/www/html
directory to another disk. That disk is not even partitioned. I've googled
and even searched in centos.org forums and documentation, and found nothing.

 

I want to have in separate disks CentOS and my web server.

 

Can anybody recommend any CentOS 5.2 book, because every time I want to find
an answer to my questions I spend a lot of time searching for it in the
centos.org website and googling and nothing useful comes up.

 

Thanks

 

 

 

 

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


Re: [CentOS] Re: BUG: soft lockup - CPU#1 stuck for 61s!

2008-07-28 Thread Ian jonhson
> When you use a custom kernel, you usually get to keep the pieces.
>
> Go buy a new car and change the engine and then see if they honor the
> warranty.
>
> We stopped using Dell machines some time ago. For some reason there
> reliability has been steadily falling. I don't know if they are doing
> non-standard stuff in their bios's or just using less than optimal hardware
> to cut costs, but I probably won't go back.
>

agree. I have turn back to original CentOS kernel, and then restart my
program. In other words, my program run without PF_RING. By now,
nothing happens. Therefore, it seems the bug results from PF_RING
patch.

Thanks for your help.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Cannot boot from DVD on an Intel Svr to install CentOS 5.2

2008-07-28 Thread saltorres
Finally after days of trial an error I got the origin of the problem and how to 
solve it.
I'm working from a Vista computer, so what I say here is related to this 
environment.
1. You have to download images (iso files) using FireFox web browser. Internet 
Explorer does not download them complete.
2. After downloading the image, download md5sum and checksum the file to be 
sure it was downloaded correctly. To do that, you have to open a command prompt 
in the folder where you downloaded the files and run the following command: 
md5sum centos-5.2-i386-bin-DVD.iso to generate the checksum number which you 
must compare to the one in the md5sum.txt that is found on the same site where 
you downloaded the files from.
3. Burn the DVD in a low speed (8x).

The above 3 steps must do the trick.

I hope it helps to some others new to CentOS.


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


Re: [CentOS] Centos 5.0 package updater asking me to update more than I installed

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 7:58 PM, Mark Walker <[EMAIL PROTECTED]> wrote:
> Here's what I'm doing.  In the gui environment, gnome, there's a box in the
> upper right corner that reports about updates available every once in a
> while.  I click on it and I get something called "Package Updater" that
> lists the packages that can be updated according to the server, I believe
> yum, it's querying.  I'm not sure exactly what the Application name is, but
> that's what the title bar says.  Sorry, I'm not an expert on gnome, so I'm
> having trouble tracking down what the actual app is.  My guess is that it's
> Yumex or some close relative.
>
> When I get the list of packages to be updated, there are things that I don't
> recognize having installed.  For instance a package called "metacity," which
> apparently is a window manager.  I understand there could be dependencies
> that need to be installed, but that is usually dealt with after yum
> downloads and queries the actual packages isn't it?
>
> Is the main "Package Updater" designed to just give you the packages you
> installed or does it give you everything that's available from the server
> it's talking to?
>
I use that. It's called PUP and it is a front end to YUM. Today it had
one (1) update available for my CentOS 5.2 Desktop.
I use GNOME almost exclusively, but I also have KDE installed. I
believe it only offers you the updates that are available for stuff
you have installed on your box. There are many packages on your box
(and mine!) that we do not recognize, but, they are installed.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: Hardware serial number access from (a) command(s)

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 4:20 PM, Scott Silva <[EMAIL PROTECTED]> wrote:

>>> MHR <[EMAIL PROTECTED]> took out a #2 pencil and scribbled:
 Over the weekend, I had to make a technical support call on one
 of my DVD burners, and at one point the recorded message
 mentioned I should have my serial number handy.  I thought there
 was a way to read that from at least one piece of software on the
 system, but I couldn't remember one and man -k on a number of
 subjects was unrevealing.

 Can someone enlighten me (us)?

>> Mark: Try that! On my Desktop, it gives me the SN for the HD (hda),
>> but the space for
>> SN is blank, for hdc (DVD reader) and hdd (CD-RW). . If you are lucky,
>> on your box, it will give you the SN for the DVD
>> burner. Lanny
>
> I don't think most optical drive manufacturers embed serial numbers in their
> drives. Hard drives are different, as their testing process lets them change
> something like a serial number, but an optical drive would require a custom
> firmware to be created and then loaded to the drive. That would slow the
> process.

That probably explains why when I tried it, there were no serial numbers for my
opticlal drives. I always see an SN for a HD, when running diagnostics on them.
Sounds like Mark is going to need to pull the bad DVD burner anyway, so when he
does, he can read the SN on the label and get an RMA for it.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 5.2 yum repos old rpm

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 6:16 PM, Justin <[EMAIL PROTECTED]> wrote:
> I've just got a new dedicated server from Hostik and they've installed
> CentOS 5.2 on the system (awesome!) and came pre-installed with PHP, MySQL,
> and Apache (among other things). I noticed that PHP version is 5.1.6, the
> MYSQL is 5.0.45, and Apache is 2.2.3

If you do some research, you will find that Hostik helped you, by
installing this great (IMHO) distribution on  your server. What you
will get from CentOS, among other things, are: security, stability, a
very long life and super support from many of the highly experienced
people on this mailing list.

> So my question is, how do I change my yum configuration to install the
> latest and greatest versions of rpms installed via yum?

As Scott wrote, you will rarely get the latest and greatest versions
on this or any other Enterprise distro. And, you probably should not
have them, on a server.

Welcome to CentOS and to Enterprise Linux and good luck with your new
dedicated box. Do some reading, on the CentOS Wiki and
Download the Manuals from the CentOS web site and you can begin
learning how to secure your server.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] You didn't give me some packages, so now I'm giving you some! R, TexLive, LyX, Gnumeric, etc.

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 5:50 PM, Paul Johnson <[EMAIL PROTECTED]> wrote:
>
> I do want up-to-date applications that people here actually use, like
> LaTeX, Emacs, R, Gnumeric, and the other ones I can provide.  If I
> can't get those from EPEL or rpmforge or wherever,  I'm willing to
> build those packages.
>
> I'm offering to share that back to you, but if you don't need it, that's fine.
>

Personally I don't, but I'm sure there are plenty of people who do,
and I think it's great that you're willing to do that.

Please don't take my POV as representing anyone but myself.

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


Re: [CentOS] Centos 5.0 package updater asking me to update more than I installed

2008-07-28 Thread Mark Walker
Here's what I'm doing.  In the gui environment, gnome, there's a box in 
the upper right corner that reports about updates available every once 
in a while.  I click on it and I get something called "Package Updater" 
that lists the packages that can be updated according to the server, I 
believe yum, it's querying.  I'm not sure exactly what the Application 
name is, but that's what the title bar says.  Sorry, I'm not an expert 
on gnome, so I'm having trouble tracking down what the actual app is.  
My guess is that it's Yumex or some close relative.


When I get the list of packages to be updated, there are things that I 
don't recognize having installed.  For instance a package called 
"metacity," which apparently is a window manager.  I understand there 
could be dependencies that need to be installed, but that is usually 
dealt with after yum downloads and queries the actual packages isn't it?


Is the main "Package Updater" designed to just give you the packages you 
installed or does it give you everything that's available from the 
server it's talking to?


Thanks.


MHR wrote:

On Mon, Jul 28, 2008 at 5:08 PM, Mark Walker <[EMAIL PROTECTED]> wrote:
  

Is this the standard behavior?  Is there a way to only update the packages I
installed without deselecting the ones I don't want?




That depends on what you are updating and what you want.  Could you be
a little (no, a lot) more specific?  What are you doing (exactly) and
what is not working the way you think it should?

mhr
___
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] You didn't give me some packages, so now I'm giving you some! R, TexLive, LyX, Gnumeric, etc.

2008-07-28 Thread Paul Johnson
On Mon, Jul 28, 2008 at 7:39 PM, MHR <[EMAIL PROTECTED]> wrote:
> On Mon, Jul 28, 2008 at 5:34 PM, Paul Johnson <[EMAIL PROTECTED]> wrote:
>>
>> I tried Scientific Linux and found I had to re-build the same things
>> that I rebuild for CentOS, including R, because their versions lagged
>> behind the cutting edge.  I switched to Centos hoping that the larger
>> user community would generate more contributions of updated packages
>> for other things, like gnumeric or such.
>
> CentOS is strictly a rebuild of Red Hat Enterprise Linux, and yes, it
> lags quite a ways behind the bleeding edge, but that's what stable
> distributions do.

Right. We know that.

As I said in the original post, I'm looking to have a distribution
that is conservative on the kernel, disk support, network drivers,
suspend features for laptops, and all of the basic things like that.

I do not want the Fedora experience of having a palm device work in
Fedora 6, but not in Fedora 7 and 8, only to spend 20 hours reading
through debugger output and advice in bugzilla about what's gone wrong
with some kernel module or driver.  I do not want to play the game
anymore of "does my wireless still work?" on a weekly basis.  I don't
want to waste my "user time" trying to find out what's wrong in HAL or
the the acpi subsystem.

I don't want the desktop to change gratuitously. For me, there's been
no user-perceptible improvement in Gnome for about 4 years. As long as
it supplies a program menu and a file manager, that's enough.

I do want up-to-date applications that people here actually use, like
LaTeX, Emacs, R, Gnumeric, and the other ones I can provide.  If I
can't get those from EPEL or rpmforge or wherever,  I'm willing to
build those packages.

I'm offering to share that back to you, but if you don't need it, that's fine.

pj




>
> For more cutting edge, there's Fedora; bleeding edge is more like
> Ubuntu or Gentoo, but AFAIK that's pretty much it.  Most of the other
> distributions lag behind a little or a lot, depending on which one you
> choose.
>
> Now if you want truly bleeding edge software for your computer, and
> you don't mind massive numbers of security holes and other bugs,
> there's always Window$!  ;^)
>
> mhr
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread John R Pierce

Eduardo Silvestre wrote:

howdy,

 did you tried lshw? 

  


have you? 

this package, available in rpmforge, shows considerably less than 
hal-device did, albeit in a somewhat cleaner output format... ..  

neither hal-device or lshw showed the serial of the optical devices on 
the 3 different random servers I tried them on.   lshw doesn't even show 
the serial on SCSI hard disk drives, which is available from several 
sources on the same machine.

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


Re: [CentOS] You didn't give me some packages, so now I'm giving you some! R, TexLive, LyX, Gnumeric, etc.

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 5:34 PM, Paul Johnson <[EMAIL PROTECTED]> wrote:
>
> I tried Scientific Linux and found I had to re-build the same things
> that I rebuild for CentOS, including R, because their versions lagged
> behind the cutting edge.  I switched to Centos hoping that the larger
> user community would generate more contributions of updated packages
> for other things, like gnumeric or such.

CentOS is strictly a rebuild of Red Hat Enterprise Linux, and yes, it
lags quite a ways behind the bleeding edge, but that's what stable
distributions do.

For more cutting edge, there's Fedora; bleeding edge is more like
Ubuntu or Gentoo, but AFAIK that's pretty much it.  Most of the other
distributions lag behind a little or a lot, depending on which one you
choose.

Now if you want truly bleeding edge software for your computer, and
you don't mind massive numbers of security holes and other bugs,
there's always Window$!  ;^)

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


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread Eduardo Silvestre
howdy,

 did you tried lshw? 


Regards,

---
Eduardo Silvestre
nfsi telecom, lda.

[EMAIL PROTECTED]
Tel. (+351) 21 949 2300 - Fax (+351) 21 949 2301
http://www.nfsi.pt/

- Original Message -
From: "MHR" <[EMAIL PROTECTED]>
To: "CentOS mailing list" 
Sent: Terça-feira, 29 de Julho de 2008 01H33m GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: Re: [CentOS] Hardware serial number access from (a) command(s)

2008/7/28 thad <[EMAIL PROTECTED]>:
> dmidecode should work in any Linux:
>
>

As was discussed earlier in this thread, dmidecode mainly reports on
motherboard components and does not address peripheral devices.

Also, please do not top post.

Thanks.

mhr
___
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] You didn't give me some packages, so now I'm giving you some! R, TexLive, LyX, Gnumeric, etc.

2008-07-28 Thread Paul Johnson
On Mon, Jul 28, 2008 at 6:39 AM, Brent L. Bates <[EMAIL PROTECTED]> wrote:
> You might want to check out Scientific Linux:
>
>https://www.scientificlinux.org/
>
> They include a number of things that CentOS doesn't, like `R'.  I don't know
> if or how many of the other items you are looking for are on their site.  Just
> check them out for yourself.  They seem to try to be more up to date on some
> things than CentOS.  I hope this helps some.
>


I tried Scientific Linux and found I had to re-build the same things
that I rebuild for CentOS, including R, because their versions lagged
behind the cutting edge.  I switched to Centos hoping that the larger
user community would generate more contributions of updated packages
for other things, like gnumeric or such.  So far, that's not panning
out, but I still  have hope.  I am trying to find my way into the
rpmforge rpmrepo or rpmfusion or whatever it will be called.

You can compare the stuff I had to build with it

http://pj.freefaculty.org/ScientificLinux/5/i386/kups/packages/

and it is basically the same stuff I had to build for Centos:

http://pj.freefaculty.org/Centos/i386/kups/packages/

For Scientific Linux, I even had to build Firefox, which required
rebuilding yelp.

Maybe people will find this thread and suggest I try the Debian
off-shoots, like Ubuntu or Mint.  I've been doing that too.

I'm running Ubuntu on my laptop and it is closer to what I need than
Fedora or CentOS. It has a slower-changing kernel than Fedora, but
more up-to-date applications than Centos.  However,I am not installing
it  in our labs or on public machines because I find it harder to
secure.  On a workstation that I use personally, it is OK.  For
someone making the switch from Windows to Linux, Ubuntu may be the
preferred option.  But in a lab or on a widespread basis, there are
some things that hold me back.

1. The basic install of Ubuntu is less security conscious.  There's no
firewall in the default installation. (That is justified on the
grounds that no public services are offered in the default
configuration. The default iptables framework allows everything.
However, users can easily install services, without realizing that
there is no firewall.)  It doesn't (by default) secure the bootloader
with a password.  I noticed that default users have more privilidges
in Ubuntu than Fedora (they can use fuse file system).  Without having
a comprehensive knowledge of Ubuntu, I'm not sure how many other
"gotchas" are waiting. Maybe I've not found the CentOS gotchas yet.

2. It includes too many invitations to ordinary users to add/remove
packages. If somebody tries to run something that is not installed,
the shell replies "you can install that if you type sudo apt-get
install xyz".  They can't do that, they don't have privileges.  The
Applications menu has an add/remove package program.  I don't want
users to be asked to do things for which they don't have privileges.
The whole design of the package manager is to not be automatic, but
ask for constant user intervention.  Not good with many machines.

3. I do not have as much faith in the deb packaging process.  For me,
this the biggest reason I'm hanging around in the RPM distributions. I
learned RPM building from the classic Maximum RPM, which is emphatic
about keeping the 'pristine source code.'  If you have never built a
Debian package, you will will be in for a surprise.  You can't even
build a Deb package unless you manually untar the source code and
create a directory inside it.  My experience is that it is much harder
to rebuild a debian package than it is to rebuild an SRPM.  Most of
the time, if you find an SRPM and you want to build it on your system,
it is as simple as "rpmbuild --rebuild whatever.src.rpm".   I can't
find anything comparable to that for Debian.  It is always necessary
to open up the source package.

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread MHR
2008/7/28 thad <[EMAIL PROTECTED]>:
> dmidecode should work in any Linux:
>
>

As was discussed earlier in this thread, dmidecode mainly reports on
motherboard components and does not address peripheral devices.

Also, please do not top post.

Thanks.

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


Re: [CentOS] Centos 5.0 package updater asking me to update more than I installed

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 5:08 PM, Mark Walker <[EMAIL PROTECTED]> wrote:
> Is this the standard behavior?  Is there a way to only update the packages I
> installed without deselecting the ones I don't want?
>

That depends on what you are updating and what you want.  Could you be
a little (no, a lot) more specific?  What are you doing (exactly) and
what is not working the way you think it should?

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


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread thad
dmidecode should work in any Linux:


man dmidecode

DMIDECODE(8)  DMIDECODE(8)



NAME
   dmidecode - DMI table decoder

SYNOPSIS
   dmidecode [OPTIONS]


DESCRIPTION
   dmidecode  is a tool for dumping a computer's DMI (some say
   SMBIOS) table contents in a human-readable format. This ta‐
   ble  contains a description of the system's hardware compo‐
   nents, as well as other useful pieces of  information  such
   as  serial numbers and BIOS revision. Thanks to this table,
   you can retrieve this information without having  to  probe
   for  the  actual  hardware.   While this is a good point in
   terms of report speed and safeness,  this  also  makes  the
   presented information possibly unreliable.

^^^
sometimes truth is stranger than fiction
-bad religion-
http://www.bloglines.com/blog/mailist
^^^
I don't think the computers will take over the world. I have a bucket of
water.




On Mon, Jul 28, 2008 at 1:34 PM, Stephen Harris <[EMAIL PROTECTED]> wrote:

> On Mon, Jul 28, 2008 at 11:26:30AM -0700, MHR wrote:
> > Over the weekend, I had to make a technical support call on one of my
> > DVD burners, and at one point the recorded message mentioned I should
> > have my serial number handy.  I thought there was a way to read that
> > from at least one piece of software on the system, but I couldn't
> > remember one and man -k on a number of subjects was unrevealing.
>
> On a Dell, "dmidecode" will give you the serial number of the system.
> (I can see motherboard, chasis, memory sticks on my machine).
>
> Doubt if you can get the serial number of the DVD burner.
>
> --
>
> rgds
> Stephen
> ___
> 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] Centos 5.0 package updater asking me to update more than I installed

2008-07-28 Thread Mark Walker
Is this the standard behavior?  Is there a way to only update the 
packages I installed without deselecting the ones I don't want?


Thanks.

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


[CentOS] Re: CentOS 5.2 yum repos old rpm

2008-07-28 Thread Scott Silva

on 7-28-2008 4:16 PM Justin spake the following:

Hey everyone,

This is the first time I've ever used a mailing-list so bear with me :-)

I've just got a new dedicated server from Hostik and they've installed 
CentOS 5.2 on the system (awesome!) and came pre-installed with PHP, 
MySQL, and Apache (among other things). I noticed that PHP version is 
5.1.6, the MYSQL is 5.0.45, and Apache is 2.2.3


I ran yum to update, thinking it would update them to 5.2.6, 
5.0.51a-community, 2.2.9 respectively:


# yum makecache
# yum update

Of course after some time, I realize that the CentOS 5 repos only have 
those versions as the latest rpms in the list.


So my question is, how do I change my yum configuration to install the 
latest and greatest versions of rpms installed via yum?
 
Best Regards,


Justin Bull
http://www.c3studios.ca/pubkey.asc (PGP Public Key)
CentOS will never have the latest and greatest of anything. That is not how 
Enterprise Linux distributions work. They are designed to be stable and 
unchanging over their lifespan of half a decade or more.
If you want the latest and greatest, along with whatever new issues and 
problems they might have, CentOS is not for you.


Now if you want somewhat newer, you can look at the CentOSplus repo.
It can have newer packages.

--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] CentOS 5.2 yum repos old rpm

2008-07-28 Thread Akemi Yagi
On Mon, Jul 28, 2008 at 4:16 PM, Justin <[EMAIL PROTECTED]> wrote:
> Hey everyone,
>
> This is the first time I've ever used a mailing-list so bear with me :-)
>
> I've just got a new dedicated server from Hostik and they've installed
> CentOS 5.2 on the system (awesome!) and came pre-installed with PHP, MySQL,
> and Apache (among other things). I noticed that PHP version is 5.1.6, the
> MYSQL is 5.0.45, and Apache is 2.2.3
>
> I ran yum to update, thinking it would update them to 5.2.6,
> 5.0.51a-community, 2.2.9 respectively:
>
> # yum makecache
> # yum update
>
> Of course after some time, I realize that the CentOS 5 repos only have those
> versions as the latest rpms in the list.
>
> So my question is, how do I change my yum configuration to install the
> latest and greatest versions of rpms installed via yum?

Welcome to CentOS.

You might want to start by reading:

http://www.redhat.com/security/updates/backporting/?sc_cid=3093

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


[CentOS] CentOS 5.2 yum repos old rpm

2008-07-28 Thread Justin
Hey everyone,

This is the first time I've ever used a mailing-list so bear with me :-)

I've just got a new dedicated server from Hostik and they've installed
CentOS 5.2 on the system (awesome!) and came pre-installed with PHP, MySQL,
and Apache (among other things). I noticed that PHP version is 5.1.6, the
MYSQL is 5.0.45, and Apache is 2.2.3

I ran yum to update, thinking it would update them to 5.2.6,
5.0.51a-community, 2.2.9 respectively:

# yum makecache
# yum update

Of course after some time, I realize that the CentOS 5 repos only have those
versions as the latest rpms in the list.

So my question is, how do I change my yum configuration to install the
latest and greatest versions of rpms installed via yum?

Best Regards,

Justin Bull
http://www.c3studios.ca/pubkey.asc (PGP Public Key)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] smartd on RAID controllers?

2008-07-28 Thread Rainer Duffner


Am 29.07.2008 um 00:31 schrieb Kai Schaetzl:


Mhr wrote on Mon, 28 Jul 2008 11:41:17 -0700:


Or maybe it makes the machine feel good


Funny that you say that. Believe it or not, but after I found that  
hpasm
didn't provide any useful for me (at least at the moment) and I shut  
down

the daemon (with all of its agents) the core temperatures in sensors
dropped within a few seconds by 4 degrees.




It's know for consuming some CPU.
But taking a quick look on the support site (HP.com -> Support/Drivers- 
>Servers->Proliant->DL>140>G3), I see that they consider your DL140 a  
bit too small to support with all tools.


Normally, something like the HP Array Diagnostics utility would do the  
job, but alas: "HP ProLiant 100-series customers:  Because the HP  
System Management Homepage software is not supported for use with HP  
ProLiant 100-series servers, the Array Diagnostics Utility for Linux  
cannot be installed."





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


Re: [CentOS] smartd on RAID controllers?

2008-07-28 Thread Kai Schaetzl
Mhr wrote on Mon, 28 Jul 2008 11:41:17 -0700:

> Or maybe it makes the machine feel good

Funny that you say that. Believe it or not, but after I found that hpasm 
didn't provide any useful for me (at least at the moment) and I shut down 
the daemon (with all of its agents) the core temperatures in sensors 
dropped within a few seconds by 4 degrees.

Kai

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



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


RE: [CentOS] Re: Duplicate PV on HW RAID?

2008-07-28 Thread Ross S. W. Walker
Scott Silva wrote:
> on 7-28-2008 2:30 PM D Steward spake the following:
> >> Re-install with software RAID1.
> >>
> >> RAID1 is cheap as far as CPU/IO time is concerned so it works
> >> well software wise, and you get email alerts if it gets
> >> degraded!
> > 
> > I agree with you re. CPU load, but what about hot-swap and auto
> > rebuilding of arrays?
> > Does software RAID give you this?
> 
> Maybe not hot-swap yet -- I think it is in the works, but you 
> can have hot-spares that function very well.
> But fakeraid doesn't do most of that either, and an ICH9 
> controller is fakeraid.

Scott,

I've tested hot swap and it works if the hardware says it can
hot swap.

I don't know about unplugging a SATA cable while it's running
and sticking in another, but you can try it on a desktop
system, I don't see why it wouldn't work.

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


[CentOS] Re: Duplicate PV on HW RAID?

2008-07-28 Thread Scott Silva

on 7-28-2008 2:30 PM D Steward spake the following:

Re-install with software RAID1.

RAID1 is cheap as far as CPU/IO time is concerned so it works
well software wise, and you get email alerts if it gets
degraded!


I agree with you re. CPU load, but what about hot-swap and auto
rebuilding of arrays?
Does software RAID give you this?
Maybe not hot-swap yet -- I think it is in the works, but you can have 
hot-spares that function very well.

But fakeraid doesn't do most of that either, and an ICH9 controller is fakeraid.

--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] /etc/hosts missing localhost?

2008-07-28 Thread Bill Campbell
Following up, info below.

On Tue, Jul 22, 2008, Bill Campbell wrote:
>On Tue, Jul 22, 2008, Rudi Ahlers wrote:
>> Bill Campbell wrote:
>>> On Mon, Jul 21, 2008, Jim Perrin wrote:
>>>   
 On Mon, Jul 21, 2008 at 9:20 PM, Bill Campbell <[EMAIL PROTECTED]> wrote:
 
> Is there any reason why /etc/hosts would be missing the line,
> 127.0.0.1 localhost?
>   
 Nope. It's there by default in some form or another.

 By default, it usually looks like this ->

 127.0.0.1   installname  localhost.localdomain  localhost
 ::1  localhost6.localdomain6   localhost6

 If you don't have anything like this in your /etc/hosts, you either
 need to find a mirror and begin yelling at responsible parties, or
 stalk whomever else has root on this particular machine.
 
>>>
>>> I guess I could yell at myself as I'm doing kickstart installs from
>>> a local mirror.
>>>
>>> I found the same thing on two CentOS 5.1 installs here, one on a
>>> VMware VM, the other on real iron.  The wierd thing is that the
>>> base VMware VM I have that I copy to create new VMs looks OK.
>>> Now I'm going to have to poke around to see what's causing this
>>> line to be deleted.
>>>
>>> Bill
>>>   
>> I had a similar problem using OpenVZ images, installed from kickstart -  
>> almost like it's leaving some stuff out by default. So I ended up  
>> creating the file manually and adding it to the kickstart file to be  
>> copied over.
>
>The file was OK after the kickstart install, and after a ``yum update''.
>We install about 240 packages under the OpenPKG portable package management
>system which may have caused this, but I have not seen this problem prior
>to CentOS 5.2.
>
>I did not check to see the status of the /etc/hosts file after configuring
>the network with system-config-network, and before installing OpenPKG and
>its packages.  I may create a new VM, and run through the network
>configuration etc. to see where this is happening (VMware snapshots and
>revert sure simplify things like this :-).

I just did a fresh kickstart install of CentOS 5.2 as a VMware
virtual machine, and the 127.0.0.1 localhost line is missing
after doing ``yum update'' when I run ``system-config-network''
to assign a static IP address to the new VM.

Bill
-- 
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186

The cry has been that when war is declared, all opposition should
therefore be hushed.  A sentiment more unworthy of a free country could
hardly be propagated.  If the doctrine be admitted, rulers have only to
declare war and they are screened at once from scrutiny ...  In war,
then, as in peace, assert the freedom of speech and of the press.
Cling to this as the bulwark of all our rights and privileges.
-- William Ellery Channing
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Ross S. W. Walker
D Steward wrote:
> > Re-install with software RAID1.
> > 
> > RAID1 is cheap as far as CPU/IO time is concerned so it works
> > well software wise, and you get email alerts if it gets
> > degraded!
> 
> I agree with you re. CPU load, but what about hot-swap and auto
> rebuilding of arrays? Does software RAID give you this?

Hot swap, yes, if the hardware supports hot swap, auto rebuild,
yes, if you defined a hot spare beforehand, otherwise you have
to add the replacement to the array with the --add option.

That is how the hardware controllers do it. They don't auto
assume that a new drive inserted is a spare for the one
removed, but if you defined a hot spare then they will
auto-rebuild off that just like software RAID will.

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


Re: [CentOS] cupsd takes 100% of cpu

2008-07-28 Thread Dan Halbert
Thanks to all for the suggestions. I did do lsof on the process and saw 
nothing interesting (just libraries). Attaching gdb to the process 
showed that it appeared to be looping inside getservbyname().


However, after a little more thought, I "rm -rf"d /var/spool/cups/ 
(which had some stuff from 2007) and restarted. No more looping! Now I 
can configure my printers. We'll see whether it keeps working.


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


RE: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread D Steward
> Re-install with software RAID1.
> 
> RAID1 is cheap as far as CPU/IO time is concerned so it works
> well software wise, and you get email alerts if it gets
> degraded!

I agree with you re. CPU load, but what about hot-swap and auto
rebuilding of arrays?
Does software RAID give you this?

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


[CentOS] sys-unconfig

2008-07-28 Thread Mark Belanger

Does sys-unconfig work as advertised in 4.x?  Meaning that if I have a
fully configured box on my internal net and run sys-unconfig, will
I be able to power up the node on a totally different network
and have things work providing I answer the questions properly.

Most typically this will mean taking a box that is using
NIS in DNS domain A, NIS domain B, and static IP addr and move
it to DNS domain C, NIS domain D, and dynamic IP.

I can't remember the details now, but something didn't work
right in 3.x

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


[CentOS] Re: Hardware serial number access from (a) command(s)

2008-07-28 Thread Scott Silva

on 7-28-2008 12:10 PM Lanny Marcus spake the following:

On Mon, Jul 28, 2008 at 1:56 PM, Alex <[EMAIL PROTECTED]> wrote:

On Mon, 28 Jul 2008 11:26:30 -0700
MHR <[EMAIL PROTECTED]> took out a #2 pencil and scribbled:


Over the weekend, I had to make a technical support call on one
of my DVD burners, and at one point the recorded message
mentioned I should have my serial number handy.  I thought there
was a way to read that from at least one piece of software on the
system, but I couldn't remember one and man -k on a number of
subjects was unrevealing.

Can someone enlighten me (us)?

Thanks.

mhr

You can try hdparm -i /dev/yourdevice

You may need to run this as root. There is a field for Serial
Number, but for my devices no serial number is provided. This may
not help you, but it could work.

Output from my system:

[EMAIL PROTECTED] ~]$ sudo hdparm -i /dev/hdc

/dev/hdc:

Model=Pioneer DVD-ROM ATAPIModel DVD-106S 011, FwRev=E1.14,
SerialNo= Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs
nonMagnetic }.other info is there but is not relevant.


Mark: Try that! On my Desktop, it gives me the SN for the HD (hda),
but the space for
SN is blank, for hdc (DVD reader) and hdd (CD-RW). . If you are lucky,
on your box, it will give you the SN for the DVD
burner. Lanny
I don't think most optical drive manufacturers embed serial numbers in their 
drives. Hard drives are different, as their testing process lets them change 
something like a serial number, but an optical drive would require a custom 
firmware to be created and then loaded to the drive. That would slow the process.


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


[CentOS] Re: Duplicate PV on HW RAID?

2008-07-28 Thread Scott Silva




 -> unpartitioned space
These shouldn't be appearing as two discs in the first place-- but 
anaconda said I only had one unit...
Anyway, why the asymmetry? Did I screw the RAID volume somehow? Or did I 
install plain on sda and this RAID never worked as such? :P
The machine BIOS correctly describes the RAID volume at start. Doesn't 
It smell like fake RAID?

Should I declare sdb invalid to the firmware program so as to force resync?
Thanks again
--
It sure looks as if it was originally a mirrored set, but broke later, maybe a 
kernel update no longer supports that fakeraid controller.



--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] script

2008-07-28 Thread Sergey Podushkin

Mad Unix wrote:

I suggest make it a little bit lighter:
inline corrections:

#!/bin/sh
# Shell script to monitor or watch the disk space
# It will send an email to $ADMIN, if the (free avilable) percentage
# of space is >= 90%
# -
# Copyright (c) 2005 nixCraft project 
# This script is licensed under GNU GPL version 2.0 or above
# -
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# --
# Linux shell script to watch disk space (should work on other UNIX oses )
# SEE URL: 
http://www.cyberciti.biz/tips/shell-script-to-watch-the-disk-space.html

# set admin email so that you can get email
ADMIN="[EMAIL PROTECTED] "
# set alert level 90% is default
ALERT=90

df -HP | grep -vE '^Filesystem|tmpfs|cdrom' |
 while read partition size used free perc mnt ;
 do
   usep=$(echo $perc | tr -d '%' )
   if [ $usep -ge $ALERT ]; then
 echo "Running out of space \"$partition ($usep%)\" on $(hostname) as
 on $(date)" |
  mail -s "Alert: Almost out of disk space $usep" $ADMIN
   fi
 done


it works for me.

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


Re: [CentOS] smartd on RAID controllers?

2008-07-28 Thread Sean Carolan
>
> /dev/sda is the virtual disk as it appears to CentOS as I can access it
> with hdparm.
> Do I need to use another device for the RAID array (which?) or is it
> impossible to smart monitor "thru" a RAID controller?


You probably will want to install the "HP Proliant Support Pack" as it will
include the hpasm command line tools as well as a handy HP System Management
home page.  You can set it up to send you email alerts or send snmp traps to
a central server running the HP SIM software any time one of your hard
drives fails.  We use HP SIM in production to monitor both our Dell and HP
servers, and it works great.  I get an alert any time a RAID card or hard
drive has issues.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: selinux & httpd & portmap

2008-07-28 Thread Scott Silva




Is there a recommended limit on email size posted somewhere?




1 byte less than what triggers a spanking!  ;-P



--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread Toby Bluhm

Ralph Angenendt wrote:

MHR wrote:

Tony,

1) Please edit your replies to remove unnecessary information.

2) If you need to present this large of an amount of data, please
include it in an attachment.


Maybe that would have broken the list limit ...



Not sure of your meaning - by being 53k or being a 53k attachment?




53k * several thousand mails ...



I did check my trashbin for Centos messages sorted by size & 53k was no 
where near the worst offenders - not trying to make an excuse, just 
showing my thought process - seemed like I would be okay. And it was 
data, not just the same sig repeated 50 times or a big bitmap.



Is there a recommended limit on email size posted somewhere?

Perhaps the membership join/reminder could have etiquette/rules included?


Awaiting my penance . . . .



--
Toby Bluhm
Alltech Medical Systems America, Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240 ext203

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


RE: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Ross S. W. Walker
Eduardo Grosclaude wrote:
> On Mon, Jul 28, 2008 at 3:36 PM, Toby Bluhm 
> <[EMAIL PROTECTED]> wrote:
> 
> 
>   Eduardo Grosclaude wrote:
>   
> 
> 
>   Ross, Nate, Tony, thanks for your promptly response
>   
> 
> 
>   Toby
> 
> Ouch! Excuse me plz
> 
> 
> 
>   If it were me & I was just starting out on a new setup, 
> I'd blow it all away and start from scratch. I hate that 
> nagging feeling something's gonna bite me later down the road.
> 
> Agreed, I just expected to get a bit more knowledge from this 
> crappy situation

Re-install with software RAID1.

RAID1 is cheap as far as CPU/IO time is concerned so it works
well software wise, and you get email alerts if it gets
degraded!

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 12:09 PM, John R Pierce <[EMAIL PROTECTED]> wrote:
>
> DVD burners, at $39 or so new, are pretty much disposable.  i find most
> burners are good for a few 100 disks then become less reliable.
>

True, but it's still a PITA to install and remove them, and external
drives cost more (yeah, I'm /that/ cheap :-).

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


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 2:09 PM, John R Pierce <[EMAIL PROTECTED]> wrote:
> Lanny Marcus wrote:
>>
>> Follow on: When I had a problem with the Teac CD-RW drive in my daughters
>> box,
>> I sent an email to Teac Tech Support, asking if they had Diagnostics
>> for it. ...
>>
> DVD burners, at $39 or so new, are pretty much disposable.  i find most
> burners are good for a few 100 disks then become less reliable.

We live in South America, so things cost more down here and probably the model
I would specify, if I were in the USA, can't be found here. . I have
had better luck
with burners made by other companies. We have a Sony CD-RW drive, in an old
box and it is still running. Someone on the list told me months ago he doesn't
order Teac drives and  I think he said he'd had good luck with LG
drives. I bought
an LG DVD burner for my wife's box. No more Teac stuff for me.  Sony
had Diagnostics
for the CD-RW drive and it checked out OK.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 11:59 AM, Lanny Marcus <[EMAIL PROTECTED]> wrote:
>
> PITA. You will probably need to open the box and look at the label on
> the  drive.
>

I'll have to do that anyway - they said it was probably defective and
I should send it back for an exchange.

Foo.

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


RE: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Ross S. W. Walker
Eduardo Grosclaude wrote:
> 
> Ross, Nate, Tony, thanks for your promptly response
> 
> 
> On Mon, Jul 28, 2008 at 2:51 PM, nate <[EMAIL PROTECTED]> wrote:
> 
> 
>   Eduardo Grosclaude wrote:
>   
>   > 4) Rebooted the installed system. Now "Duplicate PV" 
> shows at boot. Honestly
>   
>   
>   To me it sounds likely that the raid controller is shitty and
>   is presenting two sets of devices to the OS, one likely being
>   the "RAID" device and the other a more generic device(s).
>   
>   What does 'dmesg' say? Do you see more devices than you think
>   you should have on the system?
> 
> dmesg says nothing about this, the message only appears at 
> console when booting or otherwise using the PVs:
> 
> [EMAIL PROTECTED] ~]# pvs
>   Found duplicate PV 8D7K2wg15HqD0l9HxZCz7QlDfpqJOhXT: using 
> /dev/sdb2 not /dev/sda2
>   PV VG Fmt  Attr PSize   PFree
>   /dev/sdb2  VolGroup00 lvm2 a-   465,62G0 
> 
> [EMAIL PROTECTED] ~]# lvs
>   Found duplicate PV 8D7K2wg15HqD0l9HxZCz7QlDfpqJOhXT: using 
> /dev/sdb2 not /dev/sda2
>   LV   VG Attr   LSize   Origin Snap%  Move Log Copy% 
>   LogVol00 VolGroup00 -wi-ao 150,00G  
>   LogVol01 VolGroup00 -wi-ao   1,94G  
>   LogVol02 VolGroup00 -wi-ao 313,69G   
> 
> 
> [EMAIL PROTECTED] ~]# sfdisk -d
> # tabla de particiones de /dev/sda
> unit: sectors
> 
> /dev/sda1 : start=   63, size=   208782, Id=83, bootable
> /dev/sda2 : start=   208845, size=976543155, Id=8e
> /dev/sda3 : start=0, size=0, Id= 0
> /dev/sda4 : start=0, size=0, Id= 0
> # tabla de particiones de /dev/sdb
> unit: sectors
> 
> /dev/sdb1 : start=   63, size=   208782, Id=83, bootable
> /dev/sdb2 : start=   208845, size=976543155, Id=8e
> /dev/sdb3 : start=0, size=0, Id= 0
> /dev/sdb4 : start=0, size=0, Id= 0
> 
> Awful--I expected to see just one device :P 
> 
> > There might be a disk from an old RAID1 set in there.
> Don't think so, this machine was integrated here with new materials.
> 
> Oops... system-config-lvm shows under 'Uninitialized entities':
> /dev/sda
>  -> part 1
>  -> part 2
>  -> unpartitioned space
> /dev/sdb
>  -> part 1
>  -> unpartitioned space

The sfdisk output looks OK, I think it's just an issue with
system-config-lvm getting confused with the "leaky" sdb.

> These shouldn't be appearing as two discs in the first 
> place-- but anaconda said I only had one unit...
> Anyway, why the asymmetry? Did I screw the RAID volume 
> somehow? Or did I install plain on sda and this RAID never 
> worked as such? :P

I think it's the on board RAID not abstracting the disks as
it should.

> The machine BIOS correctly describes the RAID volume at 
> start. Doesn't It smell like fake RAID?
> Should I declare sdb invalid to the firmware program so as to 
> force resync?

You could re-try the installation, or, hide /dev/sdb from lvm
using filtering in lvm.conf.

You can reboot with a live cd and run a checksum comparison
on the volumes on each disk to verify if the RAID is working
correctly. Maybe there is a BIOS option to hide drive 2?

If you do a re-install and get the same result then you know
it wasn't a mistake on your part though (unless you make it
again!).

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 11:51 AM, Ralph Angenendt
<[EMAIL PROTECTED]> wrote:
> MHR wrote:
>> Tony,
>>
>> 1) Please edit your replies to remove unnecessary information.
>>
>> 2) If you need to present this large of an amount of data, please
>> include it in an attachment.
>
> Maybe that would have broken the list limit ...
>
> 53k * several thousand mails ...
>
Seems like it already would have if it could.

Okay, post on a web page somewhere

Picky, picky, picky, I just don't know, never satisfied, yada, yada, yada

;^)

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


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 1:56 PM, Alex <[EMAIL PROTECTED]> wrote:
> On Mon, 28 Jul 2008 11:26:30 -0700
> MHR <[EMAIL PROTECTED]> took out a #2 pencil and scribbled:
>
>> Over the weekend, I had to make a technical support call on one
>> of my DVD burners, and at one point the recorded message
>> mentioned I should have my serial number handy.  I thought there
>> was a way to read that from at least one piece of software on the
>> system, but I couldn't remember one and man -k on a number of
>> subjects was unrevealing.
>>
>> Can someone enlighten me (us)?
>>
>> Thanks.
>>
>> mhr
>
> You can try hdparm -i /dev/yourdevice
>
> You may need to run this as root. There is a field for Serial
> Number, but for my devices no serial number is provided. This may
> not help you, but it could work.
>
> Output from my system:
>
> [EMAIL PROTECTED] ~]$ sudo hdparm -i /dev/hdc
>
> /dev/hdc:
>
> Model=Pioneer DVD-ROM ATAPIModel DVD-106S 011, FwRev=E1.14,
> SerialNo= Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs
> nonMagnetic }.other info is there but is not relevant.

Mark: Try that! On my Desktop, it gives me the SN for the HD (hda),
but the space for
SN is blank, for hdc (DVD reader) and hdd (CD-RW). . If you are lucky,
on your box, it will give you the SN for the DVD
burner. Lanny
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread John R Pierce

Lanny Marcus wrote:

Follow on: When I had a problem with the Teac CD-RW drive in my daughters box,
I sent an email to Teac Tech Support, asking if they had Diagnostics
for it. ...
  



DVD burners, at $39 or so new, are pretty much disposable.  i find most 
burners are good for a few 100 disks then become less reliable.




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


RE: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread Ross S. W. Walker
MHR wrote:
> Over the weekend, I had to make a technical support call on one of my
> DVD burners, and at one point the recorded message mentioned I should
> have my serial number handy.  I thought there was a way to read that
> from at least one piece of software on the system, but I couldn't
> remember one and man -k on a number of subjects was unrevealing.
> 
> Can someone enlighten me (us)?

libsmbios is good getting Dell service tag serial number of system.

hal-device is good getting specific device information:

23: udi = '/org/freedesktop/Hal/devices/storage_model_HL_DT_ST_GCR_8240N'
  org.freedesktop.Hal.Device.Storage.method_execpaths = { 'hal-storage-eject', 
'hal-storage-closetray' } (string list)
  org.freedesktop.Hal.Device.Storage.method_argnames = { 'extra_options', 
'extra_options' } (string list)
  org.freedesktop.Hal.Device.Storage.method_signatures = { 'as', 'as' } (string 
list)
  org.freedesktop.Hal.Device.Storage.method_names = { 'Eject', 'CloseTray' } 
(string list)
  info.interfaces = { 'org.freedesktop.Hal.Device.Storage', 
'org.freedesktop.Hal.Device.Storage' } (string list)
  info.addons = { 'hald-addon-storage' } (string list)
  block.storage_device = 
'/org/freedesktop/Hal/devices/storage_model_HL_DT_ST_GCR_8240N'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_HL_DT_ST_GCR_8240N'  
(string)
  storage.cdrom.write_speeds = {  } (string list)
  storage.cdrom.write_speed = 0  (0x0)  (int)
  storage.cdrom.read_speed = 4224  (0x1080)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.hddvdrw = false  (bool)
  storage.cdrom.hddvd = false  (bool)
  storage.cdrom.bdre = false  (bool)
  storage.cdrom.bdr = false  (bool)
  storage.cdrom.bd = false  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrwdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = false  (bool)
  storage.cdrom.dvd = false  (bool)
  storage.cdrom.cdrw = false  (bool)
  storage.cdrom.cdr = false  (bool)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = { 'storage', 'block', 'storage.cdrom' } (string list)
  info.category = 'storage'  (string)
  info.product = 'HL-DT-ST GCR-8240N'  (string)
  storage.size = 0  (0x0)  (uint64)
  storage.removable = true  (bool)
  storage.removable.media_available = false  (bool)
  storage.physical_device = 
'/org/freedesktop/Hal/devices/pci_8086_27df_ide_0_0'  (string)
  storage.firmware_version = '1.10'  (string)
  storage.vendor = ''  (string)
  storage.model = 'HL-DT-ST GCR-8240N'  (string)
  storage.drive_type = 'cdrom'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.bus = 'ide'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 3  (0x3)  (int)
  block.device = '/dev/hda'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_8086_27df_ide_0_0'  (string)
  linux.sysfs_path_device = '/sys/block/hda'  (string)
  linux.sysfs_path = '/sys/block/hda'  (string)

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 1:26 PM, MHR <[EMAIL PROTECTED]> wrote:
> Over the weekend, I had to make a technical support call on one of my
> DVD burners, and at one point the recorded message mentioned I should
> have my serial number handy.  I thought there was a way to read that
> from at least one piece of software on the system, but I couldn't
> remember one and man -k on a number of subjects was unrevealing.
>
> Can someone enlighten me (us)?

Follow on: When I had a problem with the Teac CD-RW drive in my daughters box,
I sent an email to Teac Tech Support, asking if they had Diagnostics
for it. The reply
was that they had no Diagnostics. I put it into the trash and I will
not buy any more
Teac drives, because they have no Diagnostics. If the company has Diagnostics
for your DVD burner, that will probably be able to show you the SN.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 1:26 PM, MHR <[EMAIL PROTECTED]> wrote:
> Over the weekend, I had to make a technical support call on one of my
> DVD burners, and at one point the recorded message mentioned I should
> have my serial number handy.  I thought there was a way to read that
> from at least one piece of software on the system, but I couldn't
> remember one and man -k on a number of subjects was unrevealing.
>
> Can someone enlighten me (us)?

PITA. You will probably need to open the box and look at the label on
the  drive.

The Maxtor software I use to check our hard drives tells what the SN is,
among other things.

Now, the company should be open. Possibly send their Tech Support an
email and ask if there is a way for you to get the SN, without opening the box.

Two of our Dell Dimension boxes are very easy to open, if the plastic
doesn't bend,
but in our 3 other boxes, this would be a PITA.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread Alex
On Mon, 28 Jul 2008 11:26:30 -0700
MHR <[EMAIL PROTECTED]> took out a #2 pencil and scribbled:

> Over the weekend, I had to make a technical support call on one
> of my DVD burners, and at one point the recorded message
> mentioned I should have my serial number handy.  I thought there
> was a way to read that from at least one piece of software on the
> system, but I couldn't remember one and man -k on a number of
> subjects was unrevealing.
> 
> Can someone enlighten me (us)?
> 
> Thanks.
> 
> mhr

You can try hdparm -i /dev/yourdevice

You may need to run this as root. There is a field for Serial
Number, but for my devices no serial number is provided. This may
not help you, but it could work.

Output from my system:

[EMAIL PROTECTED] ~]$ sudo hdparm -i /dev/hdc

/dev/hdc:

Model=Pioneer DVD-ROM ATAPIModel DVD-106S 011, FwRev=E1.14,
SerialNo= Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs
nonMagnetic }.other info is there but is not relevant.


HTH

Alex White
-- 
[EMAIL PROTECTED]
Life is a prison, death is a release
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread Ralph Angenendt
MHR wrote:
> Tony,
> 
> 1) Please edit your replies to remove unnecessary information.
> 
> 2) If you need to present this large of an amount of data, please
> include it in an attachment.

Maybe that would have broken the list limit ...

53k * several thousand mails ...

Cheers,

Ralph


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


Re: [CentOS] smartd on RAID controllers?

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 1:31 PM, Kai Schaetzl <[EMAIL PROTECTED]> wrote:
> Rainer Duffner wrote on Mon, 28 Jul 2008 00:22:03 +0200:
>
>> For HP, you should get the data if you install the Insight Manager
>> agents.
>
> I didn't install any software from HP on the HP machine. After half-an-
> hour searching on the site I finally found an "hpasm" package that seems
> to be it. They make it really hard to find it as it doesn't appear when
> searching for "drivers and software" for the server.
> Unfortunately, that didn't change anything. hpasmd is running, but
> hpasmcli just hangs when I try it out. There was an hp-OpenIPMI packaged
> mentioned, I'll search for that - tomorrow. Thanks for the hint, anyway.

IMHO, the HP Support site is *very* difficult to navigate, if one is
not there frequently;
in comparison to the Dell Support site. Once you get to the right
place, they probably
have what you need.   I won a Compaq Evo D300v some years ago in a raffle. The
BIOS in it seems far advanced, compared to our 4 Dell Dimension boxes,
because it
is for Enterprise use.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fetchmail from a server and delete spam messages

2008-07-28 Thread nightduke
Hi i have an old account on a pop3 server... i don't use for a long
time...but i want to receive the emails from there sometimes...
but i have a problem...this email has a lot of spam emails...

I wish to know if there's a way to check all the emails and those
emails that match at spamhaus or spamcop will be deleted...

Anyone know f this can be done?

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


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 11:34 AM, Stephen Harris <[EMAIL PROTECTED]> wrote:
>
> On a Dell, "dmidecode" will give you the serial number of the system.
> (I can see motherboard, chasis, memory sticks on my machine).
>
I did that.  The only item of real interest (i.e., surprise) was that
the CPU was listed as a Sempron-class CPU, which I found rather odd
for an AMD 64x2 (which it also correctly identified).

> Doubt if you can get the serial number of the DVD burner.
>
Didn't see it there

Thanks.

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


Re: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Eduardo Grosclaude
On Mon, Jul 28, 2008 at 3:36 PM, Toby Bluhm <[EMAIL PROTECTED]>wrote:

> Eduardo Grosclaude wrote:
>
>>
>> Ross, Nate, Tony, thanks for your promptly response
>>
>
> Toby

Ouch! Excuse me plz

If it were me & I was just starting out on a new setup, I'd blow it all away
> and start from scratch. I hate that nagging feeling something's gonna bite
> me later down the road.

Agreed, I just expected to get a bit more knowledge from this crappy
situation
Cheers

-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] smartd on RAID controllers?

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 11:31 AM, Kai Schaetzl <[EMAIL PROTECTED]> wrote:
>
> I didn't install any software from HP on the HP machine. After half-an-
> hour searching on the site I finally found an "hpasm" package that seems
> to be it. They make it really hard to find it as it doesn't appear when
> searching for "drivers and software" for the server.
> Unfortunately, that didn't change anything. hpasmd is running, but
> hpasmcli just hangs when I try it out. There was an hp-OpenIPMI packaged
> mentioned, I'll search for that - tomorrow. Thanks for the hint, anyway.
>

I'm just guessing here, but it seems like "hpasm" is just there to
make you feel good on their machines, especially if they make it hard
for you to find it.  Or maybe it makes the machine feel good

SCNR

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


Re: [CentOS] Re: IPCop updates, Evolution Calendar rarely crashes now

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 12:08 PM, Scott Silva <[EMAIL PROTECTED]> wrote:

>>> I usually have to do updates like that on the weekends, as I can't depend
>>> on
>>> a 3AM reboot to be up in the morning when Exec's are in. A reboot I
>>> trust,
>>> but not the first one after a kernel change. On a weekend I can drive in
>>> and
>>> see what happened if necessary and switch to a backup router.
>>> In our main office I have 2 running side by side and I can log in to the
>>> T1
>>> router and change switch ports to swap them. Then a reboot on the router
>>> to
>>> hasten the MAC changeover. Usually 5 minutes tops.
>>
>> Thank you for the explanation! I wondered, if you would trust it, to
>> come back up, if you scheduled a reboot for 3 A.M.
>
> I just had a perfect example this morning. One of the routers didn't come
> back up after the upgrades and remote reboot yesterday. I had to have
> someone at the site powercycle the equipment. Still much easier than having
> to drive over there myself.

Good that you are very conservative and do not leave the executives without
Internet access!  :-)  I updated our backup IPCop box yesterday. Our IPCop
box and our ADSL modem are choke points. The ADSL modem is the
only thing we have that we don't have a backup for.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Toby Bluhm

Eduardo Grosclaude wrote:


Ross, Nate, Tony, thanks for your promptly response


Toby



On Mon, Jul 28, 2008 at 2:51 PM, nate <[EMAIL PROTECTED] 
> wrote:


Eduardo Grosclaude wrote:




snip




Oops... system-config-lvm shows under 'Uninitialized entities':
/dev/sda
 -> part 1
 -> part 2
 -> unpartitioned space
/dev/sdb
 -> part 1
 -> unpartitioned space
These shouldn't be appearing as two discs in the first place-- but 
anaconda said I only had one unit...
Anyway, why the asymmetry? Did I screw the RAID volume somehow? Or did I 
install plain on sda and this RAID never worked as such? :P
The machine BIOS correctly describes the RAID volume at start. Doesn't 
It smell like fake RAID?

Should I declare sdb invalid to the firmware program so as to force resync?
Thanks again



If it were me & I was just starting out on a new setup, I'd blow it all 
away and start from scratch. I hate that nagging feeling something's 
gonna bite me later down the road.




--
Toby Bluhm
Alltech Medical Systems America, Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240 ext203

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


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 11:26 AM, Toby Bluhm <[EMAIL PROTECTED]> wrote:
>
> I was waiting for you :)
>
I knew it!  Furses!  Coiled again!

> BTW - my name is Toby.
>

Then I wasn't talking to you!  Either that, or it was a typo - the n
and the b are right next to each other on my keyboard, and I do that a
lpt.

;^)

(Sorry about that!)

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


Re: [CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread Stephen Harris
On Mon, Jul 28, 2008 at 11:26:30AM -0700, MHR wrote:
> Over the weekend, I had to make a technical support call on one of my
> DVD burners, and at one point the recorded message mentioned I should
> have my serial number handy.  I thought there was a way to read that
> from at least one piece of software on the system, but I couldn't
> remember one and man -k on a number of subjects was unrevealing.

On a Dell, "dmidecode" will give you the serial number of the system.
(I can see motherboard, chasis, memory sticks on my machine).

Doubt if you can get the serial number of the DVD burner.

-- 

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


[CentOS] Re: PF_RING crashed the CentOS5 - BUG: soft lockup - CPU#7

2008-07-28 Thread Scott Silva

on 7-27-2008 10:19 PM Ian jonhson spake the following:

Hi all,

The PF_RING seems not to work smoothly in CentOS 5.
Several day before, I patched the kernel 2.6.25.3 and
installed the PF_RING-patched kernel in my CentOS5.
Based on the PF_RING, I developed my program to capture
the network packages. I wished it can work until the
machine power is off. Unforturnately, no matter how to
adjust my program, whole system can not run more than
48 hours. Finally, whole system crashed and syslogd said
it found the following kernel output.

PF_RING seems to be used for the newest version of ntop for faster packet 
capture and analysis. Is that what you are trying to accomplish?

Or did I just get a bad google?



--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] smartd on RAID controllers?

2008-07-28 Thread Kai Schaetzl
Rainer Duffner wrote on Mon, 28 Jul 2008 00:22:03 +0200:

> For HP, you should get the data if you install the Insight Manager  
> agents.

I didn't install any software from HP on the HP machine. After half-an-
hour searching on the site I finally found an "hpasm" package that seems 
to be it. They make it really hard to find it as it doesn't appear when 
searching for "drivers and software" for the server.
Unfortunately, that didn't change anything. hpasmd is running, but 
hpasmcli just hangs when I try it out. There was an hp-OpenIPMI packaged 
mentioned, I'll search for that - tomorrow. Thanks for the hint, anyway.

Kai

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



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


Re: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Eduardo Grosclaude
Ross, Nate, Tony, thanks for your promptly response

On Mon, Jul 28, 2008 at 2:51 PM, nate <[EMAIL PROTECTED]> wrote:

> Eduardo Grosclaude wrote:
>
> > 4) Rebooted the installed system. Now "Duplicate PV" shows at boot.
> Honestly
>
> To me it sounds likely that the raid controller is shitty and
> is presenting two sets of devices to the OS, one likely being
> the "RAID" device and the other a more generic device(s).
>
> What does 'dmesg' say? Do you see more devices than you think
> you should have on the system?

dmesg says nothing about this, the message only appears at console when
booting or otherwise using the PVs:

[EMAIL PROTECTED] ~]# pvs
  Found duplicate PV 8D7K2wg15HqD0l9HxZCz7QlDfpqJOhXT: using /dev/sdb2 not
/dev/sda2
  PV VG Fmt  Attr PSize   PFree
  /dev/sdb2  VolGroup00 lvm2 a-   465,62G0

[EMAIL PROTECTED] ~]# lvs
  Found duplicate PV 8D7K2wg15HqD0l9HxZCz7QlDfpqJOhXT: using /dev/sdb2 not
/dev/sda2
  LV   VG Attr   LSize   Origin Snap%  Move Log Copy%
  LogVol00 VolGroup00 -wi-ao 150,00G
  LogVol01 VolGroup00 -wi-ao   1,94G
  LogVol02 VolGroup00 -wi-ao 313,69G

[EMAIL PROTECTED] ~]# sfdisk -d
# tabla de particiones de /dev/sda
unit: sectors

/dev/sda1 : start=   63, size=   208782, Id=83, bootable
/dev/sda2 : start=   208845, size=976543155, Id=8e
/dev/sda3 : start=0, size=0, Id= 0
/dev/sda4 : start=0, size=0, Id= 0
# tabla de particiones de /dev/sdb
unit: sectors

/dev/sdb1 : start=   63, size=   208782, Id=83, bootable
/dev/sdb2 : start=   208845, size=976543155, Id=8e
/dev/sdb3 : start=0, size=0, Id= 0
/dev/sdb4 : start=0, size=0, Id= 0

Awful--I expected to see just one device :P

> There might be a disk from an old RAID1 set in there.
Don't think so, this machine was integrated here with new materials.

Oops... system-config-lvm shows under 'Uninitialized entities':
/dev/sda
 -> part 1
 -> part 2
 -> unpartitioned space
/dev/sdb
 -> part 1
 -> unpartitioned space
These shouldn't be appearing as two discs in the first place-- but anaconda
said I only had one unit...
Anyway, why the asymmetry? Did I screw the RAID volume somehow? Or did I
install plain on sda and this RAID never worked as such? :P
The machine BIOS correctly describes the RAID volume at start. Doesn't It
smell like fake RAID?
Should I declare sdb invalid to the firmware program so as to force resync?
Thanks again
-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Ross S. W. Walker
Toby Bluhm wrote:
> Toby Bluhm wrote:
> > Ross S. W. Walker wrote:
> >> Eduardo Grosclaude wrote:
> >>> Hello, My "hardware" (?) RAID system seems to work but says 
> 
> 
> Never mind, mdadm don't apply with HW raid.

Ah, but it would if a hardware RAID1 mirror were broken, a new
disk stuck in, then later the old disk was inserted into the
enclosure and it was presented as a regular disk...

Though he would need to determine if that is actually the case,
verify it is actually not part of any existing RAID set, then
remove it's LVM metadata.

If it is just a "fake" RAID not abstracting the physical disks
properly then he just needs to filter them out in lvm.conf.

Key is to make sure it isn't the "fake" RAID scenario or it
will have disastrous consequences.

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread Toby Bluhm

MHR wrote:

Tony,

1) Please edit your replies to remove unnecessary information.

2) If you need to present this large of an amount of data, please
include it in an attachment.

Thanks.




I was waiting for you :)


BTW - my name is Toby.


--
Toby Bluhm
Alltech Medical Systems America, Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240 ext203

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



[CentOS] Hardware serial number access from (a) command(s)

2008-07-28 Thread MHR
Over the weekend, I had to make a technical support call on one of my
DVD burners, and at one point the recorded message mentioned I should
have my serial number handy.  I thought there was a way to read that
from at least one piece of software on the system, but I couldn't
remember one and man -k on a number of subjects was unrevealing.

Can someone enlighten me (us)?

Thanks.

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


[CentOS] Re: Now you did it Olly

2008-07-28 Thread Scott Silva

on 7-27-2008 7:14 PM D Steward spake the following:
Well I missed something and I overwrote the encrypted bootloader on the 
hard drive.


If the purpose of the encrypted bootloader was to load an encrypted
filesystem/s, then there must be a spare MBR on your drive somewhere.
Its not standard to have more than one MBR, but my spidey sense is
tingling and telling me any half-decent software encryption software
wouldnt rely on a single fragile point of failure such as an mbr which
is easily overwritten by viruses and installations.

Providing you are still on the net, send an email to one of your tech
guys asking for either the location of the spare MBR, or if there isnt
one, a new MBR to replace yours - they should have a copy of your
original.
Alternatively, if you know the name of the software package doing all
this, you may be able to find (if you have a spare MBR) out on the net.
FWIW, I wouldnt bother any PHB's with this - they will definitely not be
amused.

Or the installer might have created some sort of rescue disk.
If the corporate IT guys installed the disk encryption, they probably have a 
corporate "back door" disk for this.


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Toby Bluhm

Toby Bluhm wrote:

Ross S. W. Walker wrote:

Eduardo Grosclaude wrote:
Hello, My "hardware" (?) RAID system seems to work but says 



Never mind, mdadm don't apply with HW raid.




mdadm --examine  will tell if there's raid metadata there, 
--zero-superblock will erase it.







--
Toby Bluhm
Alltech Medical Systems America, Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240 ext203

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


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread MHR
Tony,

1) Please edit your replies to remove unnecessary information.

2) If you need to present this large of an amount of data, please
include it in an attachment.

Thanks.

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


Re: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Toby Bluhm

Ross S. W. Walker wrote:

Eduardo Grosclaude wrote:
Hello, 
My "hardware" (?) RAID system seems to work but says 
"duplicate PV" while booting, I don't think I was reading 



Could just be that lvm is finding your pv through another path - 
lvm.conf can be setup to only scan specific devices.




There might be a disk from an old RAID1 set in there.



I'll second that. I forgot to zero out one of my disks from a test raid 
setup & the when I rebooted for the 5.2 upgrade, lvm refused to start - 
duplicate uuid - IIRC. 5.1 + updates didn't present the problem, so 
something was changed in that regard for 5.2.


mdadm --examine  will tell if there's raid metadata there, 
--zero-superblock will erase it.




--
Toby Bluhm
Alltech Medical Systems America, Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240 ext203

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


Re: [CentOS] cupsd takes 100% of cpu

2008-07-28 Thread Eduardo Silvestre
Hey,

 lsof -p 2232 and show the output.



---
Eduardo Silvestre
nfsi telecom, lda.

[EMAIL PROTECTED]
Tel. (+351) 21 949 2300 - Fax (+351) 21 949 2301
http://www.nfsi.pt/

- Original Message -
From: "MHR" <[EMAIL PROTECTED]>
To: "CentOS mailing list" 
Sent: Monday, July 28, 2008 7:15:09 PM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [CentOS] cupsd takes 100% of cpu

On Mon, Jul 28, 2008 at 10:00 AM, Lanny Marcus <[EMAIL PROTECTED]> wrote:
>
> Is that a problem with the 64 bit version of CUPS? There is no problem
> with the 32 bit version of CUPS. I have it
> running on my desktop, without any problems. And, it runs on GNOME
> without any problems. Will the 32 bit version of CUPS
> run on your box?
>
> cupsd (pid 2232) is running...

I have absolutely no problems with cups on my x86_64 CentOS 5.2

HTH (realizing that it may not).

mhr
___
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] cupsd takes 100% of cpu

2008-07-28 Thread MHR
On Mon, Jul 28, 2008 at 10:00 AM, Lanny Marcus <[EMAIL PROTECTED]> wrote:
>
> Is that a problem with the 64 bit version of CUPS? There is no problem
> with the 32 bit version of CUPS. I have it
> running on my desktop, without any problems. And, it runs on GNOME
> without any problems. Will the 32 bit version of CUPS
> run on your box?
>
> cupsd (pid 2232) is running...

I have absolutely no problems with cups on my x86_64 CentOS 5.2

HTH (realizing that it may not).

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


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread Toby Bluhm

Craig White wrote:

On Mon, 2008-07-28 at 09:24 -0400, Toby Bluhm wrote:






I just want to point out that the issue isn't with postfix but rather
amavisd and how/where amavisd connects/communicates with the various
parts and pieces.

I'm afraid that I can't be too much help here because I use MailScanner
and not amavisd but the SELinux mail list could help you work through
these things (I'm presuming that amavisd hasn't worked through all of
their contexts).




Sounds like my situation is not completely unexpected. Thanks for your 
hints - I'll follow up on them.





--
Toby Bluhm
Alltech Medical Systems America, Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240 ext203

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


Re: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread nate
Eduardo Grosclaude wrote:

> 4) Rebooted the installed system. Now "Duplicate PV" shows at boot. Honestly

To me it sounds likely that the raid controller is shitty and
is presenting two sets of devices to the OS, one likely being
the "RAID" device and the other a more generic device(s).

What does 'dmesg' say? Do you see more devices than you think
you should have on the system?

As long as LVM is using the "right" one, I think there shouldn't
be a problem. As another poster mentioned show your LVM configuration,
you may want to add a filter into /etc/lvm/lvm.conf to make sure it
uses the right one.

I've only seen this condition myself when:

1) Using multipathing software and multiple links to the same storage
   (in which case I adjust lvm.conf to account for this)
2) snapshot a volume on an array and export it to the same host that
   had the master(in which case I decided that wasn't the best way to
   accomplish what I wanted).

nate


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


RE: [CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Ross S. W. Walker
Eduardo Grosclaude wrote:
> 
> Hello, 
> My "hardware" (?) RAID system seems to work but says 
> "duplicate PV" while booting, I don't think I was reading 
> them before. Any clues will be appreciated. 
> From what I recall:
> 1) RAID 1 was setup (using firmware setup program) on a 
> machine with Intel S3200 SHV Server Board. 
> 2) Installed Centos 5.1, default LVM style. Anaconda saw a 
> single 500GB disk so I assumed this was a true hardware RAID 
> system. Am I wrong here? 
> 3) Then wanted to reduce LogVol00 so as to make room for a 
> new, data only filesystem on its own LV. Started by booting 
> with rescue CD, lvscanned the disk, lvchanged -a y. Intended 
> to resize root filesystem with resize2fs. Was asked to fsck, 
> which I did (by the way, getting many errors). Fixed them all 
> (fingers crossed), fsck again said ok. Then resize2fs worked happily. 
> 4) Rebooted the installed system. Now "Duplicate PV" shows at 
> boot. Honestly I don't know whether this was being displayed 
> before (this is an inherited server). This message shows at 
> the screen but no record of it is kept on any log file.
> 5) Everything seems to work well anyway. I created a new LV 
> as I wished, just this message keeps me thinking...
> 
> Should I care? Should I fix it? Is it a true RAID board? 
> Should I be better off going software-RAID 1?
> 
> lspci says 

More informative output would be:

# sfdisk -d
# pvs
# vgs

There might be a disk from an old RAID1 set in there.

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


[CentOS] Duplicate PV on HW RAID?

2008-07-28 Thread Eduardo Grosclaude
Hello,
My "hardware" (?) RAID system seems to work but says "duplicate PV" while
booting, I don't think I was reading them before. Any clues will be
appreciated.
>From what I recall:
1) RAID 1 was setup (using firmware setup program) on a machine with Intel
S3200 SHV Server Board.
2) Installed Centos 5.1, default LVM style. Anaconda saw a single 500GB disk
so I assumed this was a true hardware RAID system. Am I wrong here?
3) Then wanted to reduce LogVol00 so as to make room for a new, data only
filesystem on its own LV. Started by booting with rescue CD, lvscanned the
disk, lvchanged -a y. Intended to resize root filesystem with resize2fs. Was
asked to fsck, which I did (by the way, getting many errors). Fixed them all
(fingers crossed), fsck again said ok. Then resize2fs worked happily.
4) Rebooted the installed system. Now "Duplicate PV" shows at boot. Honestly
I don't know whether this was being displayed before (this is an inherited
server). This message shows at the screen but no record of it is kept on any
log file.
5) Everything seems to work well anyway. I created a new LV as I wished,
just this message keeps me thinking...

Should I care? Should I fix it? Is it a true RAID board? Should I be better
off going software-RAID 1?

lspci says
00:00.0 Host bridge: Intel Corporation Server DRAM Controller
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI
Controller #2 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port
1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port
5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI
Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface
Controller (rev 02)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller
(rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev
02)
02:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200e [Pilot]
ServerEngines (SEP1) (rev 02)
03:01.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet
Controller (rev 05)
03:02.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet
Controller (rev 05)


Thank you in advance

-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: BUG: soft lockup - CPU#1 stuck for 61s!

2008-07-28 Thread Scott Silva




I choose CentOS because I believe it is the most stable OS in
commodity machines.
But I don't know how to do when facing the trouble.

The difference lies in that I patched a PF_RING patch in original
kernel and recompiled
the kernel to run my machines. I wonder whether the patched kernel
crashes the CentOS
because PF_RING automatically downloads the kernel codes from
www.kernel.org, but not
the one from www.centos.org? Or, the centOS holds the bugs in its distribution?


When you use a custom kernel, you usually get to keep the pieces.

Go buy a new car and change the engine and then see if they honor the warranty.

We stopped using Dell machines some time ago. For some reason there 
reliability has been steadily falling. I don't know if they are doing 
non-standard stuff in their bios's or just using less than optimal hardware to 
cut costs, but I probably won't go back.




--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


[CentOS] Re: Centos 5.1 NFS problems

2008-07-28 Thread Scott Silva

on 7-26-2008 9:54 AM Mag Gam spake the following:

Thankyou everyone. I updated the 5.2 kernel onto 5.1 and everything
seems to work fine.

Thanks for all of your help and wisdom.

You still are at risk by not updating. The kernels are a small part of the 
security updates that came in 5.2.




--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] Re: Shell script - ping

2008-07-28 Thread kapil singh
Hello,
This is a running shell script for ping multiple host it provides result
directly:
if host is successfully ping then it returns Host is alive. otherwise Host
is not alive
Try this i am working with that in my local n/w.


#/bin/bash
for n in {1..5};
do
host=192.168.1.$n
ping -c2 $host &> /dev/null
if [ $? = 0 ] ; then
printf "%-30s is alive \n" $host
else
printf "%-30s is not alive \n" $host
fi
done


Note: 1.Replace ip with your ip range
2.Replace the no. of ip according to your need.(means value of n in for
loop)




-- 
Thanks and Regards,
Kapil Singh Kushwah
Linux System Administrator
Hotwax Media Inc.
Indore,(M.P) INDIA
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: IPCop updates, Evolution Calendar rarely crashes now

2008-07-28 Thread Scott Silva

on 7-26-2008 1:05 PM Lanny Marcus spake the following:

On Fri, Jul 25, 2008 at 10:51 AM, Scott Silva  wrote:

on 7-24-2008 5:36 PM Lanny Marcus spake the following:



At work, you

do the reboot at  3 A.M.  or you have users who are furious, or you
send them a message the network is going down temporarily?


I usually have to do updates like that on the weekends, as I can't depend on
a 3AM reboot to be up in the morning when Exec's are in. A reboot I trust,
but not the first one after a kernel change. On a weekend I can drive in and
see what happened if necessary and switch to a backup router.
In our main office I have 2 running side by side and I can log in to the T1
router and change switch ports to swap them. Then a reboot on the router to
hasten the MAC changeover. Usually 5 minutes tops.


Thank you for the explanation! I wondered, if you would trust it, to
come back up, if you scheduled a reboot for 3 A.M.


I just had a perfect example this morning. One of the routers didn't come back 
up after the upgrades and remote reboot yesterday. I had to have someone at 
the site powercycle the equipment. Still much easier than having to drive over 
there myself.




--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] Shell script - ping

2008-07-28 Thread Lorenzo Martínez Rodríguez

Bill Campbell escribió:

On Mon, Jul 28, 2008, Gopinath Achari wrote:
  

hi,

how to write a scripts which launches 10 pings to different
destinations at execution of single shell scripts

please help me any ideas



If your goal is to test connectivity, you might look at the perl
Net::Ping module.  ``perldoc Net::Ping'' has several examples of
checking one or more systems to see if they are alive.

BTW:  Anybody know of a python equivalent to this?

Bill
  

Hello,

I have done something before with nmap -sP  time ago. Later you 
can grep the response to know whether an IP address is alive or not.


Hope it helps,

--



Lorenzo Martínez Rodríguez
Consultor de seguridad informática


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


RE: [CentOS] Re: preferred software RAID 10?

2008-07-28 Thread Ross S. W. Walker
Scott Silva wrote:
> 
> > 
> > Does swap need to be part of the RAID set? Is there actually a 
> > performance boost?
> > 
> Not a performance boost, but if the drive that swap is on fails while the OS 
> has data there the system can choke horribly or even die. Swap on raid can 
> sometimes be slightly slower. If you think your system won't swap any 
> critical 
> sleeping processes, you could be safe. But who can be that sure?

Swap on RAID should perform completely adequate these days as opposed to
say the 2.4 days. Swap on RAID1 or RAID10 wouldn't have any noticeable
performance degradation, swap on RAID5/6 might be slightly slower and
unbearable on a degraded RAID5/6, but if swap performance is a major
concern then it may be time to add some RAM.

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


Re: [CentOS] cupsd takes 100% of cpu

2008-07-28 Thread Lanny Marcus
On Mon, Jul 28, 2008 at 11:05 AM, Dan Halbert <[EMAIL PROTECTED]> wrote:
> I have never been able to get cups to work properly since CentOS 4.x (and am
> now on 5.2).
>
> When I try to "service start cups", cupsd immediately starts taking 100% of
> the cpu. Attaching strace to it shows no system calls happening. I have
> tried uninstalling and reinstalling cups to get fresh config files. My
> printers.conf is empty.
>
> This is on a completely updated x86_64 CentOS 5.2 desktop system running
> gnome. There are no local printers attached the the box. We have a couple of
> networked HP printers and a Canon. I have not added any of these printers to
> the configuration. A lot of Googling has not turned up any help. Have you
> seen this problem? Any suggestions?

Is that a problem with the 64 bit version of CUPS? There is no problem
with the 32 bit version of CUPS. I have it
running on my desktop, without any problems. And, it runs on GNOME
without any problems. Will the 32 bit version of CUPS
run on your box?

cupsd (pid 2232) is running...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: preferred software RAID 10?

2008-07-28 Thread Scott Silva




Does swap need to be part of the RAID set? Is there actually a 
performance boost?


Not a performance boost, but if the drive that swap is on fails while the OS 
has data there the system can choke horribly or even die. Swap on raid can 
sometimes be slightly slower. If you think your system won't swap any critical 
sleeping processes, you could be safe. But who can be that sure?



--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



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


Re: [CentOS] cupsd takes 100% of cpu

2008-07-28 Thread kapil singh
Hello,

have you installed fresh centos 5.2 or upgraded it from previous one ?
it creates a problem  in some services if any one upgrading the OS from old
version to new version.

well according to my opinion you should uninstall cupsd with their
dependencies and reinstall it.
well i am also working with cups and it s work well with  local and N/W
printers.


-- 
Thanks and Regards,
Kapil Singh Kushwah
Linux System Administrator
Hotwax Media Inc.
Indore,(M.P) INDIA
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: Shell script - ping

2008-07-28 Thread Mike

I really like 'fping' for use in shell scripts.  See:
http://www.fping.com/ and http://fping.sourceforge.net/man/

It can be 'yum installed' from the CentOS RPMforge repo.

So in your script you can just do
fping -c 10   ... 

I don't understand exactly what 'scripts which launches 10 pings' and 
'execution of single shell scripts' means.  So don't think I can help 
with the scripting part...


On Mon, 28 Jul 2008, Gopinath Achari wrote:


hi,

how to write a scripts which launches 10 pings to different
destinations at execution of single shell scripts

please help me any ideas

regards,
Gopinath



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


[CentOS] cupsd takes 100% of cpu

2008-07-28 Thread Dan Halbert
I have never been able to get cups to work properly since CentOS 4.x 
(and am now on 5.2).


When I try to "service start cups", cupsd immediately starts taking 100% 
of the cpu. Attaching strace to it shows no system calls happening. I 
have tried uninstalling and reinstalling cups to get fresh config files. 
My printers.conf is empty.


This is on a completely updated x86_64 CentOS 5.2 desktop system running 
gnome. There are no local printers attached the the box. We have a 
couple of networked HP printers and a Canon. I have not added any of 
these printers to the configuration. A lot of Googling has not turned up 
any help. Have you seen this problem? Any suggestions?


Thanks much,
Dan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread Craig White
On Mon, 2008-07-28 at 09:24 -0400, Toby Bluhm wrote:

> >> SO - is it normal to have to update policies on basic services? Am I 
> >> missing an rpm?
> > 
> > those aren't basic services but are packages that are supplied by
> 
> postfix is centos, the rest are from rpmforge
> 
> > repositories other than CentOS/upstream and apparently don't have all of
> > their files/folder labeled properly.
> > 
> > what do you get from command...
> > 
> > sealert -a /var/log/dmesg
> 
> 
> zero alerts
> 
> 
> > or
> > sealert -a /var/log/audit/audit.log
> > 
> 
> 
> lots of stuff from when it wasn't labeled right, so I stripped all 
> audit.log entries before the last DAEMON_START to a file & ran sealert 
> on it.

I just want to point out that the issue isn't with postfix but rather
amavisd and how/where amavisd connects/communicates with the various
parts and pieces.

I'm afraid that I can't be too much help here because I use MailScanner
and not amavisd but the SELinux mail list could help you work through
these things (I'm presuming that amavisd hasn't worked through all of
their contexts).

Craig

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


Re: [CentOS] Shell script - ping

2008-07-28 Thread Bill Campbell
On Mon, Jul 28, 2008, Gopinath Achari wrote:
>hi,
>
>   how to write a scripts which launches 10 pings to different
>destinations at execution of single shell scripts
>
>please help me any ideas

If your goal is to test connectivity, you might look at the perl
Net::Ping module.  ``perldoc Net::Ping'' has several examples of
checking one or more systems to see if they are alive.

BTW:  Anybody know of a python equivalent to this?

Bill
-- 
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186

A tax-supported, compulsory educational system is the complete model of the
totalitarian state. -- Isabel Paterson, God of the Machine
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread Craig White
On Mon, 2008-07-28 at 09:24 -0400, Toby Bluhm wrote:
> Summary:
> 
> SELinux is preventing clamd (clamd_t) "read" to ./daily.cld (var_t).
> 
> Detailed Description:
> 
> [SELinux is in permissive mode, the operation would have been denied
> but was
> permitted due to permissive mode.]
> 
> SELinux denied access requested by clamd. It is not expected that
> this 
> access is
> required by clamd and this access may signal an intrusion attempt. It
> is 
> also
> possible that the specific version or configuration of the application
> is
> causing it to require additional access.
> 
> Allowing Access:
> 
> Sometimes labeling problems can cause SELinux denials. You could try
> to 
> restore
> the default system file context for ./daily.cld,
> 
> restorecon -v './daily.cld'
> 
> If this does not work, there is currently no automatic way to allow
> this 
> access.
> Instead, you can generate a local policy module to allow this access
> - 
> see FAQ
> (http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can 
> disable
> SELinux protection altogether. Disabling SELinux protection is not 
> recommended.
> Please file a bug report
> (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
> against this package.
> 
> Additional Information:
> 
> Source Contextsystem_u:system_r:clamd_t:s0
> Target Contextsystem_u:object_r:var_t:s0
> Target Objects./daily.cld [ file ]
> Sourceclamd
> Source Path   /usr/sbin/clamd
> Port  
> Host  
> Source RPM Packages   clamd-0.93.3-1.el5.rf
> Target RPM Packages
> Policy RPMselinux-policy-2.4.6-137.1.el5
> Selinux Enabled   True
> Policy Type   targeted
> MLS Enabled   True
> Enforcing ModePermissive
> Plugin Name   catchall_file
> Host Name mail.alltechmedicalsystemsamerica.com
> Platform  Linux
> mail.alltechmedicalsystemsamerica.com
>2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 
> 13:49:24 EDT
>2008 i686 athlon
> Alert Count   2
> First SeenFri Jul 25 14:44:44 2008
> Last Seen Fri Jul 25 15:38:04 2008
> Local ID  c0eb4a2f-6b73-4632-8f93-ca7dc67bb0f2
> Line Numbers  11, 12, 102, 103
> 
> Raw Audit Messages
> 
> type=AVC msg=audit(1217014684.863:88): avc:  denied  { read } for 
> pid=2027 comm="clamd" name="daily.cld" dev=md0 ino=980633 
> scontext=system_u:system_r:clamd_t:s0 
> tcontext=system_u:object_r:var_t:s0 tclass=file
> 
> type=SYSCALL msg=audit(1217014684.863:88): arch=4003 syscall=33 
> success=yes exit=0 a0=b156a88 a1=4 a2=3e1e20 a3=b156a88 items=0
> ppid=1 
> pid=2027 auid=4294967295 uid=101 gid=203 euid=101 suid=101 fsuid=101 
> egid=203 sgid=203 fsgid=203 tty=(none) ses=4294967295 comm="clamd" 
> exe="/usr/sbin/clamd" subj=system_u:system_r:clamd_t:s0 key=(null)

you definitely want to run...

restorecon -v './var/clamav/daily.cld'
or something like...
chcon -t system_u:system_r:clamd_t:s0 /var/clamav/daily.cld

Craig

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


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread Craig White
On Mon, 2008-07-28 at 09:24 -0400, Toby Bluhm wrote:

> Sometimes labeling problems can cause SELinux denials. You could try to 
> restore
> the default system file context for ./kernel,
> 
> restorecon -v './kernel'

did you try this?

> 
> If this does not work, there is currently no automatic way to allow this 
> access.
> Instead, you can generate a local policy module to allow this access - 
> see FAQ
> (http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can 
> disable
> SELinux protection altogether. Disabling SELinux protection is not 
> recommended.
> Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
> against this package.
> 
> Additional Information:
> 
> Source Contextsystem_u:system_r:clamd_t:s0
> Target Contextsystem_u:object_r:sysctl_kernel_t:s0
> Target Objects./kernel [ dir ]
> Sourceclamd
> Source Path   /usr/sbin/clamd
> Port  
> Host  
> Source RPM Packages   clamd-0.93.3-1.el5.rf
> Target RPM Packages
> Policy RPMselinux-policy-2.4.6-137.1.el5
> Selinux Enabled   True
> Policy Type   targeted
> MLS Enabled   True
> Enforcing ModePermissive
> Plugin Name   catchall_file
> Host Name mail.alltechmedicalsystemsamerica.com
> Platform  Linux mail.alltechmedicalsystemsamerica.com
>2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 
> 13:49:24 EDT
>2008 i686 athlon
> Alert Count   1
> First SeenFri Jul 25 14:44:44 2008
> Last Seen Fri Jul 25 14:44:44 2008
> Local ID  8e3e4626-632c-4abc-b520-89c65771babf
> Line Numbers  8, 9, 10
> 
> Raw Audit Messages
> 
> type=AVC msg=audit(1217011484.818:9): avc:  denied  { search } for 
> pid=2026 comm="clamd" name="kernel" dev=proc ino=-268435416 
> scontext=system_u:system_r:clamd_t:s0 
> tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=dir
> 
> type=AVC msg=audit(1217011484.818:9): avc:  denied  { read } for 
> pid=2026 comm="clamd" name="ngroups_max" dev=proc ino=-268435368 
> scontext=system_u:system_r:clamd_t:s0 
> tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=file
> 
> type=SYSCALL msg=audit(1217011484.818:9): arch=4003 syscall=5 
> success=yes exit=3 a0=265c24 a1=0 a2=27fff4 a3=281994 items=0 ppid=2025 
> pid=2026 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 
> fsgid=0 tty=(none) ses=4294967295 comm="clamd" exe="/usr/sbin/clamd" 
> subj=system_u:system_r:clamd_t:s0 key=(null)

this one is a bit beyond me unless the 

restorecon -v './kernel'

works - you might want to check in on the selinux-list...
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

Craig

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


Re: [CentOS] nspluginwrapper included in CentOS 5.2 fails completely

2008-07-28 Thread Lanny Marcus
On Sun, Jul 27, 2008 at 4:57 PM, MHR <[EMAIL PROTECTED]> wrote:
> On Sat, Jul 26, 2008 at 12:59 PM, Lanny Marcus <[EMAIL PROTECTED]> wrote:
>>
>> Good luck with that! Have you tried it on a VMWare Server?
>
> No, why would I do that?
>
> I uninstalled nspluginwrapper and mplayerplug-in reinstalled the
> 64-bit Seamonkey, then reinstalled all the plugins.  Everything is
> installed and working EXCEPT nppdf.so (the Adobe Read plugin) and
> Adobe's flash plugin - they're all in the right places, there are
> nswrappers for 32_64 and 64_64 for both of them in the plugin-wrapper
> directory, but they neither register nor work in the browser.
>
> I have run mozilla-plugin-config several times, and it lists both of
> these plugins, but they don't show up in the About Plugins and they
> don't work.
>
> What next?

If you have VMWare Server installed, consider trying it under that, on
a fresh, clean, installation, to see if it will work properly for you.
Possibly the uninstalling and installing has corrupted something you
are unaware of, on your bare metal installation.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] preferred software RAID 10?

2008-07-28 Thread Ross S. W. Walker
Rudi Ahlers wrote:
> Ross S. W. Walker wrote:
> > Kai Schaetzl wrote:
> >> Rudi Ahlers wrote on Thu, 17 Jul 2008 23:10:48 +0200:
> >> 
>  /boot shouldn't be mirrored, as the BIOS won't know how to boot it. 
>  leave /dev/sdb1 the same size as /dev/sda1 and call it /boot2 and try 
>  to remember to copy /boot to /boot2 each time you update the kernel.
>  
> >>> I understand this, but how do you boot from /boot2 on the second HDD if 
> >>> the 1st have failed?
> >>>   
> >> You don't (*). I don't understand John's advice here. There is no problem 
> >> md mirroring /boot. You just need to install grub a second time on the 
> >> other disk. For that you have to boot from it. (I think I also did it 
> >> successfully without booting from the other disk in the past, but last 
> >> time I tried it it didn't want to work like I remembered it should.)
> >>
> >> (*) Anyway, you would boot from a Rescue CD or such and rename it ...
> >> 
> >
> > Yes, no problems, I had /boot mirrored across 4 drives (NAS box) and
> > grub installed on each.
> >
> > If you use labels for /boot in fstab you don't even need to edit fstab
> > from a rescue CD, just remove the failed first drive and boot.
> >
> 
> Can you please explain this to me?
> 
> I've never used labels before, so if you could maybe show me a sample of 
> how it's setup?

Disk labels are stored in file systems superblock.

For ext2/ext3 file systems you use the tune2fs and the -L option to define
a label, then you can refer to it in fstab like such:

LABEL=boot  /boot   ext3defaults1 2

The problem with labels is, say you have an external USB drive and it
happens to have a label called 'boot' as well, well then it is
possible the OS will mount that instead (but grub will still use
the real 'boot' to boot off of as the physical disk is defined in
grub), then you will wonder why you still are booting the old
kernel after you have upgraded to the new one!

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


RE: [CentOS] preferred software RAID 10?

2008-07-28 Thread Ross S. W. Walker
Rudi Ahlers wrote:
> Ross S. W. Walker wrote:
> > Rudi Ahlers wrote:
> >> Ross S. W. Walker wrote:
> >>> Rudi Ahlers wrote:
> >>>   
>  Hi all
> 
>  I'm looking at setting up software RAID 10, using CentOS 5.1 x64 - what 
>  is the best way todo this?
> 
>  I'm reading some sources on the internet, and get a lot of different 
>  "suggestions"
> 
>  1 suggestion says to boot up with a Live CD like Knoppix or 
>  SystemRescueCD, setup the RAID 10 partitions, and then install Linux 
>  from there.
>  2. Another is to setup a small RAID 1 on the first 2 HDD's, install 
>  Linux, bootup, and then setup the rest as RAID 10
> 
>  The others didn't really make sense to me, so how do I 
>  actually do this?
> 
>  And then, how do I setup the partitioning? Do I setup /boot on a 
>  separate RAID "partition"? If so, what happens if I want to 
>  replace the 1st 2 HDD's with bigger ones?
>  
>  
> >>> What's the hardware setup?
> >>>
> >>>   
> >> I didn't really specify any, cause I want to keep it purely software. 
> >> Generally it would be on a generic PIV motherboard with 4 / 6 
> >> SATA, or even mixed SATA & IDE HDD's - all new, so at least 80GB per HDD
> >> 
> >
> > I was primarily interested in the # of HDDs that can be used.
> >
> > If you have 6 disks, setup 2 disks as a  RAID1 for the OS and the
> > other 4 as a RAID10 for the data.
> >
> > If you have 4 disks all together:
> >
> > 1) create /boot partition as a 4 disk RAID1 across all 4 disks
> >
> > 2) create the remaining space as 2 separate RAID1s of type LVM
> >
> > 3) create a VG out of the 2 RAID1 PVs, create root, swap LVs on
> > the VG with a stripe of 2.
> >
> > LVM striping over multiple RAID1 PVs provides the same performance
> > as a native RAID10 array, plus you can add RAID1s later to
> > increase the size/performance and dump/restore the data to stripe
> > it across the larger set of PVs.
> >
> 
> Thanx, this seems like a fairly easy way of doing it.
> 
>  From what I gather, the data will fill up from the beginning of the 
> stripe, right? So the 1st 2 HDD's will work hardest in the beginning, 
> until there's enough data to fill the other 2 HDD's - unless of cause I 
> split the LV's across the PV's - i.e. put root on md1 & swap or var on 
> md2 for example.

Yes data fills from the start, which is the fastest location, which is
better used for swap, so...

1) Create 2 4GB swap LVs on the install, swap0 and swap1, install the
OS into swap1

2) After install and reboot, create a 8GB LV with interleave of 2 so
it stripes the writes across the 2 MD PVs, use dump and restore to move
the root data from swap1 to, call it 'root', modify the fstab and
rebuild the initrds.

3) Once that's all done and you are booting off of the 8GB 'root' LV,
you can do a mkswap on the swap1 LV and add it to the list of swap
devices in fstab with the same priority as swap0 and pagecache will
stripe the swap data between them.

Then you have your 'root' LV striped, and your swap striped across
the fastest portion of the disk.

> Does swap need to be part of the RAID set? Is there actually a 
> performance boost?

No, like stated create LVs for swap, swap in 2.6 kernels is very
good on all types of mediums, raw disk, LVM and swap files.

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

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


Re: [CentOS] selinux & httpd & portmap

2008-07-28 Thread Toby Bluhm

Craig White wrote:

On Fri, 2008-07-25 at 10:36 -0400, Toby Bluhm wrote:

Ian Blackwell wrote:

Craig White wrote:

Suggest that you make sure you are fully updated, then
'touch /.autorelabel' then reboot (reboot at a time you choose because
it may take a long time to relabel every file on your system -
especially if you have a lot of files).

Craig
  
What Craig implies is that your system won't be available for quite a 
long time (relatively), while the relabel takes place.  The boot time 
with an autorelabel is very long, and you won't have access to the 
server until the relabel is completed.  So choose your time for the 
reboot with that knowledge.


Ian




No problems there - I'm getting my selinux feet wet on a test box. Not 
quite ready to risk torching a production machine.




The relabel did take some time after a reboot - portmap & httpd started 
ok. WHile postgrey, clamd, postfix and amavisd all started, none could 
access the libs & dirs they needed to process emails.


So I disabled selinux, rebooted, made sure everything worked alright - 
which it did. Then enabled permissive mode & rebooted & it relabeled 
itself this time.


After running some things, send/receive email, it still wants to deny:


type=AVC msg=audit(1216990772.410:72): avc:  denied  { read } for 
pid=2037 comm="clamd" path="/var/clamav/main.cvd" dev=md0 ino=980355 
scontext=system_u:system_r:clamd_t:s0 
tcontext=system_u:object_r:var_t:s0 tclass=file


type=AVC msg=audit(1216990777.968:73): avc:  denied  { read } for 
pid=2037 comm="clamd" name="meminfo" dev=proc ino=-268435454 
scontext=system_u:system_r:clamd_t:s0 
tcontext=system_u:object_r:proc_t:s0 tclass=file


type=AVC msg=audit(1216990777.969:74): avc:  denied  { getattr } for 
pid=2037 comm="clamd" path="/proc/meminfo" dev=proc ino=-268435454 
scontext=system_u:system_r:clamd_t:s0 
tcontext=system_u:object_r:proc_t:s0 tclass=file


type=AVC msg=audit(1216991822.928:113): avc:  denied  { signal } for 
pid=2762 comm="postfix-script" 
scontext=root:system_r:postfix_master_t:s0 
tcontext=root:system_r:initrc_t:s0 tclass=process


type=AVC msg=audit(1216992166.348:121): avc:  denied  { create } for 
pid=2116 comm="amavisd" name="p002.exe" 
scontext=system_u:system_r:amavis_t:s0 
tcontext=system_u:object_r:amavis_var_lib_t:s0 tclass=lnk_file


type=AVC msg=audit(1216992166.403:124): avc:  denied  { getattr } for 
pid=2970 comm="arj" 
path="/var/amavis/tmp/amavis-20080725T091655-02116/parts/p002.arj" 
dev=md0 ino=1005252 scontext=system_u:system_r:amavis_t:s0 
tcontext=system_u:object_r:amavis_var_lib_t:s0 
tclass=lnk_filetcontext=root:system_r:initrc_t:s0 tclass=process


type=AVC msg=audit(1216992166.348:121): avc:  denied  { create } for 
pid=2116 comm="amavisd" name="p002.exe" 
scontext=system_u:system_r:amavis_t:s0 
tcontext=system_u:object_r:amavis_var_lib_t:s0 tclass=lnk_file


type=AVC msg=audit(1216992166.372:123): avc:  denied  { unlink } for 
pid=2116 comm="amavisd" name="p002.exe" dev=md0 ino=1005252 
scontext=system_u:system_r:amavis_t:s0 
tcontext=system_u:object_r:amavis_var_lib_t:s0 tclass=lnk_file


type=AVC msg=audit(1216992166.403:124): avc:  denied  { getattr } for 
pid=2970 comm="arj" 
path="/var/amavis/tmp/amavis-20080725T091655-02116/parts/p002.arj" 
dev=md0 ino=1005252 scontext=system_u:system_r:amavis_t:s0 
tcontext=system_u:object_r:amavis_var_lib_t:s0 tclass=lnk_file




SO - is it normal to have to update policies on basic services? Am I 
missing an rpm?


those aren't basic services but are packages that are supplied by


postfix is centos, the rest are from rpmforge


repositories other than CentOS/upstream and apparently don't have all of
their files/folder labeled properly.

what do you get from command...

sealert -a /var/log/dmesg



zero alerts



or
sealert -a /var/log/audit/audit.log




lots of stuff from when it wasn't labeled right, so I stripped all 
audit.log entries before the last DAEMON_START to a file & ran sealert 
on it.



found 15 alerts in new_audit_log



Summary:

SELinux is preventing clamd (clamd_t) "search" to ./kernel 
(sysctl_kernel_t).


Detailed Description:

[SELinux is in permissive mode, the operation would have been denied but was
permitted due to permissive mode.]

SELinux denied access requested by clamd. It is not expected that this 
access is
required by clamd and this access may signal an intrusion attempt. It is 
also

possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

Sometimes labeling problems can cause SELinux denials. You could try to 
restore

the default system file context for ./kernel,

restorecon -v './kernel'

If this does not work, there is currently no automatic way to allow this 
access.
Instead, you can generate a local policy module to allow this access - 
see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385

Re: [CentOS] Shell script - ping

2008-07-28 Thread Javor Nikolov
Hi,

If you you want a quicker execution - you could also run the pings to
separate hosts in parallel starting the jobs in background (&) and waiting
for them with "wait" after that. You'll have to be more careful about the
outputs in that case - e.g. redirect them to separate files.

Regards,
Javor

On Mon, Jul 28, 2008 at 2:57 PM, Laurence Alexander Hurst <
[EMAIL PROTECTED]> wrote:

> Gopinath Achari wrote:
>
>> hi,
>>
>>how to write a scripts which launches 10 pings to different
>> destinations at execution of single shell scripts
>>
>> please help me any ideas
>>
>> regards,
>> Gopinath
>>
> Do you mean something like:
> ping -c10 host1
> ping -c10 host2
> 
> which will ping host1 10 times, then host2 10 times etc. (see `man ping`
> for details of the options).
>
> If you have a list of hosts in a file, you could do:
> for host in `cat [filename]`
> do
>ping -c10 $host
> done
>
> or:
>
> while read host
> do
>ping -c10 $host
> done << [filename]
>
> If you only want to ping each host once, you can substitute '-c10' with
> '-c1' (again, see the man page).
>
> Hope this helps
> Laurence
>
> ___
> 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] Shell script - ping

2008-07-28 Thread Laurence Alexander Hurst

Gopinath Achari wrote:

hi,

how to write a scripts which launches 10 pings to different
destinations at execution of single shell scripts

please help me any ideas

regards,
Gopinath

Do you mean something like:
ping -c10 host1
ping -c10 host2

which will ping host1 10 times, then host2 10 times etc. (see `man ping` 
for details of the options).


If you have a list of hosts in a file, you could do:
for host in `cat [filename]`
do
ping -c10 $host
done

or:

while read host
do
ping -c10 $host
done << [filename]

If you only want to ping each host once, you can substitute '-c10' with 
'-c1' (again, see the man page).


Hope this helps
Laurence
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Now you did it Olly

2008-07-28 Thread D Steward
Ah sorry, you meant bootloader not MBR.
You'll probably have to reinstall grub.
Have you been using this guide?
http://www.ubuntugeek.com/a-much-easier-way-to-install-ubuntu-on-a-usb-device-stick-or-hd.html


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


  1   2   >