Re: [CentOS] Is lsb 3.2+ detrimental to CentOS 5.4?

2009-12-10 Thread Steve Hamblett
2009/12/10 MHR 

> I found out today that Google Chrome is now available for Linux.
> However, and this is a big but:
>
> $ sudo rpm -ivh google-chrome-beta_current_x86_64.rpm
> Password:
> warning: google-chrome-beta_current_x86_64.rpm: Header V3 DSA
> signature: NOKEY, key ID 7fac5991
> error: Failed dependencies:
>lsb >= 3.2 is needed by google-chrome-beta-4.0.249.30-33928.x86_64
>xdg-utils is needed by google-chrome-beta-4.0.249.30-33928.x86_64
> $ yum list | grep -i lsb
> redhat-lsb.i3863.1-12.3.EL.el5.centos
>  installed
> redhat-lsb.x86_64  3.1-12.3.EL.el5.centos
>  installed
>
> I'm not that familiar with lsb, but from what I can find, it does not
> seem like it would be a good idea to install a more recent version of
> lsb than the official release, or am I way off base here?
>
> I can get xdg-utils easily enough, but it doesn't seem relevant if I
> can't use the newer lsb.
>
> So, is it possible to use lsb 3.2+ on CentOS 5.4 without breaking
> anything?  Is there anything else I'd need to do, other than convert
> to Fedora (not going to happen)?
>
> Thanks.
>
> mhr
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

I tried this yesterday on my 32 bit 5.4 box, installed xdg, removed lsb and
installed the F10 lsb which is 3.2 or higher. This alone doesn't seem to
break anything as such so I then installed the google-chrome-beta rpm. This
installed OK now but when I ran chrome I got this 'libexpat.so.1 not found'
5.4 has version 0.5.0 of this. I stopped here, it looks as though CentOS is
just to far behind the edge for Chrome
-- 
Steve Hamblett
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Linux router with CentOS

2009-12-10 Thread Sorin Srbu
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of 
Alvaro Schneider Guevara
Sent: Thursday, December 10, 2009 1:40 AM
To: centos@centos.org
Subject: [CentOS] Linux router with CentOS

 

Hello everybody.

I'm wondering here if is it possible to setup a CentOS machine as a router for 
two Internet connections in a LAN. This _router_ would work as the gateway for 
the workstations using DHCPD. The purpose of this is to optimize the broadband 
"joining" both connections, and given the case, do not lose the Internet access.



You’d be better off with  dedicated firewall-distro like, Smoothwall et al.

 

Html should be off in mails.

-- 

/Sorin

 



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


[CentOS] ntp update version

2009-12-10 Thread Ron Yorston
I noticed that although I'd fetched the latest update to ntp from the
mirror it wasn't being installed.

It seems that the version numbers have got out of step.  According to
the changelog the update that was released in August should have had
the version number 4.2.0.a.20040617-8.el4_7.2, whereas in CentOS it's
actually 4.2.0.a.20040617-8.el4_8.2.

The changelog says the latest update is 4.2.0.a.20040617-8.el4_8.1,
which is what CentOS has, but that's a lower version than the August
update.

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


Re: [CentOS] XFS and LVM2 (possibly in the scenario of snapshots)

2009-12-10 Thread Timo Schoeler
[off list]

 Thanks for your eMail, Ross. So, reading all the stuff here I'm really 
 concerned about moving all our data to such a system. The reason we're 
 moving is mainly, but not only the longisch fsck UFS (FreeBSD) needs 
 after a crash. XFS seemed to me to fit perfectly as I never had issues 
 with fsck here. However, this discussion seems to change my mindset. So, 
 what would be an alternative (if possible not using hardware RAID 
 controllers, as already mentioned)? ext3 is not, here we have long fsck 
 runs, too. Even ext4 seems not too good in this area...
>>> I thought 3ware would have been good. Their cards have been praised for 
>>> quite some time...have things changed? What about Adaptec?
>> Well, for me the recommended LSI is okay as it's my favorite vendor, 
>> too. I used to abandon Adaptec quite a while ago and my optinion was 
>> confirmed when the OpenBSD vs. Adaptec discussion came up. However, the 
>> question on the hardware RAID's vendor is totally independent from the 
>> file system discussion.
> 
> Oh yeah it is. If you use hardware raid, you do not need barriers and 
> can afford to turn it off for better performance or use LVM for that matter.

Hi, this ist off list: Could you please explain me the LVM vs. barrier 
thing?

AFAIU, one should turn off write caches on HDs (in any case), and -- if 
there's a BBU backed up RAID controller -- use this cache, but turn off 
barriers. When does LVM come into play here? Thanks in advance! :)

>> I re-read XFS's FAQ on this issues, seems to me that we have to set up 
>> two machines in the lab, one purely software RAID driven, and one with a 
>> JBOD configured hardware RAID controller, and then benchmark and stress 
>> testing the setup.
> 
> JBOD? You plan to use software raid with that? Why?!

Mainly due to better manageability and monitoring. Honestly, all the 
proprietary tools are not the best.

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


Re: [CentOS] ntp update version

2009-12-10 Thread Akemi Yagi
On Thu, Dec 10, 2009 at 1:17 AM, Ron Yorston  wrote:
> I noticed that although I'd fetched the latest update to ntp from the
> mirror it wasn't being installed.
>
> It seems that the version numbers have got out of step.  According to
> the changelog the update that was released in August should have had
> the version number 4.2.0.a.20040617-8.el4_7.2, whereas in CentOS it's
> actually 4.2.0.a.20040617-8.el4_8.2.
>
> The changelog says the latest update is 4.2.0.a.20040617-8.el4_8.1,
> which is what CentOS has, but that's a lower version than the August
> update.

You may want to check upon this CentOS bug report:

http://bugs.centos.org/view.php?id=4060

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


Re: [CentOS] ntp update version

2009-12-10 Thread Ron Yorston
Akemi Yagi wrote:
>You may want to check upon this CentOS bug report:
>
>http://bugs.centos.org/view.php?id=4060

Which has been closed as 'no change required'.  Some change is required.

As things stand my systems are on version 4.2.0.a.20040617-8.el4_8.2,
the CentOS name for the August update.  There's an October update
called 4.2.0.a.20040617-8.el4_8.centos.2 which has the same changelog
as the August one, and which wasn't installed because it has a lower
version number.

Now there's a new update with version 4.2.0.a.20040617-8.el4_8.1 which
has important fixes in it, but which is also not being installed because
it has a lower number than the incorrectly versioned August update.

The CentoS version on the August update is wrong (it should have been
4.2.0.a.20040617-8.el4_7.2) and it's preventing the December update from
being installed.

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


Re: [CentOS] XFS and LVM2 (possibly in the scenario of snapshots)

2009-12-10 Thread Chan Chung Hang Christopher
Timo Schoeler wrote:
> [off list]
>
>   
> Thanks for your eMail, Ross. So, reading all the stuff here I'm really 
> concerned about moving all our data to such a system. The reason we're 
> moving is mainly, but not only the longisch fsck UFS (FreeBSD) needs 
> after a crash. XFS seemed to me to fit perfectly as I never had issues 
> with fsck here. However, this discussion seems to change my mindset. So, 
> what would be an alternative (if possible not using hardware RAID 
> controllers, as already mentioned)? ext3 is not, here we have long fsck 
> runs, too. Even ext4 seems not too good in this area...
>   
 I thought 3ware would have been good. Their cards have been praised for 
 quite some time...have things changed? What about Adaptec?
 
>>> Well, for me the recommended LSI is okay as it's my favorite vendor, 
>>> too. I used to abandon Adaptec quite a while ago and my optinion was 
>>> confirmed when the OpenBSD vs. Adaptec discussion came up. However, the 
>>> question on the hardware RAID's vendor is totally independent from the 
>>> file system discussion.
>>>   
>> Oh yeah it is. If you use hardware raid, you do not need barriers and 
>> can afford to turn it off for better performance or use LVM for that matter.
>> 
>
> Hi, this ist off list: Could you please explain me the LVM vs. barrier 
> thing?
>
> AFAIU, one should turn off write caches on HDs (in any case), and -- if 
> there's a BBU backed up RAID controller -- use this cache, but turn off 
> barriers. When does LVM come into play here? Thanks in advance! :)
>
>   

No, barriers are specifically to allow you to turn on write caches on 
HDs and not lose data. Before barriers, fsync/fsyncdata lied. They would 
return before data hit the platters. With barriers, fsync/fsyncdata will 
return only after data hit the platters.

However, the dm layer does not support barriers so you need to turn 
write caches off if you care about data with lvm and you have no bbu 
cache to use.

If you use a hardware raid card with bbu cache, you can use lvm without 
worrying and if not using lvm, you can (should in the case of XFS) turn 
off barriers.
>>> I re-read XFS's FAQ on this issues, seems to me that we have to set up 
>>> two machines in the lab, one purely software RAID driven, and one with a 
>>> JBOD configured hardware RAID controller, and then benchmark and stress 
>>> testing the setup.
>>>   
>> JBOD? You plan to use software raid with that? Why?!
>> 
>
> Mainly due to better manageability and monitoring. Honestly, all the 
> proprietary tools are not the best.
>   

3dm2 for 3ware was pretty decent whether http or cli...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] find latest version of rpms from a mirror

2009-12-10 Thread John Doe
From: john blair 
> I want to write a script to find the latest version of rpm of a given package 
> available from a mirror for eg: 
> http://mirror.centos.org/centos/5/os/x86_64/CentOS/
> Is there any existing script that does this? Or can someone give me a general 
> idea on how to go about this?

Example:

  URL='http://mirror.centos.org/centos/5/os/x86_64/CentOS/'
  PKG=...
  links -dump $URL | grep "$URL$PKG-[0-9]" | cut -f2 -d' '

Replace with 'cut -d'/' -f9' if you don't want the full URL...

JD


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


[CentOS] Quagga ECMP

2009-12-10 Thread Cristian Carstea

Hello,

does anybody know if quagga for CentOS 5.3 is compiled with 
-enable-multipath?
I want to implement ECMP over 2 ISP.

Thanks,
Cristi Carstea


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


[CentOS] Screen capture in Terminal

2009-12-10 Thread Robert Moskowitz
I don't see how to do it.

I had to telnet into a firewall and run a trace, and I had to stop it, 
copy and paste to gedit, then start again, etc.

I find it interesting, and sad, that there is no easy 'output to file' 
profile setting.


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


Re: [CentOS] Screen capture in Terminal

2009-12-10 Thread Rick Barnes
On 12/10/2009 08:05 AM, Robert Moskowitz wrote:
> I don't see how to do it.
>
> I had to telnet into a firewall and run a trace, and I had to stop it,
> copy and paste to gedit, then start again, etc.
>
> I find it interesting, and sad, that there is no easy 'output to file'
> profile setting.

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


Re: [CentOS] Screen capture in Terminal

2009-12-10 Thread John R. Dennison
On Thu, Dec 10, 2009 at 08:05:06AM -0500, Robert Moskowitz wrote:
> I don't see how to do it.
> 
> I had to telnet into a firewall and run a trace, and I had to stop it, 
> copy and paste to gedit, then start again, etc.
> 
> I find it interesting, and sad, that there is no easy 'output to file' 
> profile setting.

Would "script" take care of it for you?




John

-- 
I want a government small enough to fit inside the Constitution.

-- DownsizeDC.org co-founder Harry Browne (1933-2006)


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


Re: [CentOS] Quagga ECMP

2009-12-10 Thread Kwan Lowe
On Thu, Dec 10, 2009 at 7:42 AM, Cristian Carstea  wrote:
>
> Hello,
>
> does anybody know if quagga for CentOS 5.3 is compiled with
> -enable-multipath?
> I want to implement ECMP over 2 ISP.
>

You can look in the /boot/config-* files. Those are the configs that
it was built with.  In my 5.4 system:

[r...@xm-c32-001 boot]# grep -i multipath config-2.6.18-128.2.1.el5xen
CONFIG_IP_ROUTE_MULTIPATH=y
# CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set
CONFIG_MD_MULTIPATH=m
CONFIG_DM_MULTIPATH=m
CONFIG_DM_MULTIPATH_EMC=m
CONFIG_DM_MULTIPATH_RDAC=m
CONFIG_DM_MULTIPATH_HP=m
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Is lsb 3.2+ detrimental to CentOS 5.4?

2009-12-10 Thread R P Herrold
On Wed, 9 Dec 2009, MHR wrote:

> $ yum list | grep -i lsb
> redhat-lsb.i3863.1-12.3.EL.el5.centos  
> installed
> redhat-lsb.x86_64  3.1-12.3.EL.el5.centos  
> installed

when a non-CentOS packaging calls for a CentOS provided 
package by an unknown name, this is in no way a CentOS issue 
-- look to the packager.

Debian calls its developmental header containing packages by a 
shorter form -dev, rather than the -devel that Red Hat derived 
use.

The point releases in LSB are largely minor tweaks, and the 
major level should provide a stable API across its life.  We 
are just through about a year in the 4.0 level, and the 4.1 
has recently released, as I recall.  there is just ONE 
_application_ certified to that level, last time I looked, but 
the later spec is out there.

Has Google submitted or represented its binary packaging is 
compliant at the LSB 3.2 level?  Note that there is no SOURCE 
packaging LSB API, nor direct naming requirements on 
dependencies outside of the lsb- namespace in the LSB 
standard.

> I'm not that familiar with lsb, but from what I can find, it 
> does not seem like it would be a good idea to install a more 
> recent version of lsb than the official release, or am I way 
> off base here?

'I am not familiar' with something, but I can fix it with a 
hammer, I think.  hmmm.

Damage your system's integrity as you prefer.  But the better 
fix is to simply edit the foreign .spec file in question to 
delete the unknown form, and add in its place on that is known 
under CentOS.  No idea what the API Google wants is, but then, 
that is a foreign package.  Ask them.

No protocol does, and I have argued elsewhere, can cover all 
possible variances that any Linux distribution can come up 
with for build system dependencies, as package names flatten 
away per file SOnames, API changes, and much more.  The index 
is too coarse to express the richness of all the possible 
variants

Having served on the weekly LSB conference call, at the OLS 
sessions, and so forth for more years than I care to remember; 
knowing that a CentOS 4.2 platform is used by the LSB staffers 
for conformance testing; having run CentOS through the LSB 
checker regularly for years and filed 'trail-head' bugs to note 
issues [I saw that Stew at IBM replicated one I filed a year 
ago just yesterday in the LSB bug tracker], knowing that 
someone one (probably Mike Harris) probably already has the 
matter solved with patches, I would not tamper with the 
'redhat-lsb' level package CentOS ships.

I would instead find out if the 'versioned' at '3.2' lsb is 
really needed, or simple bad packaging.  Fedora is full of it 
and in denial about drilling such out [it also has the nice 
from Fedora's point of view knock on effect of lock-stepping 
casual packagers into following the 'latest and greatest' 
model of Fedora (and making Fedora unsuitable for long lived 
deployments, aiding sales of other products in fedora's 
owner's portfolio), and to a lesser degree products stabilized 
out of Fedora] -- no reason to think Google does not have 
unneeded versions present as well

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


Re: [CentOS] XFS and LVM2 (possibly in the scenario of snapshots)

2009-12-10 Thread Ross Walker
On Dec 10, 2009, at 4:28 AM, Timo Schoeler  
 wrote:

> [off list]
>
> Thanks for your eMail, Ross. So, reading all the stuff here I'm  
> really
> concerned about moving all our data to such a system. The reason  
> we're
> moving is mainly, but not only the longisch fsck UFS (FreeBSD)  
> needs
> after a crash. XFS seemed to me to fit perfectly as I never had  
> issues
> with fsck here. However, this discussion seems to change my  
> mindset. So,
> what would be an alternative (if possible not using hardware RAID
> controllers, as already mentioned)? ext3 is not, here we have  
> long fsck
> runs, too. Even ext4 seems not too good in this area...
 I thought 3ware would have been good. Their cards have been  
 praised for
 quite some time...have things changed? What about Adaptec?
>>> Well, for me the recommended LSI is okay as it's my favorite vendor,
>>> too. I used to abandon Adaptec quite a while ago and my optinion was
>>> confirmed when the OpenBSD vs. Adaptec discussion came up.  
>>> However, the
>>> question on the hardware RAID's vendor is totally independent from  
>>> the
>>> file system discussion.
>>
>> Oh yeah it is. If you use hardware raid, you do not need barriers and
>> can afford to turn it off for better performance or use LVM for  
>> that matter.
>
> Hi, this ist off list: Could you please explain me the LVM vs. barrier
> thing?
>
> AFAIU, one should turn off write caches on HDs (in any case), and --  
> if
> there's a BBU backed up RAID controller -- use this cache, but turn  
> off
> barriers. When does LVM come into play here? Thanks in advance! :)

LVM like md raid and drbd is a layered block device and
If you turn the wire caches off on the HDs then there is no problem,  
but HDs aren't designed to perform to spec with the write cache  
disabled they expect important data is written with FUA access (forced  
unit access), so performance will be terrible.




>>> I re-read XFS's FAQ on this issues, seems to me that we have to  
>>> set up
>>> two machines in the lab, one purely software RAID driven, and one  
>>> with a
>>> JBOD configured hardware RAID controller, and then benchmark and  
>>> stress
>>> testing the setup.
>>
>> JBOD? You plan to use software raid with that? Why?!
>
> Mainly due to better manageability and monitoring. Honestly, all the
> proprietary tools are not the best.
>
> Timo
> ___
> 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] XFS and LVM2 (possibly in the scenario of snapshots)

2009-12-10 Thread Mathieu Baudier
> LVM like md raid and drbd is a layered block device and
> If you turn the wire caches off on the HDs then there is no problem,
> but HDs aren't designed to perform to spec with the write cache
> disabled they expect important data is written with FUA access (forced
> unit access), so performance will be terrible.

I hope that I'm not going too much off topic here, but I'm getting
worried not to be sure to understand, especially when it has to do
with data safety:

Considering a stack of:
- ext3
- on top of LVM2
- on top of software RAID1
- on top of regular SATA disks (no hardware RAID)
is it "safe" to have the HD cache enabled?

(Note: ext3, not XFS, hence the possible off-topic...)

In other words, is this discussion about barriers, etc. only relevant to XFS?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Migrating to RAID

2009-12-10 Thread Matt
I have CentOS 4.x installed on a single 500GB SATA drive.  Drive is
about 10 percent used.  I would like to migrate to software RAID 5
without reinstalling the OS.  Was thinking 3 500GB drives.  Is that
possible or must I reinstall?

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


[CentOS] Virtualization Howto

2009-12-10 Thread Matt
I see this virtualization howto for Ubuntu

https://help.ubuntu.com/community/UEC/CDInstall

It goes into how to make your own cloud.  Is there a similiar howto
anywhere for CentOS 5.4 or anything?

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


Re: [CentOS] Virtualization Howto

2009-12-10 Thread Neil Aggarwal
Matt:

> It goes into how to make your own cloud.  Is there a similiar howto
> anywhere for CentOS 5.4 or anything?

Does the RHEL Virtualization Guide help?
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Virtualiz
ation_Guide/index.html

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
No overage charges, 7 day free trial, Google Checkout accepted 

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


Re: [CentOS] XFS and LVM2 (possibly in the scenario of snapshots)

2009-12-10 Thread Chan Chung Hang Christopher
Mathieu Baudier wrote:
>> LVM like md raid and drbd is a layered block device and
>> If you turn the wire caches off on the HDs then there is no problem,
>> but HDs aren't designed to perform to spec with the write cache
>> disabled they expect important data is written with FUA access (forced
>> unit access), so performance will be terrible.
>> 
>
> I hope that I'm not going too much off topic here, but I'm getting
> worried not to be sure to understand, especially when it has to do
> with data safety:
>
> Considering a stack of:
> - ext3
> - on top of LVM2
> - on top of software RAID1
> - on top of regular SATA disks (no hardware RAID)
> is it "safe" to have the HD cache enabled?
>
> (Note: ext3, not XFS, hence the possible off-topic...)
>   

Nothing is safe once device-mapper is involved.

> In other words, is this discussion about barriers, etc. only relevant to XFS?

No, it applies to all filesystems. Prior to barriers, fsync/fsyncdata 
lies. See the man page for fsync.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Migrating to RAID

2009-12-10 Thread James Bensley
You will have to reinstall because if you add two more 500GB drives to make
your set up into a three drive horse, you then need to format each drive
and synchronise them together creating the new logical RAID volume so no
data can be kept on said disks prior to the creation of the RAID.

HTH!

-- 
Regards,
James ;)

Joan Crawford
- "I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend."
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Linux router with CentOS

2009-12-10 Thread Victor Padro
On Thu, Dec 10, 2009 at 2:11 AM, Sorin Srbu  wrote:
> From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf
> Of Alvaro Schneider Guevara
> Sent: Thursday, December 10, 2009 1:40 AM
> To: centos@centos.org
> Subject: [CentOS] Linux router with CentOS
>
>
>
> Hello everybody.
>
> I'm wondering here if is it possible to setup a CentOS machine as a router
> for two Internet connections in a LAN. This _router_ would work as the
> gateway for the workstations using DHCPD. The purpose of this is to optimize
> the broadband "joining" both connections, and given the case, do not lose
> the Internet access.
>
> You’d be better off with  dedicated firewall-distro like, Smoothwall et al.
>
>
>
> Html should be off in mails.
>
> --
>
> /Sorin
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>

Another Vote for Pfse3nse, the best router7firewall distro around,
well just my opinion.

Cheers,

-- 
Linux User #452368
http://twitter.com/vpadro

"Everything that irritates us about others can lead us to an
understanding of ourselves"
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Linux router with CentOS

2009-12-10 Thread KJS
Victor Padro wrote:
> On Thu, Dec 10, 2009 at 2:11 AM, Sorin Srbu  wrote:
>   
>> From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf
>> Of Alvaro Schneider Guevara
>> Sent: Thursday, December 10, 2009 1:40 AM
>> To: centos@centos.org
>> Subject: [CentOS] Linux router with CentOS
>>
>>
>>
>> Hello everybody.
>>
>> I'm wondering here if is it possible to setup a CentOS machine as a router
>> for two Internet connections in a LAN. This _router_ would work as the
>> gateway for the workstations using DHCPD. The purpose of this is to optimize
>> the broadband "joining" both connections, and given the case, do not lose
>> the Internet access.
>>
>> You’d be better off with  dedicated firewall-distro like, Smoothwall et al.
>>
>>
>>
>> Html should be off in mails.
>>
>> --
>>
>> /Sorin
>>
>>
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>
>> 
>
> Another Vote for Pfse3nse, the best router7firewall distro around,
> well just my opinion.
>
> Cheers,
>
>   
PFSense or IPCop, IPCop is a little easier to configure IMO.


http://www.netzensolutions.com

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


Re: [CentOS] Linux router with CentOS

2009-12-10 Thread Alan McKay
On Thu, Dec 10, 2009 at 12:06 PM, Victor Padro  wrote:
> Another Vote for Pfse3nse, the best router7firewall distro around,
> well just my opinion.

One caveat is hardware support.   I assume because it is FreeBSD and not Linux

About a month or two ago I decided to go out and google for firewall
distros.  I made a short list which include pfSense, IPCop, and one
other.   My first choice was pfSense so I tried it first - and did not
get very far.

The PC I tried it on is about 5 years old, but had 1GB RAM, big enough
HD and so on.   I could not get pfSense to even install on it and
decided not even to put any effort into it so I moved right on to IP
Cop which installed without a catch.

The irony is that I have a just about identical piece of hardware
which runs my firewall right now.  It is running a fairly old FreeBSD
distro with no issues.  It seems it is the newer FreeBSD that has
issues, either that or the particulars of how pfSense slices and dices
FreeBSD.

Of course this is only 1 datapoint.  I'd at least recommend trying it
on your hardware.  If it works, then don't look back.



-- 
“Don't eat anything you've ever seen advertised on TV”
 - Michael Pollan, author of "In Defense of Food"
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Screen capture in Terminal

2009-12-10 Thread Mark Caudill
Rick Barnes wrote:
> On 12/10/2009 08:05 AM, Robert Moskowitz wrote:
>> I don't see how to do it.
>>
>> I had to telnet into a firewall and run a trace, and I had to stop it,
>> copy and paste to gedit, then start again, etc.
>>
>> I find it interesting, and sad, that there is no easy 'output to file'
>> profile setting.
> 
> man script

Hi all. I'm new on this list but I think this might help. If you start 
screen first, enable logging (default ^a H) then run telnet and your 
commands, it will create a screenlog.X (where X is the screen number) 
file. Mileage may vary depending on how the data is being output to the 
terminal but it's worth s try.

-- 
Never trust a computer you can't throw out a window.
   - Steve Wozniak
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CUPS designjet 500

2009-12-10 Thread Alejandro Rodriguez Luna
Hi everyone!!

Does someone have configured a plotter HP designjet 500?, 
what driver did you use?, 
or what did you do?

I'm using centos 5.4
--

Alejandro Rodriguez Luna

E-mail: el_alexl...@yahoo.com.mx

--


  Encuentra las mejores recetas en Yahoo! Cocina.   
http://mx.mujer.yahoo.com/cocina/___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Quagga ECMP

2009-12-10 Thread Cristian Carstea
yes, that's right, but i am asking here about Quagga, which is a routing 
software (OSPF, BGP etc.), not about kernel multipath, i mean if Quagga 
is compiled with Equal Cost MultiPath (ECMP), the "-enable-multipath" 
compile option. Can someone post here the spec file from which quagga 
rpm was built for CentOS? Thanks. On Thu, Dec 10, 2009 at 7:42 AM, 
Cristian Carstea  wrote:



>
> Hello,
>
> does anybody know if quagga for CentOS 5.3 is compiled with
> -enable-multipath?
> I want to implement ECMP over 2 ISP.
>
  


You can look in the /boot/config-* files. Those are the configs that
it was built with.  In my 5.4 system:

[r...@xm-c32-001 boot]# grep -i multipath config-2.6.18-128.2.1.el5xen
CONFIG_IP_ROUTE_MULTIPATH=y
# CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set
CONFIG_MD_MULTIPATH=m
CONFIG_DM_MULTIPATH=m
CONFIG_DM_MULTIPATH_EMC=m
CONFIG_DM_MULTIPATH_RDAC=m
CONFIG_DM_MULTIPATH_HP=m


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


Re: [CentOS] Migrating to RAID

2009-12-10 Thread Robert Heller
At Thu, 10 Dec 2009 09:39:25 -0600 CentOS mailing list  
wrote:

> 
> I have CentOS 4.x installed on a single 500GB SATA drive.  Drive is
> about 10 percent used.  I would like to migrate to software RAID 5
> without reinstalling the OS.  Was thinking 3 500GB drives.  Is that
> possible or must I reinstall?

If you can install 4 drives, eg you have 4 bays and 4 SATA connections,
yes, it is easy.  Just install the three new drives (to SATA port 2, 3,
and 4), create the RAID-5 array (actually you'll need one small RAID-1
array for /boot, so you'll create two RAID sets: a small RAID-1 for
/boot and the rest for the RAID-5) and copy everything over.  You'll
need to re-install grub (using grub-install) and then shutdown the
machine and move the drive connectors around so that the new drives are
1, 2, and 3, and the old drive is 4 (or remove it completely), and
start the machine up.  You can then add the original drive as a hot
spare disk (or not).

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

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/
 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] An error message I don't recognize

2009-12-10 Thread Bob McConnell
I have recently been told I will have to maintain some CentOS servers at 
work. Since I have only been using Slackware for the last 16 years, I 
decided to install CentOS on one of my servers at home to get an idea of 
the differences. I installed CentOS 5.4 from CD with no problems, did a 
yum update, set up a couple of samba shares and started to copy over 
some files from one of my other servers.

Everything looks ok, but I keep seeing this message on the active 
console. I have no idea where it comes from nor what it means.

type=1400 audit(1260446462.444:9): avc:  denied  { getattr } for  pid=2200
comm="smbd" path="/proc/sys/fs/binfmt_misc" dev=binfmt_misc ino=4348
scontext=root:system_r:smbd_t:s0
tcontext=system_u:object_r:binfmt_misc_fs_t:s0 tclass=dir

What is it, what is triggering it and how do I fix it?

Thanks,

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


Re: [CentOS] An error message I don't recognize

2009-12-10 Thread Benjamin Franz
Bob McConnell wrote:
> [...]
> Everything looks ok, but I keep seeing this message on the active 
> console. I have no idea where it comes from nor what it means.
>
> type=1400 audit(1260446462.444:9): avc:  denied  { getattr } for  pid=2200
> comm="smbd" path="/proc/sys/fs/binfmt_misc" dev=binfmt_misc ino=4348
> scontext=root:system_r:smbd_t:s0
> tcontext=system_u:object_r:binfmt_misc_fs_t:s0 tclass=dir
>
>   

It's selinux.

See 
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Deployment_Guide-en-US/ch-selinux.html

-- 
Benjamin Franz


-- 
Benjamin Franz

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


Re: [CentOS] An error message I don't recognize

2009-12-10 Thread m . roth
> I have recently been told I will have to maintain some CentOS servers at
> work. Since I have only been using Slackware for the last 16 years, I
> decided to install CentOS on one of my servers at home to get an idea of
> the differences. I installed CentOS 5.4 from CD with no problems, did a
> yum update, set up a couple of samba shares and started to copy over
> some files from one of my other servers.
>
> Everything looks ok, but I keep seeing this message on the active
> console. I have no idea where it comes from nor what it means.
>
> type=1400 audit(1260446462.444:9): avc:  denied  { getattr } for  pid=2200
> comm="smbd" path="/proc/sys/fs/binfmt_misc" dev=binfmt_misc ino=4348
> scontext=root:system_r:smbd_t:s0
> tcontext=system_u:object_r:binfmt_misc_fs_t:s0 tclass=dir
>
> What is it, what is triggering it and how do I fix it?
>
selinux.

For your machine at home, you may want to just turn it off; if you really
want to see what might be going on at work, set it to permissive, which
will let it all happen, but gripe.

setenforce 0
turns it off.
Edit /etc/selinux/config to fix it over reboots.

Also look at /var/log/audit/audit.log. It will get the error, and tell you
to run sealert to see what the error's complaining about.

  mark

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


Re: [CentOS] Screen capture in Terminal

2009-12-10 Thread Les Mikesell
Rick Barnes wrote:
> On 12/10/2009 08:05 AM, Robert Moskowitz wrote:
>> I don't see how to do it.
>>
>> I had to telnet into a firewall and run a trace, and I had to stop it,
>> copy and paste to gedit, then start again, etc.
>>
>> I find it interesting, and sad, that there is no easy 'output to file'
>> profile setting.
> 
> man script

That saves the whole session and is sometimes useful.  But, usually with 
command 
line programs you would just redirect the individual command's output to a file 
with '> filename' on the command line, or pipe through tee '|tee filename' if 
you want to see it at the same time.

Also, the terminal windows have a fairly big scroll-back buffer which you can 
increase with edit/profile so if you do decide to copy something after it 
happens you don't have to stop while it is still showing.

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


Re: [CentOS] Migrating to RAID

2009-12-10 Thread Alan McKay
Google "say no to RAID 5"

http://baarf.com/

http://www.tomshardware.com/news/RAID-5-Doomed-2009,6525.html





-- 
“Don't eat anything you've ever seen advertised on TV”
 - Michael Pollan, author of "In Defense of Food"
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Migrating to RAID

2009-12-10 Thread Alan Hodgson
On Thursday 10 December 2009, Matt  wrote:
> I have CentOS 4.x installed on a single 500GB SATA drive.  Drive is
> about 10 percent used.  I would like to migrate to software RAID 5
> without reinstalling the OS.  Was thinking 3 500GB drives.  Is that
> possible or must I reinstall?
>

In theory you can create a 3-drive RAID-5 with a "missing drive", rsync your 
filesystems over, and then repartition and force the existing drive to 
rebuild in. 

You can't boot off a RAID-5, so you'll need to put /boot on a separate 
partition, also preferably raid-1'd on at least 2 of the drives.

It's not terribly hard but it's possibly to mess up and nuke your good drive 
before you're ready, so you should have a full backup on yet another drive 
anyway, and if you have that you might as well just build up a new system 
on the 3 drives and then restore your old filesystems over it.

-- 
"No animals were harmed in the recording of this episode. We tried but that 
damn monkey was just too fast."
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Quagga ECMP

2009-12-10 Thread Gavin Carr
On Thu, Dec 10, 2009 at 07:23:06PM +0200, Cristian Carstea wrote:
> yes, that's right, but i am asking here about Quagga, which is a
> routing software (OSPF, BGP etc.), not about kernel multipath, i
> mean if Quagga is compiled with Equal Cost MultiPath (ECMP), the
> "-enable-multipath" compile option. Can someone post here the spec
> file from which quagga rpm was built for CentOS? Thanks. On Thu, Dec
> 10, 2009 at 7:42 AM, Cristian Carstea  wrote:
> 
> >>
> >> Hello,
> >>
> >> does anybody know if quagga for CentOS 5.3 is compiled with
> >> -enable-multipath?
> >> I want to implement ECMP over 2 ISP.

Looks like it. Spec file configure on my i386 box is:

+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu 
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--sysconfdir=/etc/quagga --datadir=/usr/share --includedir=/usr/include 
--libdir=/usr/lib/quagga --libexecdir=/usr/libexec/quagga 
--localstatedir=/var/run/quagga --sharedstatedir=/usr/com 
--mandir=/usr/share/man --infodir=/usr/share/info --enable-ipv6 
--enable-multipath=64 --enable-nssa --enable-opaque-lsa --enable-ospf-te 
--enable-vtysh --enable-ospfclient=yes --enable-ospfapi=yes --with-libpam 
--enable-user=quagga --enable-group=quagga --enable-vty-group=quaggavt 
--enable-rtadv --enable-netlink

which matches the configure options at the top of the spec file:

