[CentOS] centos 6 rpmbuild
I have a spec file that is doing a binary rpm build. This spec file works on centos 5 but fails on centos 6 for file not found. Here is the files section: %files %defattr(-,root,root) %defverify(not mtime group) %config /etc/captureProxy.conf /etc/init.d/captureProxy /etc/logrotate.d/captureProxy /usr/bin/captureProxy %doc /usr/share/man/man5/captureProxy.conf.5 %doc /usr/share/man/man8/captureProxy.8 Here is the resulting error message: error: File not found: /vobs/linux/rpmbuild/captureProxy/usr/share/man/man5/captureProxy.conf.5 error: File not found: /vobs/linux/rpmbuild/captureProxy/usr/share/man/man8/captureProxy.8 RPM build errors: File not found: /vobs/linux/rpmbuild/captureProxy/usr/share/man/man5/captureProxy.conf.5 File not found: /vobs/linux/rpmbuild/captureProxy/usr/share/man/man8/captureProxy.8 The two doc files are getting compress to .gz files in centos 6 but not in centos 5. and I have tracked it down to the %install section because if I do -bi instead of -bb and look at the files the base .5 and .8 files are now .gz. Can I fix this behavior? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Installing CentOS 5.4 64bit on server with LSI SAS 1068E controller.
On Fri, Nov 27, 2009 at 2:35 PM, Billy Huddleston bi...@ivdc.com wrote: I'm trying to install CentOS 5.4 on a machine with a LSI SAS 1068E controller. I've googled all over the place and found a few different drivers for RHEL5 for it.. and tried a few of them.. Some will load, some complain that this isn't the correct version.. non of them work when it comes to showing Hard Drivers in the partition manager. The machine is a Supermicro SYS-6015V-M3 server. Any help would be appreciated. run lspci on the system from the rescue mode of the installer disk. It will probably say something like Megaraid. We have a newer motherbaord from Super Micro and we had the same problem. The motherboard data info says LSI 1068E but depending on the jumper setting of the board it could be 1078E instead and that is not supported by Linux until a much later kernel (2.6.32). Jumper for IT mode and get the IT firmware and things will work correctly. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] serial console config package?
On Thu, Nov 19, 2009 at 12:42 PM, Jiann-Ming Su sujiannm...@gmail.com wrote: I've been installing CentOS via PXE and using a serial console interface. The installation works great. I notice that during the install process, the following line gets added automatically to /etc/inittab: co:2345:respawn:/sbin/agetty ttyS0 9600 vt100-nav Which package does this? Is it kudzu? Thanks for any insights. It is probably anaconda during the kickstart due to what you have in the kickstart file for doing the serial install. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] version pinning with yum
On Wed, Nov 18, 2009 at 8:33 AM, m.r...@5-cent.us wrote: Well, there's a bug in the globbing for the tcsh with 5.4, and my boss has filed a bug report. Meanwhile, I downgraded tcsh on those systems whose users use that as their shell. Until it's resolved, he wants me to pin the version. Googling, I see someone a few years ago, answering someone's question, suggested adding exclude=openoffice* near the top of /etc/yum.conf. I also see, more recently, several additional yum-related rpms, such as yum-versionlock. Will the first solution work (editing yum.conf), and, if so, for tcsh, would I need the asterisk, or would exclude=tcsh work? This should work if you are only wanting to exclude one package. The open office example has the wildcard because it is multiple packages. Haven't used yum-versionlock but it would need to be loaded on all machines to apply the lock. The other method although sometimes outputting more info when doing 'yum update' works as stated. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] On-Boot Scripts
On Fri, Nov 13, 2009 at 11:19 AM, Victor Subervi victorsube...@gmail.com wrote: Hi; Where do I add my on-bootup scripts? TIA, Victor either write an init script to be added to /etc/rc.d/init.d or add it to the end of /etc/rc.d/rc.local ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] kernel not booting after update
On Thu, Nov 12, 2009 at 9:22 PM, Ross Walker rswwal...@gmail.com wrote: On Nov 12, 2009, at 7:53 PM, Spiro Harvey sp...@knossos.net.nz wrote: I would backup ALL your file systems off that disk, perhaps using a This is a fresh install, so that's not an issue. Linux rescue CD, then configure the controller in the BIOS for JBOD, use a rescue disk to build mdraid partitions, and restore your files from the backups. you may have to rebuild the /boot/initrd on the system to dump the fakeraid (dmraid) driver and enable the mdraid native linux raid driver I'm interested in knowing why the machine isn't booting some kernels, but will happily boot another. I figure if it's a hardware issue, then it should be an all-or-nothing issue? I'm positive this is the same spec as the last servers built for this same purpose, but the others are now on the other side of the country, so I can't access them to verify. So assuming the hardware is exactly the same, and assuming there's something in the -164 kernel that doesn't like that particular fake raid card, then I still can't see why I can't boot the -128 kernel as that's what the other boxes have running. :/ You might have installed a driver for the fake raid before which added it to /etc/modprobe.conf and did a mkinitrd to add it to the initrd during boot, but at some point removed it and from that point on newer kernels didn't get the driver in their initrd images? If the /boot is also part of the raid and it is a soft raid (fake raid is the same) then maybe only one of the mirror is being updated and grub is looking at the other mirror and not finding the files needed. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Build a LiveCD?
On Tue, Nov 10, 2009 at 9:33 PM, Niki Kovacs cont...@kikinovak.net wrote: Hi, I have a highly customized desktop built from CentOS 5.4 and RPMForge repos (plus some stuff of my own). I'd like to build a LiveCD from that, for one very specific reason. I have a medical application (MedinTux) that would be very handy to demonstrate to doctors, hospital staff, etc. with a LiveCD. Have you looked here: https://projects.centos.org/trac/livecd/wiki/CreateImage ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Spacewalk or Puppet?
On Wed, Nov 4, 2009 at 11:46 AM, Les Mikesell lesmikes...@gmail.com wrote: nate wrote: But will the tool do these changes for me? The tool will do anything you tell it to, it's a generic tool. OK, but if I have to write the script, why wouldn't I just write the script my way and automate it over ssh which already works instead of learning some new language and having to install some new agent everywhere to run it? You could define a class that runs a script to detect the network settings, if it is forced to full duplex it would return true, which would then trigger another command to run or config files to get copied, if configs are copied after that it could execute another command(perhaps snmpset to change the switch config or something). It's next to impossible to get or set a duplex setting via snmp. And non-trivial to figure out what switch port is connected to what device - OpenNMS does a reasonable job but if you activate all of its checks it can kill things that have full bgp routes. Saw something about this at LinuxCon. CME is using Cisco Discover Protocol and LLDP to figure out the info about the connected port, location, vlan and a bunch of other stuff. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] network mgmt - was Spacewalk or Puppet?
On Thu, Nov 5, 2009 at 1:44 PM, Les Mikesell lesmikes...@gmail.com wrote: Larry Brigman wrote: You could define a class that runs a script to detect the network settings, if it is forced to full duplex it would return true, which would then trigger another command to run or config files to get copied, if configs are copied after that it could execute another command(perhaps snmpset to change the switch config or something). It's next to impossible to get or set a duplex setting via snmp. And non-trivial to figure out what switch port is connected to what device - OpenNMS does a reasonable job but if you activate all of its checks it can kill things that have full bgp routes. Saw something about this at LinuxCon. CME is using Cisco Discover Protocol and LLDP to figure out the info about the connected port, location, vlan and a bunch of other stuff. That's interesting, thanks! I was surprised to see that cdpr (from epel) would pick up the name/ip/port from a connected Dell PowerConnect switch. But then I repeated it using the -v option and it found the upstream Cisco instead... The production switches are all Cisco though, so this might be a usable hack to permit pre-configuring machines to adjust themselves to whatever order the cables happen to be plugged in. The duplex option just shows a number and doesn't offer to interpret the value, but maybe I can look that up somewhere. cdpr is multicast udp packet. Other devices not Cisco will pass this on. Other Cisco devices will drop it since it is really only useful between devices. Other switch vendors wanted to be more vendor neutral and came up with the LLDP (Link Layer Discovery Protocol) which I don't think is on cheaper switches. The other think about CDPR is that unless the network admin has explicatlly turned this off, it is on by default in all Cisco gear. CME's basic usage model was to use this to notify the networking group about a mis-configuration by pointing them to the exact switch/port by name and number. They use nothing but Cisco gear. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Right way to set IO scheduler on CentOS
On Thu, Nov 5, 2009 at 8:39 PM, Ryan Wagoner rswago...@gmail.com wrote: Edit /etc/grub.conf and add elevator=deadline to the end of the kernel line. For example title CentOS (2.6.18-128.4.1.el5) root (hd0,0) kernel /vmlinuz-2.6.18-128.4.1.el5 ro root=LABEL=/ elevator=deadline initrd /initrd-2.6.18-128.4.1.el5.img doesn't work if you only want it on one of several drives. Your own /etc/init.d script or adding to rc.local. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] What about port mirroring? (Was: Switch to measure traffic at IP level)
On Fri, Oct 23, 2009 at 9:14 AM, Neil Aggarwal n...@jammconsulting.com wrote: Hello everyone: I was just reading an ntop guide and it mentioned many switches have port mirroring. According to what I am reading, the Cisco I am using will copy all traffic to the mirror port. Then, I can monitor what is going on from there. That seems like a good way to do this. Are there any pitfalls with this approach? Yes. Doing all traffic unless the switch is very lightly load could saturate the mirror port. The other pitfall is that you would need to high network performance nic/host set to capture that info. Would ntop be a good tool for it? I would like to graph total bytes in and out as well as 95% usage on an IP address level. I would like daily, weekly, and monthly graphs. SNMP monitoring of the switch could get you this details without port mirroring. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos