Zube | 30 May 17:30 2016

grub (?) issue on Optiplex 780 A15, 6.8 upgrade

Most of the upgrades to CentOS 6.8 have gone smoothly.  Thanks, as
always, for all the work that goes into making it so easy to upgrade.

On a few machines, however, all of them curiously:

Dell Inc. OptiPlex 780                 /0C27VV, BIOS A15 08/06/2013

There is something wrong with their interaction with grub (?).
I noticed this after adding '3' to the module line to get it to
runlevel 3, but the machine came up at runlevel 5 anyway.

On machines that are working correctly, the dmesg output looks
like this:

Command line: /boot/vmlinuz-2.6.32-642.el6.x86_64 ro 
root=UUID=20a8bd64-5783-4007-a5e4-e41bfc07f3c8
intel_iommu=on rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD
SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us
rd_NO_DM rhgb rdblacklist=nouveau quiet

if the options are on the module line or like this:

Command line: ro root=UUID=7d11ff13-106f-42df-9a41-9ebf2505f6d2
rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
crashkernel=auto rdblacklist=nouveau

if the options are on the kernel line.  But on the offending
machines, it looks like this:

(Continue reading)

Walter H. | 30 May 14:13 2016

Successful update from CentOS 6.7 to CentOS 6.8, but ...

Hello,

I have several CentOS 6 VMs, I have updated the first one successfully,
but there is one thing I miss or I don't like;

How do I get the standard console with 80x25 back?

this is /boot/grub/grub.conf

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-642.el6.x86_64)
	root (hd0,0)
	kernel /vmlinuz-2.6.32-642.el6.x86_64 ro
root=UUID=a27dc9a0-ea3a-497d-a9c3-80c7bbba31fa rd_NO_LUKS
LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto
rd_NO_DM rd_NO_LVM  KEYBOARDTYPE=pc KEYTABLE=de config_NO_HZ vga=0x0300
	initrd /initramfs-2.6.32-642.el6.x86_64.img

I've added 'vga=0x0300' (the same would be 'vga=768'), but this
results in 100x37?

Thanks for Help,
Walter
Qiang Chen | 30 May 13:31 2016
Picon

Re: centos7 tmpfiles.d deleted outdate files

Hi Jonathan Billings,

the `age` can't apply to 'r', only would apply to 'd', 'D', 'x', 'X', etc

"The age field only applies to lines starting with |d|, |D|, |v|, |q|, 
|Q|, |C|, |x| and |X|. If omitted or set to "|-|", no automatic clean-up 
is done."

so, there have good idea if I only want to delete the specific files not 
all files in that dir? thx.

On 2016年05月26日 20:54, Jonathan Billings wrote:
> Boxbe <https://www.boxbe.com/overview> This message is eligible for 
> Automatic Cleanup! (billings <at> negate.org) Add cleanup rule 
>
<https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3DIHIC9p2jvtlLIfUym1h5cJ2bV47JU5xUSAS8hXJ6s5Y%253D%26token%3DQxrt0MFjvrbNQUv1XU7LlnUJYHBN9V92vmpaAZ9KkbO93DVkWDOu6pxjzLzV9I5d0WOIxZ6EBVn85CUoMMtN7okx0kLJV%252F7xJVwVpgcPoTZZVw8A7aTXuqXUBbLsuh%252FgEAiBRqTXvms%253D&tc_serial=25540750649&tc_rand=828171377&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001> 
> | More info 
>
<http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=25540750649&tc_rand=828171377&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001> 
>
>
>
> On Thu, May 26, 2016 at 03:03:25PM +0800, Qiang Chen wrote:
>> Would some one help me for this question? thanks very much.
> I would suggest reading the tmpfiles.d man page.
>
> Use 'd' for the directory, and 'r' for the files you want to remove,
> including the age.  Something like 'r /path/* - - - 10s'.
>

(Continue reading)

Qiang Chen | 30 May 13:16 2016
Picon

Re: centos7 tmpfiles.d deleted outdate files

so, there no method to delete special files that below a directory?