# configure options
%define with_snmp   0
%define with_vtysh  1
%define with_ospf_te1
%define with_nssa   1
%define with_opaque_lsa 1
%define with_tcp_zebra  0
%define with_pam1
%define with_ipv6   1
%define with_ospfclient 1
%define with_ospfapi1
%define with_rtadv  1
%define with_multipath  64
%define quagga_uid  92
%define quagga_gid  92
%define quagga_user quagga
%define vty_group   quaggavt
%define vty_gid 85

Cheers,
Gavin

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


[CentOS] poweredge 1950 hangs at starting udev

2009-12-10 Thread Ryan Pugatch
Hi all,

I have a PowerEdge 1950 that was acting weird.  Network connectivity was 
only performing at a quarter of what was expected (if that).  Even if I 
scp'd something to localhost it would perform poorly.  Rather than fight 
with it, I just decided to reload it.  It was running 5.3, and it is now 
running 5.4.  However, when I go to boot it gets stuck at starting udev. 
  If I let it sit long enough it will then give me errors with something 
along the lines of:

Dazed and confused, but trying to continue
Uhhuh. NMI received for unknown reason 00
Do you have a strange power saving mode enabled?

Wondering if anyone has an idea..





Thanks,

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


Re: [CentOS] An error message I don't recognize

2009-12-10 Thread Bob McConnell
Benjamin Franz wrote:
> Bob McConnell wrote:
>> [...]
>> Everything looks ok, but I keep seeing this message on the active 
>> console. I have no idea where it comes from nor what it means.
>>
>> type=1400 audit(1260446462.444:9): avc:  denied  { getattr } for  pid=2200
>> comm="smbd" path="/proc/sys/fs/binfmt_misc" dev=binfmt_misc ino=4348
>> scontext=root:system_r:smbd_t:s0
>> tcontext=system_u:object_r:binfmt_misc_fs_t:s0 tclass=dir
>>
>>   
> 
> It's selinux.
> 

Thank you for that link. Looks like I have some reading to do. I do know 
they have it enabled on the production servers I will be duplicating, so 
I'll have to figure out whether we need it on the development and test 
servers or not.

I also have a problem with syslogd. I added '-r' to SYSLOGD_OPTIONS in 
/etc/rc.d/init.d/syslog, but after a restart it still won't accept 
network traffic, and that flag doesn't show up in the command line in 
the 'ps ax' dump. What do I have to do to enable traffic into syslogd 
from my firewall and other servers?

This machine will be replacing an older Slackware 7 server once I get 
the wrinkles worked out.

Thank you,

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


Re: [CentOS] poweredge 1950 hangs at starting udev

2009-12-10 Thread nate
Ryan Pugatch wrote:

> Wondering if anyone has an idea..

Run hardware diagnostics?

Check power management settings in the bios?

nate

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


[CentOS] ntop from rpmforge

2009-12-10 Thread Ausmus, Matt
I don't know why I haven't signed up for this list before since we use
CentOS all over the place.  The list is very useful and it is good for
me to participate and "give back" to the community.

 

Anywho, I wanted to post this response to a thread that was created back
in November 2008 about the ntop daemon failing to start.  I'm currently
setting up ntop as a NetFlow & SFlow collector and came across the
issue.  A quick refresher, the init script for ntop has an issue where
it can't parse the ntop.conf file correctly if switches are entered
before the "@/etc/ntop.conf".  The suggested work around was to move the
"-d -L" switches from in front of the "@/etc/ntop.conf" and put them
behind it.  This is definitely the fix.  There is a caveat to that and I
haven't found anyone that has mentioned it so I thought I would.
According to the documentation, if you add the switches after the
"@/etc/ntop.conf" those will override the configurations in the
ntop.conf file.  While this isn't an issue with the "-d" option, if you
decide to use a custom syslog level and add it to the conf file, the
"-L" switch after the conf file will override your custom log facility.
In my init file I left the "-d" but removed the "-L" expecting me to put
my own syslog entry in the conf file.

 



Matt Ausmus

Network Administrator

Chapman University

635 West Palm Street

Orange, CA  92868

(714)628-2738

maus...@chapman.edu  

 

"Man will occasionally stumble over the truth, but most of the time he
will pick himself up and continue on."

- Churchill's Commentary on Man

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


Re: [CentOS] XFS and LVM2 (possibly in the scenario of snapshots)

2009-12-10 Thread Rob Kampen

Chan Chung Hang Christopher wrote:

Mathieu Baudier wrote:
  

LVM like md raid and drbd is a layered block device and
If you turn the wire caches off on the HDs then there is no problem,
but HDs aren't designed to perform to spec with the write cache
disabled they expect important data is written with FUA access (forced
unit access), so performance will be terrible.

  

I hope that I'm not going too much off topic here, but I'm getting
worried not to be sure to understand, especially when it has to do
with data safety:

Considering a stack of:
- ext3
- on top of LVM2
- on top of software RAID1
- on top of regular SATA disks (no hardware RAID)
is it "safe" to have the HD cache enabled?

(Note: ext3, not XFS, hence the possible off-topic...)
  



Nothing is safe once device-mapper is involved.

  

In other words, is this discussion about barriers, etc. only relevant to XFS?



No, it applies to all filesystems. Prior to barriers, fsync/fsyncdata 
lies. See the man page for fsync.
  
No mention of barriers in the man page, I'm also getting confused. is 
device mapper used for software raid - i.e. /dev/mdX?
If so what are the implications of barriers and where are they turned on 
/ off?
Forgive me for potential off topic, but I too run xfs on lvm which uses 
mapper...risky??

___
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] Migrating to RAID

2009-12-10 Thread nate
Alan McKay wrote:
> Google "say no to RAID 5"
>
> http://baarf.com/
>
> http://www.tomshardware.com/news/RAID-5-Doomed-2009,6525.html
>

Say goodbye to whole-disk based RAID solutions and hello to
next generation sub-disk RAID solutions, dramatically
extending the real world lifetime of RAID 5(and RAID 6 which
will become equally useless as RAID 5 is when drives get
big enough).

http://www.xiotech.com/Products-and-Services_ISE.aspx
http://www.3par.com/products/inspire_architecture.html#fgv
http://www.compellent.com/Products/Software/Virtualization.aspx

(maybe more that I'm not aware of those are off the top of my
head)

http://www.techopsguys.com/2009/11/24/81000-raid-arrays/

nate


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


Re: [CentOS] An error message I don't recognize

2009-12-10 Thread Tony Molloy
On Thursday 10 December 2009 17:28:45 Bob McConnell wrote:
> I have recently been told I will have to maintain some CentOS servers at
> work. Since I have only been using Slackware for the last 16 years, I
> decided to install CentOS on one of my servers at home to get an idea of
> the differences. I installed CentOS 5.4 from CD with no problems, did a
> yum update, set up a couple of samba shares and started to copy over
> some files from one of my other servers.
>
> Everything looks ok, but I keep seeing this message on the active
> console. I have no idea where it comes from nor what it means.
>
> type=1400 audit(1260446462.444:9): avc:  denied  { getattr } for  pid=2200
> comm="smbd" path="/proc/sys/fs/binfmt_misc" dev=binfmt_misc ino=4348
> scontext=root:system_r:smbd_t:s0
> tcontext=system_u:object_r:binfmt_misc_fs_t:s0 tclass=dir
>
> What is it, what is triggering it and how do I fix it?
>

It's a selinux denial. Selinux is permissive/enforcing on the system.

# sestatus

will tell you which.

It's got something to do with samba "comm="smbd""
trying to access the file "path="/proc/sys/fs/binfmt_misc"" Don't know why it 
would want to do that.

Try this

# sealert -b

This will dispaly all the AVC's graphically. Look for one from smbd.  This 
will give you the full AVC and possibly suggest a way to fix it.

Tony



> Thanks,
>
> Bob McConnell
> N2SPP
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos



-- 

Dept. of Comp. Sci.
University of Limerick.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] An error message I don't recognize

2009-12-10 Thread Benjamin Franz
Bob McConnell wrote:
> I also have a problem with syslogd. I added '-r' to SYSLOGD_OPTIONS in 
> /etc/rc.d/init.d/syslog, but after a restart it still won't accept 
> network traffic, and that flag doesn't show up in the command line in 
> the 'ps ax' dump. What do I have to do to enable traffic into syslogd 
> from my firewall and other servers?

You need to edit /etc/sysconfig/syslog

That is a general pattern for CentOS5 - look for options to be set in a 
file in the /etc/sysconfig directory.

-- 
Benjamin Franz

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


Re: [CentOS] Unable to share directory via Samba?

2009-12-10 Thread James Bensley
Thanks for all the input everyone,

Basically I trashed the smb.conf and the folder I wanted to share, restarted
the machine, re-wrote the smb.conf  (again) and re-made the directory and
set permissions etc, restarted the machine and all is well!

Thanks all for your input it has helped me write an improved smb.conf on my
original attempt!

-- 
Regards,
James ;)

Charles de 
Gaulle
- "The better I get to know men, the more I find myself loving dogs."
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ntop from rpmforge

2009-12-10 Thread Steve Huff


On Dec 10, 2009, at 1:39 PM, Ausmus, Matt wrote:

Anywho, I wanted to post this response to a thread that was created  
back in November 2008 about the ntop daemon failing to start.  I’m  
currently setting up ntop as a NetFlow & SFlow collector and came  
across the issue.  A quick refresher, the init script for ntop has  
an issue where it can’t parse the ntop.conf file correctly if  
switches are entered before the “@/etc/ntop.conf”.  The suggested  
work around was to move the “-d –L” switches from in front of the “@/ 
etc/ntop.conf” and put them behind it.  This is definitely the fix.   
There is a caveat to that and I haven’t found anyone that has  
mentioned it so I thought I would.  According to the documentation,  
if you add the switches after the “@/etc/ntop.conf” those will  
override the configurations in the ntop.conf file.  While this isn’t  
an issue with the “-d” option, if you decide to use a custom syslog  
level and add it to the conf file, the “-L” switch after the conf  
file will override your custom log facility.  In my init file I left  
the “-d” but removed the “-L” expecting me to put my own syslog  
entry in the conf file.



thanks for the report!  the appropriate place to report such issues is  
the RPMforge users' list, .


i've committed a fix; once the package is rebuilt, it should appear in  
the repository.


-steve

--
If this were played upon a stage now, I could condemn it as an  
improbable fiction. - Fabian, Twelfth Night, III,v

http://five.sentenc.es



PGP.sig
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Morten Torstensen
On 05.12.2009 18:15, Miguel Medalha wrote:
>> And, as of CentOS 5.4, xfs is now enabled in the kernel, so
>> no need for any external kernel module. But yes, this is available for
>> x86_64 only
>
> ... a decision that many people have trouble at understanding!

XFS is not stable on 32-bit systems. You should not use it there. You 
need a 64-bit kernel.

Default for servers should be 64-bit now anyway. Not many reasons left 
for a 32-bit system, and more and more 3. party applications have less 
and less support for 32-bit platforms in general.

-- 

//Morten Torstensen
//Email: mor...@mortent.org
//IM: morten.torsten...@gmail.com

I can't listen to that much Wagner. I start getting the urge to conquer 
Poland.
-- Woody Allen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Morten Torstensen
On 05.12.2009 22:04, John R Pierce wrote:
> that same OS/2 JFS was backported to AIX as JFS2, I believe.

When JFS was implemented on OS/2 it was based on JFS on AIX. After that, 
JFS for Linux and JFS2 was based on the same code. Not sure I would say 
"backported", but there you go

There are many differences between JFS and JFS2 on AIX and the latter is 
better in many ways... more tuning and support for shrinking.

-- 

//Morten Torstensen
//Email: mor...@mortent.org
//IM: morten.torsten...@gmail.com

I can't listen to that much Wagner. I start getting the urge to conquer 
Poland.
-- Woody Allen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Morten Torstensen
On 08.12.2009 13:34, Chan Chung Hang Christopher wrote:
>> Speaking for me (on Linux systems) on top of LVM on top of md. On IRIX
>> as it was intended.
>>
> That is a disaster combination for XFS even now. You mentioned some
> pretty hefty hardware in your other post...

If XFS doesn't play well with LVM, how can it even be an option? I 
couldn't live without LVM...

-- 

//Morten Torstensen
//Email: mor...@mortent.org
//IM: morten.torsten...@gmail.com

I can't listen to that much Wagner. I start getting the urge to conquer 
Poland.
-- Woody Allen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Miguel Medalha

> XFS is not stable on 32-bit systems. You should not use it there. You 
> need a 64-bit kernel.
>
> Default for servers should be 64-bit now anyway. Not many reasons left 
> for a 32-bit system, and more and more 3. party applications have less 
> and less support for 32-bit platforms in general.
>   

That is for you rich people :-) Not everyone can afford the latest and 
greatest server hardware. There are tons of older servers out there. I 
still manage some servers with only 2GB of RAM and some of their 
motherboards accept a *maximum* of 4GB. Those precious few GB are better 
used with a 32bit OS, don't you agree?

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


Re: [CentOS] Screen capture in Terminal

2009-12-10 Thread Robert Moskowitz
Mark Caudill wrote:
> Rick Barnes wrote:
>   
>> On 12/10/2009 08:05 AM, Robert Moskowitz wrote:
>> 
>>> I don't see how to do it.
>>>
>>> I had to telnet into a firewall and run a trace, and I had to stop it,
>>> copy and paste to gedit, then start again, etc.
>>>
>>> I find it interesting, and sad, that there is no easy 'output to file'
>>> profile setting.
>>>   
>> man script
>> 
>
> Hi all. I'm new on this list but I think this might help. If you start 
> screen first, enable logging (default ^a H) then run telnet and your 
> commands, 

This sounds like what I am looking for, where is it documented?

> it will create a screenlog.X (where X is the screen number) 
> file. Mileage may vary depending on how the data is being output to the 
> terminal but it's worth s try.
>
>   
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Screen capture in Terminal

2009-12-10 Thread Robert Moskowitz
Les Mikesell wrote:
> Rick Barnes wrote:
>   
>> On 12/10/2009 08:05 AM, Robert Moskowitz wrote:
>> 
>>> I don't see how to do it.
>>>
>>> I had to telnet into a firewall and run a trace, and I had to stop it,
>>> copy and paste to gedit, then start again, etc.
>>>
>>> I find it interesting, and sad, that there is no easy 'output to file'
>>> profile setting.
>>>   
>> man script
>> 
>
> That saves the whole session and is sometimes useful.  But, usually with 
> command 
> line programs you would just redirect the individual command's output to a 
> file 
> with '> filename' on the command line, or pipe through tee '|tee filename' if 
> you want to see it at the same time.
>   

I use that a lot, but it doesn't work for telnet.

> Also, the terminal windows have a fairly big scroll-back buffer which you can 
> increase with edit/profile so if you do decide to copy something after it 
> happens you don't have to stop while it is still showing.

This last case it was ~4000 lines worth, the default is 500. And I did 
not know it was that much until I started dealing with the debug dump.


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


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Les Mikesell
Miguel Medalha wrote:
>> XFS is not stable on 32-bit systems. You should not use it there. You 
>> need a 64-bit kernel.
>>
>> Default for servers should be 64-bit now anyway. Not many reasons left 
>> for a 32-bit system, and more and more 3. party applications have less 
>> and less support for 32-bit platforms in general.
>>   
> 
> That is for you rich people :-) Not everyone can afford the latest and 
> greatest server hardware. There are tons of older servers out there. I 
> still manage some servers with only 2GB of RAM and some of their 
> motherboards accept a *maximum* of 4GB. Those precious few GB are better 
> used with a 32bit OS, don't you agree?

If they do what you want without making you wait, why even consider changing 
the 
filesystem that has been working for years on these machines?

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


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Miguel Medalha

> If they do what you want without making you wait, why even consider changing 
> the 
> filesystem that has been working for years on these machines?
>   

Adding new, bigger disks and new filesystems? Wanting these to be the 
fastest that is reasonably possible?
As for the system that arose the question (again) for me, I've decided 
to make it ext3, wait for a while as ext4 matures, and convert it later.
This interesting possibility made me decide for ext3 (again).
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Screen capture in Terminal

2009-12-10 Thread Mark Caudill
Robert Moskowitz wrote:
> Mark Caudill wrote:
>> Rick Barnes wrote:
>>   
>>> On 12/10/2009 08:05 AM, Robert Moskowitz wrote:
>>> 
 I don't see how to do it.

 I had to telnet into a firewall and run a trace, and I had to stop it,
 copy and paste to gedit, then start again, etc.

 I find it interesting, and sad, that there is no easy 'output to file'
 profile setting.
   
>>> man script
>>> 
>> Hi all. I'm new on this list but I think this might help. If you start 
>> screen first, enable logging (default ^a H) then run telnet and your 
>> commands, 
> 
> This sounds like what I am looking for, where is it documented?

Mainly in man screen. Just do this though (this will work if you have a 
stock install and no custom .screenrc):
1) yum install screen   # Install screen
2) screen   # Start screen
3) Press Ctrl-a then H  # This starts logging the current window (should 
be 0)
4) telnet firewall  # Log in to your firewall
5) Ctrl-a H again   # Run this once you're done on the firewall to 
close the log
6) exit # Exits screen
7) less screenlog.0 # View your screenlog.

-- 
Never trust a computer you can't throw out a window.
   - Steve Wozniak
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] .htaccess and ?

2009-12-10 Thread centos
Hi,

I'm trying to write .htaccess Rewrite rules and it doesn't seem to
work for me:

Match the string between the domain and the question mark: ?

http://www.abc.com/blog:long-name-of-page?action=diff and I want to
redirect it to: http://www.abc.com/blog:long-name-of-page

Any suggestion?

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


Re: [CentOS] .htaccess and ?

2009-12-10 Thread James Bensley
You might have to enable re-writes in you Apache conf? Or did I imagine that???

--
Regards,
James ;)

Stephen Leacock  - "I detest life-insurance agents: they always argue
that I shall some day die, which is not so."
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Les Mikesell
Miguel Medalha wrote:
>> If they do what you want without making you wait, why even consider changing 
>> the 
>> filesystem that has been working for years on these machines?
>>   
> 
> Adding new, bigger disks and new filesystems? Wanting these to be the 
> fastest that is reasonably possible?
> As for the system that arose the question (again) for me, I've decided 
> to make it ext3, wait for a while as ext4 matures, and convert it later.
> This interesting possibility made me decide for ext3 (again).

The only thing that can make filesystems fast is buffering in RAM so you'd 
probably want to match up that increase in disk space with lots more RAM, 
especially if you use a filesystem that needs it for the improvements it claims.

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


[CentOS] raid10, centos 4.x

2009-12-10 Thread John R Pierce
I just created a 4 drive mdadm --level=raid10 on a centos 4.8-ish system 
here, and shortly thereafter remembreed I hadn't updated it in a while, 
so i ran yum update...

while installing/updating stuff, got these errors:

  Installing: kernel   ### 
[14/69]
raid level raid10 (in /proc/mdstat) not recognized
...
  Installing: kernel-smp   ### 
[19/69]
raid level raid10 (in /proc/mdstat) not recognized


is this a problem?   the raid10 'seems' to work





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


Re: [CentOS] Migrating to RAID

2009-12-10 Thread Thomas Harold
On 12/10/2009 10:39 AM, Matt wrote:
> I have CentOS 4.x installed on a single 500GB SATA drive.  Drive is
> about 10 percent used.  I would like to migrate to software RAID 5
> without reinstalling the OS.  Was thinking 3 500GB drives.  Is that
> possible or must I reinstall?

Moving to RAID-1 is going to be fairly easy.  Moving to RAID-5 or RAID-6 
will be a good bit trickier.

You're going to want a good bare-metal backup (maybe Mondo Rescue 
http://www.mondorescue.org/) before you get started.

Then your basic process is going to be:

- make sure that mdadm is loading
- partition the new 500GB disks similar to the old disk
- build mdadm raid1 arrays on the new 500GB disk (with 1 drive missing)
- copy your files over (cp -a)
- make sure grub is on the new disk
- change your fstab on the new disk to mount the arrays (/dev/mdX) 
instead of the partitions (/dev/sdaX)
- remove the old disk and see if you can boot up on the new one

I'm sure I'm forgetting something, just remember that you'll want to 
make lots and lots of backups (on a 3rd and 4th disk).  And be ready to 
rebuild or restore from the bare-metal backup if you screw up.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Migrating to RAID

2009-12-10 Thread Matt
>> I have CentOS 4.x installed on a single 500GB SATA drive.  Drive is
>> about 10 percent used.  I would like to migrate to software RAID 5
>> without reinstalling the OS.  Was thinking 3 500GB drives.  Is that
>> possible or must I reinstall?
>
> Moving to RAID-1 is going to be fairly easy.  Moving to RAID-5 or RAID-6
> will be a good bit trickier.

The more I hear I am thinking moving to RAID-1 would be fine.  Is
there a basic howto somewhere for that?

Thanks.

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


Re: [CentOS] An error message I don't recognize

2009-12-10 Thread Bob McConnell
Benjamin Franz wrote:
> Bob McConnell wrote:
>> I also have a problem with syslogd. I added '-r' to SYSLOGD_OPTIONS in 
>> /etc/rc.d/init.d/syslog, but after a restart it still won't accept 
>> network traffic, and that flag doesn't show up in the command line in 
>> the 'ps ax' dump. What do I have to do to enable traffic into syslogd 
>> from my firewall and other servers?
> 
> You need to edit /etc/sysconfig/syslog
> 
> That is a general pattern for CentOS5 - look for options to be set in a 
> file in the /etc/sysconfig directory.
> 

Thank you, I am now getting log records over the network.

Bob McConnell
N2SPP

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


Re: [CentOS] Migrating to RAID

2009-12-10 Thread Les Mikesell
Matt wrote:
>>> I have CentOS 4.x installed on a single 500GB SATA drive.  Drive is
>>> about 10 percent used.  I would like to migrate to software RAID 5
>>> without reinstalling the OS.  Was thinking 3 500GB drives.  Is that
>>> possible or must I reinstall?
>> Moving to RAID-1 is going to be fairly easy.  Moving to RAID-5 or RAID-6
>> will be a good bit trickier.
> 
> The more I hear I am thinking moving to RAID-1 would be fine.  Is
> there a basic howto somewhere for that?

I've seen a howto about converting an existing disk, but I'd do it by creating 
matching RAID1 partitions with one of the devices 'missing', then copying the 
existing data over, installing grub on the new disk, then swapping drives.  
Once 
you are sure the new copy is good you can add the old partitions to the raid 
devices and let them sync up.  If your grub install turns out wrong you can 
always boot the install disk in rescue mode to fix it.

On a second thought, I'd probably install Centos 5.x on the new disk, then copy 
the old stuff back.  It's pretty late in the cycle to spend much time fixing a 
4.x system.

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




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


Re: [CentOS] Migrating to RAID

2009-12-10 Thread Matt
 I have CentOS 4.x installed on a single 500GB SATA drive.  Drive is
 about 10 percent used.  I would like to migrate to software RAID 5
 without reinstalling the OS.  Was thinking 3 500GB drives.  Is that
 possible or must I reinstall?
>>> Moving to RAID-1 is going to be fairly easy.  Moving to RAID-5 or RAID-6
>>> will be a good bit trickier.
>>
>> The more I hear I am thinking moving to RAID-1 would be fine.  Is
>> there a basic howto somewhere for that?
>
> I've seen a howto about converting an existing disk, but I'd do it by creating
> matching RAID1 partitions with one of the devices 'missing', then copying the
> existing data over, installing grub on the new disk, then swapping drives.  
> Once
> you are sure the new copy is good you can add the old partitions to the raid
> devices and let them sync up.  If your grub install turns out wrong you can
> always boot the install disk in rescue mode to fix it.
>
> On a second thought, I'd probably install Centos 5.x on the new disk, then 
> copy
> the old stuff back.  It's pretty late in the cycle to spend much time fixing a
> 4.x system.

I am thinking that way too.  Even though everything is running
perfectly fine on 32bit 4.x right now moving too 64bit 5.x would be
much better.  Was thinking upgrading to RAID1 would let me wait and do
that at my leisure though.  Reinstalling and moving all this too 5.x
is no small task though.  Yuk.

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


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Christopher Chan
Morten Torstensen wrote:
> On 08.12.2009 13:34, Chan Chung Hang Christopher wrote:
>>> Speaking for me (on Linux systems) on top of LVM on top of md. On IRIX
>>> as it was intended.
>>>
>> That is a disaster combination for XFS even now. You mentioned some
>> pretty hefty hardware in your other post...
> 
> If XFS doesn't play well with LVM, how can it even be an option? I 
> couldn't live without LVM...
> 

I meant it in the sense of data guarantee. XFS has a major history of 
losing data unless used with hardware raid cards that have a bbu cache. 
That changed when XFS got barrier support.

However, anything on LVM be it ext3, ext4 or XFS that has barrier 
support will not be able to use barriers because device-mapper does not 
support barriers and therefore, if you use LVM, it better be on a 
hardware raid array where the card has bbu cache.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] XFS and LVM2 (possibly in the scenario of snapshots)

2009-12-10 Thread Christopher Chan

> No mention of barriers in the man page, I'm also getting confused. is 
> device mapper used for software raid - i.e. /dev/mdX?

Nope. Software raid is the md layer. Nothing to do with dm. Two separate 
layers although they share a bit of stuff.

> If so what are the implications of barriers and where are they turned on 
> / off?

Barriers allow one to ensure true fsync/fsyncdata when used with hard 
disks that have their write cache enabled. This is not talking about 
hard drives connected to hardware raid controllers which is a different 
ball game.

> Forgive me for potential off topic, but I too run xfs on lvm which uses 
> mapper...risky??

IF you are not using hardware raid with bbu cache and of course, if you 
have disabled the write caches on the hard drives connected to the raid 
via the raid controller.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] raid10, centos 4.x

2009-12-10 Thread Christopher Chan
John R Pierce wrote:
> I just created a 4 drive mdadm --level=raid10 on a centos 4.8-ish system 
> here, and shortly thereafter remembreed I hadn't updated it in a while, 
> so i ran yum update...
> 
> while installing/updating stuff, got these errors:
> 
>   Installing: kernel   ### 
> [14/69]
> raid level raid10 (in /proc/mdstat) not recognized
> ...
>   Installing: kernel-smp   ### 
> [19/69]
> raid level raid10 (in /proc/mdstat) not recognized
> 
> 
> is this a problem?   the raid10 'seems' to work
> 

If anaconda is doing the update here, I guess it is because anaconda in 
4.x does not have raid10 personality support. The raid10 personality is 
NOT the same as nested raid1+0. It is an entirely new module from Neil 
Brown that has a poor choice of a name imho. It does things very 
differently from what you expect from a nested raid1+0 array.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] raid10, centos 4.x

2009-12-10 Thread John R Pierce
Christopher Chan wrote:
> If anaconda is doing the update here, I guess it is because anaconda in 
> 4.x does not have raid10 personality support. The raid10 personality is 
> NOT the same as nested raid1+0. It is an entirely new module from Neil 
> Brown that has a poor choice of a name imho. It does things very 
> differently from what you expect from a nested raid1+0 array.
>   

the update was a simple `yum update`

differently how?I expect to be striping two mirrors, all munged into 
one unit, without generating intermediate MD devices which has always 
seemed messy to me.

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


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Mark Caudill
Christopher Chan wrote:
> Morten Torstensen wrote:
>> On 08.12.2009 13:34, Chan Chung Hang Christopher wrote:
 Speaking for me (on Linux systems) on top of LVM on top of md. On IRIX
 as it was intended.

>>> That is a disaster combination for XFS even now. You mentioned some
>>> pretty hefty hardware in your other post...
>> If XFS doesn't play well with LVM, how can it even be an option? I 
>> couldn't live without LVM...
>>
> 
> I meant it in the sense of data guarantee. XFS has a major history of 
> losing data unless used with hardware raid cards that have a bbu cache. 
> That changed when XFS got barrier support.
> 
> However, anything on LVM be it ext3, ext4 or XFS that has barrier 
> support will not be able to use barriers because device-mapper does not 
> support barriers and therefore, if you use LVM, it better be on a 
> hardware raid array where the card has bbu cache.

Wait, just to be clear, are you saying that all use of LVM is a bad idea 
unless on hardware RAID? That's bad it if it's true since it seems to me 
that most modern distros like to use LVM by default. Am I missing something?

-- 
Never trust a computer you can't throw out a window.
   - Steve Wozniak
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread John R Pierce
Mark Caudill wrote:
> Wait, just to be clear, are you saying that all use of LVM is a bad idea 
> unless on hardware RAID? That's bad it if it's true since it seems to me 
> that most modern distros like to use LVM by default. Am I missing something?
>   

if LVM is ignoring write barriers, its not a good idea on hardware raid, 
either, at least not for applications that rely on committed writes, 
like transactional databases.


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


Re: [CentOS] raid10, centos 4.x

2009-12-10 Thread Christopher Chan
John R Pierce wrote:
> Christopher Chan wrote:
>> If anaconda is doing the update here, I guess it is because anaconda in 
>> 4.x does not have raid10 personality support. The raid10 personality is 
>> NOT the same as nested raid1+0. It is an entirely new module from Neil 
>> Brown that has a poor choice of a name imho. It does things very 
>> differently from what you expect from a nested raid1+0 array.
>>   
> 
> the update was a simple `yum update`
> 
> differently how?I expect to be striping two mirrors, all munged into 
> one unit, without generating intermediate MD devices which has always 
> seemed messy to me.

http://en.wikipedia.org/wiki/Non-standard_RAID_levels#Linux_MD_RAID_10
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Christopher Chan
John R Pierce wrote:
> Mark Caudill wrote:
>> Wait, just to be clear, are you saying that all use of LVM is a bad idea 
>> unless on hardware RAID? That's bad it if it's true since it seems to me 
>> that most modern distros like to use LVM by default. Am I missing something?
>>   
> 
> if LVM is ignoring write barriers, its not a good idea on hardware raid, 
> either, at least not for applications that rely on committed writes, 
> like transactional databases.
> 

Write barriers are for the case of getting a data guarantee with hard 
disks connected via sata/scsi that have their write caches enabled.

Hardware raid + bbu cache change that game. LVM on hardware raid is safe 
due to the bbu cache (with write caches on connected hard drives set to off)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Christopher Chan
Mark Caudill wrote:
> Christopher Chan wrote:
>> Morten Torstensen wrote:
>>> On 08.12.2009 13:34, Chan Chung Hang Christopher wrote:
> Speaking for me (on Linux systems) on top of LVM on top of md. On IRIX
> as it was intended.
>
 That is a disaster combination for XFS even now. You mentioned some
 pretty hefty hardware in your other post...
>>> If XFS doesn't play well with LVM, how can it even be an option? I 
>>> couldn't live without LVM...
>>>
>> I meant it in the sense of data guarantee. XFS has a major history of 
>> losing data unless used with hardware raid cards that have a bbu cache. 
>> That changed when XFS got barrier support.
>>
>> However, anything on LVM be it ext3, ext4 or XFS that has barrier 
>> support will not be able to use barriers because device-mapper does not 
>> support barriers and therefore, if you use LVM, it better be on a 
>> hardware raid array where the card has bbu cache.
> 
> Wait, just to be clear, are you saying that all use of LVM is a bad idea 
> unless on hardware RAID? That's bad it if it's true since it seems to me 
> that most modern distros like to use LVM by default. Am I missing something?
> 

Yes, the Linux kernel has long been criticized for a fake 
fsync/fsyncdata implementation. At the latest, since 2001. Unless you 
had your hard drive caches turned off, you were at risk of losing data 
no matter what you used: ext2, ext3, reiserfs, xfs, jfs, whether on lvm 
or not.

Write barriers were introduced to give data guarantees with hard drives 
that have their write cache enabled. Unfortunately, not everything has 
been given barrier support. LVM and JFS do not have write barrier support.

So it is use LVM but turn off write caches on disks (painfully slow) or 
do not use LVM and use a filesystem with write barrier support and 
enable write caches on disks.

Hardware raid with bbu caches were introduced to provide speed and data 
guarantees. The other option would be to use software raid, disable 
write caching, use a bbu nvram stick and use ext3 with data=journal.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is ext4 safe for a production server?

2009-12-10 Thread Ross Walker
On Dec 10, 2009, at 7:52 PM, Mark Caudill  wrote:

> Christopher Chan wrote:
>> Morten Torstensen wrote:
>>> On 08.12.2009 13:34, Chan Chung Hang Christopher wrote:
> Speaking for me (on Linux systems) on top of LVM on top of md.  
> On IRIX
> as it was intended.
>
 That is a disaster combination for XFS even now. You mentioned some
 pretty hefty hardware in your other post...
>>> If XFS doesn't play well with LVM, how can it even be an option? I
>>> couldn't live without LVM...
>>>
>>
>> I meant it in the sense of data guarantee. XFS has a major history of
>> losing data unless used with hardware raid cards that have a bbu  
>> cache.
>> That changed when XFS got barrier support.
>>
>> However, anything on LVM be it ext3, ext4 or XFS that has barrier
>> support will not be able to use barriers because device-mapper does  
>> not
>> support barriers and therefore, if you use LVM, it better be on a
>> hardware raid array where the card has bbu cache.
>
> Wait, just to be clear, are you saying that all use of LVM is a bad  
> idea
> unless on hardware RAID? That's bad it if it's true since it seems  
> to me
> that most modern distros like to use LVM by default. Am I missing  
> something?

If you use a leading edge distro then they will most likely be using a  
LVM version with barrier support as it was implemented as of  
2.6.29-2.6.30+.

It should be backported by the next release of CentOS hopefully.

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


Re: [CentOS] Linux router with CentOS

2009-12-10 Thread Sorin Srbu
>-Original Message-
>From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
Behalf
>Of KJS
>Sent: Thursday, December 10, 2009 6:16 PM
>To: CentOS mailing list
>Subject: Re: [CentOS] Linux router with CentOS
>
>PFSense or IPCop, IPCop is a little easier to configure IMO.

Is IPCop the one that is so similar to Smoothwall, and also able to share
mods?
-- 
/Sorin


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