Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Controller Failure and HPA Issues

Featured Replies

Hi All,

 

Recently I had the configuration issue plugin tell me that HPA was enabled on my data and parity drives. When I went through the process of removing it by running the hdparm command I found that it was in my controller having issues and wrongly reporting on the drives and not HPA.

 

Issuing the hdparm command through the faulty controller has set the HPA at 8Gb into the drives and when I attempt to fix this I get an error shown below.

james@linuxws:~$ sudo hdparm -N /dev/sda
/dev/sda:
 max sectors   = 16777215/15628053168, HPA is enabled

james@linuxws:~$ sudo hdparm -N p15628053168 /dev/sda
/dev/sda:
 setting max visible sectors to 15628053168 (permanent)
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 04 53 00 00 21 04 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 max sectors   = 16777215/15628053168, HPA is enabled

I realise this was pretty stupid and I shouldn't have rushed into sending dangerous hdparm commands, but if there is another way to fix the drives I am all ears.

I have already tried ATA tool from a windows machine and made sure the drive is not frozen. Loss of data is not an issue due to the tested backups I have.

 

Cheers,

 

Pls try other controller i.e. onboard. And also try plug in SATA connector after OS bootup.

  • Author

I'm getting the same response from the drive using a different controller

james@linuxws:~$ sudo hdparm -N /dev/sda
/dev/sda:
 max sectors   = 16777215/15628053168, HPA is enabled
james@linuxws:~$ sudo hdparm -N 15628053168 /dev/sda
/dev/sda:
 setting max visible sectors to 15628053168 (temporary)
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 04 53 00 00 21 04 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 max sectors   = 16777215/15628053168, HPA is enabled

Is there a way to decode the response?

It is sda, does you boot OS by this disk ? Pls don't boot OS by this disk and try plug the SATA link after boot up.

  • Author

No, the OS is booting from a different disk. When I connect the disk after boot up it is not detected by the OS.

Below is the output when booting without the faulty disk connected. I have also tried running the following command which should scan for disks.

james@linuxws:~$ for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done
- - -
/dev/sda  /dev/sda1  /dev/sda2
- - -
/dev/sda  /dev/sda1  /dev/sda2
- - -
/dev/sda  /dev/sda1  /dev/sda2
- - -
/dev/sda  /dev/sda1  /dev/sda2
- - -
/dev/sda  /dev/sda1  /dev/sda2
- - -
/dev/sda  /dev/sda1  /dev/sda2
james@linuxws:~$ lsblk -S
NAME HCTL       TYPE VENDOR   MODEL             REV TRAN
sda  4:0:0:0    disk ATA      SAMSUNG MZMTD128 1K0Q sata

 

1 hour ago, ooimo said:

When I connect the disk after boot up it is not detected by the OS.

So weird.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.