[CentOS-es] [OT] Spamassassin rewrite_header
Hola a todos, Quiero configurar un servidor correo con spamassassin, la cuestión es configurar la herramienta para que marque los asuntos de los email cuando son spam. Esta función la conozco desde hace mucho tiempo pero nunca me ha funcionado . La configuración del local.cfg required_score 5.0 rewrite_header subject *SPAM* report_safe 0 use_bayes 1 bayes_auto_learn 1 skip_rbl_checks 1 use_razor2 0 use_dcc 0 use_pyzor 0 ok_languagesall ok_locales en ¿Lo podría realizar con procmail? ¿os funciona la opción rewrite_header subject? Alguna idea. Desde ya gracias por todo. ___ CentOS-es mailing list CentOS-es@centos.org http://lists.centos.org/mailman/listinfo/centos-es
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
Dave wrote: On Thu, Jan 28, 2010 at 12:30 PM, Rudi Ahlers rudiahl...@gmail.com mailto:rudiahl...@gmail.com wrote: let's keep the question simple. WHICH filesystem would be best for this type of operation? SMB, NFS, or iSCSI? As someone said, these are all bad if your channel is insecure. Actually I know nothing about iSCSI, maybe it is more robust. normally, iSCSI is done over dedicated SAN networks not even connected to your normal LAN I suppose it can be secured but usually there's not even any authnetication, just targets masked by the initiators IP ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Browser related question
Greetings, How does one monitor if a site is being accessed using browser? IOW, I just want to know if a user has launched a session thru Firefox. I basically want to know if a user has tried to access the webserver and unable to reach it and log such instances. I am using cron and curl to seperately monitor the link. Any clues? Centos 5.2/Gnome/Firefox 3.0.16 Regards Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
On Fri, Jan 29, 2010 at 9:49 AM, Dave tdbtdb+cen...@gmail.comtdbtdb%2bcen...@gmail.com wrote: On Thu, Jan 28, 2010 at 12:30 PM, Rudi Ahlers rudiahl...@gmail.comwrote: let's keep the question simple. WHICH filesystem would be best for this type of operation? SMB, NFS, or iSCSI? As someone said, these are all bad if your channel is insecure. Actually I know nothing about iSCSI, maybe it is more robust. Dave ___ Even through an SSH tunnel? If this is the case, what other options are available? -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
The CIFS mounts can't be unmounted without a reboot, so they build-up a pool of mounts to the same server which cause extra latency Is there an environmental restriction in your application or organization for this? Normally CIFS mounts can umounted easily in runtime. At any rate... if I were in your shoes and really restricted to the options you propose, I would go with CIFS mounts through IPSEC tunnels. -geoff - Geoff Galitz Blankenheim NRW, Germany http://www.galitz.org/ http://www.galitz.org/ http://german-way.com/blog/ http://german-way.com/blog/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
On Fri, Jan 29, 2010 at 12:12 PM, Geoff Galitz ge...@galitz.org wrote: The CIFS mounts can't be unmounted without a reboot, so they build-up a pool of mounts to the same server which cause extra latency Is there an environmental restriction in your application or organization for this? Normally CIFS mounts can umounted easily in runtime. what do you mean by this? At any rate... if I were in your shoes and really restricted to the options you propose, I would go with CIFS mounts through IPSEC tunnels. Wouldn't IPSEC add more overhead than an SSH tunnel? -geoff - Geoff Galitz Blankenheim NRW, Germany http://www.galitz.org/ http://german-way.com/blog/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to map ata#.# numbers to /dev/sd numbers?
On Thursday 28 January 2010, Stephen Harris wrote: [ Sorry to merge messages; I appear to have lost Peter's post, so I'm replying to Peter and Mark in the same message ] Peter Kjellstrom wrote: On Thursday 28 January 2010, Stephen Harris wrote: to determine what ata7.01 maps to in terms of /dev/sd# values? This seems quite hard to do. The following hack will match scsi hosts to libata-driver + number: Hmm, interesting: % for d in /sys/class/scsi_host/host* do echo $d $(cat $d/proc_name) $(cat $d/unique_id) done /sys/class/scsi_host/host0 ahci 1 /sys/class/scsi_host/host1 ahci 2 /sys/class/scsi_host/host2 ahci 3 /sys/class/scsi_host/host3 ahci 4 /sys/class/scsi_host/host4 ahci 5 /sys/class/scsi_host/host5 ahci 6 /sys/class/scsi_host/host6 sata_sil24 7 /sys/class/scsi_host/host7 sata_sil24 8 /sys/class/scsi_host/host8 usb-storage 0 So in this case ata7 appears to map to host6. Now the usb-storage entry looks odd. Do I have to magically know that ahci and sata_sil24 both map to ata entries? AFAICT, I'm afraid so :-/ From lsscsi I see, for host 6 [6:0:0:0]diskATA ST31000340AS SD15 /dev/sdc [6:1:0:0]diskATA ST31000340AS SD15 /dev/sdd [6:2:0:0]diskATA ST31000340AS SD15 /dev/sde [6:3:0:0]diskATA ST31000340AS AD14 /dev/sdf So I have to guess the second number in ata#.# represents the LUN of the device on that bus, so ata7.1 - host6 - [6:1:0:0] - sdd The LUN is actually the last of the four digits, the 2nd one is target (host:target:device:lun), but yes, your observation seems correct. This looks like an unreliable method of detection. But it may be possible! Uhu m.r...@5-cent.us wrote: Have you checked dmesg? For example, Yeah, but dmesg has two problems that I can think of 1) it may disappear if the number of kernel messages grows sufficiently large 2) The ID number wasn't obvious scsi6 : sata_sil24 scsi7 : sata_sil24 ata7: SATA max UDMA/100 host m...@0xfe7fbf80 port 0xfe7fc000 irq 169 ata8: SATA max UDMA/100 host m...@0xfe7fbf80 port 0xfe7fe000 irq 169 How does that tell me ata7 matches scsi6? We can't rely on ordering (see below). That is basically why I tried to find a better way than interpreting dmesg, yes you can probably figure it out but man it's an ugly way... Further, ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 0) ata7.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9 ata7.00: hard resetting link ata7.00: SATA link up 1.5 Gbps (SStatus 113 SControl 320) ata7.01: hard resetting link ata7.01: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata7.02: hard resetting link ata7.02: SATA link up 1.5 Gbps (SStatus 113 SControl 0) ata7.03: hard resetting link floppy0: no floppy controllers found ata7.03: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata7.04: hard resetting link ata7.04: SATA link down (SStatus 0 SControl 320) ata7.05: hard resetting link ata7.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320) ata7.00: ATA-8: ST31000340AS, SD15, max UDMA/133 ata7.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32) ata7.00: configured for UDMA/100 ata7.01: ATA-8: ST31000340AS, SD15, max UDMA/133 ata7.01: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) ata7.01: configured for UDMA/100 ata7.02: ATA-8: ST31000340AS, SD15, max UDMA/133 ata7.02: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) ata7.02: configured for UDMA/100 ata7.03: ATA-8: ST31000340AS, AD14, max UDMA/133 ata7.03: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32) ata7.03: configured for UDMA/100 ata7: EH complete Vendor: MaxtorModel: 6Y120P0 Rev: YAR4 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdb: 240121728 512-byte hdwr sectors (122942 MB) sdb: Write Protect is off sdb: Mode Sense: 53 00 00 08 sdb: assuming drive cache: write through SCSI device sdb: 240121728 512-byte hdwr sectors (122942 MB) sdb: Write Protect is off sdb: Mode Sense: 53 00 00 08 sdb: assuming drive cache: write through sdb:6ata8: SATA link up 3.0 Gbps (SStatus 123 SControl 0) ata8.15: Port Multiplier 1.1, 0x1095:0x3726 r23, 6 ports, feat 0x1/0x9 ata8.00: hard resetting link ata8.00: SATA link up 1.5 Gbps (SStatus 113 SControl 320) As can be seen, different parts of detection appear to be interleaved (floppy detection message, sdb detection message - disk in a USB disk enclosure!) so I can't seem to rely on ordering of messages in dmesg to accurately determine which device has been assigned what ID. Some order can be relied on, some not. Bottom line, you can by experience and testing find a correct mapping from dmesg, but really there should be a better way. /Peter dmesg really gets messy when you have lots of disks! Thanks for the feedback so far!
Re: [CentOS] Browser related question
On Fri, Jan 29, 2010 at 3:12 AM, Rajagopal Swaminathan raju.rajs...@gmail.com wrote: Greetings, How does one monitor if a site is being accessed using browser? IOW, I just want to know if a user has launched a session thru Firefox. I basically want to know if a user has tried to access the webserver and unable to reach it and log such instances. I am using cron and curl to seperately monitor the link. Any clues? It is possible using the auditd subsysted. You'd need to define a rule to match that user and firefox. I don't have the exact syntax, but the rule I use for root in audit.rules is: -a entry,always -S open -S close -S read -S write -S link -S unlink -S chmod -S chown -S execve -F uid=root -k root_activity If you do a man on auditctl it can show the options. You could, for example, generate a rule whenever a particular user launches firefox, etc.. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
Am 28.01.2010 12:28, schrieb Rudi Ahlers: NOW, the question is: Which protocol would be best for this? I can only think of SMB, NFS iSCSI How about NFS v4? It only needs one port which you can tunnel through ssh. Rainer ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Installing an SSL Cert
-Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of ML Sent: Wednesday, January 27, 2010 1:38 AM To: CentOS mailing list Subject: [CentOS] Installing an SSL Cert HI All, I am considering buying this: http://www.godaddy.com/Compare/gdcompare_ssl.aspx?isc=sslqgo003a Since I have a domain that will be collecting data and processing payments. Where can I find instructions on how to install the certificate? Do I have to run another domain or sub domain for the store? Or can I just run the whole domain on https? Thanks, -Jason ___ Ever considerd cacert.org ? __ Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
Rudi Ahlers wrote on Fri, 29 Jan 2010 12:27:49 +0200: what do you mean by this? exactly as he says. Any mounts can be undone (mount/umount). Maybe not thru your Cpanel, but in reality. Kai -- Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
Actually I know nothing about iSCSI, maybe it is more robust. No. Not if, but *when* you get the first disconnection, you will likely incur corruption on the block device. That's like pulling out a disc on a running server. Doesn't make for a dependable backup solution... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Rudi Ahlers Sent: Friday, January 29, 2010 12:23 AM To: CentOS mailing list Subject: Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts On Fri, Jan 29, 2010 at 1:18 AM, nate cen...@linuxpowered.netmailto:cen...@linuxpowered.net wrote: Rudi Ahlers wrote: nate, why not? Is it simply unavoidable at all costs to mount on system on another, over a WAN? That's all I really want todo If what you have now works, stick with it.. in general network file systems are very latency sensitive. CIFS might work best *if* your using a WAN optimization appliance, I'm not sure how much support NFS gets from those vendors. iSCSI certainly is the worst, block devices are very intolerant of latency. AFS may be another option though quite a bit more complicated, as far as I know it's a layer on top of an existing file system that is used for things like replication http://www.openafs.org/ I have no experience with it myself. nate ___ CentOS mailing list CentOS@centos.orgmailto:CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Thanx nate, this is what I wanted to hear :) So, is there any benefit in using NFS over SMB in this case? Can't speak for NFS(3/4), but i can tell you that that smb-protocol combined with high latency is a recepy for disaster. We tried it from europe to the carribean (both sat or fibre) but users spent their time more complaining then working. Needed horrible expensive lan-optimesers at both end So perhaps nfs4 or afs (later is intended for geographically separated machines, afaicr) but certainly not smb! __ Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
At any rate... if I were in your shoes and really restricted to the options you propose, I would go with CIFS mounts through IPSEC tunnels. Wouldn't IPSEC add more overhead than an SSH tunnel? -geoff I would *certainly* not use ssh-tunnels, on a line that is not 100% error free or with high latency. In general tcp-in-tcp tunneling is BAD. One likely gets the infamous snowbal-effect. As ipsec is lower in the protocol-stack (then openvpn) it has probably the lowest overhead. ssh-tunnels are the worst (just nice for a quick tunnel in SOHO-environments) __ Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
On Jan 29, 2010, at 2:37 AM, Rudi Ahlers rudiahl...@gmail.com wrote: On Fri, Jan 29, 2010 at 2:17 AM, Ross Walker rswwal...@gmail.com wrote: It's not easy backing up from behind the firewall. What about using a service that will backup the mobile clients to an offsite repository that is accessible also from behind the firewall. I was pitched something not too long ago about such a service, can't remember the name now unfortunately. Otherwise you could look into some sort of WebDAV + Fuse setup or some specialized file system that is cached on the client but then syncs with the server in the background when available, then all your backups are local. ___ Hi Ross, Backing up behind the firewall is made easy by using an SSH tunnel :) Communications is easy, but that's not what I'm talking about, I'm talking the management and coordination of backups from behind the firewall. We already have an offsite backup facility with a 3rd party, nbut I need more control over the backups, and want to setup an inhouse backup server which where all the client's account (this is hosting accounts VPS's) be backed up to, then this server will do an rsync with all the data to the offsite backup server. You might find this to be a Herculean task that even if implemented, impossible to support. -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Lockup using stock r8169 on 4.8 in gigabit mode during heavy transfer on lan
Jason Pyeron wrote: Ideas? realtek sucks(massive evidence on the net over the past 10+ years), get a real NIC(no pun intended). nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Skype and problem with ALSA mixer driver?
What version of ALSA driver are you using? Have you tried updating ALSA as the version within CentOS is quite old now (1.0.14rc3). Elrepo has an updated ALSA driver package here: http://elrepo.org/tiki/kmod-alsa Thanks for that useful information, but can you tell me exactly how to perform the update? I tried 'yum update *alsa*' as I have the Elrepo repository installed, but it came up with 'No Packages marked for Update'. Do I need to completely remove all the currently installed ALSA packages and then do 'yum install kmod-alsa? Any advice gratefully received, thanks. Andy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Skype and problem with ALSA mixer driver?
On Fri, Jan 29, 2010 at 10:44 AM, Andrew andy.al...@virgin.net wrote: What version of ALSA driver are you using? Have you tried updating ALSA as the version within CentOS is quite old now (1.0.14rc3). Elrepo has an updated ALSA driver package here: http://elrepo.org/tiki/kmod-alsa Thanks for that useful information, but can you tell me exactly how to perform the update? I tried 'yum update *alsa*' as I have the Elrepo repository installed, but it came up with 'No Packages marked for Update'. Do I need to completely remove all the currently installed ALSA packages and then do 'yum install kmod-alsa? Any advice gratefully received, thanks. Perhaps, you do not have elrepo enabled (default behavior) ? In that case, try: yum --enablerepo=elrepo install kmod-alsa Akemi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Lockup using stock r8169 on 4.8 in gigabit mode during heavy transfer on lan
- Jason Pyeron jpye...@pdinc.us wrote: I have no output in the logs, but /etc/init.d/network restart fixes the issue. I am rsync/scp (10GB) data from one 100MB Full duplex host to an ASUS M3A78-EM (RTL8111B/C). It locks up around the 1.5GB Tx mark. If I ethtool -s eth0 autoneg off speed 100 duplex full it does not happen again. Ideas? Part of the problem is that you mention r8169 kernel module in your subject but your hardware is RTL8111B. Realtek drivers are notorious for loading on improper hardware and appearing to work properly. You need to get the proper driver for your NIC. I've run into this countless times with the r8169 driver and non-r8169 Realtek NICs. And, on a side note, Realtek may possibly be the worst NIC out there, especially for server use. It may link at gigabit speed, but I bet a trusty old 3Com or Intel Pro 100 will get better throughput. Install a different NIC as fast as you can and never look back. --Tim ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Lockup using stock r8169 on 4.8 in gigabit mode during heavy transfer on lan
-Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Tim Nelson Sent: Friday, January 29, 2010 14:05 To: CentOS mailing list Subject: Re: [CentOS] Lockup using stock r8169 on 4.8 in gigabit mode during heavy transfer on lan - Jason Pyeron jpye...@pdinc.us wrote: I have no output in the logs, but /etc/init.d/network restart fixes the issue. I am rsync/scp (10GB) data from one 100MB Full duplex host to an ASUS M3A78-EM (RTL8111B/C). It locks up around the 1.5GB Tx mark. If I ethtool -s eth0 autoneg off speed 100 duplex full it does not happen again. Ideas? Part of the problem is that you mention r8169 kernel module in your subject but your hardware is RTL8111B. Realtek drivers are notorious for loading on improper hardware and appearing to work properly. You need to get the proper driver for your NIC. I've run into this countless times with the r8169 driver and non-r8169 Realtek NICs. Good to know. Thanks. And, on a side note, Realtek may possibly be the worst NIC out there, especially for server use. It may link at gigabit speed, but I bet a trusty old 3Com or Intel Pro 100 will get better throughput. Install a different NIC as fast as you can and never look back. The system was not purchased for 1000MB use, but all of the switches are. We just took the mobo that was cheapest/fastest to get a non-production up ASAP. --Tim ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100- - +1 (443) 269-1555 x333Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Browser related question
On Fri, Jan 29, 2010 at 12:12 AM, Rajagopal Swaminathan raju.rajs...@gmail.com wrote: Greetings, How does one monitor if a site is being accessed using browser? IOW, I just want to know if a user has launched a session thru Firefox. I basically want to know if a user has tried to access the webserver and unable to reach it and log such instances. I am using cron and curl to seperately monitor the link. Any clues? Centos 5.2/Gnome/Firefox 3.0.16 It's clear what it is you're trying to do, but If you're running Apache, turn on CustomLog logs/access_log combined The default is CustomLog logs/access_log common It will not only log the browser type, it will also log the OS in the access_log file. For errors accessing files, see the error_log. If the client can't reach the site, then it should be clear the server won't be able to log the attempt. -- Enjoy global warming while it lasts. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] perl question
I am trying to run a perl script that said it needs Net::SMPP I ran this: your_host]# *perl -MCPAN -e shell* cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled cpan *install Net::SNMP seemed to work. no errors reported. however when I run perl I still get the same error saying needs ./sendmessage.pl Can't locate Net/SMPP.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./sendmessage.pl line 18. BEGIN failed--compilation aborted at ./sendmessage.pl line 18. What else do I need? Jerry * ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] perl question
Hi, Check line 18. of your code or paste your code so it will be more usefull and which version of OS you are running. On Sat, Jan 30, 2010 at 12:58 AM, Jerry Geis ge...@pagestation.com wrote: I am trying to run a perl script that said it needs Net::SMPP I ran this: your_host]# *perl -MCPAN -e shell* cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled cpan *install Net::SNMP seemed to work. no errors reported. however when I run perl I still get the same error saying needs ./sendmessage.pl Can't locate Net/SMPP.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./sendmessage.pl line 18. BEGIN failed--compilation aborted at ./sendmessage.pl line 18. What else do I need? Jerry * ___ 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] perl question
I am trying to run a perl script that said it needs Net::SMPP I ran this: your_host]# *perl -MCPAN -e shell* cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled cpan *install Net::SNMP seemed to work. no errors reported. however when I run perl I still get the same error saying needs ./sendmessage.pl Can't locate Net/SMPP.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./sendmessage.pl line 18. BEGIN failed--compilation aborted at ./sendmessage.pl line 18. What else do I need? Two possibilities - but first, did you type the asterisk before install? Anyway, did cpan *say* that it had successfully installed? I've had things fail, and have to go into .cpan/Build/path, and make;make install. The other possibility is that for some reason, it's not where it needed to be, and you might try yum install Net-SNMP mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] perl question
I am trying to run a perl script that said it needs Net::SMPP I ran this: your_host]# *perl -MCPAN -e shell* Ouch dude, you just broke your server. Try to yum update anything perl related in the future:) What else do I need? First, install SMPP, not SNMP? Second, use a repo, use span2rpm... Then force the rpm in I guess to bring the rpm db into a blissfully ignorant, but happy state:) http://dag.wieers.com/rpm/packages/perl-Net-SNPP/ http://www.mediaburst.co.uk/blog/creating-perl-module-rpms/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] perl question
Second, use a repo, use span2rpm... Then force the rpm in I guess to bring the rpm db into a blissfully ignorant, but happy state:) s/span2rpm/cpan2rpm/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] perl question
On 1/29/2010 11:40 AM, m.r...@5-cent.us wrote: I am trying to run a perl script that said it needs Net::SMPP I ran this: your_host]# *perl -MCPAN -e shell* cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled cpan *install Net::SNMP seemed to work. no errors reported. however when I run perl I still get the same error saying needs ./sendmessage.pl Can't locate Net/SMPP.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./sendmessage.pl line 18. BEGIN failed--compilation aborted at ./sendmessage.pl line 18. What else do I need? You need to learn how to actually read the output of error messages. :-) It states very clearly what it failed on and that loading the module Net::SMPP (Can't locate Net/SMPP.pm)! Change the use line in your script to read use Net::SNMP and I will be you it works like a hot darn. Don't ya hate when you miss the obvious? :-) ...Greg ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] perl question
On 1/29/2010 1:28 PM, Jerry Geis wrote: I am trying to run a perl script that said it needs Net::SMPP I ran this: your_host]# *perl -MCPAN -e shell* cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled cpan *install Net::SNMP seemed to work. no errors reported. however when I run perl I still get the same error saying needs ./sendmessage.pl Can't locate Net/SMPP.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./sendmessage.pl line 18. BEGIN failed--compilation aborted at ./sendmessage.pl line 18. What else do I need? Is that a typo or did you actually install Net::SNMP when the script wants Net:SMPP? -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] perl question
Ouch dude, you just broke your server. Try to yum update anything perl related in the future:) /What else do I need? / First, install SMPP, not SNMP? Second, use a repo, use span2rpm... Then force the rpm in I guess to bring the rpm db into a blissfully ignorant, but happy state:) sorry for the typo - I was wanting SMPP. Line 18 reads: use Net::SMPP; Jerry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Skype and problem with ALSA mixer driver?
On Fri, 2010-01-29 at 11:03 -0800, Akemi Yagi wrote: On Fri, Jan 29, 2010 at 10:44 AM, Andrew andy.al...@virgin.net wrote: What version of ALSA driver are you using? Have you tried updating ALSA as the version within CentOS is quite old now (1.0.14rc3). Elrepo has an updated ALSA driver package here: http://elrepo.org/tiki/kmod-alsa Thanks for that useful information, but can you tell me exactly how to perform the update? I tried 'yum update *alsa*' as I have the Elrepo repository installed, but it came up with 'No Packages marked for Update'. Do I need to completely remove all the currently installed ALSA packages and then do 'yum install kmod-alsa? Any advice gratefully received, thanks. Perhaps, you do not have elrepo enabled (default behavior) ? In that case, try: yum --enablerepo=elrepo install kmod-alsa Akemi Many thanks, I've installed kmod-alsa OK but the mic is still not working (with skype). Do I need to remove the old ALSA packages alsa-lib and alsa-utils? - because when I type 'yum erase alsa-lib alsa-utils' it wants to remove 123 packages! Andy ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] NFS vs SMb vs iSCSI for remote backup mounts
On 1/29/2010 1:37 AM, Rudi Ahlers wrote: Backing up behind the firewall is made easy by using an SSH tunnel :) We already have an offsite backup facility with a 3rd party, but I need more control over the backups, and want to setup an inhouse backup server which where all the client's account (this is hosting accounts VPS's) be backed up to, then this server will do an rsync with all the data to the offsite backup server. Can't this be at the same location as the source of the data to eliminate the latency issue? -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CentOS 5 i386 Live CD
Johnny Hughes wrote: I forgot to add that the password for root and centos is: 12qwaszx Johnny Hughes wrote: The CentOS Development team is pleased to announce the availability of the CentOS 5 i386 Live CD. [...] This CD has a non writable /usr directory, which means it is not able to have software installed on it after boot up. The CentOS team is working hard to create a Live CD for CentOS 5 that is based on the Fedora Live CD Project (that is writable in all directories and even able to be used for installs) ... unfortunately we were not able to get this working with CentOS 5 for this release. We hope to get that Live CD working by the release of CentOS 5.1. Did I miss some notices? I don't recall seeing another LiveCD. How is progress coming? Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] APC Smart-ups status codes (slightly OT)
We got replacement battery kits for some of our APC UPS' (Smart-UPS, rackmount). I put them into one tray (it's for an RBC 43, which takes 8, and weighs a ton), and put it in, and let it charge. Idiot change battery led stays on. So I hit the test button, it discharges very rapidly (a good number of servers on this), and the led stays on. For some reason, apcupsd's USB test fails, with an HIDDEV i/o error. So I got rid of the weird APC usb cable, and put in one of their serial cables, and run the smart test (the USB does more), and get results showing everything's fine. But the idiot light's still on. So, looking at all the values that the apcsmart choice can give me, the first thing is UPS status. I've been googling for a while, and can't find a single reference to it. Anyone have a link to somewhere that will give me the status codes (and their meaning)? Thanks in advance. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] APC Smart-ups status codes (slightly OT)
On 1/29/2010 2:53 PM, m.r...@5-cent.us wrote: Idiot change battery led stays on. By chance, I just did an RBC 23 change the other day. The docs I got with it said to let it charge for 8 hours, then do the self-test. On my UPS, that means holding the On button for a few seconds. (A single regular press does nothing but make it beep, if it's already on.) You might also want to write the battery change date to the UPS. I don't know if it will affect the light, but it'll help you figure battery life when it comes time to change them again years from now: # upsrw -uadmin -s battery.date=01/29/10 ap...@localhost Adjust names as appropriate. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] APC Smart-ups status codes (slightly OT)
On Fri, 2010-01-29 at 16:53 -0500, m.r...@5-cent.us wrote: We got replacement battery kits for some of our APC UPS' (Smart-UPS, rackmount). I put them into one tray (it's for an RBC 43, which takes 8, and weighs a ton), and put it in, and let it charge. Idiot change battery led stays on. So I hit the test button, it discharges very rapidly (a good number of servers on this), and the led stays on. For some reason, apcupsd's USB test fails, with an HIDDEV i/o error. So I got rid of the weird APC usb cable, and put in one of their serial cables, and run the smart test (the USB does more), and get results showing everything's fine. But the idiot light's still on. So, looking at all the values that the apcsmart choice can give me, the first thing is UPS status. I've been googling for a while, and can't find a single reference to it. Anyone have a link to somewhere that will give me the status codes (and their meaning)? The only thing that comes to mind is to check out NUT ( Network UPS Tools ) at http://www.networkupstools.org and see if their source code can answer your questions. I've been using NUT for some time with APC units and had no issues when changing batteries, but I have a vague memory of some models being fussy about noticing the new battery. Google should be able to find those discussions for you. Thanks in advance. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- Ron Loftin relof...@twcny.rr.com God, root, what is difference ? Piter from UserFriendly ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] APC Smart-ups status codes (slightly OT)
On Fri, 2010-01-29 at 16:53 -0500, m.r...@5-cent.us wrote: battery change tale o' woe snipped But the idiot light's still on. So, looking at all the values that the apcsmart choice can give me, the first thing is UPS status. I've been googling for a while, and can't find a single reference to it. Anyone have a link to somewhere that will give me the status codes (and their meaning)? The only thing that comes to mind is to check out NUT ( Network UPS Tools ) at http://www.networkupstools.org and see if their source code can answer your questions. THANK YOU! That was it! I've been using NUT for some time with APC units and had no issues when changing batteries, but I have a vague memory of some models being fussy about noticing the new battery. Google should be able to find those discussions for you. Hmmm... that could be the problem. I'll look Monday. Thanks, very much. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Full Virtualized DomU won't boot
2010/1/28 Pasi Kärkkäinen pa...@iki.fi: On Wed, Jan 27, 2010 at 07:21:54PM -0300, Sergio Belkin wrote: Hi, I use Centos 5.4 x86_64 kernel used is 2.6.18-164.11.1.el5xen I have a physical machine running Debian Etch (32 bit) and Debian Lenny and I virtualized the first one as follows: *Created a HVM DomU with Virt-Manager with a virtual disk file of 4 M *Boot from LiveCD, and created a swap and a ext3 partitions (Yes, very simple layout). *Rsync'd files from root partition of physical machine to partition mounted on LiveCD on DomU. *Chrooted and edited files /boot/grub/menu.lst, /etc/fstab, etc/mtab, /boot/grub/device.map. *Then I rebooted from hard disk and stay freezed with the message booting from hard disk . But it doesn't boot at all from hard disk. I can boot using grub-rescue-cdrom, but if I try to install grub with grub-install it outputs: The file /boot/grub/stage1 not read correctly (I've tried --recheck option, and depmod and update-grub commands with no success) Well.. stage1 is definitely needed by grub. So grub didn't get installed. Your domU can't boot then. - Do you have the stage1 file there? - Was the partition layout the same for the old server? - Is the grub.conf root (hd0,X) correct for the new disk? You can install grub from grub-shell like this, after chrooting to the filesystem: # grub device (hd0) /dev/sda root (hd0,0) setup (hd0) replace hd0,0 with the correct partition index. I've tried that, If that was the problem, I hadn't asked help to the list :) I've found that it was a misunderstanding between Grub and the filesystem. Target filesystem has inodes of 256 bytes while debian etch version can read inodes of 128 bytes. -- -- Open Kairos http://www.sergiobelkin.com Watch More TV http://sebelk.blogspot.com Sergio Belkin - ___ 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 -- -- Open Kairos http://www.sergiobelkin.com Watch More TV http://sebelk.blogspot.com Sergio Belkin - ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Multiple RAID support in CentOS?
Hello, I was wondering if someone could help me, I'm putting together a Server for personal use, I want to virtualize a few servers(mail, web, ssh) and use it as a NAS, but I have a question if I can use Multiple RAID Arrays using the following HW: Intel Xeon Quad Core X3430 ASUS P7F-M LGA 1156 - LSI MegaRAID(integrated) - HighPoint RocketRAID 2640x1 2 Hitachi 500GB HDDs 4 Hitachi 1TB HDDs I want to use one array with the 2 500GB HDDs in RAID1 for the OS and for some VMs, and the other 4 1TB HDDs I want to create an array in RAID5 or RAID10 for file sharing across my home Network. I found a guide but it's a little bit outdated and it's for Debian... Do you have any other pointer I can read/use? TIA. -- 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] Skype and problem with ALSA mixer driver?
Andrew wrote: On Fri, 2010-01-29 at 11:03 -0800, Akemi Yagi wrote: On Fri, Jan 29, 2010 at 10:44 AM, Andrew andy.al...@virgin.net wrote: What version of ALSA driver are you using? Have you tried updating ALSA as the version within CentOS is quite old now (1.0.14rc3). Elrepo has an updated ALSA driver package here: http://elrepo.org/tiki/kmod-alsa Thanks for that useful information, but can you tell me exactly how to perform the update? I tried 'yum update *alsa*' as I have the Elrepo repository installed, but it came up with 'No Packages marked for Update'. Do I need to completely remove all the currently installed ALSA packages and then do 'yum install kmod-alsa? Any advice gratefully received, thanks. Perhaps, you do not have elrepo enabled (default behavior) ? In that case, try: yum --enablerepo=elrepo install kmod-alsa Akemi Many thanks, I've installed kmod-alsa OK but the mic is still not working (with skype). Do I need to remove the old ALSA packages alsa-lib and alsa-utils? - because when I type 'yum erase alsa-lib alsa-utils' it wants to remove 123 packages! Andy No, do *not* remove alsa-lib or alsa-utils (they are core CentOS packages). Have you rebooted since installing kmod-alsa as the kernel will need to load the new drivers? If not, please reboot and retest. If it's still not working after updating ALSA using kmod-alsa from elrepo (after a reboot), then you might want to consider removing that package as it hasn't fixed the problem in your case: yum erase kmod-alsa Hope that helps. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Multiple RAID support in CentOS?
On 30/01/2010 12:09 PM, Victor Padro wrote: Hello, I was wondering if someone could help me, I'll try... I want to use one array with the 2 500GB HDDs in RAID1 for the OS and for some VMs, That will work OK. and the other 4 1TB HDDs I want to create an array in RAID5 or RAID10 for file sharing across my home Network. You can use these disks in a RAID5 array, but not RAID10. I fairly sure you need more than 4. RAID10 is mirrored, so you only have 2 disks in the array, which isn't enough for parity/striping stuff. You need at least 3, which would mean 6 disks for RAID10. Having said that, I'm assuming you want to use the entire hard disk as a participant in an array. You could create 2 x 500Gb partions on each disk and then you have 8 x 500Gb partitions to use in a RAID10 array. This approach sacrifices some redundancy though. If a disk dies entirely, then you will lose two participants in the RAID array, which may or may not be catastrophic - it depends on what you put where... I found a guide but it's a little bit outdated and it's for Debian... Do you have any other pointer I can read/use? http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5 I've mostly installed RAID arrays at install time, which you'll need to do as well if you want to put the OS on a RAID1 array. TIA. Ian ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Multiple RAID support in CentOS?
On Fri, Jan 29, 2010 at 9:09 PM, Ian Blackwell i...@ikel.id.au wrote: On 30/01/2010 12:09 PM, Victor Padro wrote: Hello, I was wondering if someone could help me, I'll try... I want to use one array with the 2 500GB HDDs in RAID1 for the OS and for some VMs, That will work OK. and the other 4 1TB HDDs I want to create an array in RAID5 or RAID10 for file sharing across my home Network. You can use these disks in a RAID5 array, but not RAID10. I fairly sure you need more than 4. RAID10 is mirrored, so you only have 2 disks in the array, which isn't enough for parity/striping stuff. You need at least 3, which would mean 6 disks for RAID10. Having said that, I'm assuming you want to use the entire hard disk as a participant in an array. You could create 2 x 500Gb partions on each disk and then you have 8 x 500Gb partitions to use in a RAID10 array. This approach sacrifices some redundancy though. If a disk dies entirely, then you will lose two participants in the RAID array, which may or may not be catastrophic - it depends on what you put where... I found a guide but it's a little bit outdated and it's for Debian... Do you have any other pointer I can read/use? http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5 I've mostly installed RAID arrays at install time, which you'll need to do as well if you want to put the OS on a RAID1 array. TIA. Ian RAID10 does not use parity, it's just a mirror of stripes, so 4 disks will work perfectly fine with it. Use RAID10 for speed, and RAID5 if the space is more of an issue. With RAID10 you lose 1/2 the total space, and with RAID5 you lose 1 disk's worth. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Multiple RAID support in CentOS?
On Jan 29, 2010, at 9:16 PM, Brian Mathis brian.mat...@gmail.com wrote: On Fri, Jan 29, 2010 at 9:09 PM, Ian Blackwell i...@ikel.id.au wrote: On 30/01/2010 12:09 PM, Victor Padro wrote: Hello, I was wondering if someone could help me, I'll try... I want to use one array with the 2 500GB HDDs in RAID1 for the OS and for some VMs, That will work OK. and the other 4 1TB HDDs I want to create an array in RAID5 or RAID10 for file sharing across my home Network. You can use these disks in a RAID5 array, but not RAID10. I fairly sure you need more than 4. RAID10 is mirrored, so you only have 2 disks in the array, which isn't enough for parity/striping stuff. You need at least 3, which would mean 6 disks for RAID10. Having said that, I'm assuming you want to use the entire hard disk as a participant in an array. You could create 2 x 500Gb partions on each disk and then you have 8 x 500Gb partitions to use in a RAID10 array. This approach sacrifices some redundancy though. If a disk dies entirely, then you will lose two participants in the RAID array, which may or may not be catastrophic - it depends on what you put where... I found a guide but it's a little bit outdated and it's for Debian... Do you have any other pointer I can read/use? http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5 I've mostly installed RAID arrays at install time, which you'll need to do as well if you want to put the OS on a RAID1 array. TIA. Ian RAID10 does not use parity, it's just a mirror of stripes, so 4 disks will work perfectly fine with it. Use RAID10 for speed, and RAID5 if the space is more of an issue. With RAID10 you lose 1/2 the total space, and with RAID5 you lose 1 disk's worth. Small correction RAID10 is a stripe of mirrors rather then a mirror of stripes which does not provide the same resiliency. -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Multiple RAID support in CentOS?
On Fri, Jan 29, 2010 at 8:09 PM, Ian Blackwell i...@ikel.id.au wrote: On 30/01/2010 12:09 PM, Victor Padro wrote: Hello, I was wondering if someone could help me, I'll try... I want to use one array with the 2 500GB HDDs in RAID1 for the OS and for some VMs, That will work OK. and the other 4 1TB HDDs I want to create an array in RAID5 or RAID10 for file sharing across my home Network. You can use these disks in a RAID5 array, but not RAID10. I fairly sure you need more than 4. RAID10 is mirrored, so you only have 2 disks in the array, which isn't enough for parity/striping stuff. You need at least 3, which would mean 6 disks for RAID10. Having said that, I'm assuming you want to use the entire hard disk as a participant in an array. You could create 2 x 500Gb partions on each disk and then you have 8 x 500Gb partitions to use in a RAID10 array. This approach sacrifices some redundancy though. If a disk dies entirely, then you will lose two participants in the RAID array, which may or may not be catastrophic - it depends on what you put where... I found a guide but it's a little bit outdated and it's for Debian... Do you have any other pointer I can read/use? http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5 I've mostly installed RAID arrays at install time, which you'll need to do as well if you want to put the OS on a RAID1 array. TIA. Ian ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Thank you Ian, but I disagree in your concept of RAID10: [quote] RAID 10 RAID 1+0 (or 10) is a mirrored data set (RAID 1) which is then striped (RAID 0), hence the 1+0 name. A RAID 1+0 array requires a minimum of four drives: two mirrored drives to hold half of the striped data, plus another two mirrored for the other half of the data. In Linux MD RAID 10 is a non-nested RAID type like RAID 1, that only requires a minimum of two drives, and may give read performance on the level of RAID 0. [quote] I'll read that howto, is for fakeRAID though... TIA -- 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] Multiple RAID support in CentOS?
On 30/01/2010 1:42 PM, Victor Padro wrote: I'll read that howto, is for fakeRAID though... TIA Yes, I got RAID10 wrong - knew I would (haven't used it before). If you're using hardware RAID, then the Op/Sys will just see two disks and you don't really need a HowTo. How you partition/use them is up to you when you install. I know there is continuous debate about hardware vs. software RAID, but I've only ever had problems with hardware, and never any problems with software. Your mileage may vary :) Ian ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Browser related question
Greetings, Thanks a lot On Fri, Jan 29, 2010 at 4:13 PM, Kwan Lowe kwan.l...@gmail.com wrote: On Fri, Jan 29, 2010 at 3:12 AM, Rajagopal Swaminathan raju.rajs...@gmail.com wrote: It is possible using the auditd subsysted. You'd need to define a rule I presume you meant subsystem.. -a entry,always -S open -S close -S read -S write -S link -S unlink -S chmod -S chown -S execve -F uid=root -k root_activity I will look into that.. Regards, Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Browser related question
Greetings, Thanks for the reply. On Sat, Jan 30, 2010 at 12:58 AM, Agile Aspect agile.asp...@gmail.com wrote: It's clear what it is you're trying to do, but If you're running Apache, turn on I am not running apache and it may not be feasible as the clients are not endowed enough. If the client can't reach the site, then it should be clear the server won't be able to log the attempt. In fact this is exactly the condition I wanted to capture as unavailability window FWIW, I am approaching this with tcpdump tcpdump -s 0 -A -i eth0 -n -q - '(dst host mumble and dst port 80) and tcp[13] == 2' Basically checking for the SYN flag in the outgoing traffic. But it is generating too much data for my purposes. Another approach I have in mind is running a proxy and logging the outgoing connection -- will that be resource hungry? I've never tried squid Ideas? Regards Rajagopal Regards, Rajagopal Is this the correct way? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Browser related question
Rajagopal Swaminathan wrote: Greetings, Thanks for the reply. On Sat, Jan 30, 2010 at 12:58 AM, Agile Aspect agile.asp...@gmail.com wrote: It's clear what it is you're trying to do, but If you're running Apache, turn on I am not running apache and it may not be feasible as the clients are not endowed enough. If the client can't reach the site, then it should be clear the server won't be able to log the attempt. In fact this is exactly the condition I wanted to capture as unavailability window FWIW, I am approaching this with tcpdump tcpdump -s 0 -A -i eth0 -n -q - '(dst host mumble and dst port 80) and tcp[13] == 2' Basically checking for the SYN flag in the outgoing traffic. But it is generating too much data for my purposes. Another approach I have in mind is running a proxy and logging the outgoing connection -- will that be resource hungry? I've never tried squid Depending on the nature of the content and the number of users, running a squid with caching enabled can be a resource win - and it will give you the log you want as long as the browser(s) are configured to use it. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Browser related question
Les Mikesell wrote: Depending on the nature of the content and the number of users, running a squid with caching enabled can be a resource win - and it will give you the log you want as long as the browser(s) are configured to use it. if you have control over the internet gateway, you can force -all- web traffic to transparently be routed to the squid proxy, and then process the squid access and error logs, perhaps with a perl script (perl really rocks for this sort of thing). ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Recover /usr/lib/libc.a
Hello, I'm using Centos: /proc/version = Linux version 2.6.18-128.el5 (mockbu...@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Wed Jan 21 10:44:23 EST 2009 I did a mistake and erased libc.a from /usr/lib How can I recover it without reinstalling Centos ? Thanks. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Browser related question
Greetings, Thanks for the reply. On Sat, Jan 30, 2010 at 11:25 AM, Les Mikesell lesmikes...@gmail.com wrote: Depending on the nature of the content and the number of users, running a squid with caching enabled can be a resource win - and it will give you the log you want as long as the browser(s) are configured to use it. IOW, Two programs Firefox and squid proxy running every such box : Centos Desktops running in GUI mode. Will 512MB RAM be sufficient to what you are suggesting? I have over 300 such desktops distributed across the geographical having a unpredictable connectivity and each one of them just use one browser based on-line application and some cron scripts for monitoring and logging simple details. Changing the h/w configuration is nearly impossible now.. or is there another lightweight solution? Thanks again Les, Regards Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Browser related question
Greetings, On Sat, Jan 30, 2010 at 11:28 AM, John R Pierce pie...@hogranch.com wrote: if you have control over the internet gateway, you can force -all- web traffic to transparently be routed to the squid proxy, and then process the squid access and error logs, perhaps with a perl script (perl really rocks for this sort of thing). Thanks John for the reply and suggestion. It seems increasingly certain that I will have setup proxy. Regards Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Recover /usr/lib/libc.a
On Sat, 2010-01-30 at 08:14 +0200, Zvi Vered wrote: I did a mistake and erased libc.a from /usr/lib How can I recover it without reinstalling Centos ? /usr/lib/libc.a is provided as part of the glibc-devel rpm. If you merely erased the file with a rm command or something like that, you can probably just download the glibc-devel rpm from your friendly neighbourhood Centos mirror site, extract libc.a from it and copy it back into /usr/lib. Or you could download the glibc-devel rpm and use the rpm command with the --replacepkgs directive to reinstall the whole rpm. Either method should work. -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos