Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread J. Roeleveld
On 25 June 2014 07:05:03 CEST, Dale rdalek1...@gmail.com wrote:
J. Roeleveld wrote:
 On 25 June 2014 01:09:03 CEST, Dale rdalek1...@gmail.com wrote:
 Howdy,

 I run this test every once in a while.  How bad is this:

 root@fireball / # smartctl -l selftest /dev/sdc
 smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local
 build)
 Copyright (C) 2002-13, Bruce Allen, Christian Franke,
 www.smartmontools.org

 === START OF READ SMART DATA SECTION ===
 SMART Self-test log structure revision number 1
 Num  Test_DescriptionStatus  Remaining 
 LifeTime(hours)  LBA_of_first_error
 # 1  Extended offlineCompleted: read failure   60%
 16365 2905482560
 # 2  Extended offlineCompleted: read failure   60%
 16352 2905482560
 # 3  Extended offlineCompleted without error   00% 
 8044 -
 # 4  Extended offlineCompleted without error   00% 
 3121 -

 And better yet, is there any way to tell it to not use that part and
 finish the test?  It seems it stopped when it got to that, or I
think
 it
 did. 

 Thoughts? 

 Dale

 :-)  :-) 
 Dale,

 Not sure how to get it to go past. Think that is in the firmware of
the disk.

 I would start with making a backup first.

 --
 Joost

That's a 3TB drive.  I don't have anything big enough to back it up to.

Is there anyway to find out if this error is really serious or just a
run of the mill type error?  I would think that if it was a run of the
mill error the drive would handle the error itself and I wouldn't even
see it.  Something like marking the area as bad and just not trying to
use it anymore, even for the test. 

Thanks.  Any advice is appreciated.  I need a hard drive guru.  ;-)

Here is additional info:

root@fireball / # hdparm -i /dev/sdc

/dev/sdc:

 Model=ST3000DM001-9YN166, FwRev=CC4C, SerialNo=Z1F0PKT5
 Config={ HardSect NotMFM HdSw15uSec Fixed DTR10Mbs RotSpdTol.5% }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=5860533168
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
 AdvancedPM=yes: unknown setting WriteCache=enabled
 Drive conforms to: unknown:  ATA/ATAPI-4,5,6,7

 * signifies the current active mode

root@fireball / #



Dale

:-)  :-) 

There are some options with smartctl you could try to force the drive to swap 
that bad sector with a spare one.

A full disk read could also force that. Eg. Try ' dd if=/dev/sdc of=/dev/null '.

But, I usually order a replacement when Smart tests start throwing errors.

I know 3TB is a lot for you to have to backup, but it's also a lot of data to 
loose...

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Marc Joliet
Am Tue, 24 Jun 2014 18:09:03 -0500
schrieb Dale rdalek1...@gmail.com:

 Howdy,
 
 I run this test every once in a while.  How bad is this:
 
 root@fireball / # smartctl -l selftest /dev/sdc
 smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local build)
 Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
 
 === START OF READ SMART DATA SECTION ===
 SMART Self-test log structure revision number 1
 Num  Test_DescriptionStatus  Remaining 
 LifeTime(hours)  LBA_of_first_error
 # 1  Extended offlineCompleted: read failure   60%
 16365 2905482560
 # 2  Extended offlineCompleted: read failure   60%
 16352 2905482560
 # 3  Extended offlineCompleted without error   00% 
 8044 -
 # 4  Extended offlineCompleted without error   00% 
 3121 -
 
 And better yet, is there any way to tell it to not use that part and
 finish the test?  It seems it stopped when it got to that, or I think it
 did. 
 
 Thoughts? 

I have no idea, really, but I had a similar situation that was caused by a
loose SATA connection.  In my case the drive stopped working first, then after
checking the SATA connection, it was detected again, but didn't work correctly,
including failing its SMART extended tests at a specific sector. Then, after
fiddling with the connection several weeks later, it started working flawlessly
again.  I plan on buying SATA cables with clips, now :-/ (though I have to check
if that will work with my mainboard first).

Otherwise, to reiterate what J. Roeleveld wrote: backups, backups, backups ;) .

 Dale
 
 :-)  :-) 

HTH
-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


signature.asc
Description: PGP signature


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread thegeezer
On 06/25/2014 06:05 AM, Dale wrote:
 J. Roeleveld wrote:
 On 25 June 2014 01:09:03 CEST, Dale rdalek1...@gmail.com wrote:
 Howdy,

 I run this test every once in a while.  How bad is this:

 root@fireball / # smartctl -l selftest /dev/sdc
 smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local
 build)
 Copyright (C) 2002-13, Bruce Allen, Christian Franke,
 www.smartmontools.org

 === START OF READ SMART DATA SECTION ===
 SMART Self-test log structure revision number 1
 Num  Test_DescriptionStatus  Remaining 
 LifeTime(hours)  LBA_of_first_error
 # 1  Extended offlineCompleted: read failure   60%
 16365 2905482560
 # 2  Extended offlineCompleted: read failure   60%
 16352 2905482560
 # 3  Extended offlineCompleted without error   00% 
 8044 -
 # 4  Extended offlineCompleted without error   00% 
 3121 -


this is pretty bad. enough to really go and get a replacement asap, and
turn that disk off if you can.
the self test stops at the first error it comes to and in this case it
is LBA#2905482560
for calculation of where the error is check out the smartcl [1] site
which will help you to mark the block bad though the data that was in
that block is probably lost forever.
i'd also suggest you run
# smartctl -a /dev/sdc 
and paste the results here. the crucial rows are 196/197 the reallocated
sector counts and pending sector counts.
they show how many blocks have been reallocated, and also how many are
pending. this will give you a scaling factor, at the moment you are in
trouble, if these figures are very high you are in very high trouble, if
they are low you are in low trouble.

[1] http://smartmontools.sourceforge.net/badblockhowto.html



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
J. Roeleveld wrote:
 There are some options with smartctl you could try to force the drive
 to swap that bad sector with a spare one. A full disk read could also
 force that. Eg. Try ' dd if=/dev/sdc of=/dev/null '. But, I usually
 order a replacement when Smart tests start throwing errors. I know
 3TB is a lot for you to have to backup, but it's also a lot of data
 to loose... -- Joost 


I just don't have anything to put the data on.  I been saying I was
going to get me a backup drive but hadn't yet.  Looks like I better
order one unless someone pops on and says this is normal and OK, sort of
doubting that will happen tho. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
thegeezer wrote:
 this is pretty bad. enough to really go and get a replacement asap,
 and turn that disk off if you can. the self test stops at the first
 error it comes to and in this case it is LBA#2905482560 for
 calculation of where the error is check out the smartcl [1] site which
 will help you to mark the block bad though the data that was in that
 block is probably lost forever. i'd also suggest you run # smartctl -a
 /dev/sdc and paste the results here. the crucial rows are 196/197 the
 reallocated sector counts and pending sector counts. they show how
 many blocks have been reallocated, and also how many are pending. this
 will give you a scaling factor, at the moment you are in trouble, if
 these figures are very high you are in very high trouble, if they are
 low you are in low trouble. [1]
 http://smartmontools.sourceforge.net/badblockhowto.html 

Here is the output:

root@fireball / # smartctl -a /dev/sdc
smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST3000DM001-9YN166
Serial Number:Z1F0PKT5
LU WWN Device Id: 5 000c50 04d79e15c
Firmware Version: CC4C
User Capacity:3,000,592,982,016 bytes [3.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate:7200 rpm
Device is:In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:Wed Jun 25 02:46:39 2014 CDT

== WARNING: A firmware update for this drive is available,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/223651en

SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection:
Disabled.
Self-test execution status:  ( 118) The previous self-test completed
having
the read element of the test failed.
Total time to complete Offline
data collection:(  584) seconds.
Offline data collection
capabilities:(0x73) SMART execute Offline immediate.
Auto Offline data collection
on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities:(0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability:(0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time:(   1) minutes.
Extended self-test routine
recommended polling time:( 340) minutes.
Conveyance self-test routine
recommended polling time:(   2) minutes.
SCT capabilities:  (0x3085) SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME  FLAG VALUE WORST THRESH TYPE 
UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate 0x000f   119   099   006Pre-fail 
Always   -   234421760
  3 Spin_Up_Time0x0003   092   092   000Pre-fail 
Always   -   0
  4 Start_Stop_Count0x0032   100   100   020Old_age  
Always   -   33
  5 Reallocated_Sector_Ct   0x0033   100   100   036Pre-fail 
Always   -   0
  7 Seek_Error_Rate 0x000f   079   060   030Pre-fail 
Always   -   99909120
  9 Power_On_Hours  0x0032   082   082   000Old_age  
Always   -   16379
 10 Spin_Retry_Count0x0013   100   100   097Pre-fail 
Always   -   0
 12 Power_Cycle_Count   0x0032   100   100   020Old_age  
Always   -   34
183 Runtime_Bad_Block   0x0032   100   100   000Old_age  
Always   -   0
184 End-to-End_Error0x0032   100   100   099Old_age  
Always   -   0
187 Reported_Uncorrect  0x0032   100   100   000Old_age  
Always   -   0
188 Command_Timeout 0x0032   100   100   000

Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Neil Bothwick
On Wed, 25 Jun 2014 00:05:03 -0500, Dale wrote:

 That's a 3TB drive.  I don't have anything big enough to back it up to. 

Then either your data is not important to you or you need to get another
drive ASAP. Meanwhile, you could start backing up the most important data.

 Is there anyway to find out if this error is really serious or just a
 run of the mill type error?

Whenever I have seen this behaviour, it was soon followed by total drive
failure, even to the point that the computer would not boot with that
drive connected.


-- 
Neil Bothwick

WinErr 003: Dynamic linking error - Your mistake is now in every file


signature.asc
Description: PGP signature


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Neil Bothwick wrote:
 On Wed, 25 Jun 2014 00:05:03 -0500, Dale wrote:

 That's a 3TB drive.  I don't have anything big enough to back it up to.

 Then either your data is not important to you or you need to get another
 drive ASAP. Meanwhile, you could start backing up the most important data.

I got a drive picked out at Newegg.  

http://www.newegg.com/Product/Product.aspx?Item=N82E16822148844



 Is there anyway to find out if this error is really serious or just a
 run of the mill type error?

 Whenever I have seen this behaviour, it was soon followed by total drive
 failure, even to the point that the computer would not boot with that
 drive connected.



Well, I did blow the dust out a month or so ago so I thought I would
remove the sides and re-seat all the cables.  I've got the long test
running now but it passed the SHORT test.  I'm hoping it will fix this
issue, just hoping.  That is a good deal on that new drive tho.  May get
it anyway.

Dale

:-)  :-)




[gentoo-user] ssh rekeying slow ?

2014-06-25 Thread Stefan G. Weichinger

When I ssh into a server in my basement, this takes way more time than
usual.

I don't have a clue what might have changed ... aside from usual
updating. I rebuilt and restarted openssh down there without a change.

This is a bit annoying when logging in and using git to pull/push stuff
from/to there.

Does anyone have an idea what I could do to fix that?

Stefan

demo -

$ ssh -v root@mythtv

OpenSSH_6.6.1, OpenSSL 1.0.1h 5 Jun 2014
debug1: Reading configuration data /home/sgw/.ssh/config
debug1: /home/sgw/.ssh/config line 33: Applying options for mythtv
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to mythtv [2001:15c0:65ff:8742:219:99ff:fee8:2343]
port 22.
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug1: identity file /home/sgw/.ssh/id_rsa type 1
debug1: identity file /home/sgw/.ssh/id_rsa-cert type -1
debug1: identity file /home/sgw/.ssh/id_dsa type -1
debug1: identity file /home/sgw/.ssh/id_dsa-cert type -1
debug1: identity file /home/sgw/.ssh/id_ecdsa type -1
debug1: identity file /home/sgw/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/sgw/.ssh/id_ed25519 type -1
debug1: identity file /home/sgw/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1-hpn14v4
debug1: Remote protocol version 2.0, remote software version
OpenSSH_6.6p1-hpn14v4
debug1: match: OpenSSH_6.6p1-hpn14v4 pat OpenSSH_6.5*,OpenSSH_6.6*
compat 0x1400
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: AUTH STATE IS 0
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: server-client aes128-ctr hmac-md5-...@openssh.com none
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: client-server aes128-ctr hmac-md5-...@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA
07:f3:16:2b:e9:64:87:fa:df:14:70:dc:03:60:5a:3c
debug1: Host 'mythtv' is known and matches the ECDSA host key.
debug1: Found key in /home/sgw/.ssh/known_hosts:168
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/sgw/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Single to Multithread CTR cipher swap - client request
debug1: Authentication succeeded (publickey).
Authenticated to mythtv ([2001:15c0:65ff:8742:219:99ff:fee8:2343]:22).
debug1: HPN to Non-HPN Connection
debug1: Final hpn_buffer_size = 2097152
debug1: HPN Disabled: 0, HPN Buffer Size: 2097152
debug1: channel 0: new [client-session]
debug1: Enabled Dynamic Window Scaling
debug1: Requesting no-more-sessi...@openssh.com
debug1: Entering interactive session.
debug1: need rekeying
debug1: SSH2_MSG_KEXINIT sent
debug1: rekeying in progress
debug1: rekeying in progress
debug1: rekeying in progress
debug1: rekeying in progress
debug1: enqueue packet: 80
debug1: rekeying in progress
debug1: SSH2_MSG_KEXINIT received
debug1: AUTH STATE IS 1
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: server-client aes128-ctr hmac-md5-...@openssh.com none
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: client-server aes128-ctr hmac-md5-...@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA
07:f3:16:2b:e9:64:87:fa:df:14:70:dc:03:60:5a:3c
debug1: Host 'mythtv' is known and matches the ECDSA host key.
debug1: Found key in /home/sgw/.ssh/known_hosts:168
debug1: ssh_ecdsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: spawned a thread
debug1: spawned a thread
debug1: dequeue packet: 80
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: spawned a thread
debug1: spawned a thread
debug1: SSH2_MSG_NEWKEYS received
debug1: Sending environment.
debug1: Sending env LANG = de_DE.UTF-8




Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread thegeezer
On 06/25/2014 08:49 AM, Dale wrote:
 thegeezer wrote:
 this is pretty bad. 
 Here is the output:

 root@fireball / # smartctl -a /dev/sdc
 smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local build)
 Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

 === START OF INFORMATION SECTION ===
 Model Family: Seagate Barracuda 7200.14 (AF)
 Device Model: ST3000DM001-9YN166
 Serial Number:Z1F0PKT5
 LU WWN Device Id: 5 000c50 04d79e15c
 Firmware Version: CC4C
 User Capacity:3,000,592,982,016 bytes [3.00 TB]
 Sector Sizes: 512 bytes logical, 4096 bytes physical
 Rotation Rate:7200 rpm
 Device is:In smartctl database [for details use: -P show]
 ATA Version is:   ATA8-ACS T13/1699-D revision 4
 SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
 Local Time is:Wed Jun 25 02:46:39 2014 CDT

 == WARNING: A firmware update for this drive is available,
 see the following Seagate web pages:
 http://knowledge.seagate.com/articles/en_US/FAQ/207931en
 http://knowledge.seagate.com/articles/en_US/FAQ/223651en

