Re: [CentOS-docs] CentOS Wiki - Editing Rights
On 30.04.2012 11:27, Guillaume Rembert wrote: Hello CentOS community, Would it be possible to become a CentOS Wiki contributor, please? My UserName is GuillaumeRembert. There are some commands which are not valid anymore on some articles, with CentOS 6.2 release, that I would like to correct. Can you tell me where you want to edit? We begin with a few editing rights, which then can be expanded. Cheers and thanks, Ralph ___ CentOS-docs mailing list CentOS-docs@centos.org http://lists.centos.org/mailman/listinfo/centos-docs
[CentOS] Ext3 and drbd read-only remount problem.
Hi all. I have two hosts with drbd: kmod-drbd83-8.3.8-1.el5.centos drbd83-8.3.8-1.el5.centos and kernel (CentOS 5.7): 2.6.18-308.4.1.el5 After a recent upgrade of kernel I have had two sitiuations when my ext3 filesystem on /dev/drbd0 became read-only. I've checked disks with smartctl -t long, they are ok. There are no messages with disks problems in /var/log/messages | dmesg. I've made fsck tonight but 3 hours after it has finished the problem repeated once more (under heavy load). /var/log/messages: May 6 06:22:27 srv1a kernel: EXT3-fs error (device drbd0): htree_dirblock_to_tree: bad entry in directory #43024813: rec_len % 4 != 0 - offset=73728, inode=1701012818, rec_len=30313, name_len=101 May 6 06:22:27 srv1a kernel: Aborting journal on device drbd0. May 6 06:22:28 srv1a kernel: journal commit I/O error May 6 06:22:28 srv1a kernel: ext3_abort called. May 6 06:22:28 srv1a kernel: journal commit I/O error May 6 06:22:28 srv1a kernel: EXT3-fs error (device drbd0): ext3_journal_start_sb: Detected aborted journal May 6 06:22:28 srv1a kernel: ext3_abort called. May 6 06:22:28 srv1a kernel: EXT3-fs error (device drbd0): ext3_journal_start_sb: Detected aborted journal May 6 06:22:28 srv1a kernel: Remounting filesystem read-only May 6 06:22:28 srv1a kernel: __journal_remove_journal_head: freeing b_committed_data May 6 06:22:28 srv1a kernel: __journal_remove_journal_head: freeing b_committed_data May 6 06:22:28 srv1a kernel: __journal_remove_journal_head: freeing b_committed_data May 6 06:22:28 srv1a kernel: journal commit I/O error May 6 06:22:28 srv1a kernel: EXT3-fs error (device drbd0): htree_dirblock_to_tree: bad entry in directory #43024813: rec_len % 4 != 0 - offset=106496, inode=1701012818, rec_len=30313, name_len=101 May 6 06:22:28 srv1a kernel: EXT3-fs error (device drbd0): htree_dirblock_to_tree: bad entry in directory #43024813: rec_len % 4 != 0 - offset=204800, inode=1869116005, rec_len=29811, name_len=46 I've found: https://bugzilla.redhat.com/show_bug.cgi?id=494927 There are some clues that it may be a kernel problem so I went back to: 2.6.18-274.7.1.el5 At the moment the situation is ok but I've read that the problem happens in random circumstances. Any clues what to do? Best regards, Rafal. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Ext3 and drbd read-only remount problem.
I have one more question with regard to mentioned kernel update to 2.6.18-308.4.1.el5 : in extras repo there is a package available kmod-drbd83 8.3.12 This package provides the drbd83 kernel modules built for the Linux : kernel 2.6.18-274.17.1.el5 for the i686 family of processors. We currently have installed kmod-drbd83: 8.3.8 This package provides the drbd83 kernel modules built for the Linux : kernel 2.6.18-194.el5 for the i686 family of processors. Should kmod-drbd83 version match current kernel version (from package description) or should kmod-drbd83 in version 8.3.8 be installed if we are using drbd83-8.3.8-1.el5.centos ? Best regards, Rafal. 2012/5/6 Rafał Radecki radecki.ra...@gmail.com Hi all. I have two hosts with drbd: kmod-drbd83-8.3.8-1.el5.centos drbd83-8.3.8-1.el5.centos and kernel (CentOS 5.7): 2.6.18-308.4.1.el5 After a recent upgrade of kernel I have had two sitiuations when my ext3 filesystem on /dev/drbd0 became read-only. I've checked disks with smartctl -t long, they are ok. There are no messages with disks problems in /var/log/messages | dmesg. I've made fsck tonight but 3 hours after it has finished the problem repeated once more (under heavy load). /var/log/messages: May 6 06:22:27 srv1a kernel: EXT3-fs error (device drbd0): htree_dirblock_to_tree: bad entry in directory #43024813: rec_len % 4 != 0 - offset=73728, inode=1701012818, rec_len=30313, name_len=101 May 6 06:22:27 srv1a kernel: Aborting journal on device drbd0. May 6 06:22:28 srv1a kernel: journal commit I/O error May 6 06:22:28 srv1a kernel: ext3_abort called. May 6 06:22:28 srv1a kernel: journal commit I/O error May 6 06:22:28 srv1a kernel: EXT3-fs error (device drbd0): ext3_journal_start_sb: Detected aborted journal May 6 06:22:28 srv1a kernel: ext3_abort called. May 6 06:22:28 srv1a kernel: EXT3-fs error (device drbd0): ext3_journal_start_sb: Detected aborted journal May 6 06:22:28 srv1a kernel: Remounting filesystem read-only May 6 06:22:28 srv1a kernel: __journal_remove_journal_head: freeing b_committed_data May 6 06:22:28 srv1a kernel: __journal_remove_journal_head: freeing b_committed_data May 6 06:22:28 srv1a kernel: __journal_remove_journal_head: freeing b_committed_data May 6 06:22:28 srv1a kernel: journal commit I/O error May 6 06:22:28 srv1a kernel: EXT3-fs error (device drbd0): htree_dirblock_to_tree: bad entry in directory #43024813: rec_len % 4 != 0 - offset=106496, inode=1701012818, rec_len=30313, name_len=101 May 6 06:22:28 srv1a kernel: EXT3-fs error (device drbd0): htree_dirblock_to_tree: bad entry in directory #43024813: rec_len % 4 != 0 - offset=204800, inode=1869116005, rec_len=29811, name_len=46 I've found: https://bugzilla.redhat.com/show_bug.cgi?id=494927 There are some clues that it may be a kernel problem so I went back to: 2.6.18-274.7.1.el5 At the moment the situation is ok but I've read that the problem happens in random circumstances. Any clues what to do? Best regards, Rafal. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Berkeley DB SQL
Hi, I am converting a system to use Berkeley DB for file access instead of ISAM files, but need to be able to examine the data in the files while testing. Does anyone know whether the DB SQL from Russian Fedora Free Updates for CentOS 6 (RHEL 6) (libdb-sql-devel-5.2.36-5.el6.R.x86_64.rpm) will work with the version of Berkeley Data Base on CentOS and RH 6? Regards ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] XEN or KVM - performance/stability/security?
On Mon, Apr 23, 2012 at 01:02:03PM -0400, Steve Thompson wrote: On Mon, 23 Apr 2012, Peter Peltonen wrote: I've been quite happy with Xen under CentOS5. For CentOS6 the situation is a bit more problematic, as RH switched to KVM and left Xen behind. I used Xen for about four or five years before switching to KVM. I like KVM better in every way, and for my fork-heavy workloads, the performance is a lot better than Xen. It is also much easier to use and is in my experience more stable. with fork performance I assume you're comparing Xen PV to KVM ? Yes, PV has disadvantage (per design) for that workload, since the hypervisor needs to check and verify each new process page table, and that has some performance hit. For good fork performance you can use Xen HVM VMs, which will perform well for that workload, and won't have the mentioned performance hit. And of course with Xen HVM VMs you should use the Xen PVHVM drivers so the disk/net IO paths are optimized and bypassing all the emulation. CentOS5 and CentOS6 do have Xen PVHVM drivers. -- Pasi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] XEN or KVM - performance/stability/security?
On Mon, Apr 23, 2012 at 11:01:12PM +0300, Peter Peltonen wrote: Hi, On Mon, Apr 23, 2012 at 10:54 PM, aurfalien aurfal...@gmail.com wrote: I also prefer KVM over Xen, mainly I don;t have to do anything special when maintaining the env. But I haven't notice an improvement over Xen. I really like the fact that the guest OS has a stock kernel, etc.. I do not quite see how Xen requires one to do something special for maintenance? With pygrub you can use the stock kernel with your Xen domUs just fine. I have not seen any issues with stability either, but then again I am running mostly just web and mail servers without really high traffic. But if KVM would offer improvements for performance over Xen, I should perhaps try it out, as sometimes when doing backups and other things that require a lot of disk I/O a better performance could be wished for... Disk performance is usually mainly limited by the number of physical disk spindles, and the raid level, and not so much about virtualization. Anyway some Xen PV vs. Xen PVHVM vs. KVM benchmarks from XenSummit 2011: http://xen.org/files/xensummit_santaclara11/aug3/6_StefanoS_PVHVM.pdf -- Pasi ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
On 05/05/2012 03:44 AM, Michel Donais wrote: For some times I'm loosing graphical applications usage as pirut and system-config-users, Yum auto update is not working too but I can update with command lin yum update Versions instlalled pirut-1.3.28-19.el5.centos.noarch.rpm system-config-users-1.2.51-7.el5.rpm Do somebody have an idea for a solution Run both commands from terminal and see what error is being reported. -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
On 05/05/2012 03:44 AM, Michel Donais wrote: For some times I'm loosing graphical applications usage as pirut and system-config-users, Yum auto update is not working too but I can update with command lin yum update Versions instlalled pirut-1.3.28-19.el5.centos.noarch.rpm system-config-users-1.2.51-7.el5.rpm Do somebody have an idea for a solution Run both commands from terminal and see what error is being reported. Thak's to care, For pirut I get: Unable to import modules. Maybe yoy'r not running undr X? But I'm under X with KDE For system-config-users I get: Trace back (most recent call last): File /usr/share/system-config-users/system-config-users.py,linne 25, in? import libuser ImportError: no module name libuser I checked and libsepol-1.15.2-3.el5 is there also /user/lib/libuser and .so , .so.1, .so.1.1.6 etc are there If I type at command line import libuser I get the same reaction as running system-config-users the program seem to turn round but no execution and tnhen stop But if I look in /etc/libuser.conf I see a line as: # The default (/usr/lib*/libuser) is actually correct Do I have to think that the modules should be in /user/lib/libuser/ instead of /usr/lib/ What should be my next move? --- Michel Donais ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
Yum auto update is not working too but I can update with command lin yum update import libuser ImportError: no module name libuser Hi. Both the issue and the message are similar to some errors I receive if I forget to change to CentOS default Python before using yum Co. You probably already checked for this but anyway: Do you have more than one Python intallation, or did you compile Python from source, or used a package that installed a Non-CentOS-default Python version? Regards, Jesus ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
Yum auto update is not working too but I can update with command lin yum update import libuser ImportError: no module name libuser Hi. Both the issue and the message are similar to some errors I receive if I forget to change to CentOS default Python before using yum Co. You probably already checked for this but anyway: Do you have more than one Python intallation, or did you compile Python from source, or used a package that installed a Non-CentOS-default Python version? Where should be default python Packages are only installed by yum update usually CR but I also have some updates been made from epel but can't remember wich --- Michel Donais ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Centos 6 - x11vnc auto probing to port 5903
Hi all, I was at one time able to get x11vnc to start on 5900 but for some reason its listening on port 5903. Here is what the logs say; -- snippet X display :0.0 -- snippet The VNC desktop is: hostname:3 Why is the VNC desktop going to 3? I was working on 5900 previous to a reboot, unsure what changed, but something obviously has. - aurf ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
On 05/06/2012 04:18 PM, Michel Donais wrote: On 05/05/2012 03:44 AM, Michel Donais wrote: For some times I'm loosing graphical applications usage as pirut and system-config-users, Yum auto update is not working too but I can update with command lin yum update Versions instlalled pirut-1.3.28-19.el5.centos.noarch.rpm system-config-users-1.2.51-7.el5.rpm Do somebody have an idea for a solution Run both commands from terminal and see what error is being reported. Thak's to care, For pirut I get: Unable to import modules. Maybe yoy'r not running undr X? But I'm under X with KDE For system-config-users I get: Trace back (most recent call last): File /usr/share/system-config-users/system-config-users.py,linne 25, in? import libuser ImportError: no module name libuser I checked and libsepol-1.15.2-3.el5 is there also /user/lib/libuser and .so , .so.1, .so.1.1.6 etc are there If I type at command line import libuser I get the same reaction as running system-config-users the program seem to turn round but no execution and tnhen stop But if I look in /etc/libuser.conf I see a line as: # The default (/usr/lib*/libuser) is actually correct Do I have to think that the modules should be in /user/lib/libuser/ instead of /usr/lib/ What should be my next move? --- Try yum reinstall libuser, or yum install libuser -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
Where should be default python Hi Michel. Type python --version on the command prompt. CentOS 6.2 has Python 2.6.6, CentOS 5.6, 5.7, 5.8 have Python 2.4.3. Epel should not have installed a different python. Maybe you only need to reinstall the library so Python recognizes it??? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
Try yum reinstall libuser, or yum install libuser I already tried it with no results actual re-installed version is libuser.i386 0:0.54.7-2.1.el5_5.2 I also have the same problem with graphical version of service --- Michel Donais ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
actual re-installed version is libuser.i386 0:0.54.7-2.1.el5_5.2 Hi Michel. Maybe something related to root / non-root? Or: Can you check your Python version? Can you enter into Pythons cli (just type python) and then type import libuser? If you don't get an error message, I don't know. If you do, type print (sys.path), one of the paths should be something like /usr/lib/python2.4/site-packages/. After exiting the python cli, you can check if your libusermodule.so can be found under this path or one of python's sys.path? Regards, Jesus ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
First trial from root [root@serveur ~]# python Python 2.4.3 (#1, Feb 22 2012, 16:06:13) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type help, copyright, credits or license for more information. import libuser no error there; so it found it's way to libuser print (sys.path) Traceback (most recent call last): File stdin, line 1, in ? NameError: name 'sys' is not defined here it seem that there is no path defined = = = = = = = = = = = = = = = = = = = = = = = = = = = = Second trial (non-root) /usr/michel [michel@serveur ~]$ python Python 2.4.3 (#1, Feb 22 2012, 16:06:13) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type help, copyright, credits or license for more information. inport libuser File stdin, line 1 inport libuser ^ SyntaxError: invalid syntax print(sys.path) Traceback (most recent call last): File stdin, line 1, in ? NameError: name 'sys' is not defined I think we are near a solution --- Michel Donais ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
On Sun, May 6, 2012 at 3:45 PM, Michel Donais don...@telupton.com wrote: First trial from root [root@serveur ~]# python Python 2.4.3 (#1, Feb 22 2012, 16:06:13) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type help, copyright, credits or license for more information. import libuser no error there; so it found it's way to libuser print (sys.path) Traceback (most recent call last): File stdin, line 1, in ? NameError: name 'sys' is not defined here it seem that there is no path defined You need to import sys = = = = = = = = = = = = = = = = = = = = = = = = = = = = Second trial (non-root) /usr/michel [michel@serveur ~]$ python Python 2.4.3 (#1, Feb 22 2012, 16:06:13) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type help, copyright, credits or license for more information. inport libuser import not inport File stdin, line 1 inport libuser ^ SyntaxError: invalid syntax print(sys.path) Traceback (most recent call last): File stdin, line 1, in ? NameError: name 'sys' is not defined I think we are near a solution --- Michel Donais ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
On 05/06/2012 11:45 PM, Michel Donais wrote: inport libuser its: import libuser, M instead of N -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] loosing applications
From root [root@serveur ~]# python Python 2.4.3 (#1, Feb 22 2012, 16:06:13) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type help, copyright, credits or license for more information. import libuser print (sys.path) Traceback (most recent call last): File stdin, line 1, in ? NameError: name 'sys' is not defined import sys print (sys.path) ['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages'] import libuser Larry Martell seem's to have the right way. sys is not defined. Where should I pout it to get it permanent aund use pirut under X [root@serveur ~]# su michel [michel@serveur root]$ python Python 2.4.3 (#1, Feb 22 2012, 16:06:13) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type help, copyright, credits or license for more information. import libuser print (sys.path) Traceback (most recent call last): File stdin, line 1, in ? NameError: name 'sys' is not defined import sys print (sys.path) ['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages'] [michel@serveur root]$ import sys bash: syntax error near unexpected token `' [michel@serveur root]$ print (sys.path) bash: syntax error near unexpected token `' [michel@serveur root]$ ['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages'] [michel@serveur root]$ import libuser bash: syntax error near unexpected token `' [michel@serveur root]$ bash: syntax error near unexpected token `' [michel@serveur root]$ [root@serveur ~]# su michel [michel@serveur root]$ [michel@serveur root]$ python bash: [michel@serveur: command not found [michel@serveur root]$ Python 2.4.3 (#1, Feb 22 2012, 16:06:13) bash: syntax error near unexpected token `(' [michel@serveur root]$ [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 bash: syntax error near unexpected token `(' [michel@serveur root]$ Type help, copyright, credits or license for more information. [michel@serveur root]$ import libuser bash: syntax error near unexpected token `' [michel@serveur root]$ print (sys.path) bash: syntax error near unexpected token `' [michel@serveur root]$ Traceback (most recent call last): bash: syntax error near unexpected token `most' [michel@serveur root]$ File stdin, line 1, in ? bash: File: command not found [michel@serveur root]$ NameError: name 'sys' is not defined bash: NameError:: command not found [michel@serveur root]$ import sys bash: syntax error near unexpected token `' [michel@serveur root]$ print (sys.path) bash: syntax error near unexpected token `' [michel@serveur root]$ ['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages'] -- Michel Donais Donais Fils Inc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos