Re: [CentOS-es] Problema con shutdown
El 23/04/10 21:54, Enrique Verdes escribió: Hola, tengo CentOS 5.3 instalado en un servidor HP ML110. Cloné la instalación con Clonezilla, y a partir de eso, al ejecutar shutdown -h (o cualquier otra orden de apagado como init 0 o poweroff) en vez de apagarse el sistema reinicia. He buscado en google pero no he encontrado nada sobre esto. ¿A alguien le ha pasado antes? ¿Alguna idea de cual puede ser la causa? Hola Prueba ponerle acpi=force en la linea kernel en grub.conf, esto suele servir en servidores que no se apagan y quedan con el mensaje system halted pero igual te ayuda (puedes probar primero a añadirlo en la linea kernel durante el arranque) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) AntiVirus: ClamAV 0.95.2/10803 - Sat Apr 24 10:38:15 2010 by Markus Madlener @ http://www.copfilter.org ___ CentOS-es mailing list CentOS-es@centos.org http://lists.centos.org/mailman/listinfo/centos-es
[CentOS-es] iptables
saludos amigos, me había montado un squid trasnaparente que al final no me funcionó del todo bien, pero al eliminarlo me ha cancelado todo el trafico http de mi red. Sospeché que era una regla predefinida en iptables, así que al dar un service iptable status me da entre otras cosas lo sgte: Tabla: nat Chain PREROUTING (policy ACCEPT) num target prot opt source destination 1REDIRECT tcp -- 10.31.246.0/24 0.0.0.0/0 tcp dpt:80 redir ports 3128 Necesito ayuda para eliminar esta regla, ya que no deja a mi red acceder a los sitios que tengo montado en mi server. Gracias de antemano. -- Orlando Pantoja Jr Administrador de Red Centro Universitario Municipal Mella Telef. +53 (22) 457126 Email: orla...@mumella.uo.edu.cu orlanj...@gmail.com Linux User: 500152 ___ CentOS-es mailing list CentOS-es@centos.org http://lists.centos.org/mailman/listinfo/centos-es
Re: [CentOS] iptables
I have installed shorewall at late last night and i forget it today i've restart my server now i am not able to connect it :D is there any way to connect shorewall ? 24 Nisan 2010 01:44 tarihinde cahit Eyigünlü cahit.eyigu...@gmail.comyazdı: Wow i see it is very cool, and now i am starting to use it also :) +1 from me too :) thanks to every body for all help 2010/4/24 Ron Loftin relof...@twcny.rr.com On Fri, 2010-04-23 at 18:16 -0400, Alan McKay wrote: Have a look at shorewall (google it) for the best thing I've ever seen for managing a Linux firewall I agree about Shorewall. I've been using it for several years, and it does take a lot of the pain out of managing iptables. That being said, I will add my voice to the others on this list that point out that the OP's mods to /etc/sysconfig/iptables are very dangerous, and indicate a lack of understanding of how iptables and network security actually operate. Some study of basic principles and best practices is essential to managing a firewall configuration, regardless of the tool that is used. My $0.02 (US) worth for today. 2010/4/23 cahit Eyigünlü cahit.eyigu...@gmail.com: how could i add / remove iptable rules on cet os 5.4 final for tcp / udp base on ports -- 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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] iptables
cahit Eyigünlü sent a missive on 2010-04-24: I have installed shorewall at late last night and i forget it today i've restart my server now i am not able to connect it :D is there any way to connect shorewall ? If you have locked yourself out then you'll need to have physical access to the machine and log in using the console. You may also be interested in a linux based firewall such as IPCOP. http://www.ipcop.org or http://sourceforge.net/apps/trac/ipcop/wiki, but this will turn the machine into a dedicated firewall. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] iptables
Problem is different problem grub load error 2 unfortunatelly 2010/4/24 Simon Billis si...@houxou.com cahit Eyigünlü sent a missive on 2010-04-24: I have installed shorewall at late last night and i forget it today i've restart my server now i am not able to connect it :D is there any way to connect shorewall ? If you have locked yourself out then you'll need to have physical access to the machine and log in using the console. You may also be interested in a linux based firewall such as IPCOP. http://www.ipcop.org or http://sourceforge.net/apps/trac/ipcop/wiki, but this will turn the machine into a dedicated firewall. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] URGENT
I had a geub loader error 2 on starting centos and i am able to connect rescue system this is the result how could i get system work r...@rescuecd64 ~ # grub Probing devices to guess BIOS drives. This may take a long time. Unknown partition table signature GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub find /boot/grub/stage1 find /boot/grub/stage1 Error 15: File not found grub ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] USB keys
*shrug* Looks good to me. I just do not understand why it's such a song and dance, rather than, say, syslinux /dev/sdb1 mount /dev/sdb1 /tmp/mnt mount -o loop CentOSiso /mnt cp -pr /mnt/ /tmp/mnt mark The last time I installed from a USB key all I did was:- wget http://mirrors.dedipower.com/centos/5.4/os/i386/images/diskboot.img dd if=/path/to/diskboot.img of=/path/to/usb.key I even was able to muck around to create my own kickstart file. -- John Maclean 07739 171 531 MSc (DIC) Enterprise Linux Systems Engineer ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] URGENT
Hi, Have you try this : r...@rescuecd64 ~ # grub-install /dev/sda (or some device that installed CentOS) 2010/4/24 cahit Eyigünlü cahit.eyigu...@gmail.com: I had a geub loader error 2 on starting centos and i am able to connect rescue system this is the result how could i get system work r...@rescuecd64 ~ # grub Probing devices to guess BIOS drives. This may take a long time. Unknown partition table signature GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub find /boot/grub/stage1 find /boot/grub/stage1 Error 15: File not found grub ___ 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] URGENT
It had solved , the error encounters from thousands of a bad sectors :( i do not know how it happened but recovery system has repaired after then mount /dev/sda /mnt ext3 grub-install /dev/sda has worked thanks 2010/4/24 Wahyu Darmawan wahyu.darma...@gmail.com Hi, Have you try this : r...@rescuecd64 ~ # grub-install /dev/sda (or some device that installed CentOS) 2010/4/24 cahit Eyigünlü cahit.eyigu...@gmail.com: I had a geub loader error 2 on starting centos and i am able to connect rescue system this is the result how could i get system work r...@rescuecd64 ~ # grub Probing devices to guess BIOS drives. This may take a long time. Unknown partition table signature GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub find /boot/grub/stage1 find /boot/grub/stage1 Error 15: File not found grub ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RHEL 6 Beta available for public download
On 04/23/2010 02:52 PM, Niki Kovacs wrote: ... Machine 2 : installer goes a little further, asks about the storage, and when I choose the default, it freezes. I had to boot the installer with nmi_watchdog=0 to avoid it to freeze during installation. Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Fax: +45 33 27 47 08 Email: m...@crc.dk Homepage: http://www.crc.dk ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problem shuting down server.
El 23/04/10 21:32, Enrique Verdes escribió: Have Centos 5.3 installed in a HP ML110 server. After cloning disk using Clonezilla, if I issue a shutdown -h now, or any other command to shut down the server (i.e. init 0 or poweroff), instead of shutting down the server reboots. I googled but could't find any answer. ¿Does anybody has a clue about why this is happening? Hello Try adding acpi=force to the kernel boot parameters. This uses to work in machines not finishing shutting down and stay in system halted message. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) AntiVirus: ClamAV 0.95.2/10803 - Sat Apr 24 10:38:15 2010 by Markus Madlener @ http://www.copfilter.org ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] creating a local repo
rsync'ing ain't working for me. Is this the right syntax? rsync -avrt rsync://mirror.ovh.net/centos/5.4/updates/i386 --exclude=debug/ updates/ rsync: getaddrinfo: mirror.ovh.net 873: Temporary failure in name resolution rsync error: error in socket IO (code 10) at clientserver.c(107) [receiver=2.6.8] -- John Maclean 07739 171 531 MSc (DIC) Enterprise Linux Systems Engineer ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] creating a local repo
rsync'ing ain't working for me. Is this the right syntax? rsync -avrt rsync://mirror.ovh.net/centos/5.4/updates/i386 --exclude=debug/ updates/ rsync: getaddrinfo: mirror.ovh.net 873: Temporary failure in name resolution Your dns isn't working for you:) But, rsync rsync://mirror.ovh.net ftp.apache.org CPAN ftp.kernel.org ftp.mysql.com ftp.postfix.org ftp.qmail.org ftp.xfree86.org gentoo-distfiles gentoo-portage debian debian-non-US ubuntu ftp.centos.org download.fedora.redhat.com opensuse ftp.slackware.com Your path is wrong anyway... rsync -avrt --exclude=debug/ rsync://mirror.ovh.net/ftp.centos.org/5/updates/ updates/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RHEL 6 Beta available for public download
Mogens Kjaer a écrit : On 04/23/2010 02:52 PM, Niki Kovacs wrote: ... Machine 2 : installer goes a little further, asks about the storage, and when I choose the default, it freezes. I had to boot the installer with nmi_watchdog=0 to avoid it to freeze during installation. Where do you get this sort of install option from ? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RHEL 6 Beta available for public download
Niki Kovacs wrote: Mogens Kjaer a écrit : On 04/23/2010 02:52 PM, Niki Kovacs wrote: ... Machine 2 : installer goes a little further, asks about the storage, and when I choose the default, it freezes. I had to boot the installer with nmi_watchdog=0 to avoid it to freeze during installation. Where do you get this sort of install option from ? Append it to the kernel boot options; it's not an installer option, it's a kernel option. See e.g. http://centos.org/modules/newbb/viewtopic.php?topic_id=23135forum=37 HTH, Timo ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Caching synchronous writes
On Apr 22, 2010, at 8:08 PM, Ray Van Dolson ra...@bludgeon.org wrote: On Thu, Apr 22, 2010 at 03:57:01PM -0700, nate wrote: John R Pierce wrote: Ray Van Dolson wrote: I think what you want is a proper storage array with mirrored write cache. Which is what we have with ZFS + SSD-based ZIL for far less money than a NetApp. not unless you have a pair of them configured as an active/standby HA cluster, sharing dual port disk storage, and some how (magic?) mirroring the cache pool so that if the active storage controller/server fails, the standby can take over wthout losing a single write. OT too but really thought this was a good post/thread on ZFS http://www.mail-archive.com/zfs-disc...@opensolaris.org/msg18898.html ZFS is designed for high *reliability* [..] You want something completely different. You expect it to deliver *availability*. And availability is something ZFS doesn't promise. It simply can't deliver this. Yep... and something you of course know going in. Don't want to get off on a tangent on that -- am still interested what type of solutions in the Linux world are out there that can approximate what an SSD based ZIL does for ZFS. Kent Overstreet (from lkml) mentioned that his bcache patch is intented to do something very similar. So I guess that's my answer -- it's not here yet, so sounds like the controller is the only way to achieve this currently. How about locating XFS journal on SSDs and using HW RAID controller with big NVRAM cache. That should be a lot faster than ZFS with SSD ZIL. NFS should always be 'sync' if performance isn't good, then your storage isn't good. -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Caching synchronous writes
Ross Walker wrote: NFS should always be 'sync' if performance isn't good, then your storage isn't good. Why demand sync on remote storage when you typically don't have it locally? Programs that need transactional integrity should know when to fsync() and for anything else there's not much difference whether you crash before or after a write() was issued in terms of it not completing. -- Les Mikesesll lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Caching synchronous writes
On Apr 24, 2010, at 12:43 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: NFS should always be 'sync' if performance isn't good, then your storage isn't good. Why demand sync on remote storage when you typically don't have it locally? Programs that need transactional integrity should know when to fsync () and for anything else there's not much difference whether you crash before or after a write() was issued in terms of it not completing. Yes, but 'async' ignores those fsyncs and returns immediately. -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] iSCSI / GFS shared web server file system
On Apr 23, 2010, at 1:00 PM, James jch...@mandaladesigns.com wrote: http://sources.redhat.com/cluster/doc/nfscookbook.pdf I think it'd be much easier if you just replicate the data between the servers with rsync or something. GFS sounds like way overkill for a couple of web servers. Maybe you're right that GFS would be overkill -- I know you have to setup the whole clustering environment before it will work. Even though NFS would be easy to setup, it seems like it would just add more servers into the mix. We really want to achieve automatic failover at all levels and setting up NFS to replicate in real time and run the extra servers for that seems like it would require more resources. I'd rather put the time into understanding the complexities of the clustering environment setup and management and save some server sprawl I'll look into OCFS2 and gluster to see if those are good options. Thanks for those suggestions. Web servers are mostly read-only, so unless your web servers are going to do a lot of writing to shared storage I would simply use rsync to a local disk in each server, or use NFS, even NFS and heartbeat for redundancy will be 100 times simpler to setup and maintain. GFS/OCFS2/Gluster/Lustre are really for multi-writers to shared storage such as a large NFS server cluster (4-8-16 nodes) serving thousands of clients for general file services, not thousands of clients accessing shared storage directly. -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Caching synchronous writes
Ross Walker wrote: On Apr 24, 2010, at 12:43 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: NFS should always be 'sync' if performance isn't good, then your storage isn't good. Why demand sync on remote storage when you typically don't have it locally? Programs that need transactional integrity should know when to fsync () and for anything else there's not much difference whether you crash before or after a write() was issued in terms of it not completing. Yes, but 'async' ignores those fsyncs and returns immediately. That sounds like a bug in the nfs client code if fsync() doesn't block until all of the data is committed to disk. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Caching synchronous writes
On Apr 24, 2010, at 4:34 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: On Apr 24, 2010, at 12:43 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: NFS should always be 'sync' if performance isn't good, then your storage isn't good. Why demand sync on remote storage when you typically don't have it locally? Programs that need transactional integrity should know when to fsync () and for anything else there's not much difference whether you crash before or after a write() was issued in terms of it not completing. Yes, but 'async' ignores those fsyncs and returns immediately. That sounds like a bug in the nfs client code if fsync() doesn't block until all of the data is committed to disk. It's not the client side I'm talking about, but the server side. We were talking NFS servers and exporting sync (obey fsyncs) vs async (ignore fsyncs). The client always mounts async, that's not the problem. -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Caching synchronous writes
Ross Walker wrote: On Apr 24, 2010, at 4:34 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: On Apr 24, 2010, at 12:43 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: NFS should always be 'sync' if performance isn't good, then your storage isn't good. Why demand sync on remote storage when you typically don't have it locally? Programs that need transactional integrity should know when to fsync () and for anything else there's not much difference whether you crash before or after a write() was issued in terms of it not completing. Yes, but 'async' ignores those fsyncs and returns immediately. That sounds like a bug in the nfs client code if fsync() doesn't block until all of the data is committed to disk. It's not the client side I'm talking about, but the server side. We were talking NFS servers and exporting sync (obey fsyncs) vs async (ignore fsyncs). The client always mounts async, that's not the problem. That's different. I thought the nfs spec was always sync on the server side and the client says when async is OK. And there's some special case response to handle the case where the server rebooted between the async writes and the subsequent fsync(). -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Caching synchronous writes
On Apr 24, 2010, at 4:53 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: On Apr 24, 2010, at 4:34 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: On Apr 24, 2010, at 12:43 PM, Les Mikesell lesmikes...@gmail.com wrote: Ross Walker wrote: NFS should always be 'sync' if performance isn't good, then your storage isn't good. Why demand sync on remote storage when you typically don't have it locally? Programs that need transactional integrity should know when to fsync () and for anything else there's not much difference whether you crash before or after a write() was issued in terms of it not completing. Yes, but 'async' ignores those fsyncs and returns immediately. That sounds like a bug in the nfs client code if fsync() doesn't block until all of the data is committed to disk. It's not the client side I'm talking about, but the server side. We were talking NFS servers and exporting sync (obey fsyncs) vs async (ignore fsyncs). The client always mounts async, that's not the problem. That's different. I thought the nfs spec was always sync on the server side and the client says when async is OK. And there's some special case response to handle the case where the server rebooted between the async writes and the subsequent fsync(). All the NFS info you wanted, but were afraid to ask: http://nfs.sourceforge.net/ -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] IPV6 and DNS...
On 23/04/10 10:19, John Doe wrote: Hi, I keep getting entries like these in my logs: network unreachable resolving '0.centos.pool.ntp.org//IN': 2001:500:40::1#53: 1 Time(s) network unreachable resolving '0.centos.pool.ntp.org//IN': 2001:500:e::1#53: 1 Time(s) network unreachable resolving '0.centos.pool.ntp.org//IN': 2001:dc3::35#53: 1 Time(s) I don't see any IPV6 parameters to disable in named.conf, apart from the 'listen-on-v6' which I commented, and the 'query-source-v6' which is commented by default... I disabled IPV6 in the sysconfig files; but not in the modprobe.conf though... Can I just ignore these errors? if you want to ignore these, yes its fine to do that. but a better fix is to stop the client from looking these up and go straight to only using ipv4 if thats all you really need. You'll notice a non-trivial increase in dns performance as well. -- Karanbir Singh kbsi...@karan.org | http://www.karan.org/ | twitter.com/kbsingh ICQ: 2522219 | Yahoo IM: z00dax | Gtalk: z00dax GnuPG Key : http://www.karan.org/publickey.asc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos