Re: [CentOS] Mount removed raid disk back on same machine as? original raid
On 3/14/2023 10:03 AM, Robert Heller wrote: At Tue, 14 Mar 2023 09:50:33 -0400 Bowie Bailey ,? CentOS mailing list wrote: I know I will have to bring the drive online as a broken array, but I've done that from other systems. The only question there is can I simply rebuild it with a different name. I assume I can just do "mdadm -A --run /dev/md0 /dev/sdc1" (possibly with "--force" due to the broken array) even if sdc1 was originally part of the existing md127 array? This should work. Unfortunately, no. The system would not mount the drive without some other changes. Listing the process here for anyone else who comes across this thread. Trying to start the array (with or without --force), fails with the message: mdadm: Found some drive for an array that is already active: /dev/md127 mdadm: giving up I found with some digging that I needed to change the UUID of the drive to be able to mount it separately from the existing array. I used "sgdisk -G /dev/sdg1" to do this. It worked, but gave quite a few scary warning messages in the process. A better idea would have been to use uuidgen to generate a random uuid and then start the array like this: mdadm --assemble /dev/md99 --update=uuid --uuid= /dev/sdg1 (might require --force for a broken array, I'm not sure since I didn't actually do it this way) Once the array is running, there is another problem. Attempting to mount the array gives another error: mount: wrong fs type, bad option, bad superblock on /dev/md99, missing codepage or helper program, or other error Useless error message. You have to look in dmesg to see the actual problem: XFS (md99): Filesystem has duplicate UUID 7e237dbd-6c24-4781-98d1-a1ae80a3ed13 - can't mount I would assume you would have a similar issue with any other filesystem. In my case, since it is XFS, I used uuidgen to generate another random uuid and then updated it like this: xfs_admin -U /dev/md99 After that, the filesystem mounted normally. Hopefully that is helpful for anyone else who finds themselves in this situation. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Mount removed raid disk back on same machine as original raid
On 3/8/2023 4:08 PM, Chris Adams wrote: Once upon a time, Bowie Bailey said: What is going to happen when I try to mount a drive that the system thinks is part of an existing array? I don't _think_ anything special will happen - md RAID doesn't go actively looking for drives like that AFAIK. And RAID 1 means you should be able to ignore RAID and just access the contents directly. However, the contents could still be a problem. If LVM was in use on it, that will be a problem, because LVM does auto-probe and will react when it sees the same UUID (IIRC LVM will only block access to the newly seen drive). I don't think any filesystems care (I know I've mounted snapshots of ext4 and IIRC xfs on the same system, haven't touched btrfs). I'm not using LVM on this drive, so that won't be an issue. My concern is that since the raid info on the drive will identify itself as part of the active raid, the system will try to add it to the raid (probably as a spare) when it comes online. I don't think that would be destructive, but I would have to figure out how to separate it out if that happens. I'm hoping that it won't be an issue since there are no missing drives in the existing raid. I know I will have to bring the drive online as a broken array, but I've done that from other systems. The only question there is can I simply rebuild it with a different name. I assume I can just do "mdadm -A --run /dev/md0 /dev/sdc1" (possibly with "--force" due to the broken array) even if sdc1 was originally part of the existing md127 array? The system in question is in a data center, so I'm trying to get ahead of any possible problems to avoid having to deal with unexpected issues while I'm there. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Mount removed raid disk back on same machine as original raid
I have a Centos 7 system with an mdraid array (raid 1). I removed a drive from it a couple of months ago and replaced it with a new drive. Now I want to recover some information from that old drive. I know how to mount the drive, and have done so on another system to confirm that the information I want is there. My question is this: What is going to happen when I try to mount a drive that the system thinks is part of an existing array? To put it another way: I had two drives in md127. I removed one (call it drive1), and replaced it with a new drive. Some files were accidentally deleted from md127, so now I want to connect drive1 back to the same machine and mount it as a separate array from md127 so I can copy the files from drive1 back to md127. What do I need to do to make that happen? Thanks, Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Connecting an android tablet to CentOS
On 9/14/2021 2:29 PM, Scott Robbins wrote: On Tue, Sep 14, 2021 at 11:09:34AM -0600, Frank Cox wrote: On Tue, 14 Sep 2021 17:01:29 + Richard wrote: [My android device file viewer(s) wouldn't get me into the Kindle data directory.] There's an app I use. Cx file explorer. It will go into the kindle directory, and from there, I can delete files. On the rare occasions I put a book in there--for example, at times, an author makes a free ebook available, I use jmtpfs. This is on a fairly minimal install with openbox, I suspect that Gnome's file manager might be able to do it. (I can with Fedora 34's live Gnome workstation). For copying files to and from my PC (including Kindle books), I use an app called WIFI FTP Server. It starts up an FTP server on your phone that you can connect to with Filezilla (or whatever) from your PC. The server is only active while the app is running and you can set a password. FTP is not a particularly secure protocol, but since I only used it when I'm on my home WIFI, it's not much of a risk. It lets me move files around without worrying about cables, drivers, USB modes, etc. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] iptables - how to block established connections with fail2ban?
On 6/26/2019 2:41 AM, MRob wrote: > I am working to a CentOS 6 server with nonstandard iptables system without > rule for > ACCEPT ESTABLISHED connections. All tables and chains empty (flush by legacy > custom > script) so only filter/INPUT chain has rules (also fail2ban chain): > > Chain INPUT (policy ACCEPT) > target prot opt source destination > f2b-postfix tcp -- 0.0.0.0/0 0.0.0.0/0 > ACCEPT all -- 192.168.0.0/16 0.0.0.0/0 > ACCEPT all -- 127.0.0.0/8 0.0.0.0/0 > ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 > ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 > ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 > ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 > ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 > ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:993 > ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:995 > DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp > flags:0x17/0x02 > > Chain f2b-postfix (1 references) > target prot opt source destination > REJECT all -- 200.23.235.30 0.0.0.0/0 reject-with > icmp-port-unreachable > REJECT all -- 177.11.167.57 0.0.0.0/0 reject-with > icmp-port-unreachable > RETURN all -- 0.0.0.0/0 0.0.0.0/0 > > When fail2ban block a IP address, established connections are allowed to > continue, > but with no rule to accept established connections how is that possible? Why > doesn't f2b first rule block established connections? The way I solved this problem was using conntrack. I added entries to the fail2ban action to delete connections where the source or destination matched the IP I was trying to block. This results in all communications from that IP being dropped immediately. I used a .local file to redefine the actionban. It looks like this: $ cat firewallcmd-allports.local [Definition] actionban = firewall-cmd --direct --add-rule ipv4 filter f2b- 0 -s -j (conntrack -D -s ; exit 0) (conntrack -D -d ; exit 0) You have to install the conntrack-tools package to use the conntrack command, but I don't remember having to do anything else to make it work. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix and choice of RBL
On 6/17/2019 1:08 PM, Alexander Dalloz wrote: > Am 17.06.2019 um 16:50 schrieb Bowie Bailey: >> On 6/17/2019 6:20 AM, Nicolas Kovacs wrote: >>> Hi, >>> >>> I'm managing several mail servers running CentOS 7, Postfix and Dovecot. >>> SpamAssassin is filtering mail nicely, but I'm considering using RBL >>> (blacklists) to take some load off the servers. >>> >>> General question to those of you who use RBL. Which lists do you >>> recommend using? >> >> The best free blacklist that I'm aware of is zen.spamhaus.org. I've been >> using it as >> a blacklist on my server for years without any problems. >> >> More info: https://www.spamhaus.org/zen/ > > Spmhaus isn't free per se. > > https://www.spamhaus.org/organization/dnsblusage/ Right. I haven't looked at blacklists in a while and I'm nowhere near their limits for free use, so I forgot that they charge for higher volume users. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix and choice of RBL
On 6/17/2019 6:20 AM, Nicolas Kovacs wrote: > Hi, > > I'm managing several mail servers running CentOS 7, Postfix and Dovecot. > SpamAssassin is filtering mail nicely, but I'm considering using RBL > (blacklists) to take some load off the servers. > > General question to those of you who use RBL. Which lists do you > recommend using? The best free blacklist that I'm aware of is zen.spamhaus.org. I've been using it as a blacklist on my server for years without any problems. More info: https://www.spamhaus.org/zen/ -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Finding memory usage
On 7/27/2018 12:58 PM, mark wrote: > Bowie Bailey wrote: >> On 7/27/2018 11:50 AM, Warren Young wrote: >>> On Jul 27, 2018, at 9:10 AM, Bowie Bailey wrote: >>> >>>> I have a CentOS 7 server that is running out of memory >>>> >>> How do you know that? Give a specific symptom. >>> >> This was brought to my attention because one program was killed by the >> kernel to free memory and another program failed because it was unable to >> allocate enough memory. > > Um, wait a minute - are you saying the oom-killer was invoked? My reaction > to that is to define the system, at that point, to be in an undefined > state, because you don't know what some threads that were killed are. Probably true, but the system has been rebooted since then and the oom-killer has not been activated since then. When I first noticed the problem, I also found that my swap partition had been deactivated, which is why the oom-killer got involved in the first place instead of just having swap usage slow the system to a crawl. I think I have identified the program that is causing the problem (memory usage went back to normal when the process ended), but I'm still not sure how it ended up using 10x the memory that top reported for it. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Finding memory usage
On 7/27/2018 12:13 PM, Gordon Messmer wrote: > On 07/27/2018 08:10 AM, Bowie Bailey wrote: >> The problem is that I can't find 2.4G of usage. > > > Are your results from "top" similar to: > > ps axu | sort -nr -k +6 That looks the same. > > If you don't see 2.4G of use from applications, maybe the kernel is > using a lot of memory. Check /proc/slabinfo. You can simplify its > content to bytes per object type and a total: > > grep -v ^# /proc/slabinfo | awk 'BEGIN {t=0;} {print $1 " " ($3 * > $4); t=t+($3 * $4)} END {print "total " t/(1024 * 1024) " MB";}' | > column -t The total number from that report is about 706M. My available memory has now jumped up from 640M to 1.5G after one of the processes (which was reportedly using about 100M) finished. I'll have to wait until the problem re-occurs and see what it looks like then, but for now I used the numbers from "ps axu" to add up a real total and then added the 706M to it and got within 300M of the memory currently reported used by free. What could account for a process actually using much more memory than is reported by ps or top? -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Finding memory usage
On 7/27/2018 11:50 AM, Warren Young wrote: > On Jul 27, 2018, at 9:10 AM, Bowie Bailey wrote: >> I have a CentOS 7 server that is running out of memory > How do you know that? Give a specific symptom. This was brought to my attention because one program was killed by the kernel to free memory and another program failed because it was unable to allocate enough memory. > >> Running "free -h" gives me this: >> totalusedfree shared buff/cache >> available >> Mem: 3.4G2.4G123M5.9M > This is such a common misunderstanding that it has its own web site: > > https://www.linuxatemyram.com/ Right, and that website says that you should look at the "available" number in the results from "free", which I what I was referencing. They say that a healthy system should have at least 20% of the memory available. Mine was down to 17% in what I posted in my email and it was at about 8% when I rebooted yesterday. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Finding memory usage
On 7/27/2018 11:14 AM, Jon Pruente wrote: > On Fri, Jul 27, 2018, 10:10 AM Bowie Bailey wrote: > >> I have a CentOS 7 server that is running out of memory and I can't >> figure out why. >> >> The problem is that I can't find 2.4G of usage. If I look at resident >> memory usage using "top", the top 5 processes are using a total of >> 390M. >> > On a lark, what kind of file systems is the system using and how long g had > it been up before you rebooted? The filesystems are all XFS. I don't know for sure how long it had been up previously, I'd guess at least 2 weeks. Current uptime is about 25 hours and the system has already started getting into swap. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Finding memory usage
I have a CentOS 7 server that is running out of memory and I can't figure out why. Running "free -h" gives me this: total used free shared buff/cache available Mem: 3.4G 2.4G 123M 5.9M 928M 626M Swap: 1.9G 294M 1.6G The problem is that I can't find 2.4G of usage. If I look at resident memory usage using "top", the top 5 processes are using a total of 390M. The next highest process is using 8M. For simplicity, if I assume the other 168 processes are all using 8M (which is WAY too high), that still only gives a total of 1.7G. The tmpfs filesystems are only using 18M, so that shouldn't be an issue. Yesterday, the available memory was down around 300M when I checked it. After checking some things and stopping all of the major processes, available memory was still low. I gave up and rebooted the machine, which brought available memory back up to 2.8G with everything running. How can I track what is using the memory when the usage doesn't show up in top? -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] low end file server with h/w RAID - recommendations
On 11/2/2017 8:04 AM, Gary Stainburn wrote: I'm just about to build a new server and I'm looking for recommendations on what hardware to use. I'm happy with either a brand name, or building my own, but would like a hardware RAID controller to run a pair of disks as RAID1 that is actually compatible with and manageable through Linux. Any recommendations would be appreciated. If you want raid 5 or 6, then you should get a hardware controller. For raid 1, mdadm should work just fine. I would suggest trying it before buying a raid controller. If it works for you, you save a few hundred dollars and you have one less piece of hardware to worry about. I haven't looked at them in quite a few years, but last time I was in the market for a raid controller, Areca controllers were the way to go. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Transferring Thunderbird mail accounts: Windows vs. Linux
On 10/26/2017 12:57 PM, Nicolas Kovacs wrote: Hi, One of my clients brought me his PC with Windows 7, so I can migrate it to Linux, e. g. CentOS 7 + KDE. So far I made a backup of all the data, but I wonder how I can migrate the existing Thunderbird account. An operation I perform quite regularly is replace an existing Linux system (Ubuntu, openSUSE, Fedora, whatever) by CentOS. When Thunderbird is configured, I just backup the whole ~/.thunderbird directory and then restore it on the new installation, which usually works perfectly. Any idea if I do this when moving a desktop installation from Windows 7 to CentOS? Cheers, Niki Should work just fine. I was running my computer as a dual-boot with Windows 7 and Linux Mint for a while. I shared the whole Thunderbird profile directory with both OS's. As I recall, the only issue was that the Lightning calendar add-on was OS-specific and would only work on one of the two unless I re-installed it for whichever OS I was on at the time. Give it a shot. Most likely, you'll only have to re-install an add-on or two for the new OS. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [OT] Bash help
On 10/25/2017 3:34 PM, Warren Young wrote: On Oct 25, 2017, at 11:28 AM, Mark Haneywrote: An associative array was the first thing I thought of, then realized BASH doesn't do those. But it does: in Bash 4, only. If you mean you must still use Bash 3 in places, then yeah, you’ve got a problem… one probably best solved by switching to some other language once the program grows beyond Bash 3’s natural scope. I was trying to think of which languages I know well which require even more difficult solutions than the Bash 4 one. It’s a pretty short list: assembly, C, and MS-DOS batch files. By “C” I’m including anything of its era and outlook: Pascal, Fortran… I think even Tcl beats Bash 4 on this score, and it’s notoriously minimal in its feature set. Here’s a brain-bender: You could probably do it with sqlite3 with fewer lines of code than my Bash 4 offering. :) I honestly expected there to be a fairly straight forward way to do it in BASH, but I was sadly mistaken. Oh, I don’t know, there must be a way to do it without associative arrays, but you’d only get points for the masochism value in doing without. Array N holds the names and array T holds the totals. For each line in the file, you iterate through N to find the name and then add the number to the same index in T (or create a new entry in both arrays if you don't find it). Then you just have to iterate through both arrays and print off the names from N and the totals from T. It's a pain, but it's doable. Sorry, I'm too lazy to write code for this... :) -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [OT] Bash help
On 10/25/2017 12:41 PM, Mark Haney wrote: On 10/25/2017 12:33 PM, Robert Arkiletian wrote: here is a python solution #!/usr/bin/python #python 2 (did not check if it works) f=open('yourfilename') D={} for line in f: email,num = line.split() if email in D: D[email] = D[email] + num else: D[email] = num f.close() for key in D: print key, D[key] ___ That gets me closer, I think. It's concatenating the number of messages, but it's a start. Thanks. I do this kind of thing on a fairly regular basis with a Perl one-liner: perl -ne '($email, $num) = split; $tot{$email} += $num; END { for $email (keys %tot) { print "$email $tot{$email}\n" } }' < yourfile -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Crazy thought about upgrading to new major release
On 6/6/2017 5:29 PM, m.r...@5-cent.us wrote: Jerry Geis wrote: I have older systems out there that work fine, just for what ever reason would be great to upgrade from a C5 -> C7 (due to no longer supported) or C6 > C7 (for updated packages). Sounds like the upgrade tool is not quite an option... I was thinking... What would be wrong with any "easy" script that did the following: 1) Removed all packages with the --justdb option. 2) Import the RPM-GPG-KEY-CentOS-7 3) install the centos-release-7.3.1611 ... rpm 4) yum -y upgrade 5) yum groupinstall "GNOME Desktop" (for example) and reboot of course. Does that have any chance or working and be valid? I know I've posted what we do here to upgrade one system from another before, but not in a few years. mkdir /new mkdir /boot/new rsync -HPavzx --exclude=/old --exclude=/var/log/wtmp --exclude=/var/log/lastlog $machine:/. /new/. rsync -HPavzx $machine:/boot/. /boot/new/. rsync -HPavzx /etc/sysconfig/network-scripts/ifcfg-eth* /new/etc/sysconfig/network-scripts rsync -HPavzx /etc/sysconfig/hwconf /new/etc/sysconfig rsync -HPavzx /boot/grub/device.map /boot/new/grub/ rsync -HPavzx /etc/udev/rules.d/70-persistent-net.rules /new/etc/udev/rules.d/ find /new/var/log/ -type f -exec cp /dev/null {} \; Fix /new/etc/fstab, ESP if you use UUID. I *strongly* prefer LABEL= Then, any webserver stuff if the old was running it. If this system is using Linux RAID, rsync -HPavx /old/etc/md.conf /etc/ If yuo want to, copy the original SSH keys: rsync -HPavzx /etc/ssh/ssh_host* /new/etc/ssh Don't forget /boot/grub/device.map, and for C6, /new/boot/grub/grub.conf is right, or for C7, /new/boot/grub2/grub.conf is good. NOTE this will work for identical machines. Otherwise, BEFORE you rotate ou may need to run "mkinitrd" for the latest kernel if the hardware is different between the machine you are upgrading and the machine you made the copy. mount --bind /dev /new/dev mount --bind /sys /new/sys mount --bind /proc /new/proc mount --bind /boot/new /new/boot chroot /new cd /lib/modules VER=$(ls -rt1 | tail -1) echo $VER mkinitrd X $VER mv X /boot/initrd-$VER.img exit umount /new/dev /new/sys /new/proc /new/boot Then rotate: zsh zmodload zsh/files cd /boot mkdir old mv * old mv old/lost+found . mv old/new/* . # Root partition. cd / mkdir old mv * old mv old/lost+found . #mv old/root . -- WHY? mv old/scratch . mv old/new/* . sync sync And reboot. If there are issues with grub, get it up from the grub shell, then grub-install or grub2-install as appropriate. Interesting process. As far as I can tell, this keeps very little of the configuration from the old system. You would still have to re-install and copy the configurations for any necessary packages along with any crontab entries that were on the old system. Other than reducing downtime, what are the advantages of doing this rather than just building the new OS onto a new hard drive and then copying things over? -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Missing rpms - Re: What is in a yum group
On 5/25/2017 3:43 PM, Robert Moskowitz wrote: Note that you do not have xfce-utils or leafpad. Do you have themes? What is your background. I have actually gotten Xfce working. Kindof. I am into Xfce via vncserver. It pretty much looks like Xfce on my Fedora systems. Backleveled a bit of course. No sensor applet to show the cpu temp for example. But no background, other than black. Oh, and no NetworkManager on the tray. I am going to install geany for the editor. I use geany a lot for editing xml and html files so am familiar with it. It is just a bit much for editing a simple text file. Anyway, it is possible to get Xfce running on Centos7, but it is missing some rpms. I don't actually use Xfce. I was just noting that it did not give me any errors on my system regarding missing packages. I have not attempted to install and use it. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Missing rpms - Re: What is in a yum group
On 5/25/2017 12:07 PM, Robert Moskowitz wrote: On 05/25/2017 11:22 AM, Bowie Bailey wrote: On 5/25/2017 10:04 AM, Robert Moskowitz wrote: On 05/25/2017 09:32 AM, Leon Fauster wrote: Am 25.05.2017 um 15:27 schrieb Robert Moskowitz <r...@htt-consult.com>: Thanks. I followed this to: http://mirror.centos.org/centos/7/os/x86_64/Packages/ And could not find any of the following: No package xfce-utils available. No package NetworkManager-gnome available. No package leafpad available. No package xfce4-icon-theme available. Package xfce4-mixer is obsoleted by xfce4-pulseaudio-plugin, trying to install xfce4-pulseaudio-plugin-0.2.4-4.el7.x86_64 instead No package xfwm4-theme-nodoka available. So it would appear that an Xfce desktop install is 'broken' for some level of brokeness for Centos7. But interestingly, NetworkManager-gnome is not used by gnome. It has a bunch of other NetworkManager rpms. I also checked Fedora 21 and 24 and their Xfce desktop does not list NetworkManager-gnome when I do a group info xfce. So there is something wrong in the packaging of the xfce group in Centos7-x64 that Scott provided me... Xfce is provided by EPEL: https://lists.centos.org/pipermail/centos/2017-May/164858.html I missed that your two emails pointed to different urls. Thanks. But... Enabling epel does not provide an Xfce group. Enabling epel does not give me the missing rpms. It does provide both mixer and pulseaudio-plugin, but not the others. So Xfce is still broken at some level of brokeness with C7. On my rather basic C7 system with epel enabled, I don't see any problems. # yum groupinstall "Xfce" ... Install 20 Packages (+193 Dependent packages) It did not give any errors and the install list does not mention any of the missing packages that you list above. It works fine with C7. There must be some difference with your system. The group is not on my system. I am using ClearOS' version of the Centos repos, so not necessarily a surprise. And all my other servers are Centos7-armv7hl, also with no Xfce group. But the armv7hl repos have a number of build challenges that we have had to work around... Can you please run: yum group info Xfce and send me the output? Here is what the group info gives me: Group: Xfce Group-Id: xfce-desktop Description: A lightweight desktop environment that works well on low end machines. Mandatory Packages: +Thunar +xfce-utils +xfce4-panel +xfce4-session +xfce4-settings +xfconf +xfdesktop +xfwm4 Default Packages: +NetworkManager-gnome +gdm +leafpad +openssh-askpass +orage +polkit-gnome +thunar-archive-plugin +thunar-volman +tumbler +xfce4-appfinder +xfce4-icon-theme +xfce4-power-manager +xfce4-pulseaudio-plugin +xfce4-session-engines +xfce4-terminal +xfwm4-theme-nodoka Optional Packages: xfwm4-themes Conditional Packages: +pinentry-gtk I don't know why that list is different from what it actually tries to install. When I try to install it, I get this: Installing for group install "Xfce": Thunar x86_641.6.11-1.el7 epel 1.4 M gdm x86_641:3.14.2-20.el7_3 updates719 k openssh-askpass x86_646.6.1p1-35.el7_3 updates 74 k orage x86_644.12.1-3.el7 epel 1.8 M polkit-gnome x86_640.105-6.el7 epel82 k thunar-archive-plugin x86_640.3.1-6.el7 epel69 k thunar-volman x86_640.8.1-2.el7 epel 175 k tumbler x86_640.1.31-2.el7 epel 195 k xfce4-appfinder x86_644.12.0-4.el7 epel 194 k xfce4-panel x86_644.12.0-4.el7 epel 820 k xfce4-power-manager x86_641.6.0-2.el7 epel 769 k xfce4-pulseaudio-plugin x86_640.2.5-1.el7 epel71 k xfce4-session x86_644.12.1-8.el7 epel 484 k xfce4-session-engines x86_644.12.1-8.el7 epel 315 k xfce4-settings x86_644.12.0-7.el7 epel 658 k xfce4-terminal x86_640.6.3-4.el7 epel 484 k xfconf x86_644.12.0-3.el7 epel 199 k xfdesktop x86_644.12.3-2.el7 epel 1.0 M xfwm4 x86_644.12.3-2.el7 epel 627 k Installing: pinentry-gtk x86_640.8.1-17.el7 base51 k Plus 193 dependencies. I do not have any xfce packages installed already. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Missing rpms - Re: What is in a yum group
On 5/25/2017 10:04 AM, Robert Moskowitz wrote: On 05/25/2017 09:32 AM, Leon Fauster wrote: Am 25.05.2017 um 15:27 schrieb Robert Moskowitz: Thanks. I followed this to: http://mirror.centos.org/centos/7/os/x86_64/Packages/ And could not find any of the following: No package xfce-utils available. No package NetworkManager-gnome available. No package leafpad available. No package xfce4-icon-theme available. Package xfce4-mixer is obsoleted by xfce4-pulseaudio-plugin, trying to install xfce4-pulseaudio-plugin-0.2.4-4.el7.x86_64 instead No package xfwm4-theme-nodoka available. So it would appear that an Xfce desktop install is 'broken' for some level of brokeness for Centos7. But interestingly, NetworkManager-gnome is not used by gnome. It has a bunch of other NetworkManager rpms. I also checked Fedora 21 and 24 and their Xfce desktop does not list NetworkManager-gnome when I do a group info xfce. So there is something wrong in the packaging of the xfce group in Centos7-x64 that Scott provided me... Xfce is provided by EPEL: https://lists.centos.org/pipermail/centos/2017-May/164858.html I missed that your two emails pointed to different urls. Thanks. But... Enabling epel does not provide an Xfce group. Enabling epel does not give me the missing rpms. It does provide both mixer and pulseaudio-plugin, but not the others. So Xfce is still broken at some level of brokeness with C7. On my rather basic C7 system with epel enabled, I don't see any problems. # yum groupinstall "Xfce" ... Install 20 Packages (+193 Dependent packages) It did not give any errors and the install list does not mention any of the missing packages that you list above. It works fine with C7. There must be some difference with your system. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] email subject length issue
On 4/12/2017 4:17 PM, Jerry Geis wrote: Oh I understand now what is happening. The subject is coming in as three lines. Subject: Tornado Monday, 03/27/2017 at 20:27:02. The Point BB.OBSURGRH is in Alarm at PRI3 with a value of 63.4 %.Informational Text: OB SURGERY HUMIDITY ALARM I'm not getting the second two lines. How "should" one correctly get the subject ??? What I did was in my .procmailrc file SUBJECT=`cat | grep Subject:` So this resulted in only the first line and not grabbing the additional 2 lines. Is there a way to correctly get the subject that I have not found? You'll need to grab the line that starts with "Subject:" and then continue grabbing lines until you find one that doesn't start with whitespace. I don't think you can do this with grep, but you should be able to do it with perl, sed, or awk. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] photos on iPhone 6
On 10/20/2016 3:56 PM, J Martin Rushton wrote: A bit of a perennial I'm afraid. My wife has filled up her iPhone 6 with photos, and wants them moved onto my computer. I'm running CentOS 7 patched about 30 minutes ago. Needless to say the computer can't see the data on the iPhone, though it does recognise the phone as an iPhone. Any suggestions (well any that don't involve a steam roller, sledge hammer or GBH to the whole of Apple Inc)? $ uname -a Linux tamar.home 3.10.0-327.36.1.el7.x86_64 #1 SMP Sun Sep 18 13:04:29 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Don't know about iPhone, but with an Android phone, I would install an ftp server app and then ftp the files over to the computer. Alternately, start an ftp server on the computer and use an ftp client app on the phone to copy the files to the computer. Of course, this is assuming that iOS will let you have direct access to the photo directories. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] EPEL - Clamav update?
On 4/4/2016 2:16 AM, Ned Slider wrote: On 03/04/16 22:10, Ireneusz Piasecki wrote: W dniu 03.04.2016 o 04:39, Rob Kampen pisze: EPEL maintainers? I note messages in the log about updated version 0.99.1 of CLAMAV being available since Mar 5th. for CentOS 6 no update is available yet. I used to use rpmforge for this package but that languished for months before updates became available and eventually stopped altogether. Is there something I can do to assist in getting this package updated? I have no idea if this is a difficult package to compile with lots of dependancies or some otherwise complexities. In this era of constant SPAM and so many virus / trojan attempts to do harm to others, it is vital that we run this package to protect our users. Please let me know if / how I can assist. Kind regards Rob Hi, Does clamav detect anything in this floding e-mail viruses ? My clamav instalation (with amavisd-new) in centos 5 with the current signatures detect nothing in compare to virustotal.org antivirus - i noticed that clamav signatures are lag behind form the top antivir in the market. Viruses in ZIP archives goes via my e-mail gateway (amavisd-new+clamavd) and are stopped finally by F-Secure Client Security. So, clamav is defend from anything ? Sorry for off topic. That is pretty much my experience too - I've only seen the occasional FP hit from ClamAV on a mail server for as long as I can remember. The latest flavour of the month seems to be .js ransomware which go undetected. I have long blocked all executable file types in amavisd as a matter of policy. IMHO the AV vendors lost the battle a long time ago - they simply can't compete with the bad guys nor keep up with the volume and this particular layer of defence is now less effective/ineffective. Adding the Sanesecurity signatures to ClamAV greatly increases its hit rate. It also has the advantage of blocking lots of phishing and spam garbage in addition to the viruses and malware. http://sanesecurity.com/usage/signatures/ There are download scripts for both Linux and Windows available on the Sanesecurity site to keep the signatures current. Further discussion should probably move to the clamav-users mailing list. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Two WiFi routers
On 11/5/2015 7:22 AM, Timothy Murphy wrote: Gordon Messmer wrote: As a point of clarification: The setup that you're describing isn't multiple WiFi routers, it's multiple WiFi Access Points. Thanks for your response, and for all the others. I am indeed using the two routers as Access Points, turning off dhcp on them, etc. I did actually try what has been suggested, but it didn't seem to work, which made me wonder if it was possible in principle. It is possible. I have this setup running both at home and at the office. However, I almost certainly made some mistake setting up the second router/AP, which is actually an ancient Netopia router from my ISP, whose manual says it can be used as an AP. I see it with "arp -a" on my server, but I've now noticed I don't see it on my Android phone, or with "iwlist scan" on my laptop. Apologies, I don't think this router/AP is working ... In order for devices to be able to seamlessly switch between access points, they must have the EXACT same wifi security setup (SSID, security method, and password). I had a problem with this at work trying to use an old router that would not do WPA2. It can be confusing to figure out exactly which access point you are using when the SSID's are all the same. The Wifi Analyzer app will give you the mac address of the router so you can be sure you're using the one you think you are. It's a free app, so give it a try. I've found it to be very useful for dealing with wifi routers and access points. https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Two WiFi routers
On 11/4/2015 11:45 AM, Timothy Murphy wrote: Richard Zimmerman wrote: Do you have them on different channels? YES, definitely If you have the room in the spectrum, ch1, skip2, ch3, skip 4, ch5, etc... I've actually have mine set with two empty channels between them as the 3rd building is a machine / fabrication shop with lots and lots of RFI going on. So does a client laptop have to change NM setup if passing from one router to another? I wonder if one can specify a routers IP address to NM ? If all of the routers are providing access to the same network, you can set up the same SSID, wifi password, and security type for all the routers and the clients should seamlessly switch between them as they move around. Adjust the channels so that they aren't interfering with each other. If you have an android device, there is an app called Wifi Analyzer that can show you a graph of all of the available wifi signals, their signal strength, and what channel they are on. Just make sure there is only one device on the network providing DHCP. You can do it from one of the routers or elsewhere, but only one DHCP server per network. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum does not update package list
On 9/30/2015 8:15 PM, John R Pierce wrote: On 9/30/2015 5:11 PM, Kommander Mighty Aura wrote: Hello. I have been trying to add rpmforge as a repository, but yum does not seem to be updating the package lists. I tried... rpmforge is a dead repo, no longer maintained, I would not use for anything anymore. rpmforge was renamed to repoforge, although they continued using the name rpmforge on the repos for some reason. I use it on a few of my servers. Poking around in the package lists, I can't find any that have been updated since July 2014. Is repoforge now unmaintained? -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: closing a port on home router
On 9/12/2015 9:44 PM, Fred Smith wrote: yes, there is port forwarding, of course. I'm forwarding a different port to 22 on my desktop, and want to close 22 on the router so it won't also allow access to 22 on my desktop. If you have not set up forwarding for port 22 on the router, it is already closed. You do not need to do anything. If you want to verify this, just try to connect to port 22 from outside your network and see what happens. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] BackupPC is not easy to setup
On 9/18/2015 8:39 AM, Timothy Murphy wrote: Bowie Bailey wrote: On 9/13/2015 10:58 AM, Timothy Murphy wrote: I take it then that there is no CLI method of setting up and running BackupPC ? Sure there is. All of the configuration is stored in text config files. There is a main config file for global options and each host has a config file in it's own directory. Yes, it was pointed out to me that there are instructions in <http://backuppc.sourceforge.net/faq/BackupPC.html> in Step-7:-Talking-to-BackupPC. I note that these instructions end by advising the user not to follow them, but to set up the GUI method. Incidentally, I've been running BackupPC on my CentOS-7 server for about a week now, and I notice that no config file is created in /var/lib/BackupPC/pc/helen, where helen is the host-name. It seems the GUI method stores the config file somewhere else. The GUI config editor is just an alternative to hand editing. It uses the exact same files. Keep in mind that the config files are stored separately from the backups. On my system, the backups are under /data/BackupPC and the config files are under /etc/BackupPC. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] BackupPC is not easy to setup
On 9/13/2015 10:58 AM, Timothy Murphy wrote: I take it then that there is no CLI method of setting up and running BackupPC ? Sure there is. All of the configuration is stored in text config files. There is a main config file for global options and each host has a config file in it's own directory. Running BackupPC is simply a matter of starting the process. There are various scripts available for manually starting backups and getting stats. That said, the GUI is by far the easiest way to add new clients and look for failing backups or other issues. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] rsync question
On 9/11/2015 10:34 AM, Robert Moskowitz wrote: On 09/11/2015 10:21 AM, C Linus Hicks wrote: On 09/10/15, Robert Moskowitz wrote: --- Quoted text -- SSh is not parsing the port the way http does, it seems: $ rsync -ah --stats root@192.168.129.2:613:/etc/dhcp/ /home/rgm/data/htt/httnet/homebase/new/dhcp ssh: connect to host 192.168.129.2 port 22: No route to host rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1] The reason why I change my SSH port is a simple way to keep port knocker robots away. Different hosts use different ports... -- End quote Oh, right, so you either need to put that in your .ssh/config file or use -e 'ssh -p 613' on the rsync command. The config file should look like this: Host 192.168.129.2 Port 613 So we end up back needing the -e option or modifying the config file. thanks for your time. Really. It's fairly common on technical lists like this for people to become fixated on minor problems or inefficiencies in a command or configuration when the actual issue is more complicated. Try not to let it bother you too much. As for your original question, I'm not sure why the files weren't copied as expected. I ran your exact command with only the server names, port, and destination directory changed and all the files were copied. You can try running the command without a destination and it should return a list of files found in the source directories. If it doesn't list everything, there is some problem with how the source files are being specified or something preventing them from being read. Selinux is always suspected in cases of strange permission problems. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] fsck mdraid root partition
There are some errors on my root filesystem, so I need to fsck it. In order to do this while the filesystem is unmounted, I'm booting from the install disk. However, since the filesystem is on an mdraid device, I'm not sure of the right way to get it assembled so I can check it. If I do, mdadm --examine --scan, then I get this: ARRAY /dev/md/2 metadata=... (and others, but I'm only interested in md2 at this point) It shows as /dev/md/2, while it is called /dev/md2 if I boot into the OS. If I do this: mdadm --assemble --scan /dev/md/2 I assume it will assemble it. Is it going to cause and problems assembling it under a different name in order to run the fsck? Should I rather force it to have the same name like this: mdadm --assemble /dev/md2 /dev/sda1 /dev/sda2 if that will even work? Thanks, -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/7/2015 8:35 PM, Chris Murphy wrote: On Fri, Aug 7, 2015 at 8:12 AM, Bowie Bailey bowie_bai...@buc.com wrote: I tried the grub commands you gave and still got the same results. I also have a copy of the SuperGrub disc, which is supposed to be able to fix grub problems. It can boot the drive, but it can't fix it. If nothing else, I guess I could just leave that disc in the drive and use it to boot the system. I'm going to do a fresh install to the new drives and see if that works. I suppose it's worth a shot. But like I mentioned earlier, keep in mind that CentOS 5 predates AF drives, so it will not correctly partition these drives such that they have proper 8 sector alignment. The fresh install will be with CentOS 6. A quick test with a minimal install booted without any problems, so it looks like this is the solution. If you haven't already, check the logic board firmware and the HBA firmware for current updates. I try to avoid firmware updates on established systems unless absolutely necessary. Since the CentOS 6 install produces a bootable system, I'm going to leave it as-is. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/6/2015 5:11 PM, Chris Murphy wrote: On Thu, Aug 6, 2015 at 2:57 PM, Bowie Bailey bowie_bai...@buc.com wrote: Ok. I'll give that a try tomorrow. Just a couple of questions. install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0,1) /grub/stage2 p (hd0,1)/grub/grub.conf It looks like this mixes paths relative to root and relative to /boot. Did your test system have a separate /boot partition? Yes. The --stage2 argument is os stage2 file according to my man page. Should this be relative to root even with a separate /boot partition? I think it's being treated as a directory because it's going to access this stage2 file. Also, why are the exact same root and install commands run twice in the log you show? Is that just a duplicate, or does it need to be run twice for some reason? I do not know. The whole thing is foreign to me. But both drives are bootable as hd0 (the only drive connected). So it makes sense that the configuration is treating this as an hd0 based installation of the bootloader to both drives. The part were the stage 1 and 2 are directed to separate drives must be the 'device (hd0) /dev/vdb' command. Again, I don't know why it isn't either 'device (hd0) (hd1)' or 'device /dev/vda /dev/vdb' but that's what the log sayeth. I tried the grub commands you gave and still got the same results. I also have a copy of the SuperGrub disc, which is supposed to be able to fix grub problems. It can boot the drive, but it can't fix it. If nothing else, I guess I could just leave that disc in the drive and use it to boot the system. I'm going to do a fresh install to the new drives and see if that works. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/6/2015 4:21 PM, Chris Murphy wrote: On Thu, Aug 6, 2015 at 2:08 PM, Bowie Bailey bowie_bai...@buc.com wrote: Doing a new install on the two 1TB drives is my current plan. If that works, I can connect the old drive, copy over all the data, and then try to figure out what I need to do to get all the programs running again. Sounds like a pain. I would just adapt the CentOS 6 program.log commands for your case. That's a 2 minute test. And it ought to work. I'm not familiar with that. How would I go about adapting the CentOS 6 program.log commands? Clearly the computer finds the drive, reads the MBR and executes stage 1. The missing part is it's not loading or not executing stage 2 for some reason. I'm just not convinced the bootloader is installed correctly is the source of the problem with the 2nd drive. It's not like the BIOS or HBA card firmware is going to faceplace right in between stage 1 and stage 2 bootloaders executing. If there were a problem there, the drive simply doesn't show up and no part of the bootloader gets loaded. Definitely a strange problem. I'm hoping that doing a new install onto these drives rather than trying to inherit the install used on the smaller drives will work better. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/6/2015 4:55 PM, Leon Fauster wrote: Am 06.08.2015 um 22:39 schrieb Leon Fauster leonfaus...@googlemail.com: Am 06.08.2015 um 22:21 schrieb Chris Murphy li...@colorremedies.com: On Thu, Aug 6, 2015 at 2:08 PM, Bowie Bailey bowie_bai...@buc.com wrote: Doing a new install on the two 1TB drives is my current plan. If that works, I can connect the old drive, copy over all the data, and then try to figure out what I need to do to get all the programs running again. Sounds like a pain. I would just adapt the CentOS 6 program.log commands for your case. That's a 2 minute test. And it ought to work. Clearly the computer finds the drive, reads the MBR and executes stage 1. The missing part is it's not loading or not executing stage 2 for some reason. I'm just not convinced the bootloader is installed correctly is the source of the problem with the 2nd drive. It's not like the BIOS or HBA card firmware is going to faceplace right in between stage 1 and stage 2 bootloaders executing. If there were a problem there, the drive simply doesn't show up and no part of the bootloader gets loaded. on which OS (eg. c5, c6) was the partition created? s/partition/filesystem/ This is CentOS 5. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/6/2015 3:56 PM, Gordon Messmer wrote: On 08/05/2015 08:12 AM, Bowie Bailey wrote: This is an old system with only IDE ports. There is an added Highpoint raid card which is used only for the two extra IDE ports. Why extra? Are there drives connected to this system other than the two you're discussing for the software RAID sets? I know you said that you can't take the system down for an extended period of time. Do you have enough time to connect the two 1TB drives and nothing else, and do a new install? It would be useful to know if such an install booted, to exclude the possibility that there's some fundamental incompatibility between some combination of the BIOS, the Highpoint boot ROM, and the 1TB drives. If it doesn't boot, you have the option of putting the bootloader, kernel, and initrd on some other media. You could boot from an optical disc, or a USB drive, or CF. To be honest, I don't remember why the Highpoint card was used. It could be that I had originally intended to use the raid capabilities of the card, or maybe I just didn't want the two members of the mirror to be master/slave on the same IDE channel. Doing a new install on the two 1TB drives is my current plan. If that works, I can connect the old drive, copy over all the data, and then try to figure out what I need to do to get all the programs running again. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/6/2015 4:39 PM, Chris Murphy wrote: On Thu, Aug 6, 2015 at 2:29 PM, Bowie Bailey bowie_bai...@buc.com wrote: On 8/6/2015 4:21 PM, Chris Murphy wrote: On Thu, Aug 6, 2015 at 2:08 PM, Bowie Bailey bowie_bai...@buc.com wrote: Doing a new install on the two 1TB drives is my current plan. If that works, I can connect the old drive, copy over all the data, and then try to figure out what I need to do to get all the programs running again. Sounds like a pain. I would just adapt the CentOS 6 program.log commands for your case. That's a 2 minute test. And it ought to work. I'm not familiar with that. How would I go about adapting the CentOS 6 program.log commands? I mentioned it in the last two posts yesterday on this subject. Ok. I'll give that a try tomorrow. Just a couple of questions. install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0,1) /grub/stage2 p (hd0,1)/grub/grub.conf It looks like this mixes paths relative to root and relative to /boot. Did your test system have a separate /boot partition? The --stage2 argument is os stage2 file according to my man page. Should this be relative to root even with a separate /boot partition? Also, why are the exact same root and install commands run twice in the log you show? Is that just a duplicate, or does it need to be run twice for some reason? grub root (hd0,1) grub install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0,1) /grub/stage2 p (hd0,1)/grub/grub.conf grub root (hd0,1) grub install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0,1) /grub/stage2 p (hd0,1)/grub/grub.conf -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CentOS 5 grub boot problem
I am trying to upgrade my system from 500GB drives to 1TB. I was able to partition and sync the raid devices, but I cannot get the new drive to boot. This is an old system with only IDE ports. There is an added Highpoint raid card which is used only for the two extra IDE ports. I have upgraded it with a 1TB SATA drive and an IDE-SATA adapter. I did not have any problems with the system recognizing the drive or adding it to the mdraid. A short SMART test shows no errors. Partitions: Disk /dev/hdg: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdg1 1 25 200781 fd Linux raid autodetect /dev/hdg2 26 121537 976045140 fd Linux raid autodetect /dev/hdg3 121538 121601 514080 fd Linux raid autodetect Raid: Personalities : [raid1] md0 : active raid1 hdg1[1] hde1[0] 200704 blocks [2/2] [UU] md1 : active raid1 hdg3[1] hde3[0] 513984 blocks [2/2] [UU] md2 : active raid1 hdg2[1] hde2[0] 487644928 blocks [2/2] [UU] fstab (unrelated lines removed): /dev/md2/ ext3 defaults1 1 /dev/md0/boot ext3 defaults1 2 /dev/md1swapswap defaults0 0 I installed grub on the new drive: grub device (hd0) /dev/hdg grub root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub setup (hd0) Checking if /boot/grub/stage1 exists... no Checking if /grub/stage1 exists... yes Checking if /grub/stage2 exists... yes Checking if /grub/e2fs_stage1_5 exists... yes Running embed /grub/e2fs_stage1_5 (hd0)... 15 sectors are embedded. succeeded Running install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf... succeeded Done. But when I attempt to boot from the drive (with or without the other drive connected and in either IDE connector on the Highpoint card), it fails. Grub attempts to boot, but the last thing I see after the bios is the line GRUB Loading stage 1.5, then the screen goes black, the system speaker beeps, and the machine reboots. This will continue as long as I let it. As soon as I switch the boot drive back to the original hard drive, It boots up normally. I also tried installing grub as (hd1) with the same results. A few Google searches haven't turned up any hits with this particular problem and all of the similar problems have been with Ubuntu and grub2. Any suggestions? Thanks, -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 11:27 AM, m.r...@5-cent.us wrote: Bowie Bailey wrote: I am trying to upgrade my system from 500GB drives to 1TB. I was able to partition and sync the raid devices, but I cannot get the new drive to boot. This is an old system with only IDE ports. There is an added Highpoint raid card which is used only for the two extra IDE ports. I have upgraded it with a 1TB SATA drive and an IDE-SATA adapter. I did not have any problems with the system recognizing the drive or adding it to the mdraid. A short SMART test shows no errors. snip Trying to get your configuration clear in my mind - the drives are 1TB IDE, and they're attached to the m/b, or to the Hpt RAID card? Also, did you update the system? New kernel? If so, is the RAID card recognized (we've got a Hpt RocketRaid card in a CentOS 6 system, and we're *finally* replacing it with an LSI (once it comes in), because Hpt does not care about old cards, and I had to find the source code, and then hack it to compile it for the new kernel, and have had to recompile for the new kernels we've installed It was originally a pair of 500GB IDE drives in an mdraid mirror configuration. Right now, I have removed one 500GB drive and replaced it with a 1TB SATA drive with an IDE-SATA adapter. Both drives are connected to the Highpoint card and apparently working fine other than the boot-up problem. I was considering adding an SATA card to the system, but I didn't want to deal with finding drivers for a card old enough to work with this system (32-bit PCI). I have not done any updates to the system in quite some time. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 11:52 AM, m.r...@5-cent.us wrote: m.r...@5-cent.us wrote: Bowie Bailey wrote: I am trying to upgrade my system from 500GB drives to 1TB. I was able to partition and sync the raid devices, but I cannot get the new drive to boot. This is an old system with only IDE ports. There is an added Highpoint raid card which is used only for the two extra IDE ports. I have upgraded it with a 1TB SATA drive and an IDE-SATA adapter. I did not have any problems with the system recognizing the drive or adding it to the mdraid. A short SMART test shows no errors. snip Trying to get your configuration clear in my mind - the drives are 1TB IDE, and they're attached to the m/b, or to the Hpt RAID card? Also, did you update the system? New kernel? If so, is the RAID card recognized (we've got a Hpt RocketRaid card in a CentOS 6 system, and we're *finally* replacing it with an LSI (once it comes in), because Hpt does not care about old cards, and I had to find the source code, and then hack it to compile it for the new kernel, and have had to recompile for the new kernels we've installed To follow myself up, I forgot one thing I'd intended to ask: is it possible that you needed to rebuild the initrd? It's possible, but why would that be the case? The only thing that has changed from the OS point of view is the partition size on one of the drives. The filesystems are still the same. Also, as I said, it doesn't even get as far as attempting to boot Linux. It fails immediately after the GRUB Loading stage 1.5 line, so it seems like a grub issue of some sort. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 12:34 PM, Chris Murphy wrote: On Wed, Aug 5, 2015 at 9:12 AM, Bowie Bailey bowie_bai...@buc.com wrote: I am trying to upgrade my system from 500GB drives to 1TB. I'm going to guess that there are no IDE drives that have 4096 byte physical sectors, but it's worth confirming you don't have such a drive because the current partition scheme you've posted would be sub-optimal if it does have 4096 byte sectors. The partition table was originally created by the installer. I was able to partition and sync the raid devices, but I cannot get the new drive to boot. This is an old system with only IDE ports. There is an added Highpoint raid card which is used only for the two extra IDE ports. I have upgraded it with a 1TB SATA drive and an IDE-SATA adapter. I did not have any problems with the system recognizing the drive or adding it to the mdraid. A short SMART test shows no errors. Partitions: Disk /dev/hdg: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdg1 1 25 200781 fd Linux raid autodetect /dev/hdg2 26 121537 976045140 fd Linux raid autodetect /dev/hdg3 121538 121601 514080 fd Linux raid autodetect In the realm of totally esoteric and not likely the problem, 0xfd is for mdadm metadata v0.9 which uses kernel autodetect. If the mdadm metadata is 1.x then the type code ought to be 0xda but this is so obscure that parted doesn't even support it. fdisk does but I don't know when support was added. This uses initrd autodetect rather than the deprecated kernel autodetect. It's fine to use 0.9 even though it's deprecated. You can use mdadm -E on each member device (each partition) to find out what metadata version is being used. Version : 0.90.00 Normally GRUB stage 1.5 is not needed, stage 1 can jump directly to stage 2 if it's in the MBR gap. But your partition scheme doesn't have an MBR gap, you've started the first partition at LBA 1. So that means it'll have to use block lists... I installed grub on the new drive: grub device (hd0) /dev/hdg grub root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub setup (hd0) Checking if /boot/grub/stage1 exists... no Checking if /grub/stage1 exists... yes Checking if /grub/stage2 exists... yes Checking if /grub/e2fs_stage1_5 exists... yes Running embed /grub/e2fs_stage1_5 (hd0)... 15 sectors are embedded. succeeded Running install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf... succeeded Done. I'm confused. I don't know why this succeeds because the setup was pointed to hd0, which means the entire disk, not a partition, and yet the disk doesn't have an MBR gap. So there's no room for GRUB stage 2. I'm not sure. It's been so long that I don't remember what I did (if anything) to get grub working on the second drive of the set. The first drive was configured by the installer. What I'm doing now is what I found to work for my backup system which gets a new drive in the raid set every month. But when I attempt to boot from the drive (with or without the other drive connected and in either IDE connector on the Highpoint card), it fails. Grub attempts to boot, but the last thing I see after the bios is the line GRUB Loading stage 1.5, then the screen goes black, the system speaker beeps, and the machine reboots. This will continue as long as I let it. As soon as I switch the boot drive back to the original hard drive, It boots up normally. Yeah it says it's succeeding but it really isn't, I think. The problem is not the initrd yet, because that could be totally busted or missing, and you should still get a GRUB menu. This is all a failure of getting to stage 2, which then can read the file system and load the rest of its modules. I also tried installing grub as (hd1) with the same results. I'm disinclined to believe that hd0 or hd1 translate into hdg, but I forget how to list devices in GRUB legacy. I'm going to bet though that device.map is stale and it probably needs to be recreated, and then find out what the proper hdX is for hdg. And then I think you're going to need to point it at a partition using hdX,Y. I'm willing to give that a try. The device.map looks good to me: (hd0) /dev/hde (hd1) /dev/hdg It is old, but the drives are still connected to the same connectors, so it should still be valid. How would I go about pointing it at the partition? What I am currently doing is this: device (hd0) /dev/hdg root (hd0,0) setup (hd0) Would I just need to change the setup line to setup (hd0,0), or is there more to it than that? Also, the partitions are mirrored, so if I install to a partition, I will affect the working drive as well. I'm not sure I want to risk breaking the setup that still works. I can take this machine down
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 12:37 PM, Chris Murphy wrote: On Wed, Aug 5, 2015 at 10:34 AM, Chris Murphy li...@colorremedies.com wrote: On Wed, Aug 5, 2015 at 9:12 AM, Bowie Bailey bowie_bai...@buc.com wrote: I am trying to upgrade my system from 500GB drives to 1TB. I'm going to guess that there are no IDE drives that have 4096 byte physical sectors, but it's worth confirming you don't have such a drive because the current partition scheme you've posted would be sub-optimal if it does have 4096 byte sectors. Oops. I just reread that this is now SATA. New versions of hdparm and smartctl can tell you if the drive is Advanced Format, and if it is, then I recommend redoing the partition scheme so it's 4K aligned. And so that it has an MBR gap. The current way to do this is have the 1st partition start at LBA 2048. I tried 'smartctl -a' and 'hdparm -I', but I don't see anything about Advanced Format. What am I looking for? I can redo the partitions, but I'm not sure how to tell fdisk to start a partition at LBA 2048. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 1:00 PM, Chris Murphy wrote: On Wed, Aug 5, 2015 at 10:52 AM, Bowie Bailey bowie_bai...@buc.com wrote: How would I go about pointing it at the partition? What I am currently doing is this: device (hd0) /dev/hdg root (hd0,0) setup (hd0) setup (hd1,0) It's hd1 if your device map is correct and hdg is hd1. And then ,0 is for the first partition assuming that's an ext3 boot partition. What I am doing on my other system (where everything is working), is forcing grub to install to both drives as hd0. I found that when the first drive dies and I remove it from the system, grub will see the remaining drive as hd0, regardless of what it was before. So if I install grub to the second disk as hd1, then it won't boot as a single drive. And to get this back to a single thread: On 8/5/2015 1:03 PM, Chris Murphy wrote: On Wed, Aug 5, 2015 at 10:58 AM, Bowie Bailey bowie_bai...@buc.com wrote: I tried 'smartctl -a' and 'hdparm -I', but I don't see anything about Advanced Format. What am I looking for? # smartctl -i /dev/hdg | grep -i sector Sector Size: 512 bytes logical/physical I don't get a Sector Size line. smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: WDC WD10EZEX-60M2NA0 Serial Number:WD-WCC3F6AX0119 Firmware Version: 03.01A03 User Capacity:1,000,204,886,016 bytes Device is:Not in smartctl database [for details use: -P showall] ATA Version is: 9 ATA Standard is: Not recognized. Minor revision code: 0x1f Local Time is:Wed Aug 5 13:09:16 2015 EDT SMART support is: Available - device has SMART capability. SMART support is: Enabled -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 1:30 PM, Chris Murphy wrote: Please, download this. http://sourceforge.net/projects/bootinfoscript/ Run it: http://bootinfoscript.sourceforge.net/ Post a URL to the resulting file somewhere. I suggest having the entire computer assembled as it should be in normal use, rather than simulating device failure by removing a device. http://pastebin.com/sgWTYpp4 -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 4:00 PM, Chris Murphy wrote: - Ahh OK now I see why I was confused. The originally posted partition map uses cylinders as units, not LBA. I missed that. Cylinder 1 is the same as LBA 63. And that is sufficiently large for a GRUB legacy stage 2. - OK this is screwy. Partitions 1 and 3 on both drives have the same number of sectors, but partitions 2 differ: /dev/hde2 401,625 975,691,709 975,290,085 fd Linux raid autodetect /dev/hdg2 401,625 1,952,491,904 1,952,090,280 fd Linux raid autodetect That can't work as these are two partitions meant to form /dev/md2 and need to be the same size. That's because I'm intending to increase the size of that filesystem. The raid should work as long as the new partition is at least as big as the old one. Once I get this working, I will remove the original drive and add another 1TB drive so both partitions are the same (larger size) and extend the filesystem into the new space. - Also, 401625 is not 8 sector aligned. So it's a double whammy and since it has to be repartitioned anyway you might as well fix the alignment also. First off fail+remove hdg2 (you need to confirm I've got the devices and commands right here): mdadm --manage /dev/md2 -f /dev/hdg2 -r /dev/hdg2 mdadm --zero-superblock /dev/hdg2 Using fdisk delete hdg2, then make a new primary partition (partition 2) and hopefully figure out how to get it to do LBA rather than CHS entry; or use parted which can but it's UI is totally unlike fdisk. The start sector for hdg2 should be 401623 which is 8 sector aligned, and the end value should be 975691717 in order to make it the same as hde2. And change the type to 0xfd. Now you probably have to reboot because the partition map has changed, I'm not sure if partprobe exists on CentOS5, could be worth a shot though and see if the kernel gets the new partition map. Check with blkid. And then finally add the new device. mdadm --managed /dev/md2 -a /dev/hdg2 And now it should be resyncing... cat /proc/mdstat But if both hde and hdg are using 401625, then wouldn't I have to repartition both drives so the sizes match? I'm still not sure that this is a partitioning problem. I did not have any problems create the partitions or syncing the three raid devices. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 3:59 PM, m.r...@5-cent.us wrote: Dumb thought: I don't remember how, other than from a grub menu, but I'm pretty sure there's a way to default boot into a grub shell. Once there, you can see, using file completion, the drives, and where your initrd is. Good thought. I went into the grub.conf, commented out the hiddenmenu option and increased the timeout to 10 seconds. This works if I boot from the original drive, but it doesn't help with the new drive. It's not getting that far. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 grub boot problem
On 8/5/2015 4:40 PM, Chris Murphy wrote: On Wed, Aug 5, 2015 at 1:59 PM, m.r...@5-cent.us wrote: Dumb thought: I don't remember how, other than from a grub menu, but I'm pretty sure there's a way to default boot into a grub shell. Once there, you can see, using file completion, the drives, and where your initrd is. It's definitely not an initrd problem. a.) the failure happens before the GRUB menu appears so it hasn't even gone looking for an initrd, b.) the initrd is technically on an array not a device, and as long as the array is sync'd on both devices, it's the same, and since it works on one device, it should work on the other and c.) it's v0.9 mdadm metadata which is kernel autodetect so the initrd doesn't do the assembly. I think once the partition stuff is fixed, and synced, then it will be more reliable to do this because GRUB is after all being pointed to member devices, not the array. There might be more luck using this command at command prompt: grub-install --recheck /dev/hdg See if that repopulates the device.map correctly. It should use /boot (/dev/md0) automatically for stage2. Can't risk killing the system at the moment. I'll give it a try tomorrow. However, I do note that the man page for grub-install has a comment about --recheck stating This option is unreliable and its use is strongly discouraged. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SATA adapter recommendation
On 7/28/2015 12:26 PM, Bill Maltby (C4B) wrote: On Mon, 2015-07-27 at 11:06 -0400, Bowie Bailey wrote: I have an old computer running CentOS 5. I need to add an SATA drive to it, but it doesn't have any ports, so I need an add-on card. The board only has a 32-bit PCI slot. Any recommendations on cards/brands that work well with CentOS? I don't need any raid capabilities, I just need a couple of SATA connections. Thanks, Have you considered this http://www.startech.com/HDD/Adapters/Bi-Directional-SATA-IDE-Adapter-Converter~PATA2SATA3 I'm using the PATA2SATA3 and am well pleased. They also have a uni-directional (meaning it adapts in one direction - data flows both ways of course) one if that meets you needs. I considered that one, but it looks like it needs to plug directly into the IDE connector, and there isn't enough room to have a 2 device plugged in there (2U case with a horizontally-mounted IDE card). I decided on one that plugs directly into the SATA drive instead. http://www.startech.com/HDD/Adapters/25in-and-35in-40-Pin-Male-IDE-to-SATA-Adapter-Converter~IDE2SAT2 Thanks for the suggestions, everyone! -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] SATA adapter recommendation
I have an old computer running CentOS 5. I need to add an SATA drive to it, but it doesn't have any ports, so I need an add-on card. The board only has a 32-bit PCI slot. Any recommendations on cards/brands that work well with CentOS? I don't need any raid capabilities, I just need a couple of SATA connections. Thanks, -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SATA adapter recommendation
On 7/27/2015 12:29 PM, g wrote: On 07/27/15 10:06, Bowie Bailey wrote: I have an old computer running CentOS 5. I need to add an SATA drive to it, but it doesn't have any ports, so I need an add-on card. The board only has a 32-bit PCI slot. Any recommendations on cards/brands that work well with CentOS? I don't need any raid capabilities, I just need a couple of SATA connections. . i hope certain others will excuse my reply to you OT post. instead of a pci slot board, i purchased a board that is an ide/pata to dual sata converter. card connects to ribbon cable dip connector on main board, giving 2 sata connections. works great. an inet search for 'ide/pata to sata converter' will give plenty of hits. card i purchased; http://www.startech.com/HDD/Adapters/IDE-to-SATA-Adapter-Converter~PATA2SATA2 card is available thru many computer accessory suppliers which one will find with web search of ide/pata to sata. That's not a bad idea. I'll have to take a look at the case and see if I have room for something like that. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SATA adapter recommendation
On 7/27/2015 3:52 PM, g wrote: On 07/27/15 13:25, Bowie Bailey wrote: On 7/27/2015 12:29 PM, g wrote: http://www.startech.com/HDD/Adapters/IDE-to-SATA-Adapter-Converter~PATA2SATA2 card is available thru many computer accessory suppliers which one will find with web search of ide/pata to sata. That's not a bad idea. I'll have to take a look at the case and see if I have room for something like that. , if you click on the tab for tech specs, you will see that card is rather small, so you should not have a room problem. check the other tabs also. I ordered a slightly different version that will plug directly into the SATA drive and provide an IDE connector. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] creating RPMs from CRAN tarballs
On 6/5/2015 3:09 AM, Peter wrote: On 06/04/2015 07:49 AM, Tony Schreiner wrote: I run R2spec -s tarball to create a spec file, and most of the time it works ok, but sometimes (RPostgresSQL, Rcpp for example) the package has test or example programs that start with #!/usr/bin/r with lower case r, and the resulting package then winds up with a dependency on /usr/bin/r, which can't be resolved. So far I have solved it by editing all the files and replacing with /usr/bin/R, recreating the tarball and going through the process again, but I have to believe there is an easier way. Kind of. This is an obvious error in the packaged scripts in the tarballs. I generally don't recommend modifying the original tarball as I like it to be a true representation of the tarball source that you get from upstream. What I do instead is patch it in the spec file. In this case it would probably be easier to do one line of perl or awk that patches the shebang line in all the scripts at build time than it would be to generate individual patch files for each source tarball. You would add this to the %prep stage of the spec files, something like this after the initial %setup macro: perl -pi -e 's:^#!/usr/bin/r:#!/usr/bin/R: unless $i++' path/to/R/scripts/*.R I assume the unless $i++ is supposed to limit the replace operation to only the first line each file. Unfortunately, since it is a global variable, it is actually limiting it to only the first line of the first file. I'm not sure how you would fix this using the -p option. You would probably have to write out the loop manually in order to localize the variable properly. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Command line mp3 player
On 5/22/2015 5:01 PM, Frank Cox wrote: On Fri, 22 May 2015 16:20:15 -0400 Bowie Bailey wrote: Any suggestions as to where to go from here? What is your audio device? Are you sure it's supported? (The lshw command will tell you what hardware you have.) Supported by what? OS, or mpg123? I don't have the lshw command. However, I did find this: /proc/asound/cards: 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xfc1a irq 42 /proc/asound/Intel/pcm0p/info: card: 0 device: 0 subdevice: 0 stream: PLAYBACK id: ALC888 Analog name: ALC888 Analog subname: subdevice #0 class: 0 subclass: 0 subdevices_count: 1 subdevices_avail: 1 -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Command line mp3 player
On 5/27/2015 4:30 PM, m.r...@5-cent.us wrote: Bowie Bailey wrote: On 5/22/2015 5:01 PM, Frank Cox wrote: On Fri, 22 May 2015 16:20:15 -0400 Bowie Bailey wrote: Any suggestions as to where to go from here? What is your audio device? Are you sure it's supported? (The lshw command will tell you what hardware you have.) Supported by what? OS, or mpg123? I don't have the lshw command. However, I did find this: yum -y install lshw. It's nice. Slower to start than dmidecode, but much easier to read. And you can tell it to give you just some info, such as lshw -c storage That makes sense. I'm doing too many things at once right now...it didn't even occur to me to try to install it from yum. Here's what I get. *-multimedia description: Audio device product: 82801I (ICH9 Family) HD Audio Controller vendor: Intel Corporation physical id: 1b bus info: pci@:00:1b.0 version: 02 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=snd_hda_intel latency=0 resources: irq:42 memory:fc1a-fc1a3fff -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Command line mp3 player
On 5/22/2015 3:29 PM, Gordon Messmer wrote: On 05/22/2015 12:10 PM, Bowie Bailey wrote: mplayer is pulling in 83 dependencies! I think I'll look for something a bit more self-contained. I don't understand that reaction to packaging. mplayer uses a variety of libraries to support a large variety of media types. It doesn't include servers or SUID binaries, so it doesn't carry a significant security risk, and it doesn't consume much disk space. It doesn't make any more sense that complaining about the number of files in a package. (NOTE: filesystem contains 15000+ files! DON'T REMOVE IT!) If you want to support mp3 only, then try mpg123 or madplay http://www.mpg123.de/index.shtml http://www.underbit.com/products/mad/ mpg123 installed from the nux repo and runs, but I'm not getting any audio. It looks like I may be missing drivers or something. When I run mpg123 in verbose mode, I get this: Audio driver: alsa Audio device: none Any suggestions as to where to go from here? -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Command line mp3 player
I have a CentOS 7 server that I want to use as an audio source for our hold music. It does not have a GUI installed, so I am looking for a program with a command line interface that will let me play a folder full of mp3 files on a continuous loop. MOC seems to do what I want, but I can't find a build for CentOS 7. Is there another program that I can use for this? Thanks. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Command line mp3 player
On 5/22/2015 3:01 PM, Richard wrote: Original Message Date: Friday, May 22, 2015 11:52:43 AM -0700 From: Kirk Bocek t...@kbocek.com On May 22, 2015 11:46:23 AM PDT, Bowie Bailey bowie_bai...@buc.com wrote: I have a CentOS 7 server that I want to use as an audio source for our hold music. It does not have a GUI installed, so I am looking for a program with a command line interface that will let me play a folder full of mp3 files on a continuous loop. MOC seems to do what I want, but I can't find a build for CentOS 7. Is there another program that I can use for this? Thanks. This something I used years ago: http://mpg321.sourceforge.net/ Don't know if it works on CentOS 7 anymore. I think you can do that with mplayer, but you may need to build a playlist first in order to play more than one file. It just worked fine, in commandline, playing one specific file. I didn't try to figure out commandline playlist building. The nux repository, mentioned at the top of this centos wiki page, has mplayer (and a bunch of other audio-related things). http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS7 mplayer is pulling in 83 dependencies! I think I'll look for something a bit more self-contained. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] firewalld trouble opening a port
On 5/9/2015 3:24 PM, Tim Dunphy wrote: Hi Earl, The problem is you added the rule in runtime and when you reloaded it removed the rule that you added; therefore you need to use --permanent or do not reload. Thanks! That worked. [root@appd:~] #firewall-cmd --zone=home --list-ports [root@appd:~] #firewall-cmd --zone=home --add-port=8181/tcp --permanent success [root@appd:~] #firewall-cmd --reload success [root@appd:~] #firewall-cmd --zone=home --list-ports 8181/tcp Just remember that the permanent command doesn't add the rule immediately, so it doesn't take effect *until* you reload. you can also do this: # firewall-cmd --zone=home --add-port=8181/tcp # add other stuff Test that everything works right # firewall-cmd --runtime-to-permanent That way, if you screw something up, you can simply reload (or reboot) to fix it. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] openvpn and firewalld
On 5/9/2015 8:32 AM, James B. Byrne wrote: On Fri, May 8, 2015 12:06, Bowie Bailey wrote: Replying to myself here, I finally figured out how to do it with direct rules. Firewalld on CentOS 7 defaults to a drop rule for the FORWARD chain which my previous server didn't have. So I needed to put the rules in the FORWARD chain rather than the INPUT chain. This does not make sense to me. The INPUT, OUTPUT and FORWARD chains are swimlanes. A packet starts out, following PREROUTING, in exactly one of these three and never leaves it. It can JUMP to shared chains but it will always return to its original chain until ACCEPTed, DROPped or REJECTed. I was a bit confused when I originally posted. This is the only machine that does forwarding and I haven't touched the iptables setup on it in years. The original machine had a shared chain between INPUT and FORWARD with rules that allowed the traffic. I had forgotten how the INPUT and FORWARD chains worked and didn't realize at first that this was a shared chain, so I was putting the rules in the INPUT chain on the new box, which (of course) didn't work. The other thing that caught me was that the new box has a reject rule at the end of the FORWARD chain that I didn't notice until I did an iptables-save and combed through the rules. Is there a better way to get an overview of ALL the rules with firewalld? None of the firewall-cmd options that I can find will show me that there is a reject rule on the FORWARD chain. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] openvpn and firewalld
I am trying to build a new openvpn server based on CentOS7. Everything is working fine as long as I disable firewalld. With firewalld enabled, I can connect to the vpn and ping the machines on the network, but I am unable to ssh to them. What I had on my old server with iptables was two simple rules: -A RH-Firewall-1-INPUT -s localnet/255.255.0.0 -d vpnnet/255.255.0.0 -j ACCEPT -A RH-Firewall-1-INPUT -s vpnnet/255.255.0.0 -d localnet/255.255.0.0 -j ACCEPT This allowed all traffic to flow between my vpn subnet and the local network. How can I duplicate this behavior with firewalld? I even tried using the --direct option to put in these same rules without success. Although I may not have done it quite right -- firewalld seems to have added 20 extra chains to the rule structure and I'm not sure exactly where I should put these rules. Unfortunately, I cannot easily debug this while I'm at the office, but if you can give me any suggestions, I can try them out when I get home tonight. Thanks! -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] openvpn and firewalld
On 5/8/2015 9:34 AM, Bowie Bailey wrote: I am trying to build a new openvpn server based on CentOS7. Everything is working fine as long as I disable firewalld. With firewalld enabled, I can connect to the vpn and ping the machines on the network, but I am unable to ssh to them. What I had on my old server with iptables was two simple rules: -A RH-Firewall-1-INPUT -s localnet/255.255.0.0 -d vpnnet/255.255.0.0 -j ACCEPT -A RH-Firewall-1-INPUT -s vpnnet/255.255.0.0 -d localnet/255.255.0.0 -j ACCEPT This allowed all traffic to flow between my vpn subnet and the local network. How can I duplicate this behavior with firewalld? Replying to myself here, I finally figured out how to do it with direct rules. Firewalld on CentOS 7 defaults to a drop rule for the FORWARD chain which my previous server didn't have. So I needed to put the rules in the FORWARD chain rather than the INPUT chain. The rules may not have been necessary on the old server since FORWARD defaulted to accept, but they would have worked anyway because the RH-Firewall-1-INPUT chain was referenced by both the INPUT and FORWARD chains. I'm still trying to sort out how to do this using firewalld's normal or rich rules. So far, no success. I'm not sure how to affect the FORWARD chain with firewalld. Right now, I have: # firewall-cmd --direct --get-all-rules ipv4 filter FORWARD 0 -s localnet/255.255.0.0 -d vpnnet/255.255.0.0 -j ACCEPT ipv4 filter FORWARD 0 -s vpnnet/255.255.0.0 -d localnet/255.255.0.0 -j ACCEPT So how can I duplicate this behavior without using direct rules? -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Recommended anti-virus for Windows
On 4/2/2015 5:11 PM, J Martin Rushton wrote: Sorry to mention the opposition here, but I have a family member's laptop to protect, and I'm not allowed to upgrade it to Linux. What's the current best recommendation? I have used Avast, AVG, Avira, and Comodo. Currently Comodo (firewall and antivirus) is on all of my systems. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Another Fedora decision
On 2/5/2015 8:20 PM, Always Learning wrote: On Fri, 2015-02-06 at 10:50 +1100, Kahlil Hodgson wrote: On 6 February 2015 at 10:23, Always Learning cen...@u64.u22.net wrote: Logically ? 1. to change the permissions on shadow from -rw-x-- or from -- to -rw-r--r-- requires root permissions ? 2. if so, then what is the advantage of changing those permissions when the entity possessing root authority can already read shadow - that entity requires neither group nor user permissions to read shadow. The concept in play here is privilege escalation. An exploit may not give you all that root can do, but may be limited to, say, tricking the system to change file permission. From there an attacker could use that and other exploits to escalate privileges. How could file permission modification of /etc/shadow be used to escalate privileges ? If I can give myself read access to /etc/shadow, then I can grab a copy and try to crack the passwords (including the root password). If I can give myself r/w access, then I can directly change the password and give myself instant access to everything. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba guest no write access after update to samba -3.6.23-12.el6.x86_64
On 11/6/2014 1:05 PM, Mike Watson wrote: I have an established server initially created with CentOS 6.5 and updated weekly. Last week there was a massive update that I believe upgraded my server to 6.6. I had a number of issues after the upgrade---like my firewall being turned on and blocking all inbound ports. (I have an external firewall.) I've fixed all the issues created by this upgrade except for one. I have a number of samba shares on this server used by some WinXP boxes on my network and two other linux (Fedora) workstations. Since the upgrade, guest/nobody write access no longer works. The smb.conf file is unchanged. The config file below has been unchanged since my initial installation. Anyone know how I can restore guest write access? Guest can read, but not write to the share. I don't see anything obvious. The first thing I would do is to take a look at 'smbstatus' while a guest user is logged on and make sure it is connecting as the user you expect. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] automated smtp server check
On 11/4/2014 7:35 PM, Frank Cox wrote: On Tue, 4 Nov 2014 23:41:36 +0100 Leon Fauster wrote: mon - old lady but small: It looks really cool, but boy does it have a list of dependencies: fping is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Authen::PAM) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Authen::Radius) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(CGI) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(DBI) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Expect) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Mon::Client) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Net::DNS) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Net::DNS::Packet) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Net::DNS::RR) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Net::DNS::Resolver) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Net::LDAP) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Net::SNPP) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Net::Telnet) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(SNMP) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(SNMP) = 1.8 is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Statistics::Descriptive) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Sys::Syslog) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Time::HiRes) is needed by mon-1.2.0-8.el7.centos.x86_64 perl(Time::Period) is needed by mon-1.2.0-8.el7.centos.x86_64 It's a Perl program designed to test a bunch of different services. Of course it's going to require the Perl modules needed to do those queries. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] find troubles
On 10/28/2014 5:32 PM, Robert Nichols wrote: On 10/28/2014 04:00 PM, Tim Dunphy wrote: Hey guys, Sorry not sure what's wrong with this statement. I've tried a few variations of trying to exclude the /var/www directory. [root@224432-24 apr-1.5.1]# find / -name *httpd* -type d \( ! -name www \) /usr/lib/httpd /usr/lib64/httpd /var/www/vhosts/johnnyenglish/httpdocs /var/www/lpaddevbkp/alchemist/namespace/system-config-httpd /var/www/lpaddevbkp/httpd Well, no name that matches *httpd* will also match www, so that last term will never match. What you want is the prune action: find / -name www -prune -o -name *httpd* Or use -path instead of -name. Your original find statement should work with the -path test. find / -name *httpd* -type d \( ! -path /var/www \) but combining it with -prune is more efficient since it excludes the whole directory tree instead of individually excluding each file. find / -path /var/www -prune -o -name *httpd* -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Wow! Double wow!
On 10/29/2014 11:43 AM, Beartooth wrote: On Wed, 29 Oct 2014 09:22:35 -0500, Valeri Galtsev wrote: On Wed, October 29, 2014 9:06 am, Steve Clark wrote: +100 Me too. I was [mistakenly, apparently] always considering 5.[n+1], 6.[m+1] just re-spins, thus providing latest packages with _backported_ security patches/bugfixes, aimed at providing installation media that is not entail millions of updates. Releases with newer versions, drivers included in kernel shuffled, the new kernel (without any necessity in it) which causes hassle to reboot the box... This all effectively defeats the Enterprise portion of the name of the system, doesn't it? Do not take it as me not being appreciative of the great job the distribution maintainers do. I'm just trying to give a view of us, users who have to deal with the consequences... Looking back over the list of packages installed, I notice that most end in el6, but there are some with el6_6. Does that mean she's now actually running 6.6 rather than 6.5? She is running CentOS 6 with all current updates. This currently equates to 6.6. RHEL, and therefore CentOS, does not support maintaining a specific point release version. Updating any CentOS 6 system will now result in an update to 6.6. It is possible to prevent the 6.6 updates from being installed, but this will leave you with no further updates (security or otherwise). I've been wondering when it would be best to switch to CentOS 7. Is there something like fedup in Fedora to do it, or is a fresh install the only way? There is a method to upgrade (there was a recent thread about it in this group), but the recommended method is to install from scratch. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba 4.1.6
On 10/18/2014 8:06 AM, Arun Khan wrote: On Sat, Oct 18, 2014 at 1:21 AM, Bowie Bailey bowie_bai...@buc.com wrote: Can this package coesist with the current Samba package, or do I need to remove the CentOS Samba package first? Both packages would want to use the same ports netbios ports. I understand that. But if they install into different locations, I should theoretically be able to have them both installed as long as I don't try to have both of them active at the same time. That's really what I was asking -- Does the Sernet package install into the same location as the base Samba package or are there package dependencies that would prevent it from being installed alongside the base package? But it's a moot point for me now since I've found a way around the problem I was hoping to solve by switching to 4.1.6. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Samba 4.1.6
I just installed a CentOS 7 server and ran into a problem with Samba and the force user option. Apparently, there was a fix for some force user issues in the 4.1.6 release. Is there any likelihood of an update from upstream? If not, is there another repo that provides a more up-to-date version of Samba? -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba 4.1.6
On 10/17/2014 2:56 PM, m...@tdiehl.org wrote: On Fri, 17 Oct 2014, Bowie Bailey wrote: I just installed a CentOS 7 server and ran into a problem with Samba and the force user option. Apparently, there was a fix for some force user issues in the 4.1.6 release. Is there any likelihood of an update from upstream? If not, is there another repo that provides a more up-to-date version of Samba? Have a look at http://www.sernet.de/en/samba/enterprisesamba/ Their rpms have the latest and greatest samba versions. That looked great until I got signed in and realized that they do not yet have CentOS 7 packages... -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba 4.1.6
On 10/17/2014 3:32 PM, Ray Van Dolson wrote: On Fri, Oct 17, 2014 at 01:22:46PM -0600, Frank Cox wrote: On Fri, 17 Oct 2014 15:12:30 -0400 Bowie Bailey wrote: That looked great until I got signed in and realized that they do not yet have CentOS 7 packages... I don't need this so I didn't register and so on, but I'm wondering if they offer a source rpm package on that site that you might be able to compile yourself? They do. https://download.sernet.de/packages/samba/4.1/rhel/6/src/sernet-samba-4.1.12-9.src.rpm (Link of course requires a vaild account). I will note that the Sernet folks have indicated they plan to release EL7 packages, but that was several months back and nothing is available yet. In a pinch, you can often recompile packages from newer versions of Fedora and in some cases they'll even just work without recompile (I've installed the stock Samba RPM's from Fedora 20 into RHEL7 with zero issues). I'll give the source rpm a try and see what happens. Can this package coesist with the current Samba package, or do I need to remove the CentOS Samba package first? -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba 4.1.6
On 10/17/2014 3:54 PM, Ray Van Dolson wrote: On Fri, Oct 17, 2014 at 03:51:39PM -0400, Bowie Bailey wrote: On 10/17/2014 3:32 PM, Ray Van Dolson wrote: On Fri, Oct 17, 2014 at 01:22:46PM -0600, Frank Cox wrote: On Fri, 17 Oct 2014 15:12:30 -0400 Bowie Bailey wrote: That looked great until I got signed in and realized that they do not yet have CentOS 7 packages... I don't need this so I didn't register and so on, but I'm wondering if they offer a source rpm package on that site that you might be able to compile yourself? They do. https://download.sernet.de/packages/samba/4.1/rhel/6/src/sernet-samba-4.1.12-9.src.rpm (Link of course requires a vaild account). I will note that the Sernet folks have indicated they plan to release EL7 packages, but that was several months back and nothing is available yet. In a pinch, you can often recompile packages from newer versions of Fedora and in some cases they'll even just work without recompile (I've installed the stock Samba RPM's from Fedora 20 into RHEL7 with zero issues). I'll give the source rpm a try and see what happens. Can this package coesist with the current Samba package, or do I need to remove the CentOS Samba package first? I'm not 100% certain, but would suggest you remove (and maybe exclude) the official RPM's from your system. Actually, I think I just found a solution to the problem, so I may not need to worry about it. For some reason, the user I'm trying to force with the force user command needs to be in the samba password database in order for it to work even though I'm using domain authentication otherwise. Thanks for the help! -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 7 docs, tutorials, etc...
On 10/8/2014 12:50 PM, Valeri Galtsev wrote: On Wed, October 8, 2014 11:18 am, Igal @ getRailo.org wrote: On 10/8/2014 9:13 AM, Valeri Galtsev wrote: Someone had mentioned on this list the following RedHat Enterprise 7 (and as you know CentOS is binary replica of RedHat Enterprise with replaced art work): https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/part-Basic_System_Configuration.html so if I buy RHEL 7 books everything should work as in the book? part of the problem for me is that there aren't many books about CentOS, and the ones I found are a few years old This covers CentOS 7 system administration sufficiently well for me (but I work with Linux and Unix for over 1.5 decades...). So, if you decided to walk away from Windows, after you master Linux (or maybe simultaneously with starting it), take a look at Unix successors such as FreeBSD (most suitable for servers IMHO, some may recommend OpenBSD for servers, my preference is FreeBSD), NetBSD (most rich with what is ported to build and run on it), PC-BSD - based on FreeBSD, yet made easiest to install workstation whith GUI interface (X11) support. I understand, but this is primarily for servers for emails, web, etc., and it is my understanding that CentOS is one of the better distributions for that kind of stuff. I would say, CentOS 6 is the best of Linuxes suitable for server (IMHO). However, I for one decided to move my servers away from Linux (as from Unix-like Linux gradually becomes Windows-like during last 5 years or so). Since some time ago I do not upgrade Linux systems on servers I maintain. Instead, when the time comes, I just migrate server from Linux to FreeBSD, which is much more suitable platform for server than Linux. Version 7 of RedHat Enterprise or CentOS is much worse than version 6 to build server on. Again, this is just my humble opinion. If I absolutely have to build server on today's latest Linux, I will choose Debian, which at least doesn't have systemd yet. But it will have it in next release... What changes have you seen that affect using CentOS as a server? Sure, the GUI has changed over the years to be more like Windows, but most of my servers don't even have a GUI installed. I have servers running CentOS 4, 5, 6, and 7. The only differences I can think of between 4 and 7 that affect server administration are selinux and systemd. Selinux can be easily disabled if you don't want to deal with it. I don't like systemd at the moment, but that's at least partially due to only having worked with it for a couple of weeks so far. The more I use it, the more I get used to it. So far, it seems easy enough to use once you figure out the new commands and file locations. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 7 docs, tutorials, etc...
On 10/8/2014 3:16 PM, Dave Stevens wrote: Quoting Bowie Bailey bowie_bai...@buc.com: On 10/8/2014 12:50 PM, Valeri Galtsev wrote: I would say, CentOS 6 is the best of Linuxes suitable for server (IMHO). However, I for one decided to move my servers away from Linux (as from Unix-like Linux gradually becomes Windows-like during last 5 years or so). Since some time ago I do not upgrade Linux systems on servers I maintain. Instead, when the time comes, I just migrate server from Linux to FreeBSD, which is much more suitable platform for server than Linux. Version 7 of RedHat Enterprise or CentOS is much worse than version 6 to build server on. Again, this is just my humble opinion. If I absolutely have to build server on today's latest Linux, I will choose Debian, which at least doesn't have systemd yet. But it will have it in next release... What changes have you seen that affect using CentOS as a server? Sure, the GUI has changed over the years to be more like Windows, but most of my servers don't even have a GUI installed. I have servers running CentOS 4, 5, 6, and 7. The only differences I can think of between 4 and 7 that affect server administration are selinux and systemd. Selinux can be easily disabled if you don't want to deal with it. I don't like systemd at the moment, but that's at least partially due to only having worked with it for a couple of weeks so far. The more I use it, the more I get used to it. So far, it seems easy enough to use once you figure out the new commands and file locations. And the RAID setup is MUCH easier and more rational, really nice to use. Interesting. I built my CentOS 7 server with a raid 1 mirror. I found the raid setup in the installer to be confusing and very non-intuitive. I don't remember having any problems with it in previous versions. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] C6 : AIDE experience
On 9/9/2014 3:48 PM, Always Learning wrote: Having problems with Tripwire on C6, I installed AIDE from the base repository. x86_64 0.14-3.el6_2.2 base 123 k typing: aide result: Couldn't open file /var/lib/aide/aide.db.gz for reading (directory is empty and aide.db.gz does not exist.) typing: aide -i (for initialise the Aide database) result: AIDE, version 0.14 ### AIDE database at /var/lib/aide/aide.db.new.gz initialized. (size 10 bytes) typing: aide result: Couldn't open file /var/lib/aide/aide.db.gz for reading typing: aide --init (for the second time) result: AIDE, version 0.14 ### AIDE database at /var/lib/aide/aide.db.new.gz initialized. (now 2,225,108 bytes) typing: aide result: Couldn't open file /var/lib/aide/aide.db.gz for reading action: renaming aide.db.new.gz as aide.db.gz typing: aide result: (noticeable delay) AIDE, version 0.14 ### All files match AIDE database. Looks okay! (only 1 file in /var/lib/aide = aide.db.gz) typing: aide -u result: (noticeable delay) AIDE, version 0.14 ### All files match AIDE database. Looks okay! ### New AIDE database written to /var/lib/aide/aide.db.new.gz Comment: Looks like I have solved the riddle :-) I did do a 'yum erase aide' followed by a 'yum install aide' to ensure my first experience was not a technical malfunction. I'm a bit behind on this list, but as I don't see any other replies, I'll comment here. Aide does not update it's database file. Whenever you run an init or update, it will create a new file. You then have to manually rename that file in order to start using the new database. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] good thin client PDF reader for centos 6.4
On 6/20/2014 10:21 AM, m.r...@5-cent.us wrote: To you, and whoever else, you're very welcome. When my manager introduced me to it, my *instant* reaction was those state tax forms, but I know there's lots of other forms out there that the ignorant don't make fill-outable. Do you have any suggestions for a good program to create PDF forms (linux or MS)? I have a PDF document here that we have our customers fill out. I looked into making it a form a while back, but I couldn't find any reasonable way to do it (there are a LOT of fields and check-boxes on this form). All of the things I tried wanted to add visual elements to the form along with the fields and I don't have room on the form for that. I just want to be able to say allow typing here, here, here, -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] parsing out adjacent text
On 6/3/2014 11:55 AM, Tim Dunphy wrote: Ok this is what I came up with: #!/bin/bash # this script parses mod_status to see which hosts are getting the most requests while true do echo Time and date: $(/bin/date +%D %H:%M:%S) /tmp/apache_request_log /tmp/apache_request_log echo “hostname: $(/bin/hostname -f)\n”/tmp/apache_request_log echo “host ip: $(/bin/hostname -i)”/tmp/apache_request_log echo Server Stats: $(/usr/bin/GET `hostname -f`/server-status/?auto | /bin/egrep -i 'kbytes') /tmp/apache_request_log echo Server Stats: $(/usr/bin/GET `hostname -f`/server-status/?auto | /bin/egrep -i 'ReqPerSec') /tmp/apache_request_log echo -e \n sleep 60 done Still can't get the echo -e \n statement to print a new line for some reason. Other than that I'm good. And thanks for everyone's help! 'echo' on it's own should print a new line. If you want two, why not just use two echo lines? Also, you are piping everything else to the apache_request_log except for the last echo line. Is the problem simply that you forgot to pipe that to the log file? echo -e \n /tmp/apache_request_log -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] new computers and monitors
On 5/28/2014 3:00 PM, Michael Hennebry wrote: On Wed, 28 May 2014, Bowie Bailey wrote: On 5/28/2014 1:29 AM, Michael Hennebry wrote: On Tue, 27 May 2014, John R Pierce wrote: On 5/27/2014 5:38 PM, Michael Hennebry wrote: Until recently, I had a 32-bit machine with one monitor running fedora. The later editions of fedora didn't like it, so I switched to CentOS. Now I have two 64-bit machines and two monitors and a CenturyLink router. Also a KVM switch that I have not taken out of the package. My main machine has two video connections and two ethernet connections, eth0 and eth1 . My secondary machine sometimes runs Windows, so I'd like it not to have its own global IP address. My first thought would be to connect it directly to one of the ethernet ports on my main machine. How do I go about this? The answer I am expecting is one or more links to tutorials or the like. It can get fairly interesting depending on what you are trying to do. You may need a special crossover cable to connect the two computers directly. The newer network cards may be able to handle doing this with a standard cable, but I haven't tried it. Why do you want to connect the two computers like this? It is usually more trouble than it's worth unless you want to use the first computer as a firewall or something. Just connect both of them to your router and everything should work fine. I don't know that I do. I've not done anything with a router since connecting my old computer to CenturyLink's router/modem. I want the second computer to not have its own global IP address. It will at least occasionally run Windows. I'd prefer not to assume that Windows will not try to fetch an IP address behind my back. The router should have a built-in switch with multiple network jacks. Just plug the new computer into the router along with the old one and you should be fine. Consumer grade Internet connections only give you a single global IP address, so anything connected to your router will use that same IP address globally. The router will do NAT and DHCP for the internal machines to give them a local address. (I am assuming that you have a standard modem/router combination that does NAT/DHCP. As Les mentioned, if you have a simple modem that connects to your computer without the built-in router, things will be more complicated.) Windows will fetch a local IP address (as will Linux) unless you specify one yourself and disable DHCP. The Windows and Linux OS's on the same box may or may not automatically get the same local IP address depending on how the router handles it. What is your concern about the IP address? -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Centos backup tools
On 5/16/2014 10:58 AM, Fred Smith wrote: Hi all! I'm building a raid box to use for backups, connectivity will be either USB3 or esata. Looking for suggestions on backup software I can use. I know there's rsync, which may be a good solution. I also find backupPC at epel, backintime also at epel, kbackup. DejaDup looks interesting, but none of the repos I'm set up to use shows it being available. some small details: I plan to use this to keep backups of my centos desktop, which has two 320GB drives in linux RAID-1. The backup box will have two 1TB drives, also in RAID-1. It will be a two drive enclosure with PS and cooling, with USB3 or esata, but not networking. I was thinking that it would be nice to have a full backup followed by a set of incrementals, and software that allows access to the state of the system for any specific date (similar to a source control system), but it may be that nothing free and/or uncomplicated will offer such a feature. BackupPC works great. I'm using it to back up about 20 servers. The pooling allows you to keep many more backups online than you expect. A couple of things to watch for: 1) The data directory must be on a filesystem that supports hardlinks as that is how the pooling is done. 2) Due to the massive number of hardlinks used in the pool, it can be very difficult to backup or copy the backup server itself depending on the number of files in the pool. If you want an offsite copy, I would suggest breaking the mirrored pair, sending one of those disks offsite, and then rebuilding to a new drive. I actually have 3 drives in my raid1 setup so that there is still redundancy while it is rebuilding. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Some basic SELinux questions
On 4/25/2014 4:27 PM, Stephen Harris wrote: On Fri, Apr 25, 2014 at 02:51:40PM -0400, m.r...@5-cent.us wrote: Stephen Harris wrote: a problem when CFe modifies a file that I don't want modified on my machine. Doesn't cfengine allow for logging changes on a per-system basis? I don't control the cfengine configuration, so I don't get to determine the logs, which is why I want to be alerted if it changes one of my files :-) Aide would seem to be what you are looking for. It tracks hashes, timestamps, permissions, etc of the files on your system and notifies you when something changes. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] I want to ask about some Kernel level operations.
On 1/1/2014 6:53 PM, Eliezer Croitoru wrote: I want to make sure that while compiling as root nothing will break down inside the machine. I want to compile software on a Xeon SERVER. The basic issue is that there is a recommendation to not compile it as a root user. I have compiled software as a root user more then once and I am not sure why would there is a need to run it as non-root user? I have taken a look at the /proc/ FS but I do not see anything that can harm anything yet. From my aspect it's just background of electricity noise. I will be happy to hear from experience of others about it. The basic issue is limiting your exposure in the case of a problem. As long as everything works and is programmed properly, you can do whatever you want as root. But as soon as there is a problem, there can be huge consequences. The root user has access to everything on the server. So a typo in a program/makefile/command has the possibility of bringing down the whole server. On the other hand, if you are logged in as a normal user, then the damage is limited to your directories. Best practices say that you should do everything possible as a normal user. Root should only be used when you must have access to something that the normal user doesn't. Some distributions (like Ubuntu) even enforce this by not allowing root logins and forcing the user to use sudo for commands that require root access. Bottom line is this: It's your server, so use root if you want. Just be aware of the dangers and don't try to blame anyone other than yourself when a typo or misbehaving build script takes down the system. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] I want to ask about some Kernel level operations.
On 2/4/2014 2:57 PM, John R Pierce wrote: On 2/4/2014 9:15 AM, Bowie Bailey wrote: On 1/1/2014 6:53 PM, Eliezer Croitoru wrote: I want to make sure that while compiling as root nothing will break down inside the machine. The basic issue is limiting your exposure in the case of a problem. this is a month old thread, that was hammered into the ground, with the OP arguing with each answer he was given. I am a bit behind on this list. I read through the thread, but didn't notice the dates. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound traffic spike every 30 minutes
On 12/4/2013 4:47 AM, Heiko Specht wrote: hi, i aggree with mark. maybe iftop -P would work for you... and if you can determine a port from iftop you could run lsof -Pn | grep :Port to list the daemon which uses this port. that is what i would try.. Heiko m.r...@5-cent.us 03.12.2013 23:15 Bowie Bailey wrote: On 12/3/2013 4:49 PM, m.r...@5-cent.us wrote: Bowie Bailey wrote: Since Sunday morning, one of my CentOS servers has been generating a small spike of outbound traffic every 30 minutes (X:00 and X:30). It's not enough traffic to really cause any notice except for the fact that it is a very regular pattern and it started abruptly at midnight Sunday. This server is used for mail (Courier-MTA), and DNS (Bind). I cannot find anything unusual in either of those logs. I tried grepping through my firewall logs, but have been unable to find anything useful there either. I don't see any cron jobs that would generate network traffic. Any suggestions how I can go about tracking this down? Run rkhunter? Actually, if it's that regular, you could run tcpdump when you expect it. rkhunter complained about a few files, but rpm --verify doesn't flag any of them. Other than that, just a few insecure settings and out of date programs, which are not ideal, but do not indicate a problem on their own. I could try running tcpdump or wireshark, but that's going to generate a lot of data and I'm not sure how to go about filtering it. I know the spike happens on the hour and half hour, but my traffic monitor does not give me enough detail to see exactly when it starts or exactly how long it lasts and I don't know what protocol or port I'm looking for. Dumb idea: run top and see if something spikes. iftop helped me track it down. It was actually starting at :05 and :25. One of my email clients received a 20M email and was having problems downloading it. Every 30 minutes, the pop client would connect, try to download the emails, and then disconnect after 2 minutes. Thanks for the suggestions everyone! -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Outbound traffic spike every 30 minutes
Since Sunday morning, one of my CentOS servers has been generating a small spike of outbound traffic every 30 minutes (X:00 and X:30). It's not enough traffic to really cause any notice except for the fact that it is a very regular pattern and it started abruptly at midnight Sunday. This server is used for mail (Courier-MTA), and DNS (Bind). I cannot find anything unusual in either of those logs. I tried grepping through my firewall logs, but have been unable to find anything useful there either. I don't see any cron jobs that would generate network traffic. Any suggestions how I can go about tracking this down? -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound traffic spike every 30 minutes
On 12/3/2013 3:42 PM, dieg...@gmail.com wrote: --Mensaje original-- De: Bowie Bailey Remitente: centos-boun...@centos.org Para: CentOS mailing list Responder a: CentOS mailing list Asunto: [CentOS] Outbound traffic spike every 30 minutes Enviado: 3 de dic de 2013 19:36 Since Sunday morning, one of my CentOS servers has been generating a small spike of outbound traffic every 30 minutes (X:00 and X:30). It's not enough traffic to really cause any notice except for the fact that it is a very regular pattern and it started abruptly at midnight Sunday. This server is used for mail (Courier-MTA), and DNS (Bind). I cannot find anything unusual in either of those logs. I tried grepping through my firewall logs, but have been unable to find anything useful there either. I don't see any cron jobs that would generate network traffic. Any suggestions how I can go about tracking this down? Is inbound or outbound? What port? tcp or udp? It is outbound from my server to the Internet. My traffic monitor does not give me any more detailed information, just a nice sawtooth graph showing the regular spikes. TCP or UDP and the port is part of what I am trying to determine. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Outbound traffic spike every 30 minutes
On 12/3/2013 4:49 PM, m.r...@5-cent.us wrote: Bowie Bailey wrote: Since Sunday morning, one of my CentOS servers has been generating a small spike of outbound traffic every 30 minutes (X:00 and X:30). It's not enough traffic to really cause any notice except for the fact that it is a very regular pattern and it started abruptly at midnight Sunday. This server is used for mail (Courier-MTA), and DNS (Bind). I cannot find anything unusual in either of those logs. I tried grepping through my firewall logs, but have been unable to find anything useful there either. I don't see any cron jobs that would generate network traffic. Any suggestions how I can go about tracking this down? Run rkhunter? Actually, if it's that regular, you could run tcpdump when you expect it. rkhunter complained about a few files, but rpm --verify doesn't flag any of them. Other than that, just a few insecure settings and out of date programs, which are not ideal, but do not indicate a problem on their own. I could try running tcpdump or wireshark, but that's going to generate a lot of data and I'm not sure how to go about filtering it. I know the spike happens on the hour and half hour, but my traffic monitor does not give me enough detail to see exactly when it starts or exactly how long it lasts and I don't know what protocol or port I'm looking for. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Size limitations in .htaccess
On 5/29/2013 10:08 PM, Max Pyziur wrote: On Wed, 29 May 2013, m.r...@5-cent.us wrote: Have you considered running fail2ban, and banning them using iptables? I've considered that. But I'm tied to my (little?/not-so-little?) home-grown system of mining threatening IPs from BL sites (spam, sshd, forumspam), running them through an sql database, and outputing /etc/hosts.deny files to block via tcp wrappers, and now starting to output Deny from lines to place in .htaccess files. Deny From lines longer than somewhere around 8000 characters seem to be the limit; I was curious if there was a specified limit somewhere, and whether or not I could put multiple Deny From lines? WHile fail2ban looks good, the little that I've tried it, I like keeping the firewall iptables neat, and doing the blocking as I have described above (maybe it's familiarity trumping fail2ban; maybe it's that fail2ban has a bit of a learning curve ...) Fail2ban keeps all of its rules in it's own chain, so any custom rules that you have created will not get lost in the clutter. You could also do the blocking yourself with iptables rather than having fail2ban manage it for you. Just create iptables rules rather than the hosts.deny format. iptables -I Blacklist -s xxx.xxx.xxx.xxx -j DROP Of course, you need to add a rule in your main ruleset to call the Blacklist chain. And make sure to save the rules from time to time so you don't lose all of them in a reboot. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] New motherboard - kernel panic
On 4/15/2013 5:09 PM, m.r...@5-cent.us wrote: Bowie Bailey wrote: On 4/15/2013 1:35 PM, m.r...@5-cent.us wrote: Bowie Bailey wrote: On 4/12/2013 5:33 PM, Bowie Bailey wrote: I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic. When I try to boot up, I get this: Volume group VolGroup00 not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! (I apologize for any typos, I don't have a way to copy/paste from that screen) I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok. I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results. Sorry, hit send and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it? I can see the drives from the rescue environment. I don't know how to check the LVM drivers. You need *both* the md drivers and lvm drivers. I haven't built a system using lvm in years, I'm afraid, but it shouldn't be too hard. Btw, this may be of some interest: http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/device_mapper.html I got it figured out. The problem was at the sata driver level. The instructions I found for rebuilding the initrd neglected to mention that I needed to edit modprobe.conf and add the appropriate driver information first. I'm still not sure why it was able to get as far as loading the kernel before suddenly being unable to see the drives. If it needs sata drivers to see the disks, why doesn't it need them to read the boot partition? I didn't have to mess with grub or the boot sector after changing motherboards. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] New motherboard - kernel panic
On 4/12/2013 6:53 PM, John R Pierce wrote: On 4/12/2013 2:33 PM, Bowie Bailey wrote: I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic. what chipset and storage controller was the old board? what chipset and storage controller is on the new one? The old board was an ASUS A8N-VM CSM with the NVIDIA nForce 430 chipset. The new board is an ASRock A785GM-LE board with the AMD SB710 chipset. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] New motherboard - kernel panic
On 4/12/2013 5:33 PM, Bowie Bailey wrote: I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic. When I try to boot up, I get this: Volume group VolGroup00 not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! (I apologize for any typos, I don't have a way to copy/paste from that screen) I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok. I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results. Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort. The old board was an ASUS A8N-VM CSM with the NVIDIA nForce 430 chipset. The new board is an ASRock A785GM-LE board with the AMD SB710 chipset. Thanks, -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] New motherboard - kernel panic
On 4/15/2013 1:33 PM, m.r...@5-cent.us wrote: Bowie Bailey wrote: On 4/12/2013 5:33 PM, Bowie Bailey wrote: I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic. When I try to boot up, I get this: Volume group VolGroup00 not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! (I apologize for any typos, I don't have a way to copy/paste from that screen) I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok. I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results. Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort. Just sort of guessing - could the new m/b have resulted in a new UUID, and the configuration - fstab? hwconf? - is looking for the old? The drives are in an md array (raid 1) which is used as the PV for the volume group that is producing the error. fstab simply references the logical volume. LVM configuration refers to /dev/md1. mdadm.conf simply says device partitions. I can't go any farther than that without a running system. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] New motherboard - kernel panic
On 4/15/2013 1:35 PM, m.r...@5-cent.us wrote: Bowie Bailey wrote: On 4/12/2013 5:33 PM, Bowie Bailey wrote: I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic. When I try to boot up, I get this: Volume group VolGroup00 not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! (I apologize for any typos, I don't have a way to copy/paste from that screen) I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok. I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results. Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort. Sorry, hit send and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it? I can see the drives from the rescue environment. I don't know how to check the LVM drivers. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] New motherboard - kernel panic
On 4/15/2013 1:44 PM, Les Mikesell wrote: On Mon, Apr 15, 2013 at 12:35 PM, m.r...@5-cent.us wrote: I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic. CentOS 4 - seriously??? Yea, it's an old system. I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok. I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results. Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort. Sorry, hit send and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it? You need to include whatever drivers loaded in rescue mode in the new initrd, but I've forgotten the exact details. In Centos5 you would add alias entries to /etc/modprobe.conf but it might have been named something else in C4. Maybe you can see what is there before you chroot to the installed instance and change the file there to match, then make the new initrd. Once in a similar circumstance I just copied the whole contents of ./boot from a different machine with identical hardware so I didn't have to know as much as anaconda about matching hardware and drivers. There is a /etc/modprobe.conf file on the original system. Among other things, it says: alias scsi_hostadapter sata_nv I assume that refers to the driver for the nvidia chipset. I found a modprobe.conf file in the rescue environment living in /tmp/modprobe.conf. This one says: alias scsi_hostadapter ahci I guess that's a driver that works with the new hardware? I do not have the ports in ahci mode in the bios. What do I need to do to make sure the driver gets into initrd? Or do I just need to make the change to /etc/modprobe.conf on the hard drive? -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] New motherboard - kernel panic
On 4/15/2013 3:10 PM, Les Mikesell wrote: On Mon, Apr 15, 2013 at 1:54 PM, Bowie Bailey bowie_bai...@buc.com wrote: CentOS 4 - seriously??? Yea, it's an old system. If you have somewhere to copy the data, the best approach would be to back it up from the rescue-mode boot, reinstall centos 6 and copy back anything you need - and be good for another many years. This system is running BackupPC. The number of hardlinks in the data makes copying impractical. I may rebuild it with CentOS 6 later and let the backups rebuild themselves, but I don't want to do it now if I can avoid it. There is a /etc/modprobe.conf file on the original system. Among other things, it says: alias scsi_hostadapter sata_nv I assume that refers to the driver for the nvidia chipset. I found a modprobe.conf file in the rescue environment living in /tmp/modprobe.conf. This one says: alias scsi_hostadapter ahci I guess that's a driver that works with the new hardware? I do not have the ports in ahci mode in the bios. lsmod from the running rescue system should show the loaded modules. Your initrd has to include anything needed to access the hard drive and filesystem before you can find the others. What do I need to do to make sure the driver gets into initrd? Or do I just need to make the change to /etc/modprobe.conf on the hard drive? I think you would change the /etc/modprobe.conf on the hard drive and chroot there (/mnt/sysimage) before running mkinitrd. I figured that one out just before I received your response. That fixed the bootup problem. The changes to modprobe.conf were what was missing from the instructions I found online on Friday. For future reference, this is what I did: 1) Boot into rescue mode. 2) Look at /tmp/modprobe.conf in the rescue environment to see what driver was in use. 3) Edit /mnt/sysimage/etc/modprobe.conf and add the driver there 4) chroot /mnt/sysimage 5) cd /boot 6) mv initrd-(kernel version).img initrd-(kernel version).img.bkup 7) mkinitrd initrd-(kernel version).img (kernel version) 8) reboot Now I've just got to work on getting the network card going, but that (I hope!) should be much easier now that the system is booting. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: memory brands?
On 2/20/2013 3:43 PM, John R Pierce wrote: On 2/20/2013 6:38 AM, Patrick Lists wrote: On 02/20/2013 02:57 PM,m.r...@5-cent.us wrote: So, I'm rebuilding my system at home. Any recommendations or warnings about brands of memory? Googling around, I see brands I've never*heard* of I like Crucial. I used to use Crucial.Then I had a bunch of hard-to-diagnose issues with different systems that finally tracked down to various 'high end' Crucial Ballistix memories. Switched to Corsair for desktop stuff, haven't had any problems. Most of my servers have either OEM brand (HP, Dell, IBM) memory (often it turns out to be Hyundai or Samsung), or Kingston. I've been lucky enough to not have many issues with memory. Most of the failures I deal with are hard drives, power supplies, and motherboards. I have used Corsair, Kingston, G.Skill and OCZ memory. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: UPS battery vendor
On 2/11/2013 2:57 PM, m.r...@5-cent.us wrote: Hi, folks. I need some new replacement batteries for rack-mount APC UPSes. My old vender... well, the salesman I dealt with for several years left about a year and a half ago, and last year's purchase was a disaster (wrong batteries, wrong batteries, months to get the shipping to return the wrong batteries...), so I'm looking for a new, reliable vendor who does US government contract sales. Recommendations? Warnings? I don't know if they do government sales, but I've done business with Batteries Plus locally and BatterySharks.com via the Internet. Batteries Plus was reliable, but their prices were going up, so I had to look for a less expensive solution. On the first order I placed with Battery Sharks in 2011, they sent me 7Ah batteries instead of 7.5Ah. Not a huge deal, but not what I ordered. After complaining about it, they gave me a $15 account credit (I used the batteries anyway) and I haven't had any problems since. Even with shipping, they are less expensive than Batteries Plus. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: UPS battery vendor
On 2/11/2013 3:37 PM, John R Pierce wrote: On 2/11/2013 12:13 PM, Bowie Bailey wrote: Batteries Plus was reliable, but their prices were going up, so I had to look for a less expensive solution. lead acid battery prices have gone up a lot due to the price of lead and transportation. True, but here is a comparison: 12V 18Ah battery Batteries Plus: $79.88 Battery Sharks: $38.27 12V 7.5Ah battery Batteries Plus: $42.47 Battery Sharks: $20.10 This is the total shipped price of a single battery based on ordering a set of batteries -- (2) 7.5Ah batteries or (4) 18Ah batteries. The price would probably drop a bit on both sides if ordering in quantity. Batteries Plus used to give us a discount on all of our orders since we were a regular customer, but they still weren't even close to Battery Sharks' prices. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] load balancer recommendations
On 1/20/2013 10:12 AM, Nikolaos Milas wrote: You'll undoubtedly find more material on the iNet, but I hope the above may serve as a starting point. The iNet? Wow, Apple's getting into everything these days... :) -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] load balancer recommendations
On 1/23/2013 10:57 AM, m.r...@5-cent.us wrote: Bowie Bailey wrote: On 1/20/2013 10:12 AM, Nikolaos Milas wrote: You'll undoubtedly find more material on the iNet, but I hope the above may serve as a starting point. The iNet? Wow, Apple's getting into everything these days... :) I think he meant the Inet. g Missed the beginning of this thread, but if this is about serious hardware load balancers, a few years ago, where I was working, we bought one from Radware - less expensive than F5, and a very nice box, very configurable. ObBias: as I worked closely with the sales engineer setting it up, and got friendly with him, I'd be glad to get you in touch with him We're using a Foundry ServerIron. Works well for us. But the OP was asking about a software load balancer. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] courier mail for Centos
On 12/6/2012 8:42 AM, Robert Moskowitz wrote: Are there existing rpms for courier mta? I am working from: http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-fedora-14-x86_64 And am making progress with postfix and mysql, but looking ahead to other steps. I see squirrelmail is in EPEL. I don't know of any rpms in the major repos. However, the courier and courier-auth tarballs have spec files that make it VERY easy to build the rpms yourself. You don't even have to unpack the tarballs. Ask on the courier mailing list. Very friendly and the developer is active on the list. -- Bowie ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos