Re: [CentOS] boot problems

2008-11-03 Thread Gopinath Achari



try

root (hd0,0)
configfile /boot/grub/grub.conf  or
configfile /etc/grub.conf
boot 

it should boot if unable to load the grub  config file or try to
manually define the root , vmlinuz and initrd paramaters and boot. 

Eg: 
root (hd0,1)
kernel /boot/vmlinuz-2.6.19.1 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.19.1.img


boot






On Mon, 2008-10-27 at 11:49 -0700, MHR wrote:

> On Mon, Oct 27, 2008 at 7:31 AM, fabian dacunha <[EMAIL PROTECTED]> wrote:
> > Dear All,
> >
> > I am quite new to centos
> >
> > i had installed centos 5.2 to be as a squid proxy server and it was
> > working fine for over a month or so
> >
> > but 3 days back the machine after a reboot jus refused to boot
> >
> > it jus was goin to the grub prompt
> >
> 
> Which one?
> 
> > i wd really apprecite if someone cd help me ..
> >
> > cd i boot from centos boot cd n go to rescue mode and check grub
> >
> Yes, but you probably need to provide more info to get the right answers.
> 
> > 2) if grub is OK how cd i reinstall centos without destroying data
> >
> 
> Let's take it one step at a time.
> 
> 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] [rsync -avz] total size/disk usage difference between source and destination

2008-11-03 Thread Les Mikesell

Sven wrote:

Thanks for feedback.

After doing a little bit research I found that the application (Apache
Tomcat) and backup (Veritas NetBackup) was running during the copy
job.

What influence have a running Tomcat and NetBackup on rsync?
What rsync (running as root) do if there are read-only files?


That's generally not a problem, but you'll get a snapshot of changing 
files, like growing logfiles, and if a file is deleted while still open 
it will still consume space on the source as seen by 'df' until the 
application closes it or exits but it won't be copied.


--
  Les Mikesell
[EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SATA errors on CentOS 5.2

2008-11-03 Thread MHR
On Mon, Nov 3, 2008 at 5:35 PM, MHR <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 3, 2008 at 4:57 PM, Joseph L. Casale
> <[EMAIL PROTECTED]> wrote:
>>
>> Is your Mass Storage Controller configured as IDE instead of AHCI?
>>
> It's "compatible" as IDE.
>
It has two settings here - one is "compatible" (the default) or
"enhanced," the other is set to IDE, but can be set to RAID or AHCI.

>> You don't, it would be odd :) What model of mobo?
>
> Intel PCIE-9650-R11
>

Actually, it's an industrial backplane with a Cyber Research
PCIE-9650-R11 (B056) V2.0 CPU card in it.  That has a P4 on it, not
anything as advanced as Core 2 (my mistake).

Thanks.

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


Re: [CentOS] [rsync -avz] total size/disk usage difference between source and destination

2008-11-03 Thread nate
Sven wrote:
> Thanks for feedback.
>
> After doing a little bit research I found that the application (Apache
> Tomcat) and backup (Veritas NetBackup) was running during the copy
> job.
>
> What influence have a running Tomcat and NetBackup on rsync?
> What rsync (running as root) do if there are read-only files?

There really isn't such thing as a read-only file in linux. If
a file is open for writing by another program you can still write
to it though you normally should not to avoid data corruption.

Also if your doing a local copy I suggest not using the -z option
as using -z will likely dramatically slow down the sync process.
Only use -z if your copying over a slow network link.

Also if your doing multiple syncs and want to keep them in sync
I suggest you check out the --delete option as well.

nate

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


Re: [CentOS] SATA errors on CentOS 5.2

2008-11-03 Thread MHR
On Mon, Nov 3, 2008 at 4:57 PM, Joseph L. Casale
<[EMAIL PROTECTED]> wrote:
>>What am I missing?  Is it odd to have two SATA controllers for a
>>single disk drive, or is that at all relevant?
>
> You don't, it would be odd :)

Actually, we do - it is configured to have two SATA controllers in it.

:-)

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


Re: [CentOS] SATA errors on CentOS 5.2

2008-11-03 Thread MHR
On Mon, Nov 3, 2008 at 4:57 PM, Joseph L. Casale
<[EMAIL PROTECTED]> wrote:
>
> Is your Mass Storage Controller configured as IDE instead of AHCI?
>
It's "compatible" as IDE.

>>What am I missing?  Is it odd to have two SATA controllers for a
>>single disk drive, or is that at all relevant?
>
> You don't, it would be odd :) What model of mobo?

Intel PCIE-9650-R11

> I would be curious to check the manual, it's been a while since I
> worked on an ICH8 chipset so I wonder about the storage config setting.
>

Thanks.

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


Re: [CentOS] [rsync -avz] total size/disk usage difference between source and destination

2008-11-03 Thread Ricardo Carrillo
, with this options only you are indicating to rsync don't create
a directory name as name of your file, , maybe yoy can try these
options :


rsync -arvcu --partial --progress -e "/usr/bin/ssh" orign destiny

I've use these options to trasfer a big data vollume and alwas is OK.

