Difference between revisions of "Detecting RAID partitions using Ubuntu Live CD or USB"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Ubuntu|Ubuntu</yambe:breadcrumb> =Detecting RAID partitions using Ubuntu Live CD or USB= If one of the disks on Ubuntu software RAID installation fails then...")
 
m
Line 1: Line 1:
<yambe:breadcrumb>Ubuntu|Ubuntu</yambe:breadcrumb>
[[Main Page|Home]] > [[Ubuntu]] > [[Detecting RAID partitions using Ubuntu Live CD or USB]]
=Detecting RAID partitions using Ubuntu Live CD or USB=


If one of the disks on Ubuntu software RAID installation fails then system may fail to boot.  In such cases one can boot using Ubuntu Live CD or USB and detect RAID partitions using following steps:
If one of the disks on Ubuntu software RAID installation fails then system may fail to boot.  In such cases one can boot using Ubuntu Live CD or USB and detect RAID partitions using following steps:
Line 17: Line 16:
#If arrays are detected and inactive (S) then they can be activated without redundancy using '<tt>mdadm --run /dev/md&lt;n&gt;</tt>' where &lt;n&gt; can be replaced with appropriate raid device number as shown in '<tt>more /proc/mdstat</tt>' output.
#If arrays are detected and inactive (S) then they can be activated without redundancy using '<tt>mdadm --run /dev/md&lt;n&gt;</tt>' where &lt;n&gt; can be replaced with appropriate raid device number as shown in '<tt>more /proc/mdstat</tt>' output.
#Once arrays are active corresponding raid partition devices would be available in '<tt>/dev/mapper</tt>'.  They can be mounted using mount as normal partitions.
#Once arrays are active corresponding raid partition devices would be available in '<tt>/dev/mapper</tt>'.  They can be mounted using mount as normal partitions.
[[Main Page|Home]] > [[Ubuntu]] > [[Detecting RAID partitions using Ubuntu Live CD or USB]]

Revision as of 06:57, 31 March 2022

Home > Ubuntu > Detecting RAID partitions using Ubuntu Live CD or USB

If one of the disks on Ubuntu software RAID installation fails then system may fail to boot. In such cases one can boot using Ubuntu Live CD or USB and detect RAID partitions using following steps:

  1. Install mdadm using 'apt-get -y install mdadm'. Ignore errors related to /etc/fstab shown during installation.
  2. If LVM was used on top of RAID then use 'apt-get -y install lvm2' to install lvm. In such cases after RAID partitions are detected one may need to activate lvm volume groups using 'vgchange -a y'
  3. Try 'more /proc/mdstat' to see if RAID arrays have been detected.
  4. If 'more /proc/mdstat' output is empty, then try to detect arrays using 'mdadm --auto-detect'. Test again with 'more /proc/mdstat' to check if arrays are detected.
  5. If arrays are not detected even now use
    apt-get -y install dmraid
    modprobe dm_mod
    dmraid -ay
    If apt-gives duplicate sources error for cdrom then edit /etc/apt/sources.list and remove lines related to cdrom. It is advisable to copy sources.list to sources.list2 before deleting cdrom as package source.
  6. If 'more /proc/mdstat' output is still empty, then try to detect arrays using 'mdadm --auto-detect'. Test again with 'more /proc/mdstat' to check if arrays are detected.
  7. If arrays are detected and inactive (S) then they can be activated without redundancy using 'mdadm --run /dev/md<n>' where <n> can be replaced with appropriate raid device number as shown in 'more /proc/mdstat' output.
  8. Once arrays are active corresponding raid partition devices would be available in '/dev/mapper'. They can be mounted using mount as normal partitions.




Home > Ubuntu > Detecting RAID partitions using Ubuntu Live CD or USB