Changes

Jump to navigation Jump to search
278 bytes added ,  00:57, 6 December 2023
m
no edit summary
Line 1: Line 1: −
test2{{Warning box| Please read this article before buying and deploying drives. https://raid.wiki.kernel.org/index.php/Timeout_Mismatch  
+
{{Warning box| Please read this article before buying and deploying drives. https://raid.wiki.kernel.org/index.php/Timeout_Mismatch  
    
The new type of SMR drives are NOT suitable for RAID arrays. Beware WD Red NAS drives, though recently they have made it clearer which models use SMR.
 
The new type of SMR drives are NOT suitable for RAID arrays. Beware WD Red NAS drives, though recently they have made it clearer which models use SMR.
Line 127: Line 127:  
For more information, check: http://bugs.contribs.org/show_bug.cgi?id=2154
 
For more information, check: http://bugs.contribs.org/show_bug.cgi?id=2154
   −
<br />
+
*For disks previously formatted as  GPT this is insufficient. It's probably best to use gdisk or parted or partx to delete the partitions; there are other tools that will work. Parted has limited support for LVM.
 
+
*To remove the (hardware) RAID configuration that is stored at the end of the drive, do:
*For disks previously formatted as  GPT this is insufficient. It's probably best to use gdisk or parted or partx to delete the partitions; there are other tools that will work. Parted has limited support for LVM.<br />
+
#dd if=/dev/zero of=/dev/sdx bs=512 count=2048 seek=$((`blockdev --getsz /dev/sdx` - 2048))
    
====Upgrading the Hard Drive Size====
 
====Upgrading the Hard Drive Size====
Line 596: Line 596:  
</syntaxhighlight>and alter the line needed (you probably will need to uncomment this line and add mdraid between the quote)<syntaxhighlight lang="bash" line="1" start="19">
 
</syntaxhighlight>and alter the line needed (you probably will need to uncomment this line and add mdraid between the quote)<syntaxhighlight lang="bash" line="1" start="19">
 
# dracut modules to add to the default
 
# dracut modules to add to the default
add_dracutmodules+="mdraid"
+
add_dracutmodules+="lvm mdraid"
 +
 
 +
# install local /etc/mdadm.conf
 +
mdadmconf="yes"
 +
 
 +
# install local /etc/lvm/lvm.conf
 +
lvmconf="yes"
 +
 
    
</syntaxhighlight>Finally rebuild the initfs<syntaxhighlight lang="bash">
 
</syntaxhighlight>Finally rebuild the initfs<syntaxhighlight lang="bash">
 
cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.old
 
cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.old
dracut --add="mdraid" /boot/initramfs-$(uname -r).img $(uname -r)
+
dracut --add="lvm mdraid" /boot/initramfs-$(uname -r).img $(uname -r) --force
 
</syntaxhighlight>
 
</syntaxhighlight>
  
19

edits

Navigation menu