Cheers

2008/11/2 Sven <[EMAIL PROTECTED]>:
> Hi folks
>
> We migrated storage from local disk to SAN with:
>
> # rsync -avz /mnt/lvol00045/* /lvol00045
>
> Why there is a difference in size? How to explain this? Do we have
> inconsistency? What we did wrong?
>
> [...]
> /dev/mapper/vg01-lvol00045_old
>  10321208   3930336   6286016  39% /mnt/lvol00045
> [...]
> /dev/mapper/vg01-lvol00045
>  10321208   3163852   6633068  33% /lvol00045
> [...]
>
> kind regards
> Sven
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 

:: L.I. Ricardo D. Carrillo Sánchez
:: Security Specialist
:: Universidad Nacional Autonoma de Mexico::
:: Ciudad Universitaria  ,
D.F. Mex
:: e-mail prim.: davxoc at gmai dot com
:: e-mail secu.: davxoc at hotmail dot com
:
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] SATA errors on CentOS 5.2

2008-11-03 Thread Joseph L. Casale
>/var/log/messages.1-Nov  1 18:19:00 Centos5 kernel: hda: status
>timeout: status=0xd0 { Busy }
>/var/log/messages.1:Nov  1 18:19:00 Centos5 kernel: ide: failed opcode
>was: unknown
>/var/log/messages.1-Nov  1 18:19:00 Centos5 kernel: hda: no DRQ after
>issuing MULTWRITE_EXT
>/var/log/messages.1-Nov  1 18:19:00 Centos5 kernel: ide0: reset: success

Is your Mass Storage Controller configured as IDE instead of AHCI?

>What am I missing?  Is it odd to have two SATA controllers for a
>single disk drive, or is that at all relevant?

You don't, it would be odd :) What model of mobo?
I would be curious to check the manual, it's been a while since I
worked on an ICH8 chipset so I wonder about the storage config setting.

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


[CentOS] SATA errors on CentOS 5.2

2008-11-03 Thread MHR
We have a new machine here that we are trying to use for CentOS as a
base for our primary application.  Although I do not have direct
access to the physical machine, I have begun looking into it remotely
(via ssh) to see why we are getting the following errors periodically:

/var/log/messages.1-Nov  1 18:19:00 Centos5 kernel: hda: status
timeout: status=0xd0 { Busy }
/var/log/messages.1:Nov  1 18:19:00 Centos5 kernel: ide: failed opcode
was: unknown
/var/log/messages.1-Nov  1 18:19:00 Centos5 kernel: hda: no DRQ after
issuing MULTWRITE_EXT
/var/log/messages.1-Nov  1 18:19:00 Centos5 kernel: ide0: reset: success

This happened 12 times (at least) in the last four days, and it
(reportedly) does not occur if FC9 is booted on that machine.

The machine is configured as follows:

Pentium Core 2 Duo at 3.4GHz, 1GB RAM
Intel m/b, not sure exactly which one, but here's what lspci shows:

00:00.0 Host bridge: Intel Corporation 82Q963/Q965 Memory Controller
Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q963/Q965
Integrated Graphics Controller (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2
EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio
Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express
Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express
Port 5 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express
Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2
EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HO (ICH8DO) LPC Interface
Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port
SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port
SATA IDE Controller (rev 02)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet
Controller
03:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet
Controller
04:0c.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
04:0d.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
04:0e.0 Communication controller: Comtrol Corporation RocketPort 16
port w/external I/F (rev 04)
04:0f.0 Non-VGA unclassified device: PLX Technology, Inc. PCI <->
IOBus Bridge (rev 01)

The disk is a Seagate ST3250310NS (250GB) with an 8G /boot, 65G / and
160G /usr, with 2 2G swap partitions in the extended partition (!).

(Seagate - I smell trouble, but, as I said, FC9 doesn't do this at all.)

uname -a returns Linux Centos5.2SATAMaster 2.6.18-92.1.13.el5 #1 SMP
Wed Sep 24 19:33:52 EDT 2008 i686 i686 i386 GNU/Linux.

I've run the smartctl utility, and it shows no errors.

What am I missing?  Is it odd to have two SATA controllers for a
single disk drive, or is that at all relevant?

Thanks.

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


Re: [CentOS] Forward all traffic from public IP A to public IP B?

2008-11-03 Thread John R Pierce

Morten Sundstrøm wrote:
No nothing will go back from B through A, traffic from B vil go 
directly to the quering host. Sort of like manipulate the header of 
every packet changing destination IP to New destination IP and let the 
new destination host answer the query. Maybe im way of here :) and if 
I am then somone just say it and i will forget the whole ting.



yeah, that flat won't work.

   client C sends packet with source address:C, destination address A, 
port P

   A forwards packet to B with src: C, dest: B, port P
   B replies to C with src: B, dest C

C goes 'wtf is this packet?  I don't have any open socket like this' and 
rejects it.



rather...

   client C sends packet with source address:C, destination address A, 
port P

   A forwards packet to B with src: C, dest: B, port P
   B replies to A with src: B, dest C
   A forwards response to C with src:A dest C,

and this response packet matches C's open outbound socket and is accepted





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


Re: [CentOS] Forward all traffic from public IP A to public IP B?

2008-11-03 Thread Les Mikesell

Morten Sundstrøm wrote:


No nothing will go back from B through A, traffic from B vil go directly 
to the quering host. Sort of like manipulate the header of every packet 
changing destination IP to New destination IP and let the new 
destination host answer the query. Maybe im way of here :) and if I am 
then somone just say it and i will forget the whole ting.


I think it is the wrong answer to any possible problem (compared to 
changing DNS or whatever it takes to make the connection request go to 
the right place on its own).  Your iptables DNAT line would work to get 
the packet to the other host - and you should be able to see that with 
tcpdump.  However, when host B responds back to the original source 
address it won't complete a connection to the socket waiting for 
something from host A.



--
  Les Mikesell
   [EMAIL PROTECTED]



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


Re: [CentOS] Forward all traffic from public IP A to public IP B?

2008-11-03 Thread Morten Sundstrøm

John R Pierce skrev:

Morten Sundstrøm wrote:

Im trying to forward all traffic to a public server(A) to another 
public server(B) except traffic to port 22. Found this on google but 
cant get it to work. Could someone help me please.
Server A has one NIC server B has one NIC. Do i need 2 NICS in server A. 
Server B is not behind server A, two different machines on different 
public networks.


Offhand, I'd suggest setting up a VPN between the two servers, perhaps 
using OpenVPN, configured so server "A" is masquerading the VPN's 
private addresses, and use ip masquerade style port forwarding to 
server B's private VPN address.
this still leaves some questionable scenarios...  for instance, 
assuming server B has its own default gateway (which, indeed, it needs 
for various reasons), if a FTP connection request comes in via server 
A's port forwarding and NAT, the handling of the FTP dynamic 'data' 
port will get messy.the same applies to any other protocol that 
genereates dynamic requests.


for that matter, server "B" generated outbound traffic, like for 
instance, email... is that to be forwarded out through A ?
No nothing will go back from B through A, traffic from B vil go directly 
to the quering host. Sort of like manipulate the header of every packet 
changing destination IP to New destination IP and let the new 
destination host answer the query. Maybe im way of here :) and if I am 
then somone just say it and i will forget the whole ting.


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


Re: [CentOS] Forward all traffic from public IP A to public IP B?

2008-11-03 Thread John R Pierce

Morten Sundstrøm wrote:

Im trying to forward all traffic to a public server(A) to another 
public server(B) except traffic to port 22. Found this on google but 
cant get it to work. Could someone help me please.
Server A has one NIC server B has one NIC. Do i need 2 NICS in server A. 


Server B is not behind server A, two different machines on different 
public networks.






Offhand, I'd suggest setting up a VPN between the two servers, perhaps 
using OpenVPN, configured so server "A" is masquerading the VPN's 
private addresses, and use ip masquerade style port forwarding to server 
B's private VPN address. 

this still leaves some questionable scenarios...  for instance, assuming 
server B has its own default gateway (which, indeed, it needs for 
various reasons), if a FTP connection request comes in via server A's 
port forwarding and NAT, the handling of the FTP dynamic 'data' port 
will get messy.the same applies to any other protocol that 
genereates dynamic requests.


for that matter, server "B" generated outbound traffic, like for 
instance, email... is that to be forwarded out through A ?







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


Re: [CentOS] Forward all traffic from public IP A to public IP B?

2008-11-03 Thread Morten Sundstrøm

nate skrev:

Morten Sundstrøm wrote:
  

Need help.

Im trying to forward all traffic to a public server(A) to another public
server(B) except traffic to port 22. Found this on google but cant get
it to work. Could someone help me please.



Is server (B) behind server (A) ? It's been a while but last
time I checked you couldn't do forwarding to a system unless that
system was behind the system that was doing the forwarding using
normal iptables.

What I do is use a specialized utility, there are two such utilities
that I know of that handle tcp forwarding in this manor:
rinetd and redir.

The only downside is the destination system will not see any of
the original IP addresses connecting, it will only see IPs of the
system doing the forwarding.

I don't think either rinetd or redir are available in the default
CentOS installation you probably have to find them elsewhere on
the net.

As for non-TCP stuff, I don't know off the top of my head.

nate

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
  
Server B is not behind server A, two different machines on different 
public networks.


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


Re: [CentOS] Forward all traffic from public IP A to public IP B?

2008-11-03 Thread nate
Morten Sundstrøm wrote:
> Need help.
>
> Im trying to forward all traffic to a public server(A) to another public
> server(B) except traffic to port 22. Found this on google but cant get
> it to work. Could someone help me please.

Is server (B) behind server (A) ? It's been a while but last
time I checked you couldn't do forwarding to a system unless that
system was behind the system that was doing the forwarding using
normal iptables.

What I do is use a specialized utility, there are two such utilities
that I know of that handle tcp forwarding in this manor:
rinetd and redir.

The only downside is the destination system will not see any of
the original IP addresses connecting, it will only see IPs of the
system doing the forwarding.

I don't think either rinetd or redir are available in the default
CentOS installation you probably have to find them elsewhere on
the net.

As for non-TCP stuff, I don't know off the top of my head.

nate

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


[CentOS] Forward all traffic from public IP A to public IP B?

2008-11-03 Thread Morten Sundstrøm

Need help.

Im trying to forward all traffic to a public server(A) to another public 
server(B) except traffic to port 22. Found this on google but cant get 
it to work. Could someone help me please.

Server A has one NIC server B has one NIC. Do i need 2 NICS in server A.

#!/bin/sh
iptables -F
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
iptables -X
iptables -F -t nat
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -i eth0 --protocol tcp --destination-port 
! 22 -j DNAT --to-destination "IP B"
iptables -t nat -A PREROUTING -i eth0 --protocol udp -j DNAT 
--to-destination "IP B"

# END

/etc/rc.d/init.d/iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num  target prot opt source   destination

Chain FORWARD (policy ACCEPT)
num  target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
num  target prot opt source   destination

Table: mangle
Chain PREROUTING (policy ACCEPT)
num  target prot opt source   destination

Chain INPUT (policy ACCEPT)
num  target prot opt source   destination

Chain FORWARD (policy ACCEPT)
num  target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
num  target prot opt source   destination

Chain POSTROUTING (policy ACCEPT)
num  target prot opt source   destination

Table: nat
Chain PREROUTING (policy ACCEPT)
num  target prot opt source   destination
1DNAT   tcp  --  0.0.0.0/00.0.0.0/0   tcp 
dpt:!22 to:"IP B"

2DNAT   udp  --  0.0.0.0/00.0.0.0/0   to:"IP B"

Chain POSTROUTING (policy ACCEPT)
num  target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
num  target prot opt source   destination



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


Re: [CentOS] TI USB 3410-5052 for CentOS 4.7

2008-11-03 Thread Akemi Yagi
On Mon, Nov 3, 2008 at 1:30 PM, Marc Ferguson
<[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying to build the driver for the TI USB 3410/5052 family of devices.
> Specifically, I am trying to hook up a MultiTech GSM modem.
> I have the source for the driver which came with the modem.  However, I
> beating my head against the wall trying to get around the usb-serial.h not
> found error.
> I have found references saying usb-serial.h has been moved.  Even though I
> have pulled down kernel-2.6.9-78.src.rpm I can not find the .h to make
> things compile.
> Any assistance would be greately appreciated (a prebuilt driver would be
> even better).

It should be in the source tree.  Look in: drivers/usb/serial/

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


[CentOS] TI USB 3410-5052 for CentOS 4.7

2008-11-03 Thread Marc Ferguson
Hi,

I am trying to build the driver for the TI USB 3410/5052 family of devices.  
Specifically, I am trying to hook up a MultiTech GSM modem.

I have the source for the driver which came with the modem.  However, I 
beating my head against the wall trying to get around the usb-serial.h not 
found error.   

I have found references saying usb-serial.h has been moved.  Even though 
I have pulled down kernel-2.6.9-78.src.rpm I can not find the .h to make 
things compile.

Any assistance would be greately appreciated (a prebuilt driver would be 
even better).

Thanks

Marc

Marc Ferguson
Trapeze Group
757-961-9224 x304
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] device driver useage

2008-11-03 Thread Geoff Galitz


Thanks.  Unfortunately that link does not appear on my Centos box.  

I will simply file this under "would be thing to have in the future."
Perhaps I just found myself a neat little project.

-geoff




Geoff Galitz
Blankenheim NRW, Deutschland
http://www.galitz.org


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Scott McClanahan
Sent: Donnerstag, 23. Oktober 2008 16:20
To: CentOS mailing list
Subject: Re: [CentOS] device driver useage

On Thu, 2008-10-23 at 13:22 +0200, Geoff Galitz wrote:
> 
> 
> Under Centos 5.X, how can I determine with 100% certainty what driver is
> associated with a given device other than referencing dmesg?  For example,
> what tool can I use to tell for sure what driver is attached to my eth0
> device?  
> 

One way is to crawl the sys file system.  On one of my systems the
driver can be seen by viewing the target in
the /sys/class/net/eth0/driver link.
___
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] Can I upgrade CentOS 3.9 to 4 with apt/yum

2008-11-03 Thread Lanny Marcus
On Mon, Nov 3, 2008 at 6:44 AM,  <[EMAIL PROTECTED]> wrote:
> Deal All,
> Please tell me someone is is possible to upgrade CentOS3.9 to 4 via apt or
> yum?

You can probably do that. However, you may end up with some issues to
solve. Generally, it is better not to upgrade, from one major version
(in this case 3.x) to a newer one (4.x).  Better to backup, do a clean
install, and then restore. Is there some reason  you do not want to
install 5.2 on that box?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [rsync -avz] total size/disk usage difference between source and destination

2008-11-03 Thread Sven
Thanks for feedback.

After doing a little bit research I found that the application (Apache
Tomcat) and backup (Veritas NetBackup) was running during the copy
job.

What influence have a running Tomcat and NetBackup on rsync?
What rsync (running as root) do if there are read-only files?

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


Re: [CentOS] Yum loses memory when kernel is upgraded

2008-11-03 Thread Jim Perrin
On Mon, Nov 3, 2008 at 7:51 AM, Jussi Hirvi <[EMAIL PROTECTED]> wrote:
> Centos 5.x
>
> Why could this be? After I loaded a xen kernel (by mistake), yum seemed to
> lose its knowledge of my CentOS version. I had that fixed by "yum install
> centos-release" (I had first to fix the repo addresses for this to succeed).
>
> But after that, I noticed that yum did not remember anymore, what packages
> were already installed. It seems that the something happens to the rpm
> databases. I think this is connected to kernel upgrades - that is, every
> time I update the kernel, the rpm databases are spoiled... (or something).
>
> Right now both of these commands:
>yum list installed
>rpm --query -a

Never seen this sort of 'forgetfulness'. Could you provide a bit more
detail as to which version of centos5 you're running, and the full
output of 'rpm -V yum centos-release' and the outpuf of 'uname -a'

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


Re: THANKS - Re: [CentOS] [OT] List of all email users

2008-11-03 Thread Les Mikesell

mouss wrote:

Jussi Hirvi wrote:

Thanks Mouss and others. I have now more than enough to get on with.

mouss ([EMAIL PROTECTED]) kirjoitteli (2.11.2008 19:39):

why comma? isn't LF better (one user per line)?


LF or comma, it doesn't matter much. I said comma, because I am going to
utilize the list to build one huge alias "my_email_customers". :-)



if the list is huge, you may run into problems. better use a mailing-list.



_And_ keep in mind that you are going to get replies and probably spam 
to this address.  So you'll probably want to turn on the moderation 
feature of the list.


--
  Les Mikesell
   [EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: THANKS - Re: [CentOS] [OT] List of all email users

2008-11-03 Thread mouss

Jussi Hirvi wrote:

Thanks Mouss and others. I have now more than enough to get on with.

mouss ([EMAIL PROTECTED]) kirjoitteli (2.11.2008 19:39):

why comma? isn't LF better (one user per line)?


LF or comma, it doesn't matter much. I said comma, because I am going to
utilize the list to build one huge alias "my_email_customers". :-)



if the list is huge, you may run into problems. better use a mailing-list.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Yum loses memory when kernel is upgraded

2008-11-03 Thread Jussi Hirvi
Centos 5.x

Why could this be? After I loaded a xen kernel (by mistake), yum seemed to
lose its knowledge of my CentOS version. I had that fixed by "yum install
centos-release" (I had first to fix the repo addresses for this to succeed).

But after that, I noticed that yum did not remember anymore, what packages
were already installed. It seems that the something happens to the rpm
databases. I think this is connected to kernel upgrades - that is, every
time I update the kernel, the rpm databases are spoiled... (or something).

Right now both of these commands:
yum list installed
rpm --query -a 

...produce identical results (for practical purposes). Neither list contains
for example amavisd-new, which I'm sure I have installed.

Does someone know a way to prevent the "memory loss" from happening again?

- Jussi

--
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. & fax +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
[EMAIL PROTECTED] * http://www.greenspot.fi

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


[CentOS] Can I upgrade CentOS 3.9 to 4 with apt/yum

2008-11-03 Thread chaminda
Deal All,

Please tell me someone is is possible to upgrade CentOS3.9 to 4 via apt or
yum?

Thanks
Chaminda

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


Re: [CentOS] rpm spec question

2008-11-03 Thread Bent Terp
On Mon, Nov 3, 2008 at 10:38 AM, Tom Brown <[EMAIL PROTECTED]> wrote:
> specify this in the %postun. Is there a way to tell rpm to NOT remove
> files/dir's that it creates unless i request it?

don't list the dir in the files section, use /* instead to point out
the files in the dir

If you list the dir itself, it will be owned by the rpm and removed
together with it.

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


Re: [CentOS] Problem with widescreen display

2008-11-03 Thread B.J. McClure

On Mon, 2008-11-03 at 10:56 +0100, Rainer Duffner wrote:
> Marko Vojinovic schrieb:
> > On Sunday 02 November 2008 12:26, William L. Maltby wrote:
> >   
> >> On Sat, 2008-11-01 at 22:08 +, Marko Vojinovic wrote:
> >> 
> >>> Basically, what I did was to run system-config-display to reconfigure for
> >>> the new monitor and resolution. All goes well, but after X restarts, I
> >>> see a strange picture: the resolution indeed goes to 1680x1050 as is
> >>> supposed to, but is squeezed/shrinked/scaled horizontally to match a 4:3
> >>> aspect ratio, leaving two (unequal) black bands on the left and right
> >>> side of the monitor.
> >>>   
> >> This sounds like the "Modes" line in the "Subsection Display" may not
> >> have the right settings. The manual/CD for the monitor should have the
> >> right settings. I would compare those against what the configuration
> >> process generated and manually edit if needed. Why the difference
> >> between FC4 and CentOS, I can't guess.
> >> 
> >
> > Comparing the CentOS and Fedora Xorg.0.log I found that the actual 
> > modelines 
> > are just slightly different. Assuming that this difference might actually 
> > be 
> > important, I took the known-to-work modeline from Fedora's Xorg.0.log, 
> > copy-paste it in CentOS xorg.conf and forcing X to use that. But the result 
> > is the same.
> >   
> 
> I only run CentOS on servers, but when I got my widescreen monitor at
> work, I couldn't get the full resolution with the X that came with
> OpenSuSE 10.3.
> Only OpenSuSE 11 works.
> Too bad that printing doesn't work in OpenSuSE 11 anymore
> My take: the X-server makes some assumptions that are not true for
> widescreen hardware and throws away the modelines it gets (because it
> thinks they won't work). Seems to have been fixed with later X releases
> (or patches).
> For desktop-use, there's little alternative to Ubuntu/OpenSuSE/Fedora
> and re-installing every couple of months (and living with new and
> surprising bugs every release).
FWIW, here is a section from /etc/X11/xorg.cong on a working 22 inch widescreen 
workstation running 1680x1050.  
We have around 20 machines, all workstations, some 32 bit some 64 bit, all 
running CentOS 5.2 on Asus hardware 
with various flavors of Nvidia graphics adapters, and all are 22 inch 
widescreen Viewsonic monitors.

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName  "Unknown"
HorizSync   30.0 - 110.0
VertRefresh 50.0 - 150.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
With all due respect, to suggest that CentOS is unsat for desktop use is simply 
incorrect. All 
servers(no GUI) and workstations we have run CentOS.  Only for laptops do we 
consider Ubuntu LTS.

Cheers,
B.J.

CentOS 5.2, Linux 2.6.18-92.1.13.el5 x86_64 04:11:11 up 6 days, 12:58, 1
user, load average: 0.03, 0.06, 0.08

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


Re: [CentOS] CentOS 5.2 and Bacula

2008-11-03 Thread Tronn Wærdahl
On Sat, Nov 1, 2008 at 4:34 PM, Craig White <[EMAIL PROTECTED]> wrote:

> On Sat, 2008-11-01 at 15:42 +0100, Tronn Wærdahl wrote:
> > Hi everyone,
> >
> > I have a Samba server on CentOS 5.2 that I would like to and some
> > backup service to, I have been trying to install Bacula, because I
> > want to backup MS machines too, and there is a web GUI.  But when
> > searching around i google I get a bit confused. about what packages I
> > need.
> >
> > Has anyone got bacula running on Centos or maybe guide in the right
> > direction.
> 
> sure a bunch of us...
>
> CentOS 5, download from here...(install only EL5 packages that apply)
>
>
> http://sourceforge.net/project/showfiles.php?group_id=50727&package_id=213714&release_id=619621
>
> Server you would probably want bacula-mysql, bacula-bat, possibly
> bacula-mtx and possibly bacula-gconsole or bacula-wxconsole
>
> Any CentOS clients would only need the bacula-client
>
> Windows client, download from here...
>
>
> http://sourceforge.net/project/showfiles.php?group_id=50727&package_id=110235&release_id=632261
>
> Craig
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


Thanks, I got it now, both CentOS and MS clients running bacula

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


Re: [CentOS] mysql 4 > 5 export import issue

2008-11-03 Thread Tom Brown



The characters look binary, so this might be a problem of conversion
latin1 -> utf8 or vice versa.

Try dumping with:

mysqldump --default-character-set=binary ... >/path/to/dumpfile

And loading the dump with:

mysql --default-character-set=binary ... >/path/to/dumpfile

Let us know if that works.

HTH,
  



thanks for all the suggestions - in the end i opted for rsyncing the 
datafiles for this db and for me this worked fine. Not the 'correct' way 
but one that worked OK at the time.


thanks

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


Re: [CentOS] Problem with widescreen display

2008-11-03 Thread Rainer Duffner
Marko Vojinovic schrieb:
> On Sunday 02 November 2008 12:26, William L. Maltby wrote:
>   
>> On Sat, 2008-11-01 at 22:08 +, Marko Vojinovic wrote:
>> 
>>> Basically, what I did was to run system-config-display to reconfigure for
>>> the new monitor and resolution. All goes well, but after X restarts, I
>>> see a strange picture: the resolution indeed goes to 1680x1050 as is
>>> supposed to, but is squeezed/shrinked/scaled horizontally to match a 4:3
>>> aspect ratio, leaving two (unequal) black bands on the left and right
>>> side of the monitor.
>>>   
>> This sounds like the "Modes" line in the "Subsection Display" may not
>> have the right settings. The manual/CD for the monitor should have the
>> right settings. I would compare those against what the configuration
>> process generated and manually edit if needed. Why the difference
>> between FC4 and CentOS, I can't guess.
>> 
>
> Comparing the CentOS and Fedora Xorg.0.log I found that the actual modelines 
> are just slightly different. Assuming that this difference might actually be 
> important, I took the known-to-work modeline from Fedora's Xorg.0.log, 
> copy-paste it in CentOS xorg.conf and forcing X to use that. But the result 
> is the same.
>   

I only run CentOS on servers, but when I got my widescreen monitor at
work, I couldn't get the full resolution with the X that came with
OpenSuSE 10.3.
Only OpenSuSE 11 works.
Too bad that printing doesn't work in OpenSuSE 11 anymore
My take: the X-server makes some assumptions that are not true for
widescreen hardware and throws away the modelines it gets (because it
thinks they won't work). Seems to have been fixed with later X releases
(or patches).
For desktop-use, there's little alternative to Ubuntu/OpenSuSE/Fedora
and re-installing every couple of months (and living with new and
surprising bugs every release).




Rainer

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


RE: [CentOS] [rsync -avz] total size/disk usage difference betweensource and destination

2008-11-03 Thread Plant, Dean
Sven wrote:
> Hi folks
> 
> We migrated storage from local disk to SAN with:
> 
> # rsync -avz /mnt/lvol00045/* /lvol00045
> 
> Why there is a difference in size? How to explain this? Do we have
> inconsistency? What we did wrong?
> 
> [...]
> /dev/mapper/vg01-lvol00045_old
>   10321208   3930336   6286016  39% /mnt/lvol00045
> [...]
> /dev/mapper/vg01-lvol00045
>   10321208   3163852   6633068  33% /lvol00045

What does the output of df -i show? It should show the same amount of
inodes used regardless of block size.

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


[CentOS] rpm spec question

2008-11-03 Thread Tom Brown

Hi

I am trying to package a bunch of files so that i can deploy them with 
rpm - Its prtty much just a case of dumping some files on the filesystem.


I achieve this with rpm without issue however when i remove the rpm from 
the system it also removes the dir that contains the files, even though 
i dont specify this in the %postun. Is there a way to tell rpm to NOT 
remove files/dir's that it creates unless i request it?


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


Re: [CentOS] [rsync -avz] total size/disk usage difference between source and destination

2008-11-03 Thread Rubin
Hi,

For what it's worth, I always specify my source and target paths as
absolute, ending in a slash (/). This has saved me from sneaky mistakes
many a time. Next to that, I don't know if your target filesystem is
supposed to be an exact copy of the source, but you did not specify
--delete which results in rsync not touching any files in the target
filesystem that do not match files in the source (ie. file foo exists in
target and stays there. with --delete it would be removed). I would
secify a sync between an target and source filesystem as follows:

rsync -avPH --delete /sourcefs/directoryA/ /targetfs/directoryA/

I've seen differences in fs sizes when the blocksize or type of
filesystem differ from one-another. Always wondered what the exact
underlying reason for it was (ie. I don't have a more exact answer ;-)


Kind regards,

Rubin.

Les Mikesell wrote:
> John R Pierce wrote:
>> Sven wrote:
>>> Hi folks
>>>
>>> We migrated storage from local disk to SAN with:
>>>
>>> # rsync -avz /mnt/lvol00045/* /lvol00045
>>>
>>> Why there is a difference in size? How to explain this? Do we have
>>> inconsistency? What we did wrong?
>>>
>>> [...]
>>> /dev/mapper/vg01-lvol00045_old
>>>   10321208   3930336   6286016  39% /mnt/lvol00045
>>> [...]
>>> /dev/mapper/vg01-lvol00045
>>>   10321208   3163852   6633068  33% /lvol00045
>>>   
>>
>>
>> did rsync copy .* hidden files ?
>>
>> do the two file systems have the same block size?
> 
> Rsync would copy hidden files when recursing as a side effect of the -a
> option.  However, the shell is going to expand that '*' before rsync
> sees the command line and miss any hidden files in the top level
> directory.  I'd probably have done:
> cd /mnt/lvo100045
> rsync -avH . /lvo00045
> instead.  That gives rsync a directory as a starting point without
> having to remember the quirks of whether it will or won't create a
> subdirectory of that name on the target.  It also doesn't make sense to
> use -z for a local file copy and you might need -H if you have
> hardlinked files on the filesystem.
> 




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


Re: [CentOS] Problem with widescreen display

2008-11-03 Thread Marko Vojinovic
On Sunday 02 November 2008 12:26, William L. Maltby wrote:
> On Sat, 2008-11-01 at 22:08 +, Marko Vojinovic wrote:
> > Basically, what I did was to run system-config-display to reconfigure for
> > the new monitor and resolution. All goes well, but after X restarts, I
> > see a strange picture: the resolution indeed goes to 1680x1050 as is
> > supposed to, but is squeezed/shrinked/scaled horizontally to match a 4:3
> > aspect ratio, leaving two (unequal) black bands on the left and right
> > side of the monitor.
>
> This sounds like the "Modes" line in the "Subsection Display" may not
> have the right settings. The manual/CD for the monitor should have the
> right settings. I would compare those against what the configuration
> process generated and manually edit if needed. Why the difference
> between FC4 and CentOS, I can't guess.

Comparing the CentOS and Fedora Xorg.0.log I found that the actual modelines 
are just slightly different. Assuming that this difference might actually be 
important, I took the known-to-work modeline from Fedora's Xorg.0.log, 
copy-paste it in CentOS xorg.conf and forcing X to use that. But the result 
is the same.

I will also try to find modeline data in the monitor manual, but I doubt that 
it is not going to be any different than DDC values that X autodetects.

> I don't have the URL, but some time ago I googled and found a very
> detailed description of the modes, their effects, "blanking" (the "black
> bands") and the relationship of all those. Go googling if you think if
> might help.

I'll look into that, to educate myself about modelines beyond the man page. 
But I have a feeling this problem is not related to modelines.

> > Btw, this is on an nVidia GeForce 4 using the default nv driver. The vesa
> > driver doesn't support widescreen resolutions, while nvidia binary driver
> > crashes X completely on start (but this is a known motherboard problem
> > common to FC4 as well).
>
> Have you tried the nvidia drivers from rpmforge? It has drivers for both
> the older and newer nVidia cards, all ready for CentOS. I'm using the
> older driver now (standard CRT though, not a newer LCD/TFT wide-aspect
> screen) and it works flawlessly.

Yes, I have tried the package from rpmforge, but it behaves the same way. But 
the problem with binary drivers is that my motherboard has a bug in the bios 
which autodetects and forces AGP to 8X, which in turn doesn't work for some 
reason. This is the same for both Fedora and CentOS, and I gave up on 3d 
acceleration on this hardware a long time ago. But this resolution problem is 
related to nv driver, present in CentOS while absent in Fedora. Therefore I 
believe it is unrelated to hardware issues.

Thanks for the help!

Best, :-)
Marko

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


Re: [CentOS] Problem with widescreen display

2008-11-03 Thread Marko Vojinovic
On Sunday 02 November 2008 09:16, MHR wrote:
> On Sat, Nov 1, 2008 at 3:08 PM, Marko Vojinovic <[EMAIL PROTECTED]> wrote:
> > I have a dual boot CentOS 5.2 / FC4 machine, and recently I have bought a
> > new widescreen tft monitor. I used to use a plain 4:3 crt, and after
> > plugging the 16:9 tft naturally X needed reconfiguring. This was easy in
> > FC4, and seemed as easy in CentOS, but with a wrong result.
>
> As some wise person suggested to me when I had this problem about
> three months ago, did you also set the screen resolution in
> System->Preferences?  IIRC, that solved the problem on my machine.

You are talking about Gnome menus? The screen resolution is already set there 
as it should be, but doesn't solve my problem. But thanks for the thought.

Best, :-)
Marko

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


Re: [CentOS] Regd: SeLinux Configuration

2008-11-03 Thread Balaji

Dear All,
 I have tried with your previous suggestion of adding "selinux=1 
enforcing=1" to the kernel line in my grub.conf

 file and my grub configuration details are below
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#  all kernel and initrd paths are relative to /, eg.
#  root (hd0,0)
#  kernel /boot/vmlinuz-version ro root=/dev/hda1
#  initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS-4 i386 (2.6.9-42.EL)
   root (hd0,0)
   kernel /boot/vmlinuz-2.6.9-42.EL ro root=LABEL=/ rhgb quiet 
selinux=1 enforcing=1

   initrd /boot/initrd-2.6.9-42.EL.img
and I have executed the "cat /proc/cmdline" and its output is
"auto BOOT_IMAGE=linux ro BOOT_FILE=/boot/vmlinuz-2.6.9-42.EL rhgb quiet 
root=LABEL=/"
I don't know i have added correctly "selinux=1 enforcing=1" to the 
kernel line in my grub.conf file.
If i am wrong please guide me where can i add the "selinux=1 
enforcing=1" to the kernel line in my grub.conf file


Regards
-S.Balaji



Did you try my previous suggestion of adding "selinux=1 enforcing=1" 
to the kernel line in your grub.conf?  While you're at it .. make sure 
that you're editing /boot/grub/grub.conf .. most people use 
/etc/grub.conf .. which is a symlink to /boot/grub/grub.conf .. if the 
symlink is broken and /etc/grub.conf is an independent file, you can 
edit it all day and not affect grub.  Same goes for 
/etc/selinux/config which is the real file, and /etc/sysconfig/selinux 
which is what most people edit.


Barry
___
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


THANKS - Re: [CentOS] [OT] List of all email users

2008-11-03 Thread Jussi Hirvi
Thanks Mouss and others. I have now more than enough to get on with.

mouss ([EMAIL PROTECTED]) kirjoitteli (2.11.2008 19:39):
> why comma? isn't LF better (one user per line)?

LF or comma, it doesn't matter much. I said comma, because I am going to
utilize the list to build one huge alias "my_email_customers". :-)

Regards,
Jussi

--
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. & fax +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
[EMAIL PROTECTED] * http://www.greenspot.fi

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