interesting - not seen that before might be worth a nose

 SMART support is: Available - device has SMART capability.
 SMART support is: Enabled

 === START OF READ SMART DATA SECTION ===
 SMART overall-health self-assessment test result: PASSED

 General SMART Values:
 Offline data collection status:  (0x00) Offline data collection activity
 was never started.
 Auto Offline Data Collection:
 Disabled.
 Self-test execution status:  ( 118) The previous self-test completed
 having
 the read element of the test failed.
 Total time to complete Offline
 data collection:(  584) seconds.
 Offline data collection
 capabilities:(0x73) SMART execute Offline immediate.
 Auto Offline data collection
 on/off support.
 Suspend Offline collection upon new
 command.
 No Offline surface scan supported.
 Self-test supported.
 Conveyance Self-test supported.
 Selective Self-test supported.
 SMART capabilities:(0x0003) Saves SMART data before entering
 power-saving mode.
 Supports SMART auto save timer.
 Error logging capability:(0x01) Error logging supported.
 General Purpose Logging supported.
 Short self-test routine
 recommended polling time:(   1) minutes.
 Extended self-test routine
 recommended polling time:( 340) minutes.
 Conveyance self-test routine
 recommended polling time:(   2) minutes.
 SCT capabilities:  (0x3085) SCT Status supported.

 SMART Attributes Data Structure revision number: 10
 Vendor Specific SMART Attributes with Thresholds:
 ID# ATTRIBUTE_NAME  FLAG VALUE WORST THRESH TYPE 
 UPDATED  WHEN_FAILED RAW_VALUE
   1 Raw_Read_Error_Rate 0x000f   119   099   006Pre-fail 
 Always   -   234421760

you can happily ignore this error rate, it is usual for it to be high
and htere is hardware correction for it

   3 Spin_Up_Time0x0003   092   092   000Pre-fail 
 Always   -   0
   4 Start_Stop_Count0x0032   100   100   020Old_age  
 Always   -   33

33 power cycles seem very low but further down we see the power on time
is just under two years which is also erring towards the lighter side of
the mtbf

   5 Reallocated_Sector_Ct   0x0033   100   100   036Pre-fail 
 Always   -   0

zero reallocated sectors suggests there is space to do reallocation

   7 Seek_Error_Rate 0x000f   079   060   030Pre-fail 
 Always   -   99909120
   9 Power_On_Hours  0x0032   082   082   000Old_age  
 Always   -   16379

almost two years of power on time

  10 Spin_Retry_Count0x0013   100   100   097Pre-fail 
 Always   -   0
  12 Power_Cycle_Count   0x0032   100   100   020Old_age  
 Always   -   34
 183 Runtime_Bad_Block   0x0032   100   100   000Old_age  
 Always   -   0
 184 End-to-End_Error0x0032   100   100   099Old_age  
 Always   -   0
 187 Reported_Uncorrect  0x0032   100   100   000Old_age  
 Always   -   0
 188 Command_Timeout 0x0032   100   100   000Old_age  
 Always   -   0 0 0
 189 High_Fly_Writes 0x003a   100   100   000Old_age  
 Always   -   0
 190 Airflow_Temperature_Cel 0x0022   069   063   045Old_age  
 Always   -   31 (Min/Max 26/33)
 191 G-Sense_Error_Rate  0x0032   100   100   

Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread thegeezer
On 06/25/2014 11:05 AM, Dale wrote:

 I got a drive picked out at Newegg.  

 http://www.newegg.com/Product/Product.aspx?Item=N82E16822148844

slightly offtopic - i notice that the drive has a 2year limited warranty

has anyone managed to get anything from hard drive warranties ?


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Helmut Jarausch

On 06/25/2014 12:55:08 PM, thegeezer wrote:

On 06/25/2014 11:05 AM, Dale wrote:

 I got a drive picked out at Newegg.  

 http://www.newegg.com/Product/Product.aspx?Item=N82E16822148844

slightly offtopic - i notice that the drive has a 2year limited  
warranty


has anyone managed to get anything from hard drive warranties ?


I always buy enterprise editions which have a warranty of 5 years.
I had several drives which got replaced after 3-5 years.
Furthermore, I have the feeling that enterprise editions have been
tested more strictly.
I know they are much more expensive but I even take these for my private
machine.

Helmut.





Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Dale wrote:


 I got a drive picked out at Newegg.  

 http://www.newegg.com/Product/Product.aspx?Item=N82E16822148844




Drive is ordered.  Be here tomorrow.  Yay Newegg. 

Dale

:-)  :-)


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 6:55 AM, thegeezer thegee...@thegeezer.net wrote:
 On 06/25/2014 11:05 AM, Dale wrote:


 I got a drive picked out at Newegg.  

 http://www.newegg.com/Product/Product.aspx?Item=N82E16822148844


 slightly offtopic - i notice that the drive has a 2year limited warranty

 has anyone managed to get anything from hard drive warranties ?

Yes.  Most manufacturers have a hard drive warranty tool online.  Just
give it your serial number and it will tell you if you're eligible,
and how to go about it.  I know Seagate wants you to run their own
testing util (which just does a SMART test and spits out a validation
code which you write down).

I've gotten the same sorts of errors several times now on my RAID and
when it happens I just go through the warranty process, select advance
replacement, swap out the drive, then return the old drive in their
packaging.

Typically costs me $10 for HD replacement (I have to pay return shipping only).

Typically drives tend to die for me about a year after I buy them -
alarmingly often, actually.  Anybody who doesn't run smartmon or its
equivalent is insane, as is anybody who doesn't at least run RAID,
though anything valuable should be backed up.

Rich



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
thegeezer wrote:
 On 06/25/2014 08:49 AM, Dale wrote:
 thegeezer wrote:
 this is pretty bad. 
 Here is the output:

 root@fireball / # smartctl -a /dev/sdc
 smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local build)
 Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

 === START OF INFORMATION SECTION ===
 Model Family: Seagate Barracuda 7200.14 (AF)
 Device Model: ST3000DM001-9YN166
 Serial Number:Z1F0PKT5
 LU WWN Device Id: 5 000c50 04d79e15c
 Firmware Version: CC4C
 User Capacity:3,000,592,982,016 bytes [3.00 TB]
 Sector Sizes: 512 bytes logical, 4096 bytes physical
 Rotation Rate:7200 rpm
 Device is:In smartctl database [for details use: -P show]
 ATA Version is:   ATA8-ACS T13/1699-D revision 4
 SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
 Local Time is:Wed Jun 25 02:46:39 2014 CDT

 == WARNING: A firmware update for this drive is available,
 see the following Seagate web pages:
 http://knowledge.seagate.com/articles/en_US/FAQ/207931en
 http://knowledge.seagate.com/articles/en_US/FAQ/223651en
 interesting - not seen that before might be worth a nose

I was thinking the same thing myself.  How does it know there is a
update was another question I had. 

 SMART support is: Available - device has SMART capability.
 SMART support is: Enabled

 === START OF READ SMART DATA SECTION ===
 SMART overall-health self-assessment test result: PASSED

 General SMART Values:
 Offline data collection status:  (0x00) Offline data collection activity
 was never started.
 Auto Offline Data Collection:
 Disabled.
 Self-test execution status:  ( 118) The previous self-test completed
 having
 the read element of the test failed.
 Total time to complete Offline
 data collection:(  584) seconds.
 Offline data collection
 capabilities:(0x73) SMART execute Offline immediate.
 Auto Offline data collection
 on/off support.
 Suspend Offline collection upon new
 command.
 No Offline surface scan supported.
 Self-test supported.
 Conveyance Self-test supported.
 Selective Self-test supported.
 SMART capabilities:(0x0003) Saves SMART data before entering
 power-saving mode.
 Supports SMART auto save timer.
 Error logging capability:(0x01) Error logging supported.
 General Purpose Logging supported.
 Short self-test routine
 recommended polling time:(   1) minutes.
 Extended self-test routine
 recommended polling time:( 340) minutes.
 Conveyance self-test routine
 recommended polling time:(   2) minutes.
 SCT capabilities:  (0x3085) SCT Status supported.

 SMART Attributes Data Structure revision number: 10
 Vendor Specific SMART Attributes with Thresholds:
 ID# ATTRIBUTE_NAME  FLAG VALUE WORST THRESH TYPE 
 UPDATED  WHEN_FAILED RAW_VALUE
   1 Raw_Read_Error_Rate 0x000f   119   099   006Pre-fail 
 Always   -   234421760
 you can happily ignore this error rate, it is usual for it to be high
 and htere is hardware correction for it

   3 Spin_Up_Time0x0003   092   092   000Pre-fail 
 Always   -   0
   4 Start_Stop_Count0x0032   100   100   020Old_age  
 Always   -   33
 33 power cycles seem very low but further down we see the power on time
 is just under two years which is also erring towards the lighter side of
 the mtbf

About the only time I shutdown is when the power fails.  My puter only
pulls about 150 watts so I just leave it running 24/7. 



   5 Reallocated_Sector_Ct   0x0033   100   100   036Pre-fail 
 Always   -   0
 zero reallocated sectors suggests there is space to do reallocation

   7 Seek_Error_Rate 0x000f   079   060   030Pre-fail 
 Always   -   99909120
   9 Power_On_Hours  0x0032   082   082   000Old_age  
 Always   -   16379
 almost two years of power on time

  10 Spin_Retry_Count0x0013   100   100   097Pre-fail 
 Always   -   0
  12 Power_Cycle_Count   0x0032   100   100   020Old_age  
 Always   -   34
 183 Runtime_Bad_Block   0x0032   100   100   000Old_age  
 Always   -   0
 184 End-to-End_Error0x0032   100   100   099Old_age  
 Always   -   0
 187 Reported_Uncorrect  0x0032   100   100   000Old_age  
 Always   -   0
 188 Command_Timeout 0x0032   100   100   000Old_age  
 Always   -   0 

Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread covici
Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote:

 On 06/25/2014 12:55:08 PM, thegeezer wrote:
  On 06/25/2014 11:05 AM, Dale wrote:
  
   I got a drive picked out at Newegg.  
  
   http://www.newegg.com/Product/Product.aspx?Item=N82E16822148844
  
  slightly offtopic - i notice that the drive has a 2year limited  
  warranty
  
  has anyone managed to get anything from hard drive warranties ?
 
 I always buy enterprise editions which have a warranty of 5 years.
 I had several drives which got replaced after 3-5 years.
 Furthermore, I have the feeling that enterprise editions have been
 tested more strictly.
 I know they are much more expensive but I even take these for my private
 machine.

And lately the warranty is just one year.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 9:15 AM, Dale rdalek1...@gmail.com wrote:
 thegeezer wrote:
 On 06/25/2014 08:49 AM, Dale wrote:

 thegeezer wrote:

 this says there are 104 pending sectors i.e. bad blocks on the drive
 that have not been reallocatd yet

 Wonder why it hasn't?  Isn't it supposed to do that sort of thing itself?


It can't relocate the sectors until it successfully reads them, or
until something else writes over them.

However, the last few drives I've had this happen to never really
relocated things.  If I scrubbed the drives mdadm would overwrite the
unreadable sectors, which should trigger a relocation, but then a day
or two later the errors would show up again.  So, the drive firmware
must be avoiding relocation or something.  Either that or there is a
large region of the drive that is failing (which would make sense) and
I was just playing whack-a-mole with the bad sectors.  In any case, if
the drive is under warranty I've yet to have a complaint returning it
with a copy of the smartctl output showing the failed test/etc.  With
advance replacement I can keep the old drive until the new one
arrives.

 I usually just run the test manually but I sort of had family stuff
 going on for the past year, almost a year anyway.  Sort of behind on
 things although I have been doing my normal updates.

rc-update add smartd default

I don't know that I even had to configure it - it is set to email
root@localhost when there is a problem.  I also run mdadm to monitor
raid.

I don't think anybody makes a monitor for btrfs, though my boot is
mirrored across all my btrfs drives using mdadm so a drive failure
should be detected in any case.  I need to check up on that, though -
I'd like an email if something goes wrong with btrfs storage.


 I ordered a drive.  It should be here tomorrow.  In the meantime, I
 shutdown and re-seated all the cables, power too. I got the test running
 again but results is a few hours off yet.  It did pass the short test
 tho.  I'm not sure that it means much.

Short test generally doesn't do much - you need the long ones.  I'd be
shocked if it passed with offline uncorrectable sectors.

And do check on your warranty.  You can migrate all your data to the
new drive, and then replace the old one as a backup disk.  Either use
it with raid, or as an offline backup.  If you want to do raid you can
set up mdadm with a degraded raid1 so that you can copy your data over
from your old drive, and then when it is replaced you just partition
the new one, add it to the raid, and watch it rebuild automatically.

Rich



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 10:23 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Wed, 25 Jun 2014 08:33:37 -0400, Rich Freeman wrote:

 Typically drives tend to die for me about a year after I buy them -
 alarmingly often, actually.

 Do you have a UPS? I used to get similar levels of failure, and not just
 drives,then I bought a UPS and things got much better. It seems the mains
 supply here is not as stable as it should be.

I do not, and I can't say I was terribly thrilled with the performance
with the last cheap UPS I bought.

The price to do it right tends to be moderately high, so it hasn't
been a priority.  Perhaps I should look into it again.

Rich



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Neil Bothwick
On Wed, 25 Jun 2014 08:33:37 -0400, Rich Freeman wrote:

 Typically drives tend to die for me about a year after I buy them -
 alarmingly often, actually. 

Do you have a UPS? I used to get similar levels of failure, and not just
drives,then I bought a UPS and things got much better. It seems the mains
supply here is not as stable as it should be.


-- 
Neil Bothwick

Grow your own dope, plant a politician!


signature.asc
Description: PGP signature


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread covici
Rich Freeman ri...@gentoo.org wrote:

 On Wed, Jun 25, 2014 at 6:55 AM, thegeezer thegee...@thegeezer.net wrote:
  On 06/25/2014 11:05 AM, Dale wrote:
 
 
  I got a drive picked out at Newegg.  
 
  http://www.newegg.com/Product/Product.aspx?Item=N82E16822148844
 
 
  slightly offtopic - i notice that the drive has a 2year limited warranty
 
  has anyone managed to get anything from hard drive warranties ?
 
 Yes.  Most manufacturers have a hard drive warranty tool online.  Just
 give it your serial number and it will tell you if you're eligible,
 and how to go about it.  I know Seagate wants you to run their own
 testing util (which just does a SMART test and spits out a validation
 code which you write down).
 
 I've gotten the same sorts of errors several times now on my RAID and
 when it happens I just go through the warranty process, select advance
 replacement, swap out the drive, then return the old drive in their
 packaging.
 
 Typically costs me $10 for HD replacement (I have to pay return shipping 
 only).
 
 Typically drives tend to die for me about a year after I buy them -
 alarmingly often, actually.  Anybody who doesn't run smartmon or its
 equivalent is insane, as is anybody who doesn't at least run RAID,
 though anything valuable should be backed up.

Is it not  true that you cannot run raid on consumer drives because of
timing errors?


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Rich Freeman wrote:
 On Wed, Jun 25, 2014 at 10:23 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Wed, 25 Jun 2014 08:33:37 -0400, Rich Freeman wrote:

 Typically drives tend to die for me about a year after I buy them -
 alarmingly often, actually.
 Do you have a UPS? I used to get similar levels of failure, and not just
 drives,then I bought a UPS and things got much better. It seems the mains
 supply here is not as stable as it should be.
 I do not, and I can't say I was terribly thrilled with the performance
 with the last cheap UPS I bought.

 The price to do it right tends to be moderately high, so it hasn't
 been a priority.  Perhaps I should look into it again.

 Rich

 .



I have had two CyberPower UPS's and been happy with them.  Both still
work but had to put in a set of batteries in the older one.  Old one
runs my TV during those frequent blinks we get here and the new one runs
my puter.  I usually catch them on sale for a little over $100 here. I
want to get two more at some point.  One for my Mom's TV and one for my
sis-n-law's puter. 

Out of all the hard drives I have ever had, only one has failed.  The
smart software gave me enough warning to copy the stuff over.  Maybe me
having a UPS has helped on that.  No way to prove it either way tho. 

Dale

:-)  :-) 



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Rich Freeman wrote:
 On Wed, Jun 25, 2014 at 9:15 AM, Dale rdalek1...@gmail.com wrote:
 thegeezer wrote:
 On 06/25/2014 08:49 AM, Dale wrote:
 thegeezer wrote:
 this says there are 104 pending sectors i.e. bad blocks on the drive
 that have not been reallocatd yet
 Wonder why it hasn't?  Isn't it supposed to do that sort of thing itself?

 It can't relocate the sectors until it successfully reads them, or
 until something else writes over them.

 However, the last few drives I've had this happen to never really
 relocated things.  If I scrubbed the drives mdadm would overwrite the
 unreadable sectors, which should trigger a relocation, but then a day
 or two later the errors would show up again.  So, the drive firmware
 must be avoiding relocation or something.  Either that or there is a
 large region of the drive that is failing (which would make sense) and
 I was just playing whack-a-mole with the bad sectors.  In any case, if
 the drive is under warranty I've yet to have a complaint returning it
 with a copy of the smartctl output showing the failed test/etc.  With
 advance replacement I can keep the old drive until the new one
 arrives.

I'm going to bet this drive is out of warranty.  I'm pretty sure it is
over 2 years since I bought it. 

Once I replace that drive, I'll dd the thing and see what it does then. 
It'll either break it or give me a fresh start to play with and see how
long it lasts.


 I usually just run the test manually but I sort of had family stuff
 going on for the past year, almost a year anyway.  Sort of behind on
 things although I have been doing my normal updates.
 rc-update add smartd default

 I don't know that I even had to configure it - it is set to email
 root@localhost when there is a problem.  I also run mdadm to monitor
 raid.

 I don't think anybody makes a monitor for btrfs, though my boot is
 mirrored across all my btrfs drives using mdadm so a drive failure
 should be detected in any case.  I need to check up on that, though -
 I'd like an email if something goes wrong with btrfs storage.

I'm using lvm here.  I also don't have a mail server set up which is why
I run them manually.   I usually do it once a month or so but had some
family issues to pop up. 


 I ordered a drive.  It should be here tomorrow.  In the meantime, I
 shutdown and re-seated all the cables, power too. I got the test running
 again but results is a few hours off yet.  It did pass the short test
 tho.  I'm not sure that it means much.
 Short test generally doesn't do much - you need the long ones.  I'd be
 shocked if it passed with offline uncorrectable sectors.

 And do check on your warranty.  You can migrate all your data to the
 new drive, and then replace the old one as a backup disk.  Either use
 it with raid, or as an offline backup.  If you want to do raid you can
 set up mdadm with a degraded raid1 so that you can copy your data over
 from your old drive, and then when it is replaced you just partition
 the new one, add it to the raid, and watch it rebuild automatically.

 Rich



I figured the short test wouldn't say much.  I am backing up some of the
stuff tho.  I do have a 750GB drive that was empty.  It won't save it
all but it is a start.  Test should have been done by now but I guess
the copy process is slowing it down.  I'm getting this so far:

# 1  Extended offlineSelf-test routine in progress 70%
16387 - 

 dale twiddles his thumbs 

Thanks much.

Dale

:-)  :-) 



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Neil Bothwick
On Wed, 25 Jun 2014 10:54:51 -0500, Dale wrote:

 I'm using lvm here.  I also don't have a mail server set up which is why
 I run them manually. 

Install a simple forwarding MTA like ssmtp to have al mails from cron and
friends sent to your ISP mailbox.


-- 
Neil Bothwick

Beware! The end is... aaarrgh!


signature.asc
Description: PGP signature


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 11:30 AM,  cov...@ccs.covici.com wrote:

 Is it not  true that you cannot run raid on consumer drives because of
 timing errors?


Yes, it is not true.  :)

I've never had issues running RAID on consumer drives.

Sure, devices certified for RAID might spend less time trying to
recover data which is a bit more optimal, but only in the situation
where your drive is actually failing.  If my RAID blocks on read for
30 seconds once a year when a drive is about to die I can live with
that, assuming mdadm doesn't figure out it should give up sooner than
that.

Rich



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 11:54 AM, Dale rdalek1...@gmail.com wrote:
 I'm going to bet this drive is out of warranty.  I'm pretty sure it is
 over 2 years since I bought it.

 Once I replace that drive, I'll dd the thing and see what it does then.
 It'll either break it or give me a fresh start to play with and see how
 long it lasts.

Well, finding out for sure is a 30 second process, so up to you
whether it is worth the time.

smartctl will give you the serial/model number, and you punch that
into a website, and it will say whether it is under warranty or not.

If you plan to wipe the disk before return, print out the results of
smartctl -a first, since wiping will probably clear the pending
sectors.

But, it is your drive, so do whatever you want with it!  :)

Rich



Re: [gentoo-user] Re: firefox profile opens my web-page in https

2014-06-25 Thread Joseph

On 06/24/14 17:25, walt wrote:

On 06/24/2014 08:25 AM, Joseph wrote:

On 06/23/14 18:08, Mick wrote:

On Sunday 22 Jun 2014 22:52:40 Joseph wrote:

I run a server and have two firefox profiles.
I have ssl enabled.

When I open one profile I it opens my web-page in https instead of http
When I open another profile it open my webpage in http

Why is first profile forcing my opening my servers page in https mode?