such as in the directory

[root <at> chenqiang]# tree
.
├── test_10d
└── test_20d

0 directories, 2 files
[root <at> chenqiang]# ll
total 8
-rw-r--r-- 1 root root 4 5月  20 19:14 test_10d
-rw-r--r-- 1 root root 4 5月  10 19:15 test_20d

So, I want to delete file test_20d, keep test_10d, how to do that? thx.

On 2016年05月27日 02:12, Gordon Messmer wrote:
> Boxbe <https://www.boxbe.com/overview> This message is eligible for 
> Automatic Cleanup! (gordon.messmer <at> gmail.com) Add cleanup rule 
>
<https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3Dcj6TIIH2JCApBZSDfyWJ8iQEI%252BX4EXjdlT1Hn%252Bg1S2k%253D%26token%3D9azxLv8qsCT3SJ8yOuS45fGCsimKKw%252FBBlrzM50NWAafA%252BeFZ8b8gyIlyRYLmG3Eui34w2DE0rYrFj82WbDOBqXqDZJvxmXH%252FKGVgyhWIq5zDsXrCJHzEyfvYCAisQ00%252FTCvthmPrgxu9vouzTiaCg%253D%253D&tc_serial=25543758553&tc_rand=2024237295&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001> 
> | More info 
>
<http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=25543758553&tc_rand=2024237295&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001> 
>
> On 05/24/2016 11:18 PM, Qiang Chen wrote:
>> #Type Path    Mode  UID   GID   Age   Arg
>> d /chenqiang 0775 root root 10s
>> f /chenqiang/test_10s 0660 root root 10s
(Continue reading)

Always Learning | 30 May 04:01 2016
Picon

C6.8 YUM reference to Red Hat


Doing a yum update on C6.8 .................

:  yum update
Loaded plugins: fastestmirror, priorities, protectbase
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: centos.datente.com
 * epel: mirrors.n-ix.net
 * extras: mirror.softaculous.com
 * updates: centos.datente.com
base                                            | 3.7 kB     00:00     
base/primary_db                                 | 4.7 MB     00:00     
cr                                              | 3.3 kB     00:00     
cr/primary_db                                   | 1.2 kB     00:00     
epel                                            | 4.3 kB     00:00     
epel/primary_db                                 | 5.8 MB     00:00     
extras                                          | 3.4 kB     00:00     
extras/primary_db                               |  36 kB     00:00     
mariadb                                         | 2.9 kB     00:00     
http://mirror.centos.org/centos/6/SCL/x86_64/repodata/repomd.xml: [Errno
14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket
with Red Hat Support.

(Continue reading)

Bill Gee | 30 May 02:10 2016
Picon

CentOS 6 spontaneous reboots

Hello everyone -

My CentOS 6.8 server has been rebooting itself every 2 to 4 hours for the last 
several days.  I do not know where to look for logs that might give a clue what 
the problem is.  There are no unusual entries in /var/log/messages.  I looked 
over other log files in /var/log and found nothing suggestive.  Where else can I 
look?

By luck I saw the beginning of a reboot on the server console.  Normally I have 
other systems up on the KVM switch.  It appears to have dumped core.  I don't 
know where to look for the core dump files.  They are not in /root.

The problem started while the server was still 6.7.  It had almost 290 days of 
uptime when the problem started.  I have tried the following, none of which 
made any difference.  

I ran the upgrade to 6.8.

I tried stopping non-essential services two at a time.

I ran MemTest 86+.  No memory errors were found.

I turned off swap.

I unplugged the USB hard drive that I use to hold daily and weekly backups.  It 
was being recognized as /dev/sda for some reason.

Lm_sensors shows the processor running between 45 and 50C.  Hddtemp 
shows the hard drives running between 35 and 40C.  LM_Sensors does not 
produce valid data on fan speed, but a visual check shows all fans running 
(Continue reading)

John Cenile | 29 May 02:27 2016
Picon

Unable to boot CentOS 6 - Segmentation Erorr

Hi all,
I had an issue this morning with one of my virtual machines. It wouldn't
boot (into any runlevel), nor could I chroot into the root partition using
a rescue disk.

Unfortunately I didn't grab a screenshot, however the error(s) when booting
were:

/pre-pivot/50selinux-loadpolicy.sh: 14

<other messages>

init: readahead main process (425) killed by SEGV signal
init: readahead-col lector main process (421) killed by SEGV signal
init: rcS pre-start process (425) killed by SEGV signal
init: Error while reading from descriptor: Bad file descriptor
init: readahead-col lector post-stop process (424) killed by SEGV signal
init: rcS post-stop process (427) killed by SEGV signal
init: readahead-disable-services main process (428) killed by SEGV signal

When using a rescue CD and chrooting into the root partition, I would get :

Segmentation Fault: Core Dumped

In the end, the fix was to boot into a rescue CD with networking, and SCP
the entire contents of /bin and /sbin from another (working) server to the
broken installation. This finally allowed CentOS 6 to boot correctly.

So I'm left to assume some of the files in /bin *or */sbin were corrupt.

(Continue reading)

Paul R. Ganci | 28 May 21:03 2016

CentOS 6.8 Apache-2.2.15-53 re-write question

I was wondering if somebody could help me with an Apache re-write rule. Apparently CentOS 6.8 is running
apache-2.2.15-53. I am trying
to redirect all pages except for two pages. The apache rewrite directives in the httpd config are:

RewriteEngine on
RewriteCond %{REQUEST_URI}!^/test/
RewriteCond %{REQUEST_URI}!^/my-folder/
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

These commands should cause all requests to get re-directed to www.newdomain.com except for those with a
/test or /my-folder on the end of the
URL. However when I place these commands into the the httpd config apache spits out this error message:

Starting httpd: Syntax error on line 31 of /etc/httpd/conf.d/olddomain.conf:
RewriteCond: bad argument line '%{REQUEST_URI}!^/test/

I have of course renamed the real config parameters. Can somebody tell me if these directives only work in
apache-2.4 and if so how do I do the
same thing in apache-2.2? If these directives should work in apache-2.2 is this an apache problem?

Thanks for your help.

--

-- 
Paul (ganci@...)
Cell: (303)257-5208
Walter H. | 28 May 19:23 2016

Looking for location of some specific settings in CentOS 6.x

Hello,

I have several virtual machines, all with CentOS 6.x and one so called 
virtual server at a web hoster

my virtual machines (VMware) were all installed manually using the .iso, 
some exist longer and therefore
were originally a CentOS 6.3, some are newer and wer originally a CentOS 
6.6;
and this virtual server has been installed using a preconfigured image 
from the web hoster;

on all this virtual machines and the virtual server several 'yum update' 
brought them to same release, not CentOS 6.7,
as I havn't updated to 6.8 yet;

at the virtual server I find this

export LS_OPTIONS="--human --color=always"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -Al'

in /root/.bashrc

on my virtual machines I can't find this settings; nor doesn't 'env' show a
variable 'LS_OPTIONS'
but 'alias' shows this:

alias cp='cp -i'
(Continue reading)

qw | 28 May 12:14 2016

what multimedia framework does Centos use

Hi,

My question is :

what multimedia framework does Centos use for server purpose?

Thanks!

B.R.

Andrew
James B. Byrne | 27 May 15:25 2016
Picon

Re: dnf replacing yum?


On Thu, May 26, 2016 10:51, Juan Bernhard wrote:
>
> El 26/05/2016 a las 11:39 a.m., Valeri Galtsev escribió:
>> I guess, it is just me in general unhappy about all Linuxes
>> getting much less "UNIX"y lately.
>
> I feel you Valerei, im switching new server instalations to FreeBSD.
> Im tired to spend useful time learning new ways (systemd, firewalld,
> dnf, etc) to do the same old sh*t.
>
>

We are doing exactly the same thing and for the same reasons.  We have
been running RH or its derivatives since 1998 but now it is time for
us to move on.

--

-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB@...
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

Gmane