Re: [gentoo-user] {OT} Need a new server
>>> If it's Type 2, then four drives with a spare is equally tolerant. >>> Slightly better, even, if you take into account the reduced probability >>> of 2/5 of the drives failing compared to 2/6. >> >> Thank you very much for this info. I had no idea. Is there another >> label for these RAID types besides "Type 1" and "Type 2"? I can't >> find reference to those designations via Google. > > Nothing standard. RAID 10 pretty intuitively comes from RAID 1+0, which > can be read aloud to figure out what it means: "RAID 1, plus RAID 0," > i.e. you do RAID 1, then stripe (RAID 0) the result. > > The trick is that RAID 1 can refer to either mirroring (2-way) or > multi-mirroring (3-way) [1]. In the end, the designation is the same: > RAID 1. So if you stripe either of them, you wind up with RAID 10. In > other words, "RAID 10" doesn't tell you which one you're going to get. > > If I ever find a controller that will do multi-mirroring + RAID 0, I'll > let you know what they call it =) Is multi-mirroring (3-disk RAID1) support without RAID0 common in hardware RAID cards? - Grant
Re: [gentoo-user] Re: {OT} tried Nimsoft Monitoring?
> Munin and jffnms bear no real relation to each other. Yes they are > similar in that both can draw graphs but that's about where the > similarity ends. > > Munin's job is to periodically poll a device using whatever means is > available and gather data from the device. The data is always in the > form of a number - it measures something. The data can be anything you > can generate a number for - logged in users, traffic through an > interface, load, number of database queries. The list is endless. Point > being, the device/computer/hosts reports it's own numbers to munin, and > munin draws graphs. Munin does not record state, it has no idea what the > state of something is. > > Nagios is a problem child, it does not do what people assume it does (I > have constant fights about this at work). Nagios is a state monitoring > and reporting engine (simply because this is what it does well and > everything else it does it does poorly). Nagios will track if things are > up or down, if you acknowledged the condition and when, who to notify > when state changes (sms, mail, dashboard etc etc). > > What Nagios does poorly (despite this being it's advertised purpose) is > getting state events into the system. It really really sucks at this and > is coded from an extremely narrow point of view. Which explains the > numerous forks around (they all implement vital real world features that > Ethan refuses to commit). > > jffnms is something I don't use myself, but it looks like the same class > of app as Nagios. Don't be fooled into choosing between munin and > nagios/jffnms - they are not the same thing, not even close. Use both. Understood. Thank you James and Alan. - Grant
Re: [gentoo-user] {OT} Need a new server
Is the Gentoo Software RAID + LVM guide the best place for RAID install info if I'm not using LVM and I'll have a hardware RAID controller? >>> >>> Not ready to take the ZFS plunge? That would greatly reduce the complexity >>> of RAID+LVM, since ZFS best practice is to set your hardware raid controller >>> to JBOD mode and let ZFS take care of the RAID - and no LVM required (ZFS >>> has mucho better tools). That is my next big project for when I switch to my >>> next new server. >>> >>> I'm just hoping I can get comfortable with a process for getting ZFS >>> compiled into the kernel that is workable/tenable for ongoing kernel updates >>> (with minimal fear of breaking things due to a complex/fragile >>> methodology)... >> >> That sounds interesting. I don't think I'm up to it this time around, >> but ZFS manages a RAID array better than a good hardware card? > > Yes. If you use ZFS to wrestle a JBOD array into its version of > RAID1+0, when comes time for resilvering (i.e., rebuilding a failed > drive), ZFS smartly only copies the used blocks and skips over unused > blocks. I'm seriously considering ZFS now. I'm going to start a new thread on that topic. - Grant >> It sounds like ZFS isn't included in the mainline kernel. Is it on its way >> in? >> > > Unlikely. There has been a discussion on that in this list, and there > is some concern that ZFS' license (CDDL) is not compatible with the > Linux kernel license (GPL), so never the twain shall be integrated. > > That said, if your kernel supports modules, it's a piece of cake to > compile the ZFS modules on your own. @ryao has a zfs-overlay you can > use to emerge ZFS as a module. > > If you have configured your kernel to not support modules, it's a bit > more work, but ZFS can still be integrated statically into the kernel. > > But the onus is on us ZFS users to do the necessary steps.
Re: [gentoo-user] Re: {OT} tried Nimsoft Monitoring?
On 17/09/2013 07:42, Grant wrote: >>> Has anyone tried Nimsoft Monitoring? It's included at Soft Layer >>> which must mean a free license. >> >> No. IBM has a general strategy to "suck you in" >> so caveat emptor.. You really wan to install >> IBM binaries on any machine? (Think NSA). > > Nevermind! > >>> It looks like a substitute for Nagios. >> >> Nagios has been under numerous stresses for >> quite some time, for a variety of reasons, imho. >> Forking, Borking, and Porking out is what I see >> of Nagios; ymmv. > > I didn't realize that. > >> jffnms is well written, modular and quite responsive >> to the individual's (organization's) needs, imho. >> All in source code form. >> >> Last time I checked, there was a new (recent) ebuild >> for jffnms. Patches are easy to apply and I think >> (Gentoo) folks are starting to use jffnms much more. >> >> Check it out, most are happy with it, and find it >> easy (particulary with SNMP 1,2.3) to install and extend. > > It looks great, thank you for the recommendation. Have you used > munin? If so, do you think jffnms is a substitute or compliment to > that package? Munin and jffnms bear no real relation to each other. Yes they are similar in that both can draw graphs but that's about where the similarity ends. Munin's job is to periodically poll a device using whatever means is available and gather data from the device. The data is always in the form of a number - it measures something. The data can be anything you can generate a number for - logged in users, traffic through an interface, load, number of database queries. The list is endless. Point being, the device/computer/hosts reports it's own numbers to munin, and munin draws graphs. Munin does not record state, it has no idea what the state of something is. Nagios is a problem child, it does not do what people assume it does (I have constant fights about this at work). Nagios is a state monitoring and reporting engine (simply because this is what it does well and everything else it does it does poorly). Nagios will track if things are up or down, if you acknowledged the condition and when, who to notify when state changes (sms, mail, dashboard etc etc). What Nagios does poorly (despite this being it's advertised purpose) is getting state events into the system. It really really sucks at this and is coded from an extremely narrow point of view. Which explains the numerous forks around (they all implement vital real world features that Ethan refuses to commit). jffnms is something I don't use myself, but it looks like the same class of app as Nagios. Don't be fooled into choosing between munin and nagios/jffnms - they are not the same thing, not even close. Use both. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Re: {OT} tried Nimsoft Monitoring?
>> Has anyone tried Nimsoft Monitoring? It's included at Soft Layer >> which must mean a free license. > > No. IBM has a general strategy to "suck you in" > so caveat emptor.. You really wan to install > IBM binaries on any machine? (Think NSA). Nevermind! >> It looks like a substitute for Nagios. > > Nagios has been under numerous stresses for > quite some time, for a variety of reasons, imho. > Forking, Borking, and Porking out is what I see > of Nagios; ymmv. I didn't realize that. > jffnms is well written, modular and quite responsive > to the individual's (organization's) needs, imho. > All in source code form. > > Last time I checked, there was a new (recent) ebuild > for jffnms. Patches are easy to apply and I think > (Gentoo) folks are starting to use jffnms much more. > > Check it out, most are happy with it, and find it > easy (particulary with SNMP 1,2.3) to install and extend. It looks great, thank you for the recommendation. Have you used munin? If so, do you think jffnms is a substitute or compliment to that package? - Grant
[gentoo-user] gcc specs file change multilib_defaults no effect.
Hello,everyone. I found that the gcc specs file has such contents: // *multilib: . !m64 !m32 !mx32;64:../lib64 m64 !m32 !mx32;32:../lib32 !m64 m32 !mx32;x32:../libx32 !m64 !m32 mx32; *multilib_defaults: mx32 // I change it to: // *multilib: . !m64 !m32 !mx32;64:../lib64 m64 !m32 !mx32;32:../lib32 !m64 m32 !mx32;x32:../libx32 !m64 !m32 mx32; *multilib_defaults: m64 // expect to change gcc default target.But failed. If I don't add -m64 flag,I will still get a x32 abi target. So,is it possible to change the default target of gcc?
Re: [gentoo-user] {OT} Need a new server
On Sun, Sep 15, 2013 at 6:10 PM, Grant wrote: >>> Is the Gentoo Software RAID + LVM guide the best place for RAID >>> install info if I'm not using LVM and I'll have a hardware RAID >>> controller? >> >> Not ready to take the ZFS plunge? That would greatly reduce the complexity >> of RAID+LVM, since ZFS best practice is to set your hardware raid controller >> to JBOD mode and let ZFS take care of the RAID - and no LVM required (ZFS >> has mucho better tools). That is my next big project for when I switch to my >> next new server. >> >> I'm just hoping I can get comfortable with a process for getting ZFS >> compiled into the kernel that is workable/tenable for ongoing kernel updates >> (with minimal fear of breaking things due to a complex/fragile >> methodology)... > > That sounds interesting. I don't think I'm up to it this time around, > but ZFS manages a RAID array better than a good hardware card? > Yes. If you use ZFS to wrestle a JBOD array into its version of RAID1+0, when comes time for resilvering (i.e., rebuilding a failed drive), ZFS smartly only copies the used blocks and skips over unused blocks. > It sounds like ZFS isn't included in the mainline kernel. Is it on its way > in? > Unlikely. There has been a discussion on that in this list, and there is some concern that ZFS' license (CDDL) is not compatible with the Linux kernel license (GPL), so never the twain shall be integrated. That said, if your kernel supports modules, it's a piece of cake to compile the ZFS modules on your own. @ryao has a zfs-overlay you can use to emerge ZFS as a module. If you have configured your kernel to not support modules, it's a bit more work, but ZFS can still be integrated statically into the kernel. But the onus is on us ZFS users to do the necessary steps. Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ • LOPSA Member #15248 • Blog : http://pepoluan.tumblr.com • Linked-In : http://id.linkedin.com/in/pepoluan
Re: [gentoo-user] trouble installing cups
On Mon, Sep 16 2013, Neil Bothwick wrote: > On Mon, 16 Sep 2013 18:28:05 -0400, gottl...@nyu.edu wrote: > >> So I reinstalled cups but /etc/cups/cupd.conf was not changed and still >> has its old date and contents. The merge looks clean (output below) > > /etc/ is CONFIG_PROTECTed. This part I knew, but would have expected to hear that config files have new versions > Also, portage knows if you are reinstalling the same version of the > same package and does not try to update the configs again. That is what I missed. > To change this, run the emerge with --noconfmem and then run *-update. Works perfectly. thanks, allan
Re: [gentoo-user] trouble installing cups
On Mon, 16 Sep 2013 18:28:05 -0400, gottl...@nyu.edu wrote: > So I reinstalled cups but /etc/cups/cupd.conf was not changed and still > has its old date and contents. The merge looks clean (output below) /etc/ is CONFIG_PROTECTed. Also, portage knows if you are reinstalling the same version of the same package and does not try to update the configs again. To change this, run the emerge with --noconfmem and then run *-update. -- Neil Bothwick IBM: Itty Bitty Mentality signature.asc Description: PGP signature
[gentoo-user] trouble installing cups
When I reinstall CUPS /etc/cups/cupsd.conf is *not* updated. Details follow. Cups was behaving badly: the web interface could not be used. The browser would quickly say no process was listening on localhost:631 I compared cupsd.conf to the same file on another working system and noticed the following differences 1. *Many* pairs of lines were missing. The first line of each pair was blank; the second a comment. Presumably this has no effect. 2. The initial block comment was missing. Again no effect. 3. One very influential change Listen localhost:631 was replaced by a second copy of Listen /run/cups/cups.sock When I manually put back localhost:631 the cups web interface again behaved normally. 4. The following block was *added* at the end JobPrivateAccess default JobPrivateValues default MaxLogSize 200 SubscriptionPrivateAccess default SubscriptionPrivateValues default The first, second, fourth, and fifth generated "Unknown directive" messages in /var/log/cups/error.log So I reinstalled cups but /etc/cups/cupd.conf was not changed and still has its old date and contents. The merge looks clean (output below) I am wondering if there is something wrong with my setup. I have the userpriv feature enabled. Any help would be appreciated. thanks, allan * Messages for package net-print/cups-1.6.3-r2: * Package:net-print/cups-1.6.3-r2 * Repository: gentoo * Maintainer: print...@gentoo.org * USE:X acl amd64 dbus elibc_glibc filters kernel_linux pam python_single_target_python2_7 python_targets_python2_7 ssl threads usb userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 3.11.0-gentoo-rcs-1.3 * Applying cups-1.6.0-dont-compress-manpages.patch ... * Applying cups-1.6.0-fix-install-perms.patch ... * Applying cups-1.4.4-nostrip.patch ... * Applying cups-1.5.0-systemd-socket-2.patch ... * Applying cups-1.6.2-statedir.patch ... * Applying cups-1.6.3-colord-profile.patch ... * Running aclocal -I config-scripts ... * Running autoconf ... * LANGS="ca es fr ja ru" * LINGUAS="" * Skipping make test/check due to ebuild restriction. * Updating icons cache ... * Updating desktop mime database ... >>> Auto-cleaning packages...
Re: [gentoo-user] All KDE-related programs don't play music anymore
Am 16.09.2013 13:37, schrieb Alexander Puchmayr: > Hi there, > > I've got a somewhat strange problem, which occurs on both my laptop and my > desktop-pc, both running gentoo. From one day to the other, all KDE-based > music/media player don't start playing music anymore. > I've tried Amarok, Kaffeine and Juk, and all of them seem to hang when > starting > any kind of music file (mp3/flac/wma). But, strangly, kaffeine plays videos > with > sound without a problem. Also, other programs (non-kde), for example audacity > and xine, play mp3 files properly. > In kde's system settings, the phonon configuration dialog play its test > sounds > properly. > > Any ideas? Any idea why it affects two different systems pretty much at the > same > time? Any idea why it worked yesterday morning and started to have troubles > yesterday evening, without having changed anything in the system? > > BTW: dmesg shows a lot of lines that might be relevant: > [21219.855176] traps: alsa-sink[12956] general protection ip:7f08486569f2 > sp:7f083fff6b70 error:0 in libasound.so.2.0.0[7f084860+ea000] > one per attempt to play anything in amarok. > > Best regards > Alex > > > . > revdep-rebuilt may help you. And even if it doesn't, rebuild phonon.
[gentoo-user] Re: {OT} tried Nimsoft Monitoring?
Grant gmail.com> writes: > Has anyone tried Nimsoft Monitoring? It's included at Soft Layer > which must mean a free license. No. IBM has a general strategy to "suck you in" so caveat emptor.. You really wan to install IBM binaries on any machine? (Think NSA). > It looks like a substitute for Nagios. Nagios has been under numerous stresses for quite some time, for a variety of reasons, imho. Forking, Borking, and Porking out is what I see of Nagios; ymmv. jffnms is well written, modular and quite responsive to the individual's (organization's) needs, imho. All in source code form. Last time I checked, there was a new (recent) ebuild for jffnms. Patches are easy to apply and I think (Gentoo) folks are starting to use jffnms much more. Check it out, most are happy with it, and find it easy (particulary with SNMP 1,2.3) to install and extend. Specific software stacks probably need specific (customized) monitoring (hacks) tools, that are modified form existing open source solutions? Here's a solution, cheap and clean using htop: htop | recode utf-8 > test.txt cat test.txt Surely a little research and you can some cool hacks? > - Grant hth, James
Re: [gentoo-user] All KDE-related programs don't play music anymore
On 16/09/13 at 01:37pm, Alexander Puchmayr wrote: > Hi there, > > I've got a somewhat strange problem, which occurs on both my laptop and my > desktop-pc, both running gentoo. From one day to the other, all KDE-based > music/media player don't start playing music anymore. > I've tried Amarok, Kaffeine and Juk, and all of them seem to hang when > starting > any kind of music file (mp3/flac/wma). But, strangly, kaffeine plays videos > with > sound without a problem. Also, other programs (non-kde), for example audacity > and xine, play mp3 files properly. > In kde's system settings, the phonon configuration dialog play its test > sounds > properly. > > Any ideas? Any idea why it affects two different systems pretty much at the > same > time? Any idea why it worked yesterday morning and started to have troubles > yesterday evening, without having changed anything in the system? > > BTW: dmesg shows a lot of lines that might be relevant: > [21219.855176] traps: alsa-sink[12956] general protection ip:7f08486569f2 > sp:7f083fff6b70 error:0 in libasound.so.2.0.0[7f084860+ea000] > one per attempt to play anything in amarok. > > Best regards > Alex Not sure but this looks like an issue with the phonon backend. What backend have you got configured? try compiling another one and see if you have the same issues. A quick google brings up this, seems old though. http://forums.gentoo.org/viewtopic-t-880043-start-0.html -- - Yohan Pereira The difference between a Miracle and a Fact is exactly the difference between a mermaid and a seal. -- Mark Twain
[gentoo-user] All KDE-related programs don't play music anymore
Hi there, I've got a somewhat strange problem, which occurs on both my laptop and my desktop-pc, both running gentoo. From one day to the other, all KDE-based music/media player don't start playing music anymore. I've tried Amarok, Kaffeine and Juk, and all of them seem to hang when starting any kind of music file (mp3/flac/wma). But, strangly, kaffeine plays videos with sound without a problem. Also, other programs (non-kde), for example audacity and xine, play mp3 files properly. In kde's system settings, the phonon configuration dialog play its test sounds properly. Any ideas? Any idea why it affects two different systems pretty much at the same time? Any idea why it worked yesterday morning and started to have troubles yesterday evening, without having changed anything in the system? BTW: dmesg shows a lot of lines that might be relevant: [21219.855176] traps: alsa-sink[12956] general protection ip:7f08486569f2 sp:7f083fff6b70 error:0 in libasound.so.2.0.0[7f084860+ea000] one per attempt to play anything in amarok. Best regards Alex
Re: [gentoo-user] {OT} Need a new server
On 09/16/2013 02:49 AM, Grant wrote: >> >> If it's Type 2, then four drives with a spare is equally tolerant. >> Slightly better, even, if you take into account the reduced probability >> of 2/5 of the drives failing compared to 2/6. > > Thank you very much for this info. I had no idea. Is there another > label for these RAID types besides "Type 1" and "Type 2"? I can't > find reference to those designations via Google. Nothing standard. RAID 10 pretty intuitively comes from RAID 1+0, which can be read aloud to figure out what it means: "RAID 1, plus RAID 0," i.e. you do RAID 1, then stripe (RAID 0) the result. The trick is that RAID 1 can refer to either mirroring (2-way) or multi-mirroring (3-way) [1]. In the end, the designation is the same: RAID 1. So if you stripe either of them, you wind up with RAID 10. In other words, "RAID 10" doesn't tell you which one you're going to get. If I ever find a controller that will do multi-mirroring + RAID 0, I'll let you know what they call it =) [1] http://www.snia.org/tech_activities/standards/curr_standards/ddf
Re: [gentoo-user] udev doesn't turn off touchpad on boot.
Never work when remove them. 2013/9/16 > "东方巽雷" wrote: >> >> No,I only seperate /home and /usr/portage. >> And now I don't use initramfs to boot. >> >> >> 2013/9/16 >> >>> "东方巽雷" wrote: I have /etc/udev/rules.d/touchpad.rules,content as below: ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/gentoo/.Xauthority", ENV{ID_CLASS}="mouse", ENV{REMOVE_CMD}="/usr/bin/synclient TouchpadOff=0", RUN+="/usr/bin/synclient TouchpadOff=1" My user name is gentoo.I notice that this rules not work when boot into desktop.In orderv to disable touchpad,I must restart udev service or remove usb mouse and connect again. Can it be solved? >>> >>> Do you have /usr on a seperate partition? >>> If yes, do you use an initramfs to mount it at boot? >>> >>> -- >>> Joost >>> -- >>> Sent from my Android device with K-9 Mail. Please excuse my brevity. >>> >> >> > Please do not top-post. > > I just noticed you are checking for display and xauthority in the > environment. > Udev processes events when they come in. I doubt you are logged in when > the mouse is detected during boot. > > Try removing those checks from the rule. > > > -- > Joost > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. >
Re: [gentoo-user] udev doesn't turn off touchpad on boot.
"东方巽雷" wrote: >No,I only seperate /home and /usr/portage. >And now I don't use initramfs to boot. > > >2013/9/16 > >> "东方巽雷" wrote: >>> >>> I have /etc/udev/rules.d/touchpad.rules,content as below: >>> ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]", >>> ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/gentoo/.Xauthority", >>> ENV{ID_CLASS}="mouse", ENV{REMOVE_CMD}="/usr/bin/synclient >TouchpadOff=0", >>> RUN+="/usr/bin/synclient TouchpadOff=1" >>> >>> >>> My user name is gentoo.I notice that this rules not work when boot >into >>> desktop.In orderv to disable touchpad,I must restart udev service or >remove >>> usb mouse and connect again. >>> Can it be solved? >>> >> >> Do you have /usr on a seperate partition? >> If yes, do you use an initramfs to mount it at boot? >> >> -- >> Joost >> -- >> Sent from my Android device with K-9 Mail. Please excuse my brevity. >> Please do not top-post. I just noticed you are checking for display and xauthority in the environment. Udev processes events when they come in. I doubt you are logged in when the mouse is detected during boot. Try removing those checks from the rule. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] {OT} Need a new server
On 2013-09-15 7:15 AM, Grant wrote: You would prefer 4-drive RAID 10 plus a hot spare to 6-drive RAID 10? Isn't 6-drive RAID 10 superior in every way except for cost (1 extra drive)? I would prefer X-drive RAID10 plus hot spare in *any* situation. But, this always loses 50+% of the potential storage space available... Again, I'd love to see some comparisons of rebuild times on RAID5/RAID6 systems, using slow SATA drives vs fast 15K SAS drives vs fastest SSD drives. The problem with RAID5/6 has always been, the larger the array, the longer the rebuild times - and the longer the rebuild times, the larger the chance of another drive failure during the rebuild.
Re: [gentoo-user] DBus and network namespaces
On Sun, 01 Sep 2013 09:50:10 +0400, Pavel Volkov wrote: > I launch some apps from inside a network namespace in order to force > them to communicate through my VPN interface only. > > But they fail to use DBus then. Some examples of what goes wrong: > 1. Chromium cannot launch system proxy settings dialog. > 2. Most apps from KDE SC crash right away. > 3. No app can use ibus input methods. Have you tried exporting DBUS_SESION_ADDRESS within the namespace? -- Neil Bothwick Znqr lbh ybbx! signature.asc Description: PGP signature