Has one profile cached and different protocol+URL in the address bar, than the
other?

Does this persist if you clear the history of the profile?
--
Regards,
Mick


No, it makes no difference. I cleared history and cache.
It still tries to open my server page as https instead of http.


Different profiles can have different firefox add-ons enabled.  Might
be worth comparing the list of add-ons in each profile.

You can also run firefox -safe-mode to disable extensions and see if it
makes any difference.


I don't have any plug-in installed; so I'm puzzled by this behavior.

--
Joseph



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Mick
On Wednesday 25 Jun 2014 17:09:52 Neil Bothwick wrote:
 On Wed, 25 Jun 2014 10:54:51 -0500, Dale wrote:
  I'm using lvm here.  I also don't have a mail server set up which is why
  I run them manually.
 
 Install a simple forwarding MTA like ssmtp to have al mails from cron and
 friends sent to your ISP mailbox.

... and when you find out please tell us:

1) What syntax is appropriate to allow the use of mail account passwds which 
contain not just alphanumeric characters but also symbols like [~@#$] ?

2) How can you force it to NOT use RC4 cipher when it logs into Google Mail to 
relay messages, but the more secure ECDHE-RSA-AES128-GCM-SHA256 that the 
server proposes ?

-- 
Regards,
Mick


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


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Volker Armin Hemmann
Am 25.06.2014 09:49, schrieb Dale:
 thegeezer wrote:
 this is pretty bad. enough to really go and get a replacement asap,
 and turn that disk off if you can. the self test stops at the first
 error it comes to and in this case it is LBA#2905482560 for
 calculation of where the error is check out the smartcl [1] site which
 will help you to mark the block bad though the data that was in that
 block is probably lost forever. i'd also suggest you run # smartctl -a
 /dev/sdc and paste the results here. the crucial rows are 196/197 the
 reallocated sector counts and pending sector counts. they show how
 many blocks have been reallocated, and also how many are pending. this
 will give you a scaling factor, at the moment you are in trouble, if
 these figures are very high you are in very high trouble, if they are
 low you are in low trouble. [1]
 http://smartmontools.sourceforge.net/badblockhowto.html 
 Here is the output:

 root@fireball / # smartctl -a /dev/sdc
 smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local build)
 Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

 === START OF INFORMATION SECTION ===
 Model Family: Seagate Barracuda 7200.14 (AF)
 Device Model: ST3000DM001-9YN166
 Serial Number:Z1F0PKT5
 LU WWN Device Id: 5 000c50 04d79e15c
 Firmware Version: CC4C
 User Capacity:3,000,592,982,016 bytes [3.00 TB]
 Sector Sizes: 512 bytes logical, 4096 bytes physical
 Rotation Rate:7200 rpm
 Device is:In smartctl database [for details use: -P show]
 ATA Version is:   ATA8-ACS T13/1699-D revision 4
 SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
 Local Time is:Wed Jun 25 02:46:39 2014 CDT

 == WARNING: A firmware update for this drive is available,
 see the following Seagate web pages:
 http://knowledge.seagate.com/articles/en_US/FAQ/207931en
 http://knowledge.seagate.com/articles/en_US/FAQ/223651en

 SMART support is: Available - device has SMART capability.
 SMART support is: Enabled

 === START OF READ SMART DATA SECTION ===
 SMART overall-health self-assessment test result: PASSED

 General SMART Values:
 Offline data collection status:  (0x00) Offline data collection activity
 was never started.
 Auto Offline Data Collection:
 Disabled.
 Self-test execution status:  ( 118) The previous self-test completed
 having
 the read element of the test failed.
 Total time to complete Offline
 data collection:(  584) seconds.
 Offline data collection
 capabilities:(0x73) SMART execute Offline immediate.
 Auto Offline data collection
 on/off support.
 Suspend Offline collection upon new
 command.
 No Offline surface scan supported.
 Self-test supported.
 Conveyance Self-test supported.
 Selective Self-test supported.
 SMART capabilities:(0x0003) Saves SMART data before entering
 power-saving mode.
 Supports SMART auto save timer.
 Error logging capability:(0x01) Error logging supported.
 General Purpose Logging supported.
 Short self-test routine
 recommended polling time:(   1) minutes.
 Extended self-test routine
 recommended polling time:( 340) minutes.
 Conveyance self-test routine
 recommended polling time:(   2) minutes.
 SCT capabilities:  (0x3085) SCT Status supported.

 SMART Attributes Data Structure revision number: 10
 Vendor Specific SMART Attributes with Thresholds:
 ID# ATTRIBUTE_NAME  FLAG VALUE WORST THRESH TYPE 
 UPDATED  WHEN_FAILED RAW_VALUE
   1 Raw_Read_Error_Rate 0x000f   119   099   006Pre-fail 
 Always   -   234421760
   3 Spin_Up_Time0x0003   092   092   000Pre-fail 
 Always   -   0
   4 Start_Stop_Count0x0032   100   100   020Old_age  
 Always   -   33
   5 Reallocated_Sector_Ct   0x0033   100   100   036Pre-fail 
 Always   -   0
   7 Seek_Error_Rate 0x000f   079   060   030Pre-fail 
 Always   -   99909120
   9 Power_On_Hours  0x0032   082   082   000Old_age  
 Always   -   16379
  10 Spin_Retry_Count0x0013   100   100   097Pre-fail 
 Always   -   0
  12 Power_Cycle_Count   0x0032   100   100   020Old_age  
 Always   -   34
 183 Runtime_Bad_Block   0x0032   100   100   000Old_age  
 Always   -   0
 184 End-to-End_Error0x0032   100   100   099Old_age  
 Always   -   0
 187 Reported_Uncorrect  0x0032 

Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 12:55 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:

 so without looking that drive up - you are using a desktop part for
 non-stop setup?

Honestly, I think it makes far more sense to build a fault-tolerant
setup than to try to avoid faults by spending more on the parts.  I've
only run desktop hard drives on my 24x7 RAID.  If they die I replace
them under warranty - I've yet to have one die outside of warranty,
and I'm usually upgrading for size by that timeframe anyway, and I can
use the old drives for storage.

By all means get better-grade components, but I wouldn't use that as
an excuse for not having backups of some kind.  ALL hard drives WILL
fail, it is just a matter of when.  ANY hard drive can fail the day
after you buy it, a month after you buy it, and so on, though
obviously the probability of a particular drive failing at any point
in time may vary by what you pay for it.

I'd buy a more expensive drive only if the TCO is actually lower.  I'd
engineer any system to accept the failure of at least one drive, and
for any data I actually cared about I'd engineer the system to resist
fire, the rm star, and so on.

Rich



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Volker Armin Hemmann
Am 25.06.2014 19:06, schrieb Rich Freeman:
 On Wed, Jun 25, 2014 at 12:55 PM, Volker Armin Hemmann
 volkerar...@googlemail.com wrote:
 so without looking that drive up - you are using a desktop part for
 non-stop setup?
 Honestly, I think it makes far more sense to build a fault-tolerant
 setup than to try to avoid faults by spending more on the parts.  I've
 only run desktop hard drives on my 24x7 RAID.  If they die I replace
 them under warranty
so you are ripping of other customers?

  - I've yet to have one die outside of warranty,
 and I'm usually upgrading for size by that timeframe anyway, and I can
 use the old drives for storage.

 By all means get better-grade components, but I wouldn't use that as
 an excuse for not having backups of some kind.

there is no excuse for not having backups.


   ALL hard drives WILL
 fail, it is just a matter of when. 
indeed.

  ANY hard drive can fail the day
 after you buy it, a month after you buy it, and so on, though
 obviously the probability of a particular drive failing at any point
 in time may vary by what you pay for it.

or if it was meant to be used the way you use it.




Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Neil Bothwick
On Wed, 25 Jun 2014 17:44:48 +0100, Mick wrote:

  Install a simple forwarding MTA like ssmtp to have all mails from cron
  and friends sent to your ISP mailbox.  
 
 ... and when you find out please tell us:
 
 1) What syntax is appropriate to allow the use of mail account passwds
 which contain not just alphanumeric characters but also symbols like
 [~@#$] ?
 
 2) How can you force it to NOT use RC4 cipher when it logs into Google
 Mail to relay messages, but the more secure ECDHE-RSA-AES128-GCM-SHA256
 that the server proposes ?

It's debatable whether either of those scenarios fall within the
definition of simple. If something that simple won't do what you want,
and there are several to try: ssmtp, esmtp, nullmailer etc, then you may
need to use the likes of Postfix - but for Dale's situation, a lightweight
forwarder is better than not being able to monitor his system.


-- 
Neil Bothwick

I thought the 10 commandments were multiple choice.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: firefox profile opens my web-page in https

2014-06-25 Thread Mick
On Wednesday 25 Jun 2014 17:42:01 Joseph wrote:
 On 06/24/14 17:25, walt wrote:
 On 06/24/2014 08:25 AM, Joseph wrote:
  On 06/23/14 18:08, Mick wrote:
  On Sunday 22 Jun 2014 22:52:40 Joseph wrote:
  I run a server and have two firefox profiles.
  I have ssl enabled.
  
  When I open one profile I it opens my web-page in https instead of
  http When I open another profile it open my webpage in http
  
  Why is first profile forcing my opening my servers page in https mode?
  
  Has one profile cached and different protocol+URL in the address bar,
  than the other?
  
  Does this persist if you clear the history of the profile?
  --
  Regards,
  Mick
  
  No, it makes no difference. I cleared history and cache.
  It still tries to open my server page as https instead of http.
 
 Different profiles can have different firefox add-ons enabled.  Might
 be worth comparing the list of add-ons in each profile.
 
 You can also run firefox -safe-mode to disable extensions and see if it
 makes any difference.
 
 I don't have any plug-in installed; so I'm puzzled by this behavior.


Do your settings for session-cookies differ between the two profiles?

Otherwise I'm running out of ideas. 

-- 
Regards,
Mick


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


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 1:15 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 Am 25.06.2014 19:06, schrieb Rich Freeman:
 Honestly, I think it makes far more sense to build a fault-tolerant
 setup than to try to avoid faults by spending more on the parts.  I've
 only run desktop hard drives on my 24x7 RAID.  If they die I replace
 them under warranty
 so you are ripping of other customers?


I certainly am not aware of any warranty terms I'm violating.  I just
spot checked a drive warranty and it makes no mention of excluding
continuous use, and the drive specifications do not contain any
exclusions for continuous use.

The SMART data in the drives I've returned contains both the number of
power cycles and power-on time, and I've yet to have a manufacturer
question either.

To exclude continuous operation their warranty would have to specify
just how many hours per day their drives can be operated for.


  ANY hard drive can fail the day
 after you buy it, a month after you buy it, and so on, though
 obviously the probability of a particular drive failing at any point
 in time may vary by what you pay for it.

 or if it was meant to be used the way you use it.

Like I said, I'm certainly interested in any actual data that supports
that drives sold to run 24x7 last any longer than desktop drives when
run 24x7.

Rich



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Alan McKinnon
On 25/06/2014 17:30, cov...@ccs.covici.com wrote:
 Rich Freeman ri...@gentoo.org wrote:
 
 On Wed, Jun 25, 2014 at 6:55 AM, thegeezer thegee...@thegeezer.net wrote:
 On 06/25/2014 11:05 AM, Dale wrote:


 I got a drive picked out at Newegg.  

 http://www.newegg.com/Product/Product.aspx?Item=N82E16822148844


 slightly offtopic - i notice that the drive has a 2year limited warranty

 has anyone managed to get anything from hard drive warranties ?

 Yes.  Most manufacturers have a hard drive warranty tool online.  Just
 give it your serial number and it will tell you if you're eligible,
 and how to go about it.  I know Seagate wants you to run their own
 testing util (which just does a SMART test and spits out a validation
 code which you write down).

 I've gotten the same sorts of errors several times now on my RAID and
 when it happens I just go through the warranty process, select advance
 replacement, swap out the drive, then return the old drive in their
 packaging.

 Typically costs me $10 for HD replacement (I have to pay return shipping 
 only).

 Typically drives tend to die for me about a year after I buy them -
 alarmingly often, actually.  Anybody who doesn't run smartmon or its
 equivalent is insane, as is anybody who doesn't at least run RAID,
 though anything valuable should be backed up.
 
 Is it not  true that you cannot run raid on consumer drives because of
 timing errors?
 
 


