Re: [CentOS] Copying CentOS to new drive
On Wed, 2016-05-04 at 12:38 +0200, Timothy Murphy wrote: > I recently asked about copying a running system to a new drive. > > As a postscript, I'm wondering if it would have been preferable > to run the machine under a Live OS, and simply copy the root partition > to the new drive? > Eg while running under the LiveOS, > # mkdir /mnt/old /mnt/new > # mount /dev/sda7 /mnt/old > # mount /dev/sdb6 /mnt/new > # cp -avx /mnt/old /mnt/new > or > # rsync -ax --progress /mnt/old /mnt/new When copying systems I developed a preference for cpio; fewer problems handling weird inode types. My typical recipe is: - rescue boot the new system and create my desired disk partitioning - decide what top level directories I want duplicated on the new system - iterate through them: for i in bin boot lib etc ; do mkdir -p /mnt/sysimage/$i ssh root@$OLDSYSTEM "cd /$i && find . -xdev -print0 | cpio --null -oaVc" | (cd /mnt/sysimage/$i && cpio --no-absolute-filenames -imVdc ) done - make any adjustments that might necessary in the configuration - if this was a copy of a running system I might quiesce the original, do a final rsync of data that might have changed between now and when I made the cpio copy - grub-install (or equivalent) - release the hounds. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Using a CentOS 6 Machine as a gateway/router/home server
On Sun, 2015-06-28 at 14:50 -0400, Max Pyziur wrote: I haven't setup the firewall yet (dangerous, I know) until I get the connectivity working. I'm obviously overlooking some other configuration settings required for machines inside the network being able to connect through the gateway/router. As others have pointed out, you're either missing a NAT layer or you got a large enough IP allocation to subnet and you haven't set up routing. Probably safe to assume it's NAT. I'd suggest at a minimum you install something like shorewall to assist in managing your firewall and IP masquerading tasks. It's available in EPEL, is very well documented, and provides enough built in sanity checks to protect you against making some silly (and some not so silly) mistakes in your firewall management. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host
On Fri, 2015-05-01 at 01:32 -0400, Tim Dunphy wrote: And I made sure the local firewall was stopped, because I am blocking ports with the security groups instead. [root@ops:~] #service iptables status Firewall is stopped. Does iptables -L show anything of note? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host
On Fri, 2015-05-01 at 15:28 -0400, Tim Dunphy wrote: Hi Brian, Does iptables -L show anything of note? I'm leaving iptables off in this host. Because it's an AWS EC2 host I'm managing the firewall ports using the AWS security groups. [root@ops:~] #service iptables status Firewall is stopped. But still, there's this... [root@monitor1:~] #/usr/local/nagios/libexec/check_nrpe -H ops.jokefire.com CHECK_NRPE: Error - Could not complete SSL handshake. Sadly :( Thanks for your input tho! Does 'ldd /usr/local/nagios/bin/nrpe' show any missing libs? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Could not complete SSL handshake to Amazon EC2 host
On Fri, 2015-05-01 at 00:46 -0400, Tim Dunphy wrote: [root@ops:~] #cat /etc/xinetd.d/nrpe # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE socket_type = stream port= 5666 wait= no user= nagios group = nagios server = /usr/local/nagios/bin/nrpe server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 127.0.0.1 xx.xx.xx.xx # - representing my real nagios server IP } Does anyone have any suggestions on how I can get that problem solved? Thanks, Tim Does /usr/local/nagios/etc/nrpe.cfg exist and is it readable by user or group 'nagios'? Did the user:group 'nagios' get created when you did the installation? Those were my two routine stumbles before I automated rollouts. Regards, ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Centos laptop support
On Wed, 2014-10-01 at 22:57 -0600, Frank Cox wrote: I'm wondering what the rest of you fine folks do when it comes to purchasing a laptop? Been using CentOS.available on a series of Dell Precision laptops (M4300, M4600) since 2007 or so without much difficulty. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 7 for i686
On Fri, 2014-09-12 at 18:23 +0530, Jatin Davey wrote: Hi List Is there going to CentOS 7 for i686 architecture ? If yes , when will it be released ? Upstream says: https://access.redhat.com/solutions/509373 , I'd expect CentOS to follow suit. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Centos 6 : ClamAV out-of-date ???
On Mon, 2014-08-11 at 03:28 +0100, Always Learning wrote: On one Centos 6.5 server, but not on other C 6.5 servers, Logwatch daily tells me:- Last Status: WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.98.3 Recommended version: 0.98.4 : freshclam -V ClamAV 0.98.4/19275/Sun Aug 10 17:26:35 2014 : clamd -V ClamAV 0.98.4/19275/Sun Aug 10 17:26:35 2014 : rpm -qa clam\* clamd-0.98.4-1.el6.rf.x86_64 clamav-db-0.98.4-1.el6.rf.x86_64 clamav-0.98.4-1.el6.rf.x86_64 I am puzzled and wonder how I can resolve this minor irritation. Could it be that the package installed but the running daemon did not get restarted? I don't know if freshclam checks the on-disk image or queries the running binary during the version check. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Centos 6 full backup software?
On Wed, 2014-07-16 at 21:50 +0200, Rafał Radecki wrote: Hi All ;) I need a good tool to backup whole system on block level rather than file level and easy to use. I currently need to backup to an USB disc (50+ GB of data) a system and then reinstall it. In the future if needed I will revert to the system from backup ;) What can you recommend? 'dd'. I use it routinely when doing p2v migrations of older hardware and when migrating heavily customized systems between hardware. Which brings up the point maybe you might want to investigate virtualization options if you strongly suspect you'll have a requirement to revert via a bare metal restoration procecure. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] find with exclude directory
On Sun, 2014-05-11 at 12:33 -0400, Tim Dunphy wrote: Hey all, I'm trying to do a find of all files with the phrase 'varnish' in the name, but want to exclude a user home directory called /usr/local/digitalplatform. find / -path /usr/local/digitalplatform -prune -name \*varnish\* doesn't work? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Multicast packages dropped
On Tue, 2014-02-25 at 11:12 +, uwe.pol...@amann.com wrote: Hi, I have recently updated one of my systems from CentOs 6.4 to CentOS 6.5. This systems is used as a RIPv2 routing server with quagga which is the termination point of some GRE tunnels. While running CentOS 6.4 I see the multicast packages arriving at the eth0 and the GRE tunnel interface. While running under CentOs 6.5 I can see the multicast packages arriving at the eth0 but not on the GRE tunnel interface. I am receiving and sending routes at the eth0 interface, but I am only able to send updates through the GRE tunnel not receive them. All interfaces are multicast enabled: [snip] Between the -358 and -431 kernel releases from upstream there has been a lot of multicast weirdness going on. If you're currently running -431 try rolling back to the last -358 (or vice-versa) and rerun your tests to see if the behavior changes. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] FYI: CentOS legalese
On Mon, 2014-02-24 at 12:28 +, jb wrote: Putting the Genie Back in the Bottle: More RedHat Legal Shenanigans with CentOS http://nerdvittles.com/?p=8721 Closing the Book on CentOS: [...] http://nerdvittles.com/ Thanks to the author of the above articles. The author of those pieces needs to read a bit closer. His claim: In a nutshell, the new RedHat Terms of Service outlaw use of CentOS in any product “unless the combined distribution is an official CentOS distribution.” is not supported by any evidence he provides. What is made clear is that one cannot use the CentOS marks (ie logos, etc.) in a derivative distribution. Seems to be much sound and fury... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Forward http traffic
On Wed, 2014-01-08 at 11:23 -0800, John R Pierce wrote: that doesn't make any sense. a SYN packet comes in, is forwarded to serverA and serverB both servers reply with an 'ack' man, is the client tcp stack going to be confused! He didn't say anything about both servers replying, only that he wanted to mirror all port 80 traffic. Maybe he's trying to develop a protocol specific IDS, or maybe he wants to build some sort of OOB transaction log of his HTTP traffic. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] chkconfig question
On Sat, 2013-12-14 at 16:09 -0500, Larry Martell wrote: On Sat, Dec 14, 2013 at 4:01 PM, m...@tdiehl.org wrote: On Fri, 13 Dec 2013, Larry Martell wrote: On Fri, Dec 13, 2013 at 5:21 PM, m.r...@5-cent.us wrote: Larry Martell wrote: On Fri, Dec 13, 2013 at 5:04 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 13.12.2013 23:00, schrieb Larry Martell: In the docs for chkconfig it says: More commonly, the service is off by default on all runlevels, which looks like this: # chkconfig: - 20 80 But services with a chkconfig entry like that are started at boot time (e.g. mysql, httpd). So when do they get started? when they are enabled with chkconfig service on look at /etc/rc0.d/ to /etc/rc6.d chkconfig finally creates symlinks there But at what run levels is my question. Looking at mysqd, it has: # chkconfig: - 64 36 and I see a S64mysqld link in rc 2, 3, 4, and 5. Why in those 4 dirs? Will all scripts with - in the chkconfig entry be started at those 4 levels? How is putting - different from putting 2345? Runlevel 0 is poweroff. 1 is single user/maintenance mode. 4, well, no one actually uses 4. And 6 is reboot. So, once the network's up, text mode and X-mode. Thanks, but what was I wondering was what is the difference between putting - and 2345 on the chkconfig entry. The - means that it is not enabled. The 2345 means that it gets started in run levels 2, 3, 4 and 5. That's what one would think from the docs, but in fact in both cases the service is started in run levels 2, 3, 4, and 5. The I Think the key word is _default_. From the man page: If the service should not, by default, be started in any runlevels, a - should be used in place of the runlevels list. So _by default_, mysqld is not started in any run level. If you run 'chkconfig mysqld reset' with the initfile data you show above then mysqld startup should be disabled, just as if you had run 'chkconfig mysqld off'. If instead the string '2345' appeared there instead of '-' then _by default_ mysqld would start. Think of it as controlling the fresh-out-of-the-box on/off state of the service in question. Make sense? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum problem
On Sat, 2013-09-07 at 13:01 +0100, Phil Dobbin wrote: I'm experiencing a problem with Yum. When I call 'sudo yum update' it tells me that it can't find any mirrors after doing a 'sudo yum clean all' it just informs me it can't find any base repo quits. This is on a brand new installation of CentOS 6.2 x86_64. I suffered the same problem with Fedora 19 too. I have several Ubuntu Mac OS X machines that suffer no network connection problems I can connect to the InterWeb just fine (via two HP Procurve 2426s). But can you connect to the 'net via the newly-installed CentOS box? brian ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] floppy drives
On Sun, 2013-04-07 at 16:43 -0400, mark wrote: On 04/07/13 16:22, Frank Cox wrote: Floppy disks have a finite usable life. Depending on where and how you have been storing them, they may be shot. Yeah, but I tried three of 'em, three different OEM, and three ages, and they all give me fdisk saying it's not a valid block device. If they were all written with the same drive it's also possible the head alignment had drifted which will make things...interesting. Try formatting a scratch floppy to see if you can write. If that works but you still can't read, evidence that it's indeed an alignment mismatch. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] video capture
On Sun, 2013-01-06 at 12:31 -0500, Mark LaPierre wrote: Hey all, I'm looking for a application that I can use to capture video from a USB web camera. [...] Any suggestions? Have you tried vlc? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Yum segmentation fault updating from 5.6 to 5.7
On Thu, 2011-09-15 at 18:37 +0200, sebasti...@datafaber.net wrote: And there's also plenty of available space on the other 5 boxes which exhibit the same issue. Sorry if this has been suggested already - have you tried running with all plugins disabled? 'yum --noplugins check-update' I have a very vague memory of encountering a problem similar to this years ago when my mirrors file was corrupted. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Interactive PXE install
On Thu, 2011-08-04 at 16:51 -0700, Kenneth Porter wrote: The guides for a LAN install I've found all want to do an automated kickstart install. Are there any guides that explain how to use eg. CentOS-6.0-i386-netinstall.iso for an interactive PXE installation? I don't know of any howtos off the top of my head beyond kickstart documentation, but if you plan to do this more than once (and you very well may once you get a feel for how convenient pxe booted installs can be) you should take a look at Cobbler: https://fedorahosted.org/cobbler/ Piece of cake once this is stood up. brian ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] recursively find duplicate filenames
On Wed, 2011-01-05 at 08:48 -0800, S Mathias wrote: duplicate filenames While I realized that English is not the default language in Hungary, common courtesy would seem to dictate that if you're going to repeatedly forward your homework questions to scores of mailing lists you should at least make an attempt at more civility and less curtness in your responses. At least until someone gets around to moderating you off of this list. plonk ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] No ices for icecast ?
On Sun, 2011-01-02 at 00:16 +, Keith Roberts wrote: but cannot find the ices package for sending the audio to icecast for it to stream. I would like to send the data as mp3, if there is a suitable program to do this. Has anyone on the list done this on Centos? Yep, about three weeks ago. http://icecast.org/ices.php , if you want mp3 you need ices0. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] IPV4 is nearly depleted, are you ready for IPV6?
On Sun, 2010-12-05 at 14:13 +0100, RedShift wrote: And what about this arbitrarily chosen /64 subnet? So we're returning back to classfull routing? A provider won't be able to purchase a subnet greater than /64 from for example RIPE? Within a reasonable planning horizon, what provider would need ~1.84*10^19 (or for those who don't grok exponential notation 184,00,000,000,000,000,000) addresses? brian ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos