讀/寫問題,SATA PCI-E Addon

讀/寫問題,SATA PCI-E Addon

我對 Ubuntu/Linux 相當陌生,到目前為止,這是一次教育經驗。然而,我一直在與一個無法克服的問題作鬥爭。

我遇到一個問題,導致在讀取/寫入硬碟期間凍結/掛起。不是系統掛起,而是在資料傳輸或硬碟上運行的任何內容受到影響。

我的硬碟配置如下:120GB SSD,分區1為Windows 10(舊版/遊戲要求),分區2為Ubuntu 15 64位元(極簡安裝)Gnome桌面,分區3為Swap。引導程式使用 Grub 2。這是使用 mdadm 安裝後配置的。

SSD 上的讀取/寫入似乎沒問題,但 RAID 磁區上更明顯。傳輸資料時,HDD 將在大約 5-10 秒內沒有任何活動,然後突然加速(大約 120MB/s,持續 5-10 秒),然後回到掛起狀態。

PCI-E SATA:http://www.startech.com/uk/Cards-Adapters/HDD-Controllers/SATA-Cards/2-Port-PCI-Express-SATA-6-Gbps-Controller-Card~PEXSAT32

此軟體 RAID 使用小型 RAID 控制器來連接所有磁碟機。此控制器僅用於 SATA 連接埠擴展,並未對其自身進行任何剝離。我將一個單獨的硬碟連接到控制器,這似乎表現出相同的症狀。連接到主機板的SSD工作正常。

在切換到 Linux 作為我的主要作業系統之前,我透過 Windows 進行了相同的配置,效果很好。為了確認這一點,我已經對此進行了測試並使用 ext2fsd 讀取了我的單獨驅動器。效果很好。

為了檢查,我對所有驅動器進行了簡短的硬碟測試,它們都通過了,沒有壞扇區。磁碟實用程式中的「運作狀況」部分也顯示所有運作狀況。

我也嘗試過根據網上的信息更改I/O調度程序,但沒有什麼區別。我還檢查了其他資訊以確保交換處於活動狀態。

我認為這是相關的,在引導過程中,在 GRUB 之後。它將在空白螢幕上掛起一段時間,並在右上角閃爍下劃線。然後它顯示錯誤:ata5: Softreset failed (device not ready). 然後它顯示它正在放棄並直接進入 Gnome 顯示管理器登入。

我發現我在哪裡檢查日誌,Kern.log 充滿了以下內容:

Oct 22 22:47:17 lightwrath-desktop kernel: [18896.613896] ata7.00: status: { DRDY }
Oct 22 22:47:17 lightwrath-desktop kernel: [18896.613899] ata7: hard resetting link
Oct 22 22:47:18 lightwrath-desktop kernel: [18897.089597] ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
Oct 22 22:47:18 lightwrath-desktop kernel: [18897.133592] ata7.00: configured for UDMA/33
Oct 22 22:47:18 lightwrath-desktop kernel: [18897.133598] ata7.00: device reported invalid CHS sector 0
Oct 22 22:47:18 lightwrath-desktop kernel: [18897.133604] ata7: EH complete
Oct 22 22:47:23 lightwrath-desktop kernel: [18902.196603] ata7: illegal qc_active transition (00000002->00000003)
Oct 22 22:47:53 lightwrath-desktop kernel: [18932.489847] ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Oct 22 22:47:53 lightwrath-desktop kernel: [18932.489851] ata7.00: failed command: READ DMA
Oct 22 22:47:53 lightwrath-desktop kernel: [18932.489855] ata7.00: cmd c8/00:08:90:6f:21/00:00:00:00:00/ea tag 1 dma 4096 in
Oct 22 22:47:53 lightwrath-desktop kernel: [18932.489855]          res 40/00:01:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
Oct 22 22:47:53 lightwrath-desktop kernel: [18932.489856] ata7.00: status: { DRDY }
Oct 22 22:47:53 lightwrath-desktop kernel: [18932.489859] ata7: hard resetting link
Oct 22 22:47:53 lightwrath-desktop kernel: [18932.969484] ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
Oct 22 22:47:54 lightwrath-desktop kernel: [18933.013500] ata7.00: configured for UDMA/33
Oct 22 22:47:54 lightwrath-desktop kernel: [18933.013506] ata7.00: device reported invalid CHS sector 0
Oct 22 22:47:54 lightwrath-desktop kernel: [18933.013512] ata7: EH complete
Oct 22 22:48:15 lightwrath-desktop kernel: [18954.650783] ata9: illegal qc_active transition (00000080->000000c0)

我知道這裡有很多信息,但我想我會提供盡可能多的信息來診斷問題。任何反饋或幫助將非常感激。謝謝你,光之怒

答案1

我透過重新安裝 PCI-E SATA 卡解決了上述問題。不確定為什麼 Windows 沒有同樣的問題,但我注意到 Linux 中的資料傳輸速度比 Windows 快得多。也許是由於處理方式的差異或相對於 NTFS 的優勢?

謝謝。

(我無法接受自己的答案來結束話題)

相關內容