That sounds like something EMC and WD/Seagate would say.

There's no reason in the world not to use consumer drives for RAID -
unless you plan to add the drives to those obscenely expensive full-rack
SAN jobs vendors want folk to buy.

The reason consumer drives tend not to work in those arrays has nothing
to do with the performance of the drive itself. The manufacturers flip a
bit in the firmware and without that signature the array hardware often
will not use the drive. It often really is as simple as that.





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




[gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread James
Stefan G. Weichinger lists at xunil.at writes:


 When I ssh into a server in my basement, this takes way more time than
 usual.
 Does anyone have an idea what I could do to fix that?


ssh has an ordered array of negotiations between systems that are related
to the version numbers of ssh and the other configurations. There is
usually a mismatch, when it takes too long to start a session,
in my experience.

I did not look at the specifics you posted.

hth,
James





Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Stefan G. Weichinger
Am 25.06.2014 20:30, schrieb James:
 Stefan G. Weichinger lists at xunil.at writes:
 
 
 When I ssh into a server in my basement, this takes way more time than
 usual.
 Does anyone have an idea what I could do to fix that?
 
 
 ssh has an ordered array of negotiations between systems that are related
 to the version numbers of ssh and the other configurations. There is
 usually a mismatch, when it takes too long to start a session,
 in my experience.
 
 I did not look at the specifics you posted.

both servers/machines run net-misc/openssh-6.6.1_p1 ... re-compiled
right today.



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Douglas J Hunley
On Wed, Jun 25, 2014 at 7:03 AM, Rich Freeman ri...@gentoo.org wrote:

 I don't think anybody makes a monitor for btrfs, though my boot is
 mirrored across all my btrfs drives using mdadm so a drive failure
 should be detected in any case.  I need to check up on that, though -
 I'd like an email if something goes wrong with btrfs storage.


You're going to want to cron a 'scrub' and have it email you. There's no
background daemon that I'm aware of to handle this. ZFS just introduced
'zed' and it would be nice if BTRFS would do the same


-- 
Douglas J Hunley (doug.hun...@gmail.com)
Twitter: @hunleyd   Web:
about.me/douglas_hunley
G+: http://google.com/+DouglasHunley


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 2:44 PM, Douglas J Hunley doug.hun...@gmail.com wrote:

 You're going to want to cron a 'scrub' and have it email you. There's no
 background daemon that I'm aware of to handle this. ZFS just introduced
 'zed' and it would be nice if BTRFS would do the same

Actually, I think that for serious failures smartd will take care of it.

I was reading the btrfs list archives and apparently btrfs doesn't
make as much as a whisper when a drive fails.  It just keeps on going.

Now, the keeps on going part I'm fine with, but you'd think that
operating in a degraded mode would trigger some kind of message.

Granted, it isn't 100% done yet, either.  In fact, if your replace the
failed drive you have to manually force a re-balance or it will just
continue to operate degraded.

Rich



Re: [gentoo-user] Re: firefox profile opens my web-page in https

2014-06-25 Thread Joseph

On 06/25/14 18:30, Mick wrote:

On Wednesday 25 Jun 2014 17:42:01 Joseph wrote:

On 06/24/14 17:25, walt wrote:
On 06/24/2014 08:25 AM, Joseph wrote:
 On 06/23/14 18:08, Mick wrote:
 On Sunday 22 Jun 2014 22:52:40 Joseph wrote:
 I run a server and have two firefox profiles.
 I have ssl enabled.

 When I open one profile I it opens my web-page in https instead of
 http When I open another profile it open my webpage in http

 Why is first profile forcing my opening my servers page in https mode?

 Has one profile cached and different protocol+URL in the address bar,
 than the other?

 Does this persist if you clear the history of the profile?
 --
 Regards,
 Mick

 No, it makes no difference. I cleared history and cache.
 It still tries to open my server page as https instead of http.

Different profiles can have different firefox add-ons enabled.  Might
be worth comparing the list of add-ons in each profile.

You can also run firefox -safe-mode to disable extensions and see if it
makes any difference.

I don't have any plug-in installed; so I'm puzzled by this behavior.



Do your settings for session-cookies differ between the two profiles?

Otherwise I'm running out of ideas.

--
Regards,
Mick


Cookies are the same on both profiles allow for session 
I'm running out of ideas as well.


--
Joseph



Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Alan McKinnon
On 25/06/2014 20:41, Stefan G. Weichinger wrote:
 Am 25.06.2014 20:30, schrieb James:
 Stefan G. Weichinger lists at xunil.at writes:


 When I ssh into a server in my basement, this takes way more time than
 usual.
 Does anyone have an idea what I could do to fix that?


 ssh has an ordered array of negotiations between systems that are related
 to the version numbers of ssh and the other configurations. There is
 usually a mismatch, when it takes too long to start a session,
 in my experience.

 I did not look at the specifics you posted.
 
 both servers/machines run net-misc/openssh-6.6.1_p1 ... re-compiled
 right today.

I've also noticed slowdowns recently, I think it's the new ciphers likes
ecdsa. Try this:

Connect using ssh -vvv and examine the output to find which of the
various ciphers and algorithms are used once connection is achieved. On
the client, add those configuration options for the server to
ssh_config. You should notice a speed up on the next attempt as unused
methods will be skipped

man 5 ssh_config

has all the details



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




Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Stefan G. Weichinger
Am 25.06.2014 21:49, schrieb Alan McKinnon:

 I've also noticed slowdowns recently, I think it's the new ciphers likes
 ecdsa. Try this:
 
 Connect using ssh -vvv and examine the output to find which of the
 various ciphers and algorithms are used once connection is achieved. On
 the client, add those configuration options for the server to
 ssh_config. You should notice a speed up on the next attempt as unused
 methods will be skipped
 
 man 5 ssh_config
 
 has all the details

;-)

thanks, Alan.

Did you already find out what options to set?

Aside from that, I wonder why we as users have to do that and why it
isn't set up as good as possible by the coders of openssh.

I will see if I can figure out what to do ...

Stefan




Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Volker Armin Hemmann wrote:
 so without looking that drive up - you are using a desktop part for
 non-stop setup? 

If I recall correctly, the last drive that died was a more expensive
type of drive, intended for a server setup.  So far, the cheaper
drives are the ones that have lasted until I outgrew them.  So far, I
have yet to ever have a drive die under warranty.  So far.  I need to
check on this one but will do that after I get things changed out. 

Dale

:-)  :-) 



Re: [gentoo-user] Re: firefox profile opens my web-page in https

2014-06-25 Thread Mick
On Wednesday 25 Jun 2014 19:54:51 Joseph wrote:
 On 06/25/14 18:30, Mick wrote:
 On Wednesday 25 Jun 2014 17:42:01 Joseph wrote:
  On 06/24/14 17:25, walt wrote:
  On 06/24/2014 08:25 AM, Joseph wrote:
   On 06/23/14 18:08, Mick wrote:
   On Sunday 22 Jun 2014 22:52:40 Joseph wrote:
   I run a server and have two firefox profiles.
   I have ssl enabled.
   
   When I open one profile I it opens my web-page in https instead
   of http When I open another profile it open my webpage in http
   
   Why is first profile forcing my opening my servers page in https
   mode?
   
   Has one profile cached and different protocol+URL in the address
   bar, than the other?
   
   Does this persist if you clear the history of the profile?
   --
   Regards,
   Mick
   
   No, it makes no difference. I cleared history and cache.
   It still tries to open my server page as https instead of http.
  
  Different profiles can have different firefox add-ons enabled.  Might
  be worth comparing the list of add-ons in each profile.
  
  You can also run firefox -safe-mode to disable extensions and see if it
  makes any difference.
  
  I don't have any plug-in installed; so I'm puzzled by this behavior.
 
 Do your settings for session-cookies differ between the two profiles?
 
 Otherwise I'm running out of ideas.
 
 Cookies are the same on both profiles allow for session
 I'm running out of ideas as well.

Logically, the server gets a 'GET / HTTP/1.1' request from the client and 
responds to it in the same way, irrespective of the client.  If you are 
running some clever authentication and javascript/php on the server, then the 
request could be tested for the browser capabilities and serve different page 
content accordingly.

Do you see a difference in the initial exchange of:

GET / HTTP/1.1  --

HTTP/1.1 200 OK  --

when you use 'tcpflow -c -i eth0' between the two profiles?

Note if the browser starts an TLS negotiation then all the content will be 
encrypted.  Otherwise you should be able to see what attributes it sends to 
the server, e.g.

Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

and what the server responds in each case.

-- 
Regards,
Mick


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


Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread J. Roeleveld
On Wednesday, June 25, 2014 01:44:23 PM Rich Freeman wrote:
 On Wed, Jun 25, 2014 at 1:15 PM, Volker Armin Hemmann
   ANY hard drive can fail the day
  
  after you buy it, a month after you buy it, and so on, though
  obviously the probability of a particular drive failing at any point
  in time may vary by what you pay for it.
  
  or if it was meant to be used the way you use it.
 
 Like I said, I'm certainly interested in any actual data that supports
 that drives sold to run 24x7 last any longer than desktop drives when
 run 24x7.

Not hard data, but while still using desktop drives, I had a drive failure on 
average once or twice a year. Now with enterprise 24x7 drives, the failure 
rate has dropped to 1 in the past 3 years.

That is, for both, using proper UPS equipment.
Additionally, I noticed a definite speed increase after switching to 
enterprise disks.

--
Joost



Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Alan McKinnon
On 25/06/2014 23:10, Stefan G. Weichinger wrote:
 Am 25.06.2014 21:49, schrieb Alan McKinnon:
 
 I've also noticed slowdowns recently, I think it's the new ciphers likes
 ecdsa. Try this:

 Connect using ssh -vvv and examine the output to find which of the
 various ciphers and algorithms are used once connection is achieved. On
 the client, add those configuration options for the server to
 ssh_config. You should notice a speed up on the next attempt as unused
 methods will be skipped

 man 5 ssh_config

 has all the details
 
 ;-)
 
 thanks, Alan.
 
 Did you already find out what options to set?

No, only you can do that. You have to run ssh -vvv and eyeball the
output, see what your machines are using. Then add those config settings
to ssh_config

 
 Aside from that, I wonder why we as users have to do that and why it
 isn't set up as good as possible by the coders of openssh.

Because the openssh developers have no idea what you set up and cannot
possibly know. The phrase as good as possible has no meaning here as
the options out there in the wild as whatever they happen to be.


 I will see if I can figure out what to do ...

ssh -vvv

then look




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




Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Stefan G. Weichinger
Am 25.06.2014 23:10, schrieb Stefan G. Weichinger:

 I will see if I can figure out what to do ...

To me it looks as if my issue is related to this line in the logs:

Jun 25 23:30:45 mythtv sshd[5387]: pam_systemd(sshd:session): Failed to
create session: Connection timed out

hmm ...



Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Stefan G. Weichinger
Am 25.06.2014 23:31, schrieb Alan McKinnon:

 Because the openssh developers have no idea what you set up and cannot
 possibly know. The phrase as good as possible has no meaning here as
 the options out there in the wild as whatever they happen to be.

Having users installing their software with the default config isn't
that wild or unpredictable for them, I assume.

anyway

Stefan




Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Stefan G. Weichinger
Am 25.06.2014 23:31, schrieb Stefan G. Weichinger:
 Am 25.06.2014 23:10, schrieb Stefan G. Weichinger:
 
 I will see if I can figure out what to do ...
 
 To me it looks as if my issue is related to this line in the logs:
 
 Jun 25 23:30:45 mythtv sshd[5387]: pam_systemd(sshd:session): Failed to
 create session: Connection timed out
 
 hmm ...
 
yes.

edited /etc/pam.d/system-auth and commented this line (to be disabled):

#-sessionoptionalpam_systemd.so

Immediate logins now.

Other people on the web face(d) that as well, according to google.

S



Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Mick
On Wednesday 25 Jun 2014 22:10:42 Stefan G. Weichinger wrote:
 Am 25.06.2014 21:49, schrieb Alan McKinnon:
  I've also noticed slowdowns recently, I think it's the new ciphers likes
  ecdsa. Try this:
  
  Connect using ssh -vvv and examine the output to find which of the
  various ciphers and algorithms are used once connection is achieved. On
  the client, add those configuration options for the server to
  ssh_config. You should notice a speed up on the next attempt as unused
  methods will be skipped
  
  man 5 ssh_config
  
  has all the details
 
 ;-)
 
 thanks, Alan.
 
 Did you already find out what options to set?
 
 Aside from that, I wonder why we as users have to do that and why it
 isn't set up as good as possible by the coders of openssh.

Because the as good as possible datum is being redefined post Snowden.


 I will see if I can figure out what to do ...

The Better Crypto team suggest:

Ciphers chacha20-poly1...@openssh.com,aes256-...@openssh.com,aes128-
g...@openssh.com,aes256-ctr,aes128-ctr

MACs hmac-sha2-512-...@openssh.com,hmac-sha2-256-...@openssh.com,umac-128-
e...@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160

KexAlgorithms curve25519-sha...@libssh.org,diffie-hellman-group-exchange-
sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1

The above may be OTT for ssh connections between machines within a trusted 
LAN.  As has already been mentioned if you choose your favourite crypto and 
strip out all the rest, then the negotiation ought to be faster between modern 
PCs.

-- 
Regards,
Mick


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


Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread covici
James wirel...@tampabay.rr.com wrote:

 Stefan G. Weichinger lists at xunil.at writes:
 
 
  When I ssh into a server in my basement, this takes way more time than
  usual.
  Does anyone have an idea what I could do to fix that?
 
 
 ssh has an ordered array of negotiations between systems that are related
 to the version numbers of ssh and the other configurations. There is
 usually a mismatch, when it takes too long to start a session,
 in my experience.
 
 I did not look at the specifics you posted.


I had a problem like that and solved it by  changine UseDNS no
because it is trying to look for reverse dns pointers.  This is done on
the hosts /etc/ssh/sshd_config .


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Neil Bothwick wrote:
 On Wed, 25 Jun 2014 17:44:48 +0100, Mick wrote:

 Install a simple forwarding MTA like ssmtp to have all mails from cron
 and friends sent to your ISP mailbox.  
 ... and when you find out please tell us:

 1) What syntax is appropriate to allow the use of mail account passwds
 which contain not just alphanumeric characters but also symbols like
 [~@#$] ?

 2) How can you force it to NOT use RC4 cipher when it logs into Google
 Mail to relay messages, but the more secure ECDHE-RSA-AES128-GCM-SHA256
 that the server proposes ?
 It's debatable whether either of those scenarios fall within the
 definition of simple. If something that simple won't do what you want,
 and there are several to try: ssmtp, esmtp, nullmailer etc, then you may
 need to use the likes of Postfix - but for Dale's situation, a lightweight
 forwarder is better than not being able to monitor his system.




I have to say, I dread setting up a mail server about as bad as I dread
going to the Doctor.  It's just something I really don't want to add to
my system unless I have to.  It's sort of like the init thingy.  I don't
want to add something else that will eventually break and I'll have to
fix.  The mail system won't keep me from booting but it is just one more
thing to keep a eye on and make sure it is working.  So, making sure the
mail system is working will likely take up the same amount of time that
checking the drive manually every month or so will take.  The only good
part is, and this is the point you are making so well, even tho I had
other things going on, it would have been testing my drive and spit out
a error to get my attention.  Going back, the error has been there for a
while.  It would have been nice to know this before now.   Hindsight
again.  ;-)

What I really need to do, set up a RAID or some other backup method so
that even if this happens again, I don't risk losing anything.  Then
again, that will take time as well.  Also takes money.

From df -h:

Filesystem Size  Used Avail Use% Mounted on
/dev/mapper/home-home  2.7T  1.5T  1.3T  56% /home

Most of that is recorded TV shows, movies etc.  I also have some pics I
took with my camera that can't be replaced.  Those I backup to DVDs
pretty regular.  I use kbackup to tarball them and then burn them to
DVDs.  It works.  One set is outside the home in case of fire.  The
biggest thing is some of those shows would be hard to get again plus the
effort to get them as well.

Let's hope it lasts until at least tomorrow.  I bet it takes a while to
copy all that tho.  O_O

Thanks.

Dale

:-)  :-)




Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Stefan G. Weichinger
Am 25.06.2014 23:45, schrieb cov...@ccs.covici.com:

 I had a problem like that and solved it by  changine UseDNS no
 because it is trying to look for reverse dns pointers.  This is done on
 the hosts /etc/ssh/sshd_config .

Tried/tested a few hours ago. No change.

pam_systemd is (or seems to be) the reason, see my other posting.

Stefan




Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 6:16 PM, Dale rdalek1...@gmail.com wrote:
 What I really need to do, set up a RAID or some other backup method so
 that even if this happens again, I don't risk losing anything.  Then
 again, that will take time as well.  Also takes money.

Keep in mind that RAID is more about speed of recovery and protects
against the failure mode of total drive failure, which is a fairly
common failure mode.  A hard drive failure on a RAID involves no
unplanned downtime, and a need for some short planned downtime to
replace the drive.

Backup protects against a lot more, but typically results in a
recovery that takes hours, and when the drive goes you're down without
warning.


 Most of that is recorded TV shows, movies etc.  I also have some pics I
 took with my camera that can't be replaced.  Those I backup to DVDs
 pretty regular.  I use kbackup to tarball them and then burn them to
 DVDs.  It works.  One set is outside the home in case of fire.  The
 biggest thing is some of those shows would be hard to get again plus the
 effort to get them as well.

So, stuff like photos I backup to the cloud, or to offsite media
(generally I favor the cloud for active stuff, and offsite media for
stuff I'm done with).  Ditto for things like /etc, mysql, documents,
email, and other small but important things.

For stuff like MythTV recordings I used to just rely on RAID -
recognizing that there was a very real possibility that I could lose
them all.  Now I also do a backup to a drive that is normally left
unmounted, which isn't great, but since I moved to btrfs I wanted
something on ext4 that had daily rsnapshots.  Again, I'm willing to
risk losing this stuff.

Rich



Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread Stefan G. Weichinger
Am 26.06.2014 00:20, schrieb Stefan G. Weichinger:

 pam_systemd is (or seems to be) the reason, see my other posting.

maybe it would be also solved by upgrading to the (in terms of gentoo)
unstable version 214 of systemd:

# equery b pam_systemd.so

 * Searching for pam_systemd.so ...
sys-apps/systemd-212-r5 (/lib64/security/pam_systemd.so)

I will check tomorrow or so, late here.

Stefan




Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Neil Bothwick
On Wed, 25 Jun 2014 17:16:17 -0500, Dale wrote:

  Install a simple forwarding MTA like ssmtp to have all mails from
  cron and friends sent to your ISP mailbox.  

 I have to say, I dread setting up a mail server about as bad as I dread
 going to the Doctor.  It's just something I really don't want to add to
 my system unless I have to.

Which is why I suggesting something like ssmtp, which you can't call  a
server, it just forwards. Often the only configuration needed is changing
one line in ssmtp.conf, to the address of your ISP's mail server.

That's it, now any program can send mail using sendmail and it just goes
to your ISP mailbox.


-- 
Neil Bothwick

God said, div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,
and there was light.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: ssh rekeying slow ?

2014-06-25 Thread covici
Stefan G. Weichinger li...@xunil.at wrote:

 Am 25.06.2014 23:45, schrieb cov...@ccs.covici.com:
 
  I had a problem like that and solved it by  changine UseDNS no
  because it is trying to look for reverse dns pointers.  This is done on
  the hosts /etc/ssh/sshd_config .
 
 Tried/tested a few hours ago. No change.
 
 pam_systemd is (or seems to be) the reason, see my other posting.
hmmm, I don't even have that file, I guess I am glad.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Bill Kenworthy
On 26/06/14 06:16, Dale wrote:
 Neil Bothwick wrote:
 On Wed, 25 Jun 2014 17:44:48 +0100, Mick wrote:

 Install a simple forwarding MTA like ssmtp to have all mails from cron
 and friends sent to your ISP mailbox.  
 ... and when you find out please tell us:


 
 What I really need to do, set up a RAID or some other backup method so
 that even if this happens again, I don't risk losing anything.  Then
 again, that will take time as well.  Also takes money.
 

Repeat after me ... RAID IS NOT A BACKUP

There are many ways to do a backup - various raid forms, mirrors etc can
help in some (and only some) instances but only a spatially separated
copy of the data is relatively safe.

Have two computers? - cross backup between them. (keep an old machine as
a file server in the back room, start it up a couple of times a week and
run a backup script - can even be automated)

Have a friend/relative nearby? - take your PC over, create a backup and
then sync the differences across the net using rsync etc - most normal
people do fill up todays large disks, or have large personal valuable
data requirements.

You dont need to backup the whole machine, just the valuable bits
(configs, personal data, email archives, ...)

There are many ways to do it - if you only have one disk and no backups,
the data by definition is not valuable :)

Ive just been caught by an old 1G WD green drive failing (possibly the
MB's fault as the sata interface died as well - seen a few of those
now!) that took out the middle drive from a striped LVM.  Didnt bother
to recover, just built a new machine from leftover bits, bought another
drive and rebuilt it using btrfs raid 1 on the two orignal WD 2G green
drives and a new WD red, and restored from backups on another machine -
over the years this type of event has happened a few times - you only
need to get burnt once to learn!.

BillK




Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread David Haller
Hello,

On Wed, 25 Jun 2014, Dale wrote:
thegeezer wrote:
 On 06/25/2014 08:49 AM, Dale wrote:
 Device Model: ST3000DM001-9YN166

I have (had sort of) the same disc, with the same FW.

 see the following Seagate web pages:
 http://knowledge.seagate.com/articles/en_US/FAQ/207931en
 http://knowledge.seagate.com/articles/en_US/FAQ/223651en
 interesting - not seen that before might be worth a nose

I was thinking the same thing myself.  How does it know there is a
update was another question I had. 

Those FW-Updates do _NOT_ apply to FW-Version 9YN166. From what I
found, you'd brick the drive. The smartctl DB does not take the
FW-version into account, just the model, to display above notice.

   7 Seek_Error_Rate 0x000f   079   060   030Pre-fail 
 Always   -   99909120
   9 Power_On_Hours  0x0032   082   082   000Old_age  
 Always   -   16379
 almost two years of power on time

looks familiar

  4 Start_Stop_Count0x0032   100   100   020Old_age   Always
   915
  7 Seek_Error_Rate 0x000f   072   060   030Pre-fail  Always
   19309568
  9 Power_On_Hours  0x0032   088   088   000Old_age   Always
   11351

[..]
 197 Current_Pending_Sector  0x0012   100   100   000Old_age  
 Always   -   104
 197
 this says there are 104 pending sectors i.e. bad blocks on the drive
 that have not been reallocatd yet

Wonder why it hasn't?  Isn't it supposed to do that sort of thing itself? 

 198 Offline_Uncorrectable   0x0010   100   100   000Old_age  
 Offline  -   104
 this says it was not able to reallocate. which is odd because of the
 entry 5 being zero

Uh oh. 

Yeah. Oh, and I had a clean smart until a few days ago, luckily I
alread had a WD Red (WD40EFRX) drive waiting when this attrib jumped
from 0 to:

  5 Reallocated_Sector_Ct   0x0033   087   087   036Pre-fail  Always
   17688

Other Seagates (a few 1.5T drives) have also made me trouble, the 2T
Samsung already relabeled and sold as a Seagate but with Samsung in
the FW though is still ok.

[..]
I ordered a drive.  It should be here tomorrow.  In the meantime, I
shutdown and re-seated all the cables, power too. I got the test running
again but results is a few hours off yet.  It did pass the short test
tho.  I'm not sure that it means much. 

Good. Do not use dd, it WILL fail at the first error. Use gnu ddrescue
or dd_rescue to grab an image. I used mc to copy via filesystem, eg. 
'rsync -auxlPRAXSHD /foo/ /bar/' is fine too. Oh, and I hope you
didn't buy a Seagate again ;)

-dnh

-- 
The sigmonster ate my sig and all I got was this stupid tagline.



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Daniel Frey
On 06/25/2014 10:44 AM, Rich Freeman wrote:
 
 Like I said, I'm certainly interested in any actual data that supports
 that drives sold to run 24x7 last any longer than desktop drives when
 run 24x7.
 

Anecdotal, but...

