[gentoo-user] To be updated or not to be updated, Second Part

2013-09-14 Thread meino . cramer
Hi,

after updateing I got this as result:
 * Copying old database to /var/cache/eix/previous.eix
 * Running eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] gentoo /usr/portage/ (cache: metadata-md5-or-flat)
 Reading category 159|159 (100%) Finished 
Applying masks ..
Calculating hash tables ..
Writing database file /var/cache/eix/portage.eix ..
Database contains 16845 packages in 159 categories.
 * Calling eix-diff
Diffing databases (16844 - 16845 packages)
[D]   == x11-libs/fox (1.7.39(1.7)@08/07/13; (~*)1.7.39(1.7) - *1.6.40(1.6) 
*1.6.45(1.6) ~*1.6.49(1.6) ~*1.7.40(1.7) ~*1.7.41(1.7)): C++ based Toolkit for 
developing Graphical User Interfaces easily and effectively
   dev-python/python-quantumclient (~*2.2.3): A client for the OpenStack 
Quantum API
[N]dev-java/jopt-simple (~*4.4(4.4) ~*4.5(4.5)): A Java library for 
parsing command line options
[N]virtual/python-futures (~*0): A virtual for the Python 
concurrent.futures module
 * Time statistics:
   287 seconds for syncing
   117 seconds for eix-update
14 seconds for eix-diff
   423 seconds total

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

Nothing to merge; quitting.

--

beagleboneblack:/rooteix x11-libs/fox
[D] x11-libs/fox
 Available versions:  
 (1.6)  *1.6.40 *1.6.45 ~*1.6.49
 (1.7)  ~*1.7.40 ~*1.7.41
   {(+)bzip2 debug doc (+)jpeg (+)opengl (+)png profile tiff (+)truetype 
(+)zlib}
 Installed versions:  1.7.39(1.7)(23:22:36 08/07/13)(bzip2 jpeg opengl png 
truetype zlib -debug -doc -profile -tiff)
 Homepage:http://www.fox-toolkit.org/
 Description: C++ based Toolkit for developing Graphical User 
Interfaces easily and effectively

So, what is about x11-libs/fox? Delete it? Dont delete it?

Best regards,
mcc







Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Alan McKinnon
On 13/09/2013 23:39, Grant wrote:
 Exactly what RAID controller are you getting?
 
  My personal rule of thumb: on-board RAID controllers are not worth the
  silicon they are written on. Decent hardware raid controllers do exist,
  but they plug into big meaty slots and cost a fortune. By a fortune I
  mean a number that will make you gulp then head off to the nearest pub
  and make the barkeep's day. (Expensive, very expensive).
 
  Sans such decent hardware, best bet is always to do it using Linux
  software RAID, and the Gentoo guide is a fine start.
 I'm told it will likely be an Adaptec 7000 series controller.
 


I'm not familiar with that model, but the white paper at the vendor's
site indicates it's of the decent variety. You might as well use it then :-)


Adaptec's stuff is rather good on the whole, we use exclusively Dell and
Adaptec is by far the most common controller shipped. I can only recall
one hardware failure or problem since 2003 over 300+ machines. The odds
are in your favour today :-)




-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Grant
 Would the hot spare be in case I lose 2 drives at once?  Isn't that
 extraordinarily unlikely?

 Not really. One fails and you don't notice for a while, or it takes a while 
 to
 recover from it. Then a second one fails. You're up queer street.

 I like to do RAID6 now because I've been burned by this. The hot spare
 did work and automatically start rebuilding, but another drive failed
 during the rebuild process. Not that RAID6 will help if three drives
 fail, but hey.

This article references the same scenario:

http://blog.open-e.com/why-a-hot-spare-hard-disk-is-a-bad-idea/

Based on our long years of experience we have learned that during a
RAID rebuild the probability of an additional drive failure is quite
high – a rebuild is stressful on the existing drives.

Instead, how about a 6-drive RAID 10 array with no hot spare?  My
guess is this would mean much greater fault-tolerance both overall and
during the rebuild process (once a new drive is swapped in).  That
would mean not only potentially increased uptime but decreased
monitoring responsibility.

- Grant



Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Grant
 Are modern SSDs reliable enough to negate the need for mirroring or do
 they still crap out?

 I don't have any experience with SSDs, but a general principle: ignore
 what anyone says, mirror them anyway, and make lots of backups.

I'm onboard with that.

- Grant



Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Grant
 Exactly what RAID controller are you getting?
 
  My personal rule of thumb: on-board RAID controllers are not worth the
  silicon they are written on. Decent hardware raid controllers do exist,
  but they plug into big meaty slots and cost a fortune. By a fortune I
  mean a number that will make you gulp then head off to the nearest pub
  and make the barkeep's day. (Expensive, very expensive).
 
  Sans such decent hardware, best bet is always to do it using Linux
  software RAID, and the Gentoo guide is a fine start.
 I'm told it will likely be an Adaptec 7000 series controller.

 I'm not familiar with that model, but the white paper at the vendor's
 site indicates it's of the decent variety. You might as well use it then :-)

 Adaptec's stuff is rather good on the whole, we use exclusively Dell and
 Adaptec is by far the most common controller shipped. I can only recall
 one hardware failure or problem since 2003 over 300+ machines. The odds
 are in your favour today :-)

Can a controller like that handle a 6-drive RAID 10 array?

Is a hot spare handled by the controller or is it configured in the OS?

- Grant



[gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread Grant
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10

If I make this 6x SSD RAID10 with redundant power supplies, what is my
weakest link as far as hardware?  If a CPU craps out, will the system
keep running?

- Grant



Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Alan McKinnon
On 14/09/2013 10:54, Grant wrote:
 Exactly what RAID controller are you getting?

 My personal rule of thumb: on-board RAID controllers are not worth the
 silicon they are written on. Decent hardware raid controllers do exist,
 but they plug into big meaty slots and cost a fortune. By a fortune I
 mean a number that will make you gulp then head off to the nearest pub
 and make the barkeep's day. (Expensive, very expensive).

 Sans such decent hardware, best bet is always to do it using Linux
 software RAID, and the Gentoo guide is a fine start.
 I'm told it will likely be an Adaptec 7000 series controller.

 I'm not familiar with that model, but the white paper at the vendor's
 site indicates it's of the decent variety. You might as well use it then :-)

 Adaptec's stuff is rather good on the whole, we use exclusively Dell and
 Adaptec is by far the most common controller shipped. I can only recall
 one hardware failure or problem since 2003 over 300+ machines. The odds
 are in your favour today :-)
 
 Can a controller like that handle a 6-drive RAID 10 array?
 
 Is a hot spare handled by the controller or is it configured in the OS?


The problem with questions of that nature is that the answer is always
It depends

With hardware, the vendor can release almost any imaginable
configuration and it's up to them what they want to build into their
product and the variations are endless.

Typically, a Series designation is a bunch of products built to a
certain form factor with the same basic silicon on board. The difference
in the models if how many drives they support and the feature list.
Series 7000 tells us very little. You will need to get the exact model
number from your hardware vendor then consult Adaptec's tech docs to
find out the supported feature set


-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] {OT} tried Nimsoft Monitoring?

2013-09-14 Thread Grant
Has anyone tried Nimsoft Monitoring?  It's included at Soft Layer
which must mean a free license.  It looks like a substitute for
Nagios.

https://www.softlayer.com/services/monitoring/nimsoft
http://www.ca.com/us/lpg/nimsoft.aspx

- Grant



Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Grant
 I'm told it will likely be an Adaptec 7000 series controller.

 Can a controller like that handle a 6-drive RAID 10 array?

 Is a hot spare handled by the controller or is it configured in the OS?

 The problem with questions of that nature is that the answer is always
 It depends

 With hardware, the vendor can release almost any imaginable
 configuration and it's up to them what they want to build into their
 product and the variations are endless.

 Typically, a Series designation is a bunch of products built to a
 certain form factor with the same basic silicon on board. The difference
 in the models if how many drives they support and the feature list.
 Series 7000 tells us very little. You will need to get the exact model
 number from your hardware vendor then consult Adaptec's tech docs to
 find out the supported feature set

Yeah, that should have been a question for the host, sorry about that.

- Grant



Re: [gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread Alan McKinnon
On 14/09/2013 10:59, Grant wrote:
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10
 
 If I make this 6x SSD RAID10 with redundant power supplies, what is my
 weakest link as far as hardware?  If a CPU craps out, will the system
 keep running?



Your weakest link is not having redundant power feeds. Two PSUs doesn't
help much when they both draw power from the same place :-)

Second is inadequate cooling in the data centre

Third is idiots in the data centre doing stupid things like activating
the fire suppression or any of the other truly epic fail tricks clueless
customers get up to.

Then there is is drive failure - it's the hardest working component.
SSDs less so, but they still draw considerable power and get hot

Everything else is a distant concern. When did you last hear of a CPU
failure anywhere at any time? CPUs do not fail for the most part. When
they do it's because everything else got hot which brings us back to #2
in the list.



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-14 Thread Mick
On Thursday 12 Sep 2013 01:28:00 Timur Aydin wrote:
 On 09/12/13 01:00, Alan McKinnon wrote:
  Yes of course, it make a great deal of sense now. Basically, your local
  overlay had no idea where the parent portage tree is or how to find it
  so couldn't find the eclass directory.
  
  As I understand it, this information used to be hard-coded magic and
  overlays would just know where to look. Since recently, you have to
  configure it explicitly and not use hidden super-magic.
  
  You would have been getting confusing messages in emerge output about a
  faulty masters setting for overlays, pity we didn't spot that up front.
  Double pity that there wasn't a clear message or news item about what
  the error meant and the impact


What happens when you run emerge with the new portage is that this error 
message pops up:

# emerge -uaDv world
!!! Repository 'x-portage' is missing masters attribute in 
'/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility


However, as Alan says it is a puzzle why there wasn't a news item warning 
users of this new configuration requirement and how things may break if it is 
not complied with;  or why the ebuild does not create itself the 
'/usr/local/portage/metadata/' directory and populate layout.conf with default 
values - unless the user has already done so.

Either way it shouldn't let the user make WAGs as to what is now necessary for 
a properly functioning package manager.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread Grant
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10

 If I make this 6x SSD RAID10 with redundant power supplies, what is my
 weakest link as far as hardware?  If a CPU craps out, will the system
 keep running?

 Your weakest link is not having redundant power feeds. Two PSUs doesn't
 help much when they both draw power from the same place :-)

At Soft Layer redundant power supplies are actually powered by
redundant power feeds.

 Second is inadequate cooling in the data centre

Easy to monitor though.

 Third is idiots in the data centre doing stupid things like activating
 the fire suppression or any of the other truly epic fail tricks clueless
 customers get up to.

Ouch

 Then there is is drive failure - it's the hardest working component.
 SSDs less so, but they still draw considerable power and get hot

6-SSD RAID 10!

 Everything else is a distant concern. When did you last hear of a CPU
 failure anywhere at any time? CPUs do not fail for the most part. When
 they do it's because everything else got hot which brings us back to #2
 in the list.

I had one fail a number of years ago but I do think it was because of
heat.  Plus I think that was in my overcl0cking days.  Out of
curiosity though, would the system continue if I were to lose a CPU
and it didn't fry anything?

- Grant



Re: [gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-14 Thread Alan McKinnon
On 14/09/2013 11:26, Mick wrote:
 On Thursday 12 Sep 2013 01:28:00 Timur Aydin wrote:
 On 09/12/13 01:00, Alan McKinnon wrote:
 Yes of course, it make a great deal of sense now. Basically, your local
 overlay had no idea where the parent portage tree is or how to find it
 so couldn't find the eclass directory.

 As I understand it, this information used to be hard-coded magic and
 overlays would just know where to look. Since recently, you have to
 configure it explicitly and not use hidden super-magic.

 You would have been getting confusing messages in emerge output about a
 faulty masters setting for overlays, pity we didn't spot that up front.
 Double pity that there wasn't a clear message or news item about what
 the error meant and the impact
 
 
 What happens when you run emerge with the new portage is that this error 
 message pops up:
 
 # emerge -uaDv world
 !!! Repository 'x-portage' is missing masters attribute in 
 '/usr/local/portage/metadata/layout.conf'
 !!! Set 'masters = gentoo' in this file for future compatibility
 
 
 However, as Alan says it is a puzzle why there wasn't a news item warning 
 users of this new configuration requirement and how things may break if it is 
 not complied with;  or why the ebuild does not create itself the 
 '/usr/local/portage/metadata/' directory and populate layout.conf with 
 default 
 values - unless the user has already done so.
 
 Either way it shouldn't let the user make WAGs as to what is now necessary 
 for 
 a properly functioning package manager.


Is it just me, or has there really been an extraordinary number of
high-impact changes this year made WITHOUT news items?

I get a sense of a culture shift amongst the devs where news items are
considered less important than they should be. I don't have hard facts,
this is just my impression, but maybe the Council should do a PR
exercise to impress on devs that news items are really important


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread thegeezer
On 09/14/2013 09:59 AM, Grant wrote:
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10
 If I make this 6x SSD RAID10 with redundant power supplies, what is my
 weakest link as far as hardware?  If a CPU craps out, will the system
 keep running?

 - Grant

consider making the main memory ECC too and flick the correct switches
in kernel to ensure ECC is monitored.
no point in ensuring the data is resilient if the content is garbled.

and also consider what happens if the raid controller fails due to a
popped capacitor five years from now
will you still be able to get a like for like replacement ?
bear in mind that you may have to keep the raid card firmware up to date
in order to be compatible with newer cards
of course, this is all relative to how long you stay with your host but
you have to decide how much resilience you want to build in.

it's the mechanical parts of spinning rust or pseudo mechanical nand
gate switching for SSD that will tend to fail,
secondary to that in most places the PSU acts as a static cling with a
dust blower attached, and any slight knock knocks the dust off causing a
short circuit especially if any humidity is caught in the air
also consider the fans blowing around the air inside the machine

you can start thinking what about earthquakes or flooding in the area -
surely you want to ensure two geographically diverse locations
cpu  / motherboard failures on server spec tend to not be very likely,
especially if the environment is controlled (air filters/temp/power)

a great many things happen that are beyond anyone's sphere of control -
just look at the new york datacentres during hurricane Sandy; would it
be better to have had more diesel on site or just everything replicated
at another site ?

the real question is what is your expectation of uptime and how can your
budget match that.
uptime is affected by software as well as hardware don't forget.






Re: [gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread Michael Hampicke
Am 14.09.2013 11:29, schrieb Grant:
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10

 If I make this 6x SSD RAID10 with redundant power supplies, what is my
 weakest link as far as hardware?  If a CPU craps out, will the system
 keep running?

 Your weakest link is not having redundant power feeds. Two PSUs doesn't
 help much when they both draw power from the same place :-)
 
 At Soft Layer redundant power supplies are actually powered by
 redundant power feeds.
 
 Second is inadequate cooling in the data centre
 
 Easy to monitor though.
 

True, it's easy to monitor. But that does not help you in case of
cooling. I had that case once a few years back in july. Air condition
_and_ backup air condition fell out in the offsite data center where we
had some server.

I still have the munin image from that day. Almost 70° c hot hard drives
are not a pretty sight :-)

And there's nothing you can do, except shutting down the server and wait
until the refrigeration engineers have fixed the air conditioning.
attachment: hddtemp-day.png

signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Tanstaafl

On 2013-09-13 4:00 PM, Grant emailgr...@gmail.com 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)...




Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Tanstaafl

On 2013-09-14 4:50 AM, Grant emailgr...@gmail.com wrote:

http://blog.open-e.com/why-a-hot-spare-hard-disk-is-a-bad-idea/

Based on our long years of experience we have learned that during a
RAID rebuild the probability of an additional drive failure is quite
high – a rebuild is stressful on the existing drives.


This is NOT true on a RAID 10... a rebuild is only stressful on the 
other drive in the mirrored pair, not the other drives.


But, it is true for that one drive.

That said, it would be nice is the auto rebuild could be scripted such 
that a backup could be triggered and the auto-rebuild queued until the 
backup was complete.


But, here is the problem there... a backup will stress the drive almost 
as much as the rebuild, because all the rebuild does is read/copy the 
contents of the one drive to the other one (ie, it re-mirrors).



Instead, how about a 6-drive RAID 10 array with no hot spare?  My
guess is this would mean much greater fault-tolerance both overall and
during the rebuild process (once a new drive is swapped in).  That
would mean not only potentially increased uptime but decreased
monitoring responsibility.


I would still prefer a hot spare to not... in the real world, it has 
saved me exactly 3 out of 3 times...




Re: [gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread Tanstaafl

On 2013-09-14 5:10 AM, Alan McKinnon alan.mckin...@gmail.com wrote:

On 14/09/2013 10:59, Grant wrote:

If I make this 6x SSD RAID10 with redundant power supplies, what is my
weakest link as far as hardware?  If a CPU craps out, will the system
keep running?



Your weakest link is not having redundant power feeds. Two PSUs doesn't
help much when they both draw power from the same place :-)


Right... so get two (high quality online UPS's, and plug one PS into one 
UPS and the other into the other UPS.


Most hosting providers have generator backups, so as long as you 
buy/specify high quality UPS's, you should be fine.



Everything else is a distant concern. When did you last hear of a CPU
failure anywhere at any time? CPUs do not fail for the most part. When
they do it's because everything else got hot which brings us back to #2
in the list.


Don't most newer server boards detect over-temp conditions and shut down 
automatically?




Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Tanstaafl

On 2013-09-13 5:47 PM, Grant emailgr...@gmail.com wrote:

Are modern SSDs reliable enough to negate the need for mirroring or do
they still crap out?


You definitely want to mirror, but I'd be very interested in some 
statistics comparing rebuild times on a RAID5 and RAID 6 with SSD's, vs 
15K SAS drives, vs 7200 SATA drives.


My gut feeling is, the rebuild times on SSDs just might eliminate the 
biggest problem with RAID5/6, which has always been, the more 
drives/larger the RAID, the longer the rebuild times when (not if) you 
lose a drive.


With regular hard drives, rebuild times can be DAYS using SATA drives. 
If this can be reduced to a few hours (or less?) if using SSDs, then I'd 
seriously consider using RAID 6, since you don't lose nearly as much 
usable storage as you do when using RAID10 (you always lose 50%).


But of course, with ZFS, most of these questions become moot...

If you can, I'd go with JBOD and ZFS RAID...



Re: [gentoo-user] Re: KDE: unwanted dependencies

2013-09-14 Thread Mick
On Friday 13 Sep 2013 16:57:39 Hinnerk van Bruinehsen wrote:
 On Fri, Sep 13, 2013 at 06:04:09PM +0400, Yuri K. Shatroff wrote:
  On 13.09.2013 17:50, Michael Palimaka wrote:
   On 13/09/2013 21:35, Yuri K. Shatroff wrote:

   BTW, it seems that mysql is also a hard dependency for QT now. At
   least, the average joe can't be scorned any more for not having a
   server. Hey to all localhost admins! :)
   
   That shouldn't be the case. The default akonadi backend is mysql, why
   could explain why it's being pulled in.
  
  Yes, really, I was mislead, it is qtsql which requires setting the mysql
  flag, but I missed that it was due to akonadi.
 
 IIRC you can substitute mysql with sqlite by changing useflags. mysql seems
 the be the default though...
 
 WKR
 Hinnerk

As far as I know sqlite is not going to be an option in the future - mysql was 
going to become a hard dependency for KDE.  I hope to be wrong on this, but 
that's what I recall reading in some KDE devs post.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] [yoga13] rtl8723au

2013-09-14 Thread Michael Mol
So, for work, I got a Lenovo IdeaPad Yoga 13. I've got it booting
Gentoo. The rtl8723au chipset, which manages both wifi and bluetooth in
this laptop, does not have a driver in =sys-kernel/gentoo-sources-3.10.7.

Everything I know about the driver comes from two places. First, the
LKML thread where Larry Finger announced his obtainment of the driver
from Realtek, and his uploading it to github.

https://lkml.org/lkml/2013/4/1/280

Second, the relevant Github repo (and the particular commit at which I
have it):

https://github.com/lwfinger/rtl8723au/commit/58a426d1ce29d8c26c36630ef8970afdc6876fcc

Now, here's what's weird. That driver code works fine under Ubuntu
13.04. Boot into Ubuntu 13.04, build the driver, insmod 8723au.ko, and
NetworkManager/nm-applet tells me wireless networks are available.

Under Gentoo, using 3.10.7, no such luck. Build the driver, insmod it,
and NetworkManager suddenly thinks there's a *wired* NIC present. The
Yoga 13 doesn't have a wired NIC.

iwlist scan gives:

enp0s26u1u4i2  Interface doesn't support scanning.

ip link show gives:

9: enp0s26u1u4i2: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc mq
state DOWN mode DEFAULT qlen 1000
link/ether 20:16:d8:b0:25:77 brd ff:ff:ff:ff:ff:ff

The NIC doesn't appear under lspci, but it does appear under lsusb:

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=, 480M
|__ Port 4: Dev 4, If 0, Class=Wireless, Driver=, 480M
|__ Port 4: Dev 4, If 1, Class=Wireless, Driver=, 480M
|__ Port 4: Dev 4, If 2, Class=Vendor Specific Class,
Driver=rtl8723au, 480M

(Several buses and ports omitted, just including the one that appears to
be where the NIC is located at)

Hopefully I'm just missing something silly. If not, I'm perfectly
willing to dig deeper, so long as this 1wk-old kid on my lap is asleep...



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] {OT} Need a new server

2013-09-14 Thread Michael Orlitzky
On 09/14/2013 04:50 AM, Grant wrote:
 
 Instead, how about a 6-drive RAID 10 array with no hot spare?  My
 guess is this would mean much greater fault-tolerance both overall and
 during the rebuild process (once a new drive is swapped in).  That
 would mean not only potentially increased uptime but decreased
 monitoring responsibility.
 

RAID10 with six drives can be implemented one of two ways,

  Type 1: A B A B A B

  Type 2: A B C A B C

If your controller can do Type 1, then going with six drives gives you
better fault tolerance than four with a hot spare.

I've only ever seen Type 2, so I would bet that's what your controller
will do. It's easy to check: set up RAID10 with four drives, then with
six. Did the drive get bigger? If so, it's Type 2.

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.

No one believes me when I say this, so here are all possibilities for a
two-drive failure enumerated for four-drive Type 2 (with a spare) and
six-drive Type 2. Both have a 20% uh oh ratio.

Layout: A B A B S

1.  A-bad B-bad A B S -- OK
2.  A-bad B A-bad B S -- UH OH
3.  A-bad B A B-bad S -- OK
4.  A-bad B A B S-bad -- OK
5.  A B-bad A-bad B S -- OK
6.  A B-bad A B-bad S -- UH OH
7.  A B-bad A B S-bad -- OK
8.  A B A-bad B-bad S -- OK
9.  A B A-bad B S-bad -- OK
10. A B A B-bad S-bad -- OK

Layout: A B C A B C

1.  A-bad B-bad C A B C -- OK
2.  A-bad B C-bad A B C -- OK
3.  A-bad B C A-bad B C -- UH OH
4.  A-bad B C A B-bad C -- OK
5.  A-bad B C A B C-bad -- OK
6.  A B-bad C-bad A B C -- OK
7.  A B-bad C A-bad B C -- OK
8.  A B-bad C A B-bad C -- UH OH
9.  A B-bad C A B C-bad -- OK
10. A B C-bad A-bad B C -- OK
11. A B C-bad A B-bad C -- OK
12. A B C-bad A B C-bad -- UH OH
13. A B C A-bad B-bad C -- OK
14. A B C A-bad B C-bad -- OK
15. A B C A B-bad C-bad -- OK




Re: [gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread Alan McKinnon
On 14/09/2013 11:29, Grant wrote:
 Everything else is a distant concern. When did you last hear of a CPU
  failure anywhere at any time? CPUs do not fail for the most part. When
  they do it's because everything else got hot which brings us back to #2
  in the list.
 I had one fail a number of years ago but I do think it was because of
 heat.  Plus I think that was in my overcl0cking days.  Out of
 curiosity though, would the system continue if I were to lose a CPU
 and it didn't fry anything?


That's an interesting question and I honestly don't know the answer -
I've never had a cpu fail on me in over 30 years :-)

If we are lucky, someone might have experienced it and pipe up as to
what happened. And I'm sure someone does regular testing on
hot-pluggable cpus by popping one out and monitoring the results. I have
no knowledge though

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: {OT} Need a new server

2013-09-14 Thread Alan McKinnon
On 14/09/2013 13:34, Tanstaafl wrote:
 On 2013-09-14 5:10 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On 14/09/2013 10:59, Grant wrote:
 If I make this 6x SSD RAID10 with redundant power supplies, what is my
 weakest link as far as hardware?  If a CPU craps out, will the system
 keep running?
 
 Your weakest link is not having redundant power feeds. Two PSUs doesn't
 help much when they both draw power from the same place :-)
 
 Right... so get two (high quality online UPS's, and plug one PS into one
 UPS and the other into the other UPS.

Grant is looking at renting hosting space in someone's data centre. No
such company is ever going to let him buy rack space to install his UPSs
- rack space is far too valuable for that.

 
 Most hosting providers have generator backups, so as long as you
 buy/specify high quality UPS's, you should be fine.

You aren't reading between the lines I've been hinting at :-)

All decent providers claim redundant power feeds with battery/generator
backup. I'm not talking about that. I'm talking about which connector
the electrician connects which wire to.

The number of stories I hear about THAT going wrong are frightening

 Everything else is a distant concern. When did you last hear of a CPU
 failure anywhere at any time? CPUs do not fail for the most part. When
 they do it's because everything else got hot which brings us back to #2
 in the list.
 
 Don't most newer server boards detect over-temp conditions and shut down
 automatically?


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] [yoga13] rtl8723au

2013-09-14 Thread Alan McKinnon
On 14/09/2013 16:36, Michael Mol wrote:
 So, for work, I got a Lenovo IdeaPad Yoga 13. I've got it booting
 Gentoo. The rtl8723au chipset, which manages both wifi and bluetooth in
 this laptop, does not have a driver in =sys-kernel/gentoo-sources-3.10.7.
 
 Everything I know about the driver comes from two places. First, the
 LKML thread where Larry Finger announced his obtainment of the driver
 from Realtek, and his uploading it to github.
 
 https://lkml.org/lkml/2013/4/1/280
 
 Second, the relevant Github repo (and the particular commit at which I
 have it):
 
 https://github.com/lwfinger/rtl8723au/commit/58a426d1ce29d8c26c36630ef8970afdc6876fcc
 
 Now, here's what's weird. That driver code works fine under Ubuntu
 13.04. Boot into Ubuntu 13.04, build the driver, insmod 8723au.ko, and
 NetworkManager/nm-applet tells me wireless networks are available.
 
 Under Gentoo, using 3.10.7, no such luck. Build the driver, insmod it,
 and NetworkManager suddenly thinks there's a *wired* NIC present. The
 Yoga 13 doesn't have a wired NIC.

Eh? That is weird. Have you tried vanilla-sources to take gentoo
patchset out of the equation?

Or possibly the driver was developed on Ubuntu and relies on one of
their patches

 
 iwlist scan gives:
 
 enp0s26u1u4i2  Interface doesn't support scanning.
 
 ip link show gives:
 
 9: enp0s26u1u4i2: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc mq
 state DOWN mode DEFAULT qlen 1000
 link/ether 20:16:d8:b0:25:77 brd ff:ff:ff:ff:ff:ff
 
 The NIC doesn't appear under lspci, but it does appear under lsusb:
 
 /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
 |__ Port 1: Dev 2, If 0, Class=Hub, Driver=, 480M
 |__ Port 4: Dev 4, If 0, Class=Wireless, Driver=, 480M
 |__ Port 4: Dev 4, If 1, Class=Wireless, Driver=, 480M
 |__ Port 4: Dev 4, If 2, Class=Vendor Specific Class,
 Driver=rtl8723au, 480M
 
 (Several buses and ports omitted, just including the one that appears to
 be where the NIC is located at)
 
 Hopefully I'm just missing something silly. If not, I'm perfectly
 willing to dig deeper, so long as this 1wk-old kid on my lap is asleep...

Daddy!

Congrats on the new one in your life. Your definition of personal free
time is about to change dramatically i.e. it goes away.

Would this be why you suddenly got quiet the last 3 months or so?





-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] [yoga13] rtl8723au

2013-09-14 Thread Michael Mol
On 09/14/2013 10:46 AM, Alan McKinnon wrote:
 On 14/09/2013 16:36, Michael Mol wrote:
 So, for work, I got a Lenovo IdeaPad Yoga 13. I've got it booting
 Gentoo. The rtl8723au chipset, which manages both wifi and bluetooth in
 this laptop, does not have a driver in =sys-kernel/gentoo-sources-3.10.7.

 Everything I know about the driver comes from two places. First, the
 LKML thread where Larry Finger announced his obtainment of the driver
 from Realtek, and his uploading it to github.

 https://lkml.org/lkml/2013/4/1/280

 Second, the relevant Github repo (and the particular commit at which I
 have it):

 https://github.com/lwfinger/rtl8723au/commit/58a426d1ce29d8c26c36630ef8970afdc6876fcc

 Now, here's what's weird. That driver code works fine under Ubuntu
 13.04. Boot into Ubuntu 13.04, build the driver, insmod 8723au.ko, and
 NetworkManager/nm-applet tells me wireless networks are available.

 Under Gentoo, using 3.10.7, no such luck. Build the driver, insmod it,
 and NetworkManager suddenly thinks there's a *wired* NIC present. The
 Yoga 13 doesn't have a wired NIC.
 
 Eh? That is weird. Have you tried vanilla-sources to take gentoo
 patchset out of the equation?

I have not. I'll try that next.

 Or possibly the driver was developed on Ubuntu and relies on one of
 their patches

Story, as I read it, goes that it was developed by Realtek, who didn't
think to open-source it. Larry Finger asked Realtek for the driver, they
provided it, as well as permission to get it distributed further.

 

 iwlist scan gives:

 enp0s26u1u4i2  Interface doesn't support scanning.

 ip link show gives:

 9: enp0s26u1u4i2: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc mq
 state DOWN mode DEFAULT qlen 1000
 link/ether 20:16:d8:b0:25:77 brd ff:ff:ff:ff:ff:ff

 The NIC doesn't appear under lspci, but it does appear under lsusb:

 /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
 |__ Port 1: Dev 2, If 0, Class=Hub, Driver=, 480M
 |__ Port 4: Dev 4, If 0, Class=Wireless, Driver=, 480M
 |__ Port 4: Dev 4, If 1, Class=Wireless, Driver=, 480M
 |__ Port 4: Dev 4, If 2, Class=Vendor Specific Class,
 Driver=rtl8723au, 480M

 (Several buses and ports omitted, just including the one that appears to
 be where the NIC is located at)

 Hopefully I'm just missing something silly. If not, I'm perfectly
 willing to dig deeper, so long as this 1wk-old kid on my lap is asleep...
 
 Daddy!
 
 Congrats on the new one in your life. Your definition of personal free
 time is about to change dramatically i.e. it goes away.

It's not possible to have less free time than I had in the past few
months. Even having this kid on my lap while I write this is a luxury of
free time I haven't had in ages. Nearly every non-work, non-sleep moment
was dedicated to preparing for this guy just showing up. Looking forward
to when he's big enough for the mai-tai; that'll afford me even more
flexibility.

Though I'll probably wind up eating my own words...

 
 Would this be why you suddenly got quiet the last 3 months or so?

