Search:

Type: Posts; User: kendallp; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Replies
    2
    Views
    1,292

    Re: sSMTP mail to root (or localuser)

    bump
  2. Replies
    2
    Views
    1,292

    sSMTP mail to root (or localuser)

    I have sSMTP setup and can send mail to a specified e-mail address without any issue. For example:


    echo "test message" | mail -s 'Test' kendallp@hotmail.com

    But if I try to send mail to a...
  3. Replies
    46
    Views
    15,295

    [SOLVED] Re: mdadm - replacing failed drive

    Array finished syncing!


    #cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md0 : active raid5 sdc1[3] sde1[0] sdf1[4] sda1[2] sdb1[1]
    ...
  4. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    I found another 2TB drive lying around so I went ahead and ran ddresuce again:


    #sudo ddrescue -v -r3 --block-size=4KiB --force /dev/sda /dev/sdc rescue1.log

    About to copy 2 TBytes from...
  5. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Ddrescue finished:


    #sudo ddrescue -v -r3 --block-size=4KiB --force /dev/sda /dev/sdc rescue.log

    About to copy 2 TBytes from /dev/sda to /dev/sdc
    Starting positions: infile = 0 B, ...
  6. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Thank you Rubylaser. Later today I'll try gddrescue to copy sda to sdc and see if I can get the array reassembled. Last night I started an offline test with smartctl which will not finish until...
  7. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    It looks like the sync failed again due to errors on sda1:


    #cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md0 : active raid5 sdc1[5](S)...
  8. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    I noticed that also after posting so maybe this time it will work.




    I will substitute the word stupid for your bold. I also didn't include how the first time I used --create, I did not add...
  9. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Next I tried zeroing the superblock on every drive and recreating the array:


    #sudo mdadm --create /dev/md0 --level=5 --raid-devices=5 --chunk=256 --metadata=0.90 /dev/sde1 /dev/sdb1 /dev/sda1...
  10. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    The --add failed again. /dev/sda looks to be dying also as you mentioned Rubylaser:


    #cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md0...
  11. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    I did not this time but the previous time I had the array up with 4 of 5 disks I mounted it and the data looked good.
  12. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Fingers crossed we are going to work from here:

    fsck finished:


    #sudo fsck /dev/md0
    fsck from util-linux 2.20.1
    e2fsck 1.42 (29-Nov-2011)
    /dev/md0: recovering journal
    /dev/md0 has been...
  13. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    After doing further reading on the interwebs, the order seems to be important for --create but not --assemble; as is "missing". So I tried assembling with --force:


    #sudo mdadm --assemble...
  14. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    SDC does not seem to have resynced correctly. Darko mentioned using "missing" but I received an error when trying to use it.


    #sudo mdadm --assemble --force /dev/md0 /dev/sde1 /dev/sdb1...
  15. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Test results:


    #sudo smartctl -l selftest /dev/sda
    smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-39-generic] (local build)
    Copyright (C) 2002-11 by Bruce Allen,...
  16. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    SMART long is running and will finish at 6pm EST. I'll update once it finishes (along with the metadata). Thanks Rubylaser.


    -Kendall
  17. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Here you go and thank you:


    #sudo smartctl -a /dev/sda
    smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-39-generic] (local build)
    Copyright (C) 2002-11 by Bruce Allen,...
  18. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    It does not seem to like missing:


    #sudo mdadm --assemble --force /dev/md0 /dev/sde1 /dev/sdb1 /dev/sda1 missing /dev/sdf1
    mdadm: cannot open device missing: No such file or directory
    mdadm:...
  19. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Thank you Darko. I stopped the array and attempted to reassemble with --scan:


    #sudo mdadm --assemble --scan
    mdadm: WARNING /dev/sdc1 and /dev/sdc appear to have very similar superblocks.
    ...
  20. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    And in case it helps:


    #cat /etc/mdadm/mdadm.conf
    # mdadm.conf
    #
    # Please refer to mdadm.conf(5) for information about this file.
    #

    # by default (built-in), scan all partitions...
  21. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    No such luck. Added /dev/sdc1 which took around 26 hours to finish. Results from this morning:


    #cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4]...
  22. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    This is the reason you should not work on computers prior to having coffee. I remembered while taking a shower that I had not mounted the array.

    So I have reassembled using --scan and mounted the...
  23. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Thank you Darko,

    Below is the output you requested:


    #sudo mdadm --examine /dev/sd[abcef]1
    /dev/sda1:
    Magic : a92b4efc
    Version : 0.90.00
    UUID :...
  24. Replies
    46
    Views
    15,295

    Re: mdadm - replacing failed drive

    Thank you Rubylaser and Darkod. Unfortunately, things did not go how I was hoping.

    I stopped the array and attempted to reassemble it:


    #sudo mdadm --assemble /dev/md0 /dev/sd[a,b,c,e,f]1...
  25. Replies
    46
    Views
    15,295

    mdadm - replacing failed drive

    Hello,

    A few days ago I received a SMART error on one of the drives in my raid so I removed the drive and had a replacement (it was still under warranty) sent to me. Yesterday I attempted to add...
Results 1 to 25 of 41
Page 1 of 2 1 2