In 2008 I bought four 24x7 drives (500GB) and eight regular drives to be
used in raid. Out of the eight regular drives, six failed before 4 years
was up.

All of the 24x7 drives are still in use (although I don't remember which
machine(s) they're in now), six years later.

All Seagate.

I initially did do warranty replacement on the failed drives (all drives
had 5 year warranty back then), and out of the six replacements, four
failed a little over three months in.

At that point I went and bought a real battery backed raid card
(computer still has a UPS) with WD enterprise drives and no hiccups of
any kind in about two years. And disk performance is way, way up.

Dan



Re: [gentoo-user] sys-power/upower with systemd

2014-06-25 Thread gottlieb
On Tue, Jun 24 2014, Marc Joliet wrote:

 Am Mon, 23 Jun 2014 20:39:13 -0400
 schrieb gottl...@nyu.edu:

 I think I had first misinterpreted the news msg, but want to be sure I
 do understand it correctly now.
 
 The message ends with
 
   All non-systemd users are recommended to choose between:
   # emerge --oneshot --noreplace 'sys-power/upower-pm-utils'
   or
   # emerge --oneshot --noreplace '=sys-power/upower-0.99.0'
   However, all systemd users are recommended to stay with sys-power/upower.
 
 I first read stay with sys-power/upower to mean systemd users should
 NOT do any of the two options for non-systemd users and let portage do
 its thing.  However, portage want to replace upower with
 upower-pm-utils, which I am pretty sure is not intended for systemd
 users.
 
 Is the proper reading of the news message, that the systemd users should
 use the second option available for non-systemd users?  Specifically am
 I to execute
 
 # emerge --oneshot --noreplace '=sys-power/upower-0.99.0'
 
 ?

 Um, personally, I think the message is extremely clear: non-systemd users
 should choose between the first two options, and systemd users should just
 stick with plain upower, regardless of version (although there is only one
 ATM, the older one is masked now).

I am embarrassed to say that I am still having trouble with this upower
business.
My profile is .../gnome/systemd and I have the
init=/usr/lib/systemd/systemd line GRUB_CMDLINE_LINUX so I am using
systemd.

right now I have sys-power/upower-0.9.23-r3 installed (the only version
below 0.99) and sys-power/upower-pm-utils NOT installed.

If I try to update world (see below), portage wants to install
sys-power/upower-pm-utils and uninstall sys-power/upower.

The output (below) suggests that gnome-shell requires this, but I read
the gnome-shell ebuild as permitting my current
sys-power/upower-0.9.23-r3 as an alternative.

If I try to
# emerge --oneshot --noreplace '=sys-power/upower-0.99.0'
I get a conflict since several gnome packages (e.g. gnome-shell)
explicitly want upower-0.99

Am I supposed to package-mask sys-power/upower-pm-utils?

The results shown are on a stable amd64 system (my previous msg
concerned another system that I am slowly converting from testing to
stable, but this msg only involves a fully stable system).

thanks in advance,
allan



allan ~ # emerge  --keep-going --update --changed-use @world

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

Calculating dependencies... done!

[ebuild U  ] x11-wm/sawfish-1.9.1-r2 [1.9.1-r1] USE=emacs%* nls -xinerama 
2,556 kB
[nomerge   ] gnome-base/gnome-3.10.0:2.0  USE=bluetooth cdr classic cups 
extras -accessibility 
[nomerge   ]  gnome-base/gnome-shell-3.10.4-r2  USE=bluetooth i18n 
networkmanager (-openrc-force) PYTHON_TARGETS=python2_7 
[nomerge   ]   sys-power/upower-pm-utils-0.9.23-r2  USE=introspection 
-ios 
[blocks b  ]sys-power/upower (sys-power/upower is blocking 
sys-power/upower-pm-utils-0.9.23-r2)
[uninstall ] sys-power/upower-0.9.23-r3  USE=introspection -doc -ios 
[ebuild  N ]   sys-power/upower-pm-utils-0.9.23-r2  USE=introspection 
-ios 0 kB



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Rich Freeman wrote:
 On Wed, Jun 25, 2014 at 6:16 PM, Dale rdalek1...@gmail.com wrote:
 What I really need to do, set up a RAID or some other backup method so
 that even if this happens again, I don't risk losing anything.  Then
 again, that will take time as well.  Also takes money.
 Keep in mind that RAID is more about speed of recovery and protects
 against the failure mode of total drive failure, which is a fairly
 common failure mode.  A hard drive failure on a RAID involves no
 unplanned downtime, and a need for some short planned downtime to
 replace the drive.

 Backup protects against a lot more, but typically results in a
 recovery that takes hours, and when the drive goes you're down without
 warning.

True.  My issue with RAID is that it is yet another thing I have to
maintain.  I started using lvm and so far, it has been low maintenance
and has made changing things MUCH easier when I do need to move things
around a bit.  It is a time saver to be more accurate.  RAID also leaves
me open to theft, house fire and such too.  At the moment, I think, like
you, having a external drive that I keep somewhere else is the safest
method.  Thing is, getting a drive big enough to do this. Buying this
drive put a dent in my debt.  That said, I really need to buy another
drive if this old one turns out to be bad and set up some sort of backup
plan.  If it turns out to be OK somehow, then I may have a solution,
maybe. 

While I don't want to lose anything, my camera pics is the most
important to keep.  That's why I rotate backups and keep one set outside
the house.  I would rather not lose my videos and could get most of them
back but it won't be easy for sure. 


 Most of that is recorded TV shows, movies etc.  I also have some pics I
 took with my camera that can't be replaced.  Those I backup to DVDs
 pretty regular.  I use kbackup to tarball them and then burn them to
 DVDs.  It works.  One set is outside the home in case of fire.  The
 biggest thing is some of those shows would be hard to get again plus the
 effort to get them as well.
 So, stuff like photos I backup to the cloud, or to offsite media
 (generally I favor the cloud for active stuff, and offsite media for
 stuff I'm done with).  Ditto for things like /etc, mysql, documents,
 email, and other small but important things.

 For stuff like MythTV recordings I used to just rely on RAID -
 recognizing that there was a very real possibility that I could lose
 them all.  Now I also do a backup to a drive that is normally left
 unmounted, which isn't great, but since I moved to btrfs I wanted
 something on ext4 that had daily rsnapshots.  Again, I'm willing to
 risk losing this stuff.

 Rich



I don't have anything on the cloud to backup too.  That would likely be
a good idea but I can't afford anything pricey, which is why I hadn't
bought a backup drive before now either.  Plus, something I'd prefer to
keep under my thumb.  Heck, some things here are encrypted, bank info
and such.  Also, while I have DSL, it ain't real speedy.  Backing up
that much data over my connection could take a while, like days, maybe
even a week or more. 

I really do need a plan that I can manage to put in place tho.  Murphy's
law and all.  :-D 

Dale

:-)  :-) 



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Rich Freeman wrote:
 On Wed, Jun 25, 2014 at 11:54 AM, Dale rdalek1...@gmail.com wrote:
 I'm going to bet this drive is out of warranty.  I'm pretty sure it is
 over 2 years since I bought it.

 Once I replace that drive, I'll dd the thing and see what it does then.
 It'll either break it or give me a fresh start to play with and see how
 long it lasts.
 Well, finding out for sure is a 30 second process, so up to you
 whether it is worth the time.

 smartctl will give you the serial/model number, and you punch that
 into a website, and it will say whether it is under warranty or not.

 If you plan to wipe the disk before return, print out the results of
 smartctl -a first, since wiping will probably clear the pending
 sectors.

 But, it is your drive, so do whatever you want with it!  :)

 Rich



I do plan to check and see if it is under warranty.  I'll do that after
I get things moved over and can test a bit more.  Who knows, it could be
Murphy and he will just leave at some point.  ;-)   I'm pretty sure this
drive is close to three years old tho.  Heck, I can go look at the
Newegg order history and find out.  I would think the manufacturer goes
by the date made where a invoice dated later would tend to slide that
out further. 

Either way, I'll find out.  If it is under warranty and can be swapped
out, that would solve a few issues.  I'll have one backup drive at
least.  ;-)

Dale

:-)  :-)



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Rich Freeman
On Wed, Jun 25, 2014 at 10:07 PM, Dale rdalek1...@gmail.com wrote:
 Rich Freeman wrote:
 I don't have anything on the cloud to backup too.  That would likely be
 a good idea but I can't afford anything pricey, which is why I hadn't
 bought a backup drive before now either.  Plus, something I'd prefer to
 keep under my thumb.  Heck, some things here are encrypted, bank info
 and such.  Also, while I have DSL, it ain't real speedy.  Backing up
 that much data over my connection could take a while, like days, maybe
 even a week or more.


I put my backups on Amazon S3 reduced-redundancy - it is a few cents
per GB per month.  I think I have something like 20-30GB backed up.
Oh, if you need to actually retrieve it that will cost you 10 cents
per GB, but frankly if my house burned down that would be the least of
my concerns.

I'd only use the cloud to back up critical data.  If you want to back
up your mythtv and mp3 collection, then you're going to be uploading a
LOT of data and paying quite a bit to store it.  If you want to be
storing TB of data offsite there are better ways of doing it.

The advantage of something like S3 is that it is always there, which
means you stick a duplicity script in your crontab and just
periodically check up on it.  You don't have to remember to do your
backups.  It just isn't practical to use it for more than a few dozen
GB depending on your incremental strategy.

I also have a 50Mbps outbound connection, which doesn't hurt.

Your next best option is to find a friend with similar needs and give
each other a place to upload your encrypted backups to.  That will
just cost you drive space, but if you're both planning on backing up
1TB of data it will still cost you the one-time drive purchase.

If you want a quick cloud-capable backup solution, I'd look at
duplicity.  I just wish it had options for Google Drive (it supposedly
does, but as far as I can tell it doesn't work, at least not with a
two factor application password).

Rich



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Neil Bothwick wrote:

 I have to say, I dread setting up a mail server about as bad as I dread
 going to the Doctor.  It's just something I really don't want to add to
 my system unless I have to.
 Which is why I suggesting something like ssmtp, which you can't call  a
 server, it just forwards. Often the only configuration needed is changing
 one line in ssmtp.conf, to the address of your ISP's mail server.

 That's it, now any program can send mail using sendmail and it just goes
 to your ISP mailbox.



I like this part:

Extremely simple MTA to get mail off the system to a Mailhub

  ^  That part right up there.  :-D  That may be a new thread, if
needed.

Dale

:-)  :-)




Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Bill Kenworthy wrote:
 On 26/06/14 06:16, Dale wrote:
 Neil Bothwick wrote:
 On Wed, 25 Jun 2014 17:44:48 +0100, Mick wrote:

 Install a simple forwarding MTA like ssmtp to have all mails from cron
 and friends sent to your ISP mailbox.  
 ... and when you find out please tell us:

 What I really need to do, set up a RAID or some other backup method so
 that even if this happens again, I don't risk losing anything.  Then
 again, that will take time as well.  Also takes money.

 Repeat after me ... RAID IS NOT A BACKUP

I agree with that.  Power supply goes nuts and burns out the whole
puter.  RAID won't help that.  House catches fire, ooops.  Thief steals
puter,  uh oh.  That list could go on for a while.  About the only thing
it does is allow quick recovery from a failing/dead drive.  Basically. 
It's good at that from what I have read. 


 There are many ways to do a backup - various raid forms, mirrors etc can
 help in some (and only some) instances but only a spatially separated
 copy of the data is relatively safe.

 Have two computers? - cross backup between them. (keep an old machine as
 a file server in the back room, start it up a couple of times a week and
 run a backup script - can even be automated)

I do have a old puter at the moment.  I thought about sticking it in a
outbuilding and just turning it on to do backups then shutting it back
down.  That puts distance between house and outbuilding too.  Thing is,
I plan to let a family member use it when I can get around to getting a
new case for it.  I guess I could use any old slow junky puter with a
LARGE drive in it. 



 Have a friend/relative nearby? - take your PC over, create a backup and
 then sync the differences across the net using rsync etc - most normal
 people do fill up todays large disks, or have large personal valuable
 data requirements.

 You dont need to backup the whole machine, just the valuable bits
 (configs, personal data, email archives, ...)

 There are many ways to do it - if you only have one disk and no backups,
 the data by definition is not valuable :)

 Ive just been caught by an old 1G WD green drive failing (possibly the
 MB's fault as the sata interface died as well - seen a few of those
 now!) that took out the middle drive from a striped LVM.  Didnt bother
 to recover, just built a new machine from leftover bits, bought another
 drive and rebuilt it using btrfs raid 1 on the two orignal WD 2G green
 drives and a new WD red, and restored from backups on another machine -
 over the years this type of event has happened a few times - you only
 need to get burnt once to learn!.

 BillK


