Asking for help

From Linux Raid Wiki
(Difference between revisions)
Jump to: navigation, search
(What to do next)
(What is your system running)
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{| style="border:1px solid #aaaaaa; background-color:#f9f9f9;width:100%; font-family: Verdana, sans-serif;"
 
{| style="border:1px solid #aaaaaa; background-color:#f9f9f9;width:100%; font-family: Verdana, sans-serif;"
 
|- padding:5px;padding-top:0.5em;font-size: 95%;  
 
|- padding:5px;padding-top:0.5em;font-size: 95%;  
| <span style="float:right; padding-left:5px;">Forward to [[Reconstruction]]</span>
+
| <span style="float:right; padding-left:5px;">Forward to [[Timeout Mismatch]]</span>
 
|}
 
|}
  
Line 10: Line 10:
  
 
There is a whole bunch of stuff you need to do first, before asking the list, however. And, studied carefully, this will hopefully enable you to solve your own problem.
 
There is a whole bunch of stuff you need to do first, before asking the list, however. And, studied carefully, this will hopefully enable you to solve your own problem.
 +
 +
=== How to ask Smart Questions ===
 +
 +
http://www.catb.org/~esr/faqs/smart-questions.html
 +
 +
While opinions are divided on ESR, he is a good psychologist and this is good advice. Remember you are asking for help, and the easier you make it for us, the more likely we are to respond. Also, remember that if we waste a bit of your time, it's just one person so it's not much waste. But if you waste our time, it may only be 30 seconds but, multiplied by the number of people who's time is wasted it's easily hours, and could be months of wasted time!
 +
 +
=== What is your system running? ===
 +
 +
uname -a
 +
mdadm --version
 +
 +
We need this information because there are several well known problems for which the advice is "upgrade" or "use a rescue disk". Especially if we see "mdadm 3.4.x" or an old Ubuntu.
  
 
=== smartctl ===
 
=== smartctl ===
  
  smartctl --all /dev/sda
+
  smartctl --xall /dev/sdX
  
Run smartctl on all drives. Most requests for help to the list turn out to be because the drives do not support TLER or SCT/ERC. This is easily fixed. If the --all option does not provide sufficient information, use the --xall option.
+
Run smartctl on all drives. Most requests for help to the list turn out to be because the drives do not support TLER or SCT/ERC. This is easily fixed. --xall is rather verbose - for a shorter report you can use "-H -i -l scterc" instead.
  
 
=== mdadm ===
 
=== mdadm ===
  
  mdadm --examine /dev/sda
+
  mdadm --examine /dev/sdX
 +
mdadm --examine /dev/sdXn
  
Run --examine on all drives. This scans the drive for informtion about what arrays are on the drive.
+
Run --examine on all drives and partitions. This scans the drive for information about what arrays are on the drive.
  
  mdadm --detail /dev/md0
+
  mdadm --detail /dev/mdN
  
 
Run --detail on all arrays. This scans the array for information about the drives or partitions which make it up.
 
Run --detail on all arrays. This scans the array for information about the drives or partitions which make it up.
Line 29: Line 43:
 
=== lsdrv ===
 
=== lsdrv ===
  
Download Phil Turmel's lsdrv utility with
+
Download Phil Turmel's [https://github.com/pturmel/lsdrv lsdrv] utility with
  
 
  git clone git://github.com/pturmel/lsdrv.git lsdrv
 
  git clone git://github.com/pturmel/lsdrv.git lsdrv
Line 47: Line 61:
 
{| style="border:1px solid #aaaaaa; background-color:#f9f9f9;width:100%; font-family: Verdana, sans-serif;"
 
{| style="border:1px solid #aaaaaa; background-color:#f9f9f9;width:100%; font-family: Verdana, sans-serif;"
 
|- padding:5px;padding-top:0.5em;font-size: 95%;  
 
|- padding:5px;padding-top:0.5em;font-size: 95%;  
| <span style="float:right; padding-left:5px;">Forward to [[Reconstruction]]</span>
+
| <span style="float:right; padding-left:5px;">Forward to [[Timeout Mismatch]]</span>
 
|}
 
|}

Latest revision as of 16:25, 15 January 2021

Forward to Timeout Mismatch

Linux RAID issues are discussed in the linux-raid mailing list to be found at http://vger.kernel.org/vger-lists.html#linux-raid You do not have to be subscribed to the mailing list to post. Please note that you should "reply all" to any email - not everyone is subscribed to the list. Feel free to post requests for help to the list - just remember that many of us are users of raid who are happy to help other users, so do not expect a prompt reply, although a reply will probably be forthcoming eventually.

Contents

[edit] Asking the mailing list for help

There is a whole bunch of stuff you need to do first, before asking the list, however. And, studied carefully, this will hopefully enable you to solve your own problem.

[edit] How to ask Smart Questions

http://www.catb.org/~esr/faqs/smart-questions.html

While opinions are divided on ESR, he is a good psychologist and this is good advice. Remember you are asking for help, and the easier you make it for us, the more likely we are to respond. Also, remember that if we waste a bit of your time, it's just one person so it's not much waste. But if you waste our time, it may only be 30 seconds but, multiplied by the number of people who's time is wasted it's easily hours, and could be months of wasted time!

[edit] What is your system running?

uname -a
mdadm --version

We need this information because there are several well known problems for which the advice is "upgrade" or "use a rescue disk". Especially if we see "mdadm 3.4.x" or an old Ubuntu.

[edit] smartctl

smartctl --xall /dev/sdX

Run smartctl on all drives. Most requests for help to the list turn out to be because the drives do not support TLER or SCT/ERC. This is easily fixed. --xall is rather verbose - for a shorter report you can use "-H -i -l scterc" instead.

[edit] mdadm

mdadm --examine /dev/sdX
mdadm --examine /dev/sdXn

Run --examine on all drives and partitions. This scans the drive for information about what arrays are on the drive.

mdadm --detail /dev/mdN

Run --detail on all arrays. This scans the array for information about the drives or partitions which make it up.

[edit] lsdrv

Download Phil Turmel's lsdrv utility with

git clone git://github.com/pturmel/lsdrv.git lsdrv

It uses Python 2.7 so if your system defaults to Python 3 you will need to edit the shebang line, and then it should work fine. Run it and then save the output!

[edit] /proc/mdstat

cat /proc/mdstat

[edit] What to do next

Check all the following sections to see if they solve your problem for you.

If they don't, post a description of your problem, accompanied by the output of all those commands, to the mailing list.

Forward to Timeout Mismatch
Personal tools