Combined with my job getting busier and busier, yes. I'm flattered I was
missed. :)




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] To be updated or not to be updated, Second Part

2013-09-14 Thread AR (aka AleiPhoenix)
On Sat, Sep 14, 2013 at 2:12 PM, meino.cra...@gmx.de wrote:


 beagleboneblack:/rooteix x11-libs/fox
 [D] x11-libs/fox
  Available versions:
  (1.6)  *1.6.40 *1.6.45 ~*1.6.49
  (1.7)  ~*1.7.40 ~*1.7.41
{(+)bzip2 debug doc (+)jpeg (+)opengl (+)png profile tiff
 (+)truetype (+)zlib}
  Installed versions:  1.7.39(1.7)(23:22:36 08/07/13)(bzip2 jpeg opengl
 png truetype zlib -debug -doc -profile -tiff)
  Homepage:http://www.fox-toolkit.org/
  Description: C++ based Toolkit for developing Graphical User
 Interfaces easily and effectively

 So, what is about x11-libs/fox? Delete it? Dont delete it?

 Best regards,
 mcc


It depends on is there any package relying on x11-libs/fox.

Checkout by using `equery d x11-libs/fox-1.7.39`.

Or you can checkout that with `emerge -DNuav @world` and `revdep-rebuild`,
these commands will check for any unsatisfied dependencies.

-- 
Silence is golden.

twitter: @AccelReality
wikipedia: AleiPhoenix
blog: weblog.areverie.org
wiki: wiki.areverie.org


Re: [gentoo-user] [yoga13] rtl8723au

2013-09-14 Thread Michael Mol
On 09/14/2013 11:10 AM, Michael Mol wrote:
 On 09/14/2013 10:46 AM, Alan McKinnon wrote:
 On 14/09/2013 16:36, Michael Mol wrote:
 So, for work, I got a Lenovo IdeaPad Yoga 13. I've got it booting
 Gentoo. The rtl8723au chipset, which manages both wifi and bluetooth in
 this laptop, does not have a driver in =sys-kernel/gentoo-sources-3.10.7.

 Everything I know about the driver comes from two places. First, the
 LKML thread where Larry Finger announced his obtainment of the driver
 from Realtek, and his uploading it to github.

 https://lkml.org/lkml/2013/4/1/280

 Second, the relevant Github repo (and the particular commit at which I
 have it):

 https://github.com/lwfinger/rtl8723au/commit/58a426d1ce29d8c26c36630ef8970afdc6876fcc

 Now, here's what's weird. That driver code works fine under Ubuntu
 13.04. Boot into Ubuntu 13.04, build the driver, insmod 8723au.ko, and
 NetworkManager/nm-applet tells me wireless networks are available.

 Under Gentoo, using 3.10.7, no such luck. Build the driver, insmod it,
 and NetworkManager suddenly thinks there's a *wired* NIC present. The
 Yoga 13 doesn't have a wired NIC.

 Eh? That is weird. Have you tried vanilla-sources to take gentoo
 patchset out of the equation?
 
 I have not. I'll try that next.
 

Tried with vanilla 3.10.11 and vanilla 3.11.0. Same symptoms.





signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] look for a file type + sort

2013-09-14 Thread Florian Philipp
Am 14.09.2013 06:04, schrieb Mark David Dumlao:
 
 On Sep 13, 2013 9:53 PM, Yuri K. Shatroff yks-...@yandex.ru
 mailto:yks-...@yandex.ru wrote:

 On 13.09.2013 17:43, Mark David Dumlao wrote:

 On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff yks-...@yandex.ru
 mailto:yks-...@yandex.ru wrote:

 On 13.09.2013 10:24, Jean-Christophe Bach wrote:
 [ ... ]


 This one should work:

 find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} +



 -exec is not suitable here because it spawns a `ls` process per each
 found
 entry; aside from being slow, this disallows sorting at all.


 This is incorrect. If you terminate exec with '+' instead of '\;',
 only a single
 instance of the command is run - the command line is built by appending
 each found file to the end of the {} placeholder.


 Sorry, I'm ashamed
 I didn't know about this feature. Does it also handle spaces correctly?

 
 I'm not sure how the internals work. As best as I can guess, it
 constructs the argv directly so spaces shouldn't be an issue. Spaces are
 an issue when the output is piped through, since the pipe itself knows
 no difference between filename and output spaces, hence the need to
 force zero delimiters between filenames. Since find runs the command
 directly, you shouldn't encounter this. But Ive yet to test.
 

Your assumption is correct. exec cannot be fooled with whitespaces.

Regards,
Florian Philipp




signature.asc
Description: OpenPGP digital signature