I do backup what I know can't be replaced at all.  My camera pics can't
be replaced since they are not anywhere else.  Some other things here
that are nowhere else I can live without, just would rather not if I can
help it. 

I never backup the OS.  I just reinstall it if needed.  Generally, I try
to keep a copy of /etc and the world file.  I'll copy /etc over and use
the world file as a guide on what to install on the new install.  Heck,
I can install Kubuntu in a hour or less.  Then I can install Gentoo from
that while doing my usual puter activities. 

I had a WD 80GB drive to fail several years ago.  That's the only drive
I have ever had to fail on me tho.  It spit out errors and I was able to
do backups and save the data before it died for good.  I can't recall
the exact error but it mentioned '24 hours' and 'right now'.  It didn't
miss it by much either. 

Just imagine if we had no tools to warn us of a failure at all.  That
would suck.

Dale

:-)  :-) 



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
David Haller wrote:
 Hello,

 On Wed, 25 Jun 2014, Dale wrote:
 Yeah. Oh, and I had a clean smart until a few days ago, luckily I
 alread had a WD Red (WD40EFRX) drive waiting when this attrib jumped
 from 0 to: 5 Reallocated_Sector_Ct 0x0033 087 087 036 Pre-fail Always
 17688 Other Seagates (a few 1.5T drives) have also made me trouble,
 the 2T Samsung already relabeled and sold as a Seagate but with
 Samsung in the FW though is still ok. [..] 

I was wondering about how that would be updated since a lot of that
stuff requires windoze. 


 I ordered a drive.  It should be here tomorrow.  In the meantime, I
 shutdown and re-seated all the cables, power too. I got the test running
 again but results is a few hours off yet.  It did pass the short test
 tho.  I'm not sure that it means much. 
 Good. Do not use dd, it WILL fail at the first error. Use gnu ddrescue
 or dd_rescue to grab an image. I used mc to copy via filesystem, eg. 
 'rsync -auxlPRAXSHD /foo/ /bar/' is fine too. Oh, and I hope you
 didn't buy a Seagate again ;)

 -dnh


I plan to rsync or cp the data over.  The dd part will come into play
after I am sure I got everything off that I can get and am just erasing
the drive completely.  I plan to dd the drive then run the tests again
just to see what it is doing.  Heck, maybe it will reallocate that area
like it should be doing already, I guess. 

Time will tell.  I'll be having fun tomorrow tho.  ;-)

Dale

:-)  :-) 



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
J. Roeleveld wrote:
 On Wednesday, June 25, 2014 01:44:23 PM Rich Freeman wrote:
 On Wed, Jun 25, 2014 at 1:15 PM, Volker Armin Hemmann
  ANY hard drive can fail the day

 after you buy it, a month after you buy it, and so on, though
 obviously the probability of a particular drive failing at any point
 in time may vary by what you pay for it.
 or if it was meant to be used the way you use it.
 Like I said, I'm certainly interested in any actual data that supports
 that drives sold to run 24x7 last any longer than desktop drives when
 run 24x7.
 Not hard data, but while still using desktop drives, I had a drive failure on 
 average once or twice a year. Now with enterprise 24x7 drives, the failure 
 rate has dropped to 1 in the past 3 years.

 That is, for both, using proper UPS equipment.
 Additionally, I noticed a definite speed increase after switching to 
 enterprise disks.

 --
 Joost



I have one WD black which I think is a more expensive drive.  I have to
say, when I run hdparm -tT on it, it is faster than the other regular
drives that claim the same specs, SATA etc etc.  They do cost more tho. 
Some a good bit more unless you can catch a good sale.  

While I was looking for this new drive, I looked into a 4TB drive.  I am
still trying to get my jaw back up off the floor.  Holy sheep.  They are
still fairly proud of some of those puppies.  I did notice they have a 5
and 6TB one now.  O_O  Double holy sheep.  I think I lost my jaw now. 
Good bye nose, hello China.  :-( 

Well, one of these days we will be talking about getting 6TB drives for
$50 and how much we want a 20TB drive, to put all our worthless junk
on.  lol   Oh, we will still complain about how they die to soon too. 
We may even have CPUs that run at light speed with many dozens of cores,
but still to dang slow.  ;-)  Pass the rice please. 

Dale

:-)  :-) 



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Daniel Frey wrote:
 On 06/25/2014 10:44 AM, Rich Freeman wrote:
 Like I said, I'm certainly interested in any actual data that supports
 that drives sold to run 24x7 last any longer than desktop drives when
 run 24x7.

 Anecdotal, but...

 In 2008 I bought four 24x7 drives (500GB) and eight regular drives to be
 used in raid. Out of the eight regular drives, six failed before 4 years
 was up.

 All of the 24x7 drives are still in use (although I don't remember which
 machine(s) they're in now), six years later.

 All Seagate.

 I initially did do warranty replacement on the failed drives (all drives
 had 5 year warranty back then), and out of the six replacements, four
 failed a little over three months in.

 At that point I went and bought a real battery backed raid card
 (computer still has a UPS) with WD enterprise drives and no hiccups of
 any kind in about two years. And disk performance is way, way up.

 Dan



Curious.  I hope I don't start a flame war here.  I have had WD, Seagate
and I think there is a Samsung here somewhere, may be the one that is
rolling over on its back now.  The one drive that failed a few years ago
was a WD drive.  That said, all the other WD drives I have had just got
to small to really use, and slow when SATA came out.  I'm partial to WD
and Seagate still since I got good long term use out of those.  Based on
your experience, you tend to be of the same opinion? 

Allan, your situation should involve a lot of hard drives.  Any
thoughts?  Neil, you have a nice big opinion on this? 

I realize that any brand of drive will break eventually.  That's one
reason I don't hold the one failure I have had against WD.  I got a lot
of use out of that drive and it did let me know it was going to die,
like real soon.  I'm going to duck now.  :/

Dale

:-)  :-) 



Re: [gentoo-user] ssh rekeying slow ?

2014-06-25 Thread Dale
Stefan G. Weichinger wrote:
 When I ssh into a server in my basement, this takes way more time than
 usual.

 I don't have a clue what might have changed ... aside from usual
 updating. I rebuilt and restarted openssh down there without a change.

 This is a bit annoying when logging in and using git to pull/push stuff
 from/to there.

 Does anyone have an idea what I could do to fix that?

 Stefan


I ran into a issue like this once a long time ago.  I had something
wrong with my hosts file if I recall correctly.  It never did make sense
as to how it messed things up but after fixing that, it worked fine. 
So, I'd look at the hosts file and see if anything is amiss there.  I'm
pretty sure that is the file that was messed up tho. 

Hope that helps. 

Dale

:-)  :-) 



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Dale
Rich Freeman wrote:
 On Wed, Jun 25, 2014 at 10:07 PM, Dale rdalek1...@gmail.com wrote:
 Rich Freeman wrote:
 I don't have anything on the cloud to backup too.  That would likely be
 a good idea but I can't afford anything pricey, which is why I hadn't
 bought a backup drive before now either.  Plus, something I'd prefer to
 keep under my thumb.  Heck, some things here are encrypted, bank info
 and such.  Also, while I have DSL, it ain't real speedy.  Backing up
 that much data over my connection could take a while, like days, maybe
 even a week or more.

 I put my backups on Amazon S3 reduced-redundancy - it is a few cents
 per GB per month.  I think I have something like 20-30GB backed up.
 Oh, if you need to actually retrieve it that will cost you 10 cents
 per GB, but frankly if my house burned down that would be the least of
 my concerns.

 I'd only use the cloud to back up critical data.  If you want to back
 up your mythtv and mp3 collection, then you're going to be uploading a
 LOT of data and paying quite a bit to store it.  If you want to be
 storing TB of data offsite there are better ways of doing it.

Outside my camera pics, I don't think I have anything that critical.  I
backed them up on 7 DVDs yesterday.  I been doing that for many years. 
Two sets just to be sure.  I also rotate the DVDs after a while too.  I
burn sysrescue ISOs to it or something. 



 The advantage of something like S3 is that it is always there, which
 means you stick a duplicity script in your crontab and just
 periodically check up on it.  You don't have to remember to do your
 backups.  It just isn't practical to use it for more than a few dozen
 GB depending on your incremental strategy.

 I also have a 50Mbps outbound connection, which doesn't hurt.

Downstream Rate  1536 (Kbits/Sec)
Upstream Rate  384 (Kbits/Sec)


While it ain't super fast, it beats dial-up and I remember those days
very well.  Still pretty slow to do backups over tho.  :/



 Your next best option is to find a friend with similar needs and give
 each other a place to upload your encrypted backups to.  That will
 just cost you drive space, but if you're both planning on backing up
 1TB of data it will still cost you the one-time drive purchase.

 If you want a quick cloud-capable backup solution, I'd look at
 duplicity.  I just wish it had options for Google Drive (it supposedly
 does, but as far as I can tell it doesn't work, at least not with a
 two factor application password).

 Rich



I'm just going to try and buy another 3TB drive as soon as I can.  I may
even make it into a removable thingy.  Then I can make backups and just
put it in a outbuilding.  By the way, my outbuilding is pretty far from
the house.  A house fire wouldn't hurt it any.  I got so much junk in
there, a thief would shake his head and leave empty handed.  May even
cry at the thought of it. 

Working up a plan and hoping to work the plan. 

While at it.  Latest test results.  It finished a bit ago. 

root@fireball / # smartctl -l selftest /dev/sdc
smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.0-gentoo] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_DescriptionStatus  Remaining 
LifeTime(hours)  LBA_of_first_error
# 1  Extended offlineCompleted: read failure   60%
16394 2905482560
# 2  Extended offlineCompleted: read failure   60%
16389 2905482560

It is still rolling over.  It should throw up its feet any day now.  :-( 

Dale

:-)  :-) 



Re: [gentoo-user] smartctrl drive error @60%

2014-06-25 Thread Mick
On Thursday 26 Jun 2014 03:15:54 Dale wrote:
 Neil Bothwick wrote:
  I have to say, I dread setting up a mail server about as bad as I dread
  going to the Doctor.  It's just something I really don't want to add to
  my system unless I have to.
  
  Which is why I suggesting something like ssmtp, which you can't call  a
  server, it just forwards. Often the only configuration needed is changing
  one line in ssmtp.conf, to the address of your ISP's mail server.
  
  That's it, now any program can send mail using sendmail and it just goes
  to your ISP mailbox.
 
 I like this part:
 
 Extremely simple MTA to get mail off the system to a Mailhub
 
   ^  That part right up there.  :-D  That may be a new thread, if
 needed.

Try this basic setup in your /etc/ssmtp/ssmtp.conf:


root=d...@gmail.com  #Change to your preferred email address

mailhub=smtp.gmail.com:465  #Could also use port 587 for STARTTLS

rewriteDomain=dales_smoker.shack  #Something to denote your machine's name

FromLineOverride=YES

UseTLS=YES  #Can also try UseSTARTTLS=YES as an alternative

AuthUser=d...@gmail.com
AuthPass=dalesgmails3cr3tpasswd #Special characters seem to barf with ssmtp


Sort out access rights to 0604, since it now contains your mail passwd 
unencrypted:

# ls -la /etc/ssmtp/ssmtp.conf
-rw-r- 1 root ssmtp 1696 May 19 23:40 /etc/ssmtp/ssmtp.conf

Add this in your /etc/ssmtp/revaliases:
===
root:d...@gmail.com:smtp.gmail.com:465
dale:d...@gmail.com:smtp.gmail.com:465
other_user:d...@gmail.com:smtp.gmail.com:465
===

Then ping a message to yourself as a test to see that all works fine:

echo My first test message | mail -v -s Test for sSMTP 1 d...@gmail.com

It should then appear in your gmail account (Sent folder).  Set a label/filter 
to find such messages easily and you're done.

-- 
Regards,
Mick


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