<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Hardware Troubleshooting on Kang&#39;s Blog</title>
        <link>https://blog.coderkang.top/en/tags/hardware-troubleshooting/</link>
        <description>Recent content in Hardware Troubleshooting on Kang&#39;s Blog</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Tue, 30 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.coderkang.top/en/tags/hardware-troubleshooting/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Troubleshooting RAID Hard Drive Recognition Issues</title>
            <link>https://blog.coderkang.top/en/p/raid_error/</link>
            <pubDate>Tue, 30 Dec 2025 00:00:00 +0000</pubDate>
            <guid>https://blog.coderkang.top/en/p/raid_error/</guid>
            <description>&lt;img src=&#34;https://blog.coderkang.top/&#34; alt=&#34;Featured image of post Troubleshooting RAID Hard Drive Recognition Issues&#34; /&gt;&lt;h2 id=&#34;problem-background&#34;&gt;Problem Background&#xD;&#xA;&lt;/h2&gt;&lt;p&gt;During server maintenance, I encountered a challenging issue: after inserting a new 1TB SAS hard drive into the server, the &lt;code&gt;lsblk&lt;/code&gt; command couldn&amp;rsquo;t detect this new drive. After investigation, I found that although the hard drive had been recognized by the RAID card, it was in an &lt;code&gt;Unconfigured(good)&lt;/code&gt; state and hadn&amp;rsquo;t been configured as a virtual disk, making it inaccessible to the operating system.&lt;/p&gt;&#xA;&lt;p&gt;This article documents the complete process of troubleshooting and resolving this issue using the MegaCli tool.&lt;/p&gt;&#xA;&lt;h2 id=&#34;installing-megacli-tool&#34;&gt;Installing MegaCli Tool&#xD;&#xA;&lt;/h2&gt;&lt;p&gt;MegaCli is a command-line tool for managing LSI/Broadcom RAID cards. Here are the installation steps for Ubuntu/Debian systems:&lt;/p&gt;&#xA;&lt;h3 id=&#34;download-megacli-package&#34;&gt;Download MegaCli Package&#xD;&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;extract-the-package&#34;&gt;Extract the Package&#xD;&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;unzip 8-07-14_MegaCLI.zip&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;convert-rpm-package-to-deb-package&#34;&gt;Convert RPM Package to DEB Package&#xD;&#xA;&lt;/h3&gt;&lt;p&gt;Since the downloaded package is in RPM format, use the &lt;code&gt;alien&lt;/code&gt; tool to convert it to DEB format:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; Linux&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo alien MegaCli-8.07.14-1.noarch.rpm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;install-the-deb-package&#34;&gt;Install the DEB Package&#xD;&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo dpkg -i megacli_8.07.14-2_all.deb&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;fix-dependency-issues-if-needed&#34;&gt;Fix Dependency Issues (If Needed)&#xD;&#xA;&lt;/h3&gt;&lt;p&gt;If you encounter a missing &lt;code&gt;libncurses.so.5&lt;/code&gt; error, create a symbolic link:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo ln -s /usr/lib/x86_64-linux-gnu/libncurses.so.6 /usr/lib/x86_64-linux-gnu/libncurses.so.5&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;verify-installation&#34;&gt;Verify Installation&#xD;&#xA;&lt;/h3&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/opt/MegaRAID/MegaCli/MegaCli64 -v&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;h2 id=&#34;checking-raid-status&#34;&gt;Checking RAID Status&#xD;&#xA;&lt;/h2&gt;&lt;p&gt;Use the following command to view detailed information about all physical hard drives:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;p&gt;Through MegaCli&amp;rsquo;s output, you can clearly see the current status of all hard drives on the server.&lt;/p&gt;&#xA;&lt;h3 id=&#34;investigation-conclusion&#34;&gt;Investigation Conclusion&#xD;&#xA;&lt;/h3&gt;&lt;p&gt;The server has a total of &lt;strong&gt;7 physical hard drives&lt;/strong&gt;, and the newly inserted drive is located at &lt;strong&gt;Slot 6&lt;/strong&gt;, with a current status of &lt;strong&gt;Unconfigured(good)&lt;/strong&gt; (unconfigured but in good condition). It hasn&amp;rsquo;t been configured as a Virtual Drive yet, so the Linux operating system (&lt;code&gt;lsblk&lt;/code&gt;) cannot recognize it.&lt;/p&gt;&#xA;&lt;h3 id=&#34;detailed-hard-drive-distribution&#34;&gt;Detailed Hard Drive Distribution&#xD;&#xA;&lt;/h3&gt;&lt;p&gt;For better understanding, the 7 hard drives are categorized into 4 groups by purpose:&lt;/p&gt;&#xA;&lt;h4 id=&#34;system-drive-corresponds-to-devsda&#34;&gt;System Drive (corresponds to &lt;code&gt;/dev/sda&lt;/code&gt;)&#xD;&#xA;&lt;/h4&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Location&lt;/strong&gt;: Slot 5&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Model&lt;/strong&gt;: Intel 120GB SSD&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Status&lt;/strong&gt;: Online&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Configuration&lt;/strong&gt;: Single-disk RAID 0 (or passthrough mode)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Purpose&lt;/strong&gt;: System boot drive&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;data-drive-array-corresponds-to-devsdb-capacity-27tb&#34;&gt;Data Drive Array (corresponds to &lt;code&gt;/dev/sdb&lt;/code&gt;, capacity 2.7TB)&#xD;&#xA;&lt;/h4&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Location&lt;/strong&gt;: Slot 0, 1, 2, 3&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Model&lt;/strong&gt;: 4 Seagate 1TB SAS drives&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Status&lt;/strong&gt;: Online&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Configuration&lt;/strong&gt;: RAID 5 array (3 data blocks + 1 parity = 3TB usable capacity)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;data-drive-corresponds-to-devsdc-capacity-931gb&#34;&gt;Data Drive (corresponds to &lt;code&gt;/dev/sdc&lt;/code&gt;, capacity 931GB)&#xD;&#xA;&lt;/h4&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Location&lt;/strong&gt;: Slot 7&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Model&lt;/strong&gt;: Seagate 1TB SAS drive&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Status&lt;/strong&gt;: Online&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Configuration&lt;/strong&gt;: Single-disk RAID 0&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;-key-finding-newly-inserted-drive-slot-6&#34;&gt;🔍 Key Finding: Newly Inserted Drive (Slot 6)&#xD;&#xA;&lt;/h4&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Location&lt;/strong&gt;: Slot 6&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Model&lt;/strong&gt;: Toshiba 1TB SAS drive&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Status&lt;/strong&gt;: &lt;code&gt;Unconfigured(good)&lt;/code&gt; (unconfigured but in good condition)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Foreign State&lt;/strong&gt;: None (no foreign configuration)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Other Error Count&lt;/strong&gt;: 9 (some historical error counts, not affecting current recognition)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Current Situation&lt;/strong&gt;: The drive is physically connected properly and recognized by the RAID card, but since it hasn&amp;rsquo;t been added to any RAID group or created as a virtual disk, the RAID card won&amp;rsquo;t present it to the operating system&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;problem-analysis-why-wasnt-it-auto-recognized&#34;&gt;Problem Analysis: Why Wasn&amp;rsquo;t It Auto-Recognized?&#xD;&#xA;&lt;/h2&gt;&lt;h3 id=&#34;reason-one-foreign-state-is-none&#34;&gt;Reason One: Foreign State is None&#xD;&#xA;&lt;/h3&gt;&lt;p&gt;The output shows &lt;code&gt;Foreign State: None&lt;/code&gt;, indicating that the RAID card hasn&amp;rsquo;t detected any recognizable old RAID configuration information on this disk (or it has been cleared).&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;If it was previously Linux software RAID (mdadm)&lt;/strong&gt;: Hardware RAID cards cannot recognize software RAID metadata and will treat it as an empty disk&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;If it was previously hardware RAID&lt;/strong&gt;: The RAID metadata may be incompatible or has been cleared&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;reason-two-manual-virtual-disk-creation-required&#34;&gt;Reason Two: Manual Virtual Disk Creation Required&#xD;&#xA;&lt;/h3&gt;&lt;p&gt;On RAID cards like Dell PERC, physical disks must be configured as Virtual Drives (VD) before the operating system can access them.&lt;/p&gt;&#xA;&lt;h2 id=&#34;solution-configure-the-drive-online&#34;&gt;Solution: Configure the Drive Online&#xD;&#xA;&lt;/h2&gt;&lt;p&gt;Since the drive status is &lt;code&gt;Unconfigured(good)&lt;/code&gt;, it needs to be configured as a single-disk RAID 0 for the operating system to recognize it.&lt;/p&gt;&#xA;&lt;h3 id=&#34;create-single-disk-raid-0&#34;&gt;Create Single-Disk RAID 0&#xD;&#xA;&lt;/h3&gt;&lt;p&gt;Execute the following command to configure the Slot 6 drive as a virtual disk:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2&#xA;&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3&#xA;&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Configure Slot 6 drive as single-disk RAID 0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# [32:6] represents Enclosure 32, Slot 6&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# -a0 represents adapter 0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;32:6&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; -a0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;h3 id=&#34;expected-result&#34;&gt;Expected Result&#xD;&#xA;&lt;/h3&gt;&lt;p&gt;After successful command execution, the terminal will display:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Adapter 0: Created VD 3&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;p&gt;Run the &lt;code&gt;lsblk&lt;/code&gt; command again, and you should see the newly added &lt;code&gt;/dev/sdd&lt;/code&gt; device.&lt;/p&gt;&#xA;&lt;h2 id=&#34;-data-safety-notice&#34;&gt;⚠️ Data Safety Notice&#xD;&#xA;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; The &lt;code&gt;-CfgLdAdd&lt;/code&gt; command creates RAID structure and rewrites disk header metadata, which may affect access to original data.&lt;/p&gt;&#xA;&lt;h3 id=&#34;data-recovery-options-for-different-scenarios&#34;&gt;Data Recovery Options for Different Scenarios&#xD;&#xA;&lt;/h3&gt;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Original Drive Configuration&lt;/th&gt;&#xA;          &lt;th&gt;Foreign State&lt;/th&gt;&#xA;          &lt;th&gt;Data Recovery Possibility&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Linux Software RAID (mdadm)&lt;/td&gt;&#xA;          &lt;td&gt;None&lt;/td&gt;&#xA;          &lt;td&gt;After configuration, try using &lt;code&gt;mdadm --assemble --scan&lt;/code&gt; to recover data&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Hardware RAID&lt;/td&gt;&#xA;          &lt;td&gt;None&lt;/td&gt;&#xA;          &lt;td&gt;RAID card no longer recognizes old configuration, can only mount as new disk, recovery depends on partition table integrity&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Brand New Drive&lt;/td&gt;&#xA;          &lt;td&gt;None&lt;/td&gt;&#xA;          &lt;td&gt;No data loss risk, can use directly&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;refresh-system-device-list&#34;&gt;Refresh System Device List&#xD;&#xA;&lt;/h2&gt;&lt;p&gt;After configuration, if the system still hasn&amp;rsquo;t automatically recognized the new device, you can manually refresh the SCSI bus:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2&#xA;&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3&#xA;&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Scan all SCSI host controllers to make the system re-recognize drives&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; host in /sys/class/scsi_host/host*/scan&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;do&lt;/span&gt; &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;- - -&amp;#34;&lt;/span&gt; &amp;gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$host&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;done&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;p&gt;After execution, use &lt;code&gt;lsblk&lt;/code&gt; or &lt;code&gt;fdisk -l&lt;/code&gt; to verify if the new hard drive is visible.&lt;/p&gt;&#xA;&lt;h2 id=&#34;summary&#34;&gt;Summary&#xD;&#xA;&lt;/h2&gt;&lt;p&gt;Key steps in this troubleshooting process:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;✅ Install MegaCli tool for RAID card management&lt;/li&gt;&#xA;&lt;li&gt;✅ Use &lt;code&gt;-PDList&lt;/code&gt; command to view all physical drive statuses&lt;/li&gt;&#xA;&lt;li&gt;✅ Identify the problem: New drive is in &lt;code&gt;Unconfigured(good)&lt;/code&gt; status&lt;/li&gt;&#xA;&lt;li&gt;✅ Use &lt;code&gt;-CfgLdAdd&lt;/code&gt; command to create single-disk RAID 0&lt;/li&gt;&#xA;&lt;li&gt;✅ Refresh system device list and verify drive is online&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Through this investigation, I gained a deep understanding of how hardware RAID cards work: physical drives must first be configured as virtual disks before the operating system can access them. In daily operations, when encountering hard drive recognition issues, you should first check the RAID card level configuration status rather than troubleshooting only at the operating system level.&lt;/p&gt;&#xA;</description>
        </item></channel>
</rss>
