[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:misc:software_raid_troubleshoot_howto [2016/11/27 12:20 (UTC)] – [Software RAID troubleshoot] wisedracohowtos:misc:software_raid_troubleshoot_howto [2016/11/27 12:25 (UTC)] – [Workarounds for incorrect raid devices naming] wisedraco
Line 331: Line 331:
  
  do a   do a 
 +
 +<code>
 ls /dev/disk/by-uuid/ ls /dev/disk/by-uuid/
 +</code>
  
 or better, go in that location with midnight commander, and youl see, there is a "files" named as numbers -  or better, go in that location with midnight commander, and youl see, there is a "files" named as numbers - 
Line 350: Line 353:
 </code> </code>
  
-take a note!+<note important>take a note!
 disk UUID by  disk UUID by 
  
Line 356: Line 359:
  
 and that one, who you get via  and that one, who you get via 
 +
 +<code>
 mdadm -D mdadm -D
 mdadm -Db mdadm -Db
 mdadm -Es mdadm -Es
 +</code>
  
-differ! in fstab ( lilo too?) you must use UID from /dev/disk/by-uuid/  !+differ, not the same!!! 
 + in fstab ( lilo too?) you must use UID from /dev/disk/by-uuid/  !</note>
  
  
Line 367: Line 374:
   - 2. Using initramd.   - 2. Using initramd.
  
 +<code>
 # #
 # mkinitrd_command_generator.sh revision 1.45 # mkinitrd_command_generator.sh revision 1.45
Line 380: Line 388:
 mkinitrd -c -k 3.2.29 -f ext4 -r /dev/md1 -m mbcache:jbd2:ext4 -R -u -o /boot/initrd.gz mkinitrd -c -k 3.2.29 -f ext4 -r /dev/md1 -m mbcache:jbd2:ext4 -R -u -o /boot/initrd.gz
  
-rightly edited mdadm.conf then must be copied in/boot/tree??? before you run this mkinitrd conf.+</code> 
 +\\ 
 +\\ 
 +rightly edited mdadm.conf then must be copied in/boot/tree??? before you run this mkinitrd conf.\\
  
 after you run that mkinitrd, you must update lilo. after you run that mkinitrd, you must update lilo.
Line 398: Line 409:
    
 ====== Useful commands in this case ====== ====== Useful commands in this case ======
 +<code>
 mdadm -Es mdadm -Es
 +</code>
 +
 +<code>
 mdadm -As mdadm -As
 +</code>
  
 +<code>
 mdadm -D /dev/md127 mdadm -D /dev/md127
 +</code>
 +
 +<code>
 mdadm -Db /dev/md127 mdadm -Db /dev/md127
 +</code>
  
 +<code>
 lsscsi lsscsi
 +</code>
 +
 +<code>
 cat /proc/mdstat cat /proc/mdstat
 +</code>
 +
 +<code>
 ls /dev/disk/by-uuid/ ls /dev/disk/by-uuid/
 +</code>
  
 +<code>
 dmesg |grep md dmesg |grep md
 +</code>
  
 +<code>
 chroot /mnt/hd /sbin/lilo -v 3 chroot /mnt/hd /sbin/lilo -v 3
 +</code>
  
 +<code>
 mdadm --stop /dev/md127 mdadm --stop /dev/md127
 +</code>
  
 kernel options: kernel options:
  
 +<code>
 +$kernelname raid=noautodetect md=1, /dev/sda1,/dev/sdb1
 +</code>
  
  
 howtos:misc:software_raid_troubleshoot_howto ()