August 9, 201015 yr I am suggesting somewhere appropriate in the GUI unRAID show drives with HPA. This could probably be done with a plugin if required. I dont know if unRAID will format an HPA drive but I suggest it at least warns the user of the implications first. We should not expect users to have knowledge of HPA in advance expecting them to go and check.
August 9, 201015 yr I am suggesting somewhere appropriate in the GUI unRAID show drives with HPA. This could probably be done with a plugin if required. I dont know if unRAID will format an HPA drive but I suggest it at least warns the user of the implications first. We should not expect users to have knowledge of HPA in advance expecting them to go and check. I think the section where you click on a drive and a drive option screen pops up is a good place. From here it looks like the start for further options such as Spin down timer, various filesystems, spin down and HPA notification/removal would be appropriate.
August 9, 201015 yr Could be done... you have to run hdparm -I, and then hdparm -i, and compare the number of sectors returned.
August 9, 201015 yr Author My driver is obviously that unRAID is aimed to be n00b friendly and n00bs wont even know this problem exists. In an ideal world something up front and centre or a health check would tell them "HPA Problem. Please read this wiki page"
August 9, 201015 yr I didn't mean to imply that hdparm is what a user should use... I was attempting to provide guidance to someone who might want to write such a plugin. I would do it, but I'm covered up on other stuff right now. Note that for drives > 128G, you have to look for " LBA48" in the hdparm -I output, rather than "LBA" root@TowerZ:~# hdparm -i -I /dev/hda /dev/hda: Model=WDC WD600JB-00CRA1, FwRev=17.07W17, SerialNo=WD-WCA8F3616341 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq } RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117229295 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 AdvancedPM=no WriteCache=enabled Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5 * signifies the current active mode ATA device, with non-removable media Model Number: WDC WD600JB-00CRA1 Serial Number: WD-WCA8F3616341 Firmware Revision: 17.07W17 Standards: Supported: 5 4 3 Likely used: 6 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 117231408 device size with M = 1024*1024: 57241 MBytes device size with M = 1000*1000: 60022 MBytes (60 GB) Capabilities: LBA, IORDY(can be disabled) bytes avail on r/w long: 40 Standby timer values: spec'd by Standard, with device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Recommended acoustic management value: 128, current value: 254 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * Host Protected Area feature set * WRITE_BUFFER command * READ_BUFFER command * DOWNLOAD_MICROCODE SET_MAX security extension Automatic Acoustic Management feature set * Device Configuration Overlay feature set * SMART error logging * SMART self-test Security: supported not enabled not locked not frozen not expired: security count not supported: enhanced erase HW reset results: CBLID- above Vih Device num = 0 determined by the jumper Checksum: correct root@TowerZ:~# For reference, a 500GB drivereports: CHS current addressable sectors: 16514064 LBA user addressable sectors: 268435455 LBA48 user addressable sectors: 781422768
August 9, 201015 yr Unzip these 2 files onto /usr/local/webGui HPA will be displayed on the disk info page of individual disks, if that disk has an HPA. diskinfo.zip
Archived
This topic is now archived and is closed to further replies.