* 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768
@ 2008-12-30 12:26 Justin Piszcz
2008-12-30 15:41 ` Michal Soltys
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Justin Piszcz @ 2008-12-30 12:26 UTC (permalink / raw)
To: linux-ide, linux-kernel, linux-raid; +Cc: Alan Piszcz
On one system, two Raptor 150s:
[ 0.739402] ata1.00: HPA detected: current 293044655, native 293046768
[ 0.739491] ata1.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max UDMA/133
[ 0.739577] ata1.00: 293044655 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 0.742454] ata1.00: configured for UDMA/133
[ 1.059146] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 1.061406] ata2.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max UDMA/133
[ 1.061494] ata2.00: 293046768 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 1.064360] ata2.00: configured for UDMA/133
Two disks in a RAID-1 (mdadm) configuration, how come the first one
has an issue w/HPA as the firmware of both disks is the same..?
l1:~# smartctl -a /dev/sda | grep -i bytes
User Capacity: 150,038,863,360 bytes
l1:~# smartctl -a /dev/sdb | grep -i bytes
User Capacity: 150,039,945,216 bytes
l1:~#
Why does this occur?
Justin.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768
2008-12-30 12:26 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768 Justin Piszcz
@ 2008-12-30 15:41 ` Michal Soltys
2008-12-30 17:30 ` Robert Hancock
2008-12-30 18:51 ` Kyle McMartin
2 siblings, 0 replies; 7+ messages in thread
From: Michal Soltys @ 2008-12-30 15:41 UTC (permalink / raw)
To: Justin Piszcz; +Cc: linux-raid, Alan Piszcz
Justin Piszcz wrote:
> On one system, two Raptor 150s:
>
> [ 0.739402] ata1.00: HPA detected: current 293044655, native 293046768
> [ 0.739491] ata1.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max
>
> Why does this occur?
>
Drives I bought on different occasions also had some of the space
reserved, while some others didn't. You can change it with hdparm's -N
option.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768
2008-12-30 12:26 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768 Justin Piszcz
2008-12-30 15:41 ` Michal Soltys
@ 2008-12-30 17:30 ` Robert Hancock
2008-12-30 18:12 ` David Lethe
2008-12-31 16:33 ` Mark Lord
2008-12-30 18:51 ` Kyle McMartin
2 siblings, 2 replies; 7+ messages in thread
From: Robert Hancock @ 2008-12-30 17:30 UTC (permalink / raw)
To: linux-ide; +Cc: linux-raid, linux-kernel
Justin Piszcz wrote:
> On one system, two Raptor 150s:
>
> [ 0.739402] ata1.00: HPA detected: current 293044655, native 293046768
> [ 0.739491] ata1.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max
> UDMA/133
> [ 0.739577] ata1.00: 293044655 sectors, multi 0: LBA48 NCQ (depth 31/32)
> [ 0.742454] ata1.00: configured for UDMA/133
>
> [ 1.059146] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> [ 1.061406] ata2.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max
> UDMA/133
> [ 1.061494] ata2.00: 293046768 sectors, multi 0: LBA48 NCQ (depth 31/32)
> [ 1.064360] ata2.00: configured for UDMA/133
>
> Two disks in a RAID-1 (mdadm) configuration, how come the first one
> has an issue w/HPA as the firmware of both disks is the same..?
>
> l1:~# smartctl -a /dev/sda | grep -i bytes
> User Capacity: 150,038,863,360 bytes
> l1:~# smartctl -a /dev/sdb | grep -i bytes
> User Capacity: 150,039,945,216 bytes
> l1:~#
>
> Why does this occur?
Presumably somebody or something set up a host protected area on one
drive and not the other.. I believe there are some utilities out there
that can be used to disable the HPA and allow the full capacity to be used.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Re: 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768
2008-12-30 17:30 ` Robert Hancock
@ 2008-12-30 18:12 ` David Lethe
2008-12-31 16:33 ` Mark Lord
1 sibling, 0 replies; 7+ messages in thread
From: David Lethe @ 2008-12-30 18:12 UTC (permalink / raw)
To: Robert Hancock, linux-raid; +Cc: linux-ide, linux-kernel
> -----Original Message-----
> From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
> owner@vger.kernel.org] On Behalf Of Robert Hancock
> Sent: Tuesday, December 30, 2008 11:30 AM
> To: linux-raid@vger.kernel.org
> Cc: linux-ide@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: 2.6.27.10: ata1.00: HPA detected: current 293044655,
> native 293046768
>
> Justin Piszcz wrote:
> > On one system, two Raptor 150s:
> >
> > [ 0.739402] ata1.00: HPA detected: current 293044655, native
> 293046768
> > [ 0.739491] ata1.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max
> > UDMA/133
> > [ 0.739577] ata1.00: 293044655 sectors, multi 0: LBA48 NCQ (depth
> 31/32)
> > [ 0.742454] ata1.00: configured for UDMA/133
> >
> > [ 1.059146] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl
300)
> > [ 1.061406] ata2.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max
> > UDMA/133
> > [ 1.061494] ata2.00: 293046768 sectors, multi 0: LBA48 NCQ (depth
> 31/32)
> > [ 1.064360] ata2.00: configured for UDMA/133
> >
> > Two disks in a RAID-1 (mdadm) configuration, how come the first one
> > has an issue w/HPA as the firmware of both disks is the same..?
> >
> > l1:~# smartctl -a /dev/sda | grep -i bytes
> > User Capacity: 150,038,863,360 bytes
> > l1:~# smartctl -a /dev/sdb | grep -i bytes
> > User Capacity: 150,039,945,216 bytes
> > l1:~#
> >
> > Why does this occur?
>
> Presumably somebody or something set up a host protected area on one
> drive and not the other.. I believe there are some utilities out there
> that can be used to disable the HPA and allow the full capacity to be
> used.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Warning - this hidden area could have been used to circumvent some
security, hold viruses,
steal data, whatever. I have unfortunately seen this trick more times
than I care to
get into.
If this disk drive is installed on a computer where such things are
a possibility, then I suggest bringing system down to single user mode,
having a witness
by your side, then resizing the disk and using dd to grab contents of
the "new" blocks,
so you can inspect it.
With the right software, and access to the sg driver, then one can
easily use this area as
their own private repository to keep stuff until the opportunity
presents itself to take
the data offsite.
FYI, there is no way to prevent somebody from resizing disk in this way
if they can write
to the sg driver, some of our customers use our software to resize in
this way and to monitor
changes, but you can really just set up a shell script to do this
yourself.
David
http://www.santools.com/smart/unix/manual
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768
2008-12-30 12:26 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768 Justin Piszcz
2008-12-30 15:41 ` Michal Soltys
2008-12-30 17:30 ` Robert Hancock
@ 2008-12-30 18:51 ` Kyle McMartin
2 siblings, 0 replies; 7+ messages in thread
From: Kyle McMartin @ 2008-12-30 18:51 UTC (permalink / raw)
To: Justin Piszcz; +Cc: linux-ide, linux-kernel, linux-raid, Alan Piszcz
On Tue, Dec 30, 2008 at 07:26:40AM -0500, Justin Piszcz wrote:
> On one system, two Raptor 150s:
>
> [ 0.739402] ata1.00: HPA detected: current 293044655, native 293046768
> [ 0.739491] ata1.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max UDMA/133
> [ 0.739577] ata1.00: 293044655 sectors, multi 0: LBA48 NCQ (depth 31/32)
> [ 0.742454] ata1.00: configured for UDMA/133
>
> [ 1.059146] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> [ 1.061406] ata2.00: ATA-7: WDC WD1500ADFD-00NLR5, 21.07QR5, max UDMA/133
> [ 1.061494] ata2.00: 293046768 sectors, multi 0: LBA48 NCQ (depth 31/32)
> [ 1.064360] ata2.00: configured for UDMA/133
>
> Two disks in a RAID-1 (mdadm) configuration, how come the first one
> has an issue w/HPA as the firmware of both disks is the same..?
>
> l1:~# smartctl -a /dev/sda | grep -i bytes
> User Capacity: 150,038,863,360 bytes
> l1:~# smartctl -a /dev/sdb | grep -i bytes
> User Capacity: 150,039,945,216 bytes
> l1:~#
>
> Why does this occur?
>
Bonghits... Anyway, pass libata.ignore_hpa=1 if you want to use the full
capacity of your disk.
regards, Kyle
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768
2008-12-30 17:30 ` Robert Hancock
2008-12-30 18:12 ` David Lethe
@ 2008-12-31 16:33 ` Mark Lord
2009-01-03 13:15 ` Justin Piszcz
1 sibling, 1 reply; 7+ messages in thread
From: Mark Lord @ 2008-12-31 16:33 UTC (permalink / raw)
To: Robert Hancock; +Cc: linux-ide, linux-raid, linux-kernel
Robert Hancock wrote:
> Justin Piszcz wrote:
>> On one system, two Raptor 150s:
>>
>> [ 0.739402] ata1.00: HPA detected: current 293044655, native 293046768
..
> Presumably somebody or something set up a host protected area on one
> drive and not the other.. I believe there are some utilities out there
> that can be used to disable the HPA and allow the full capacity to be used.
..
"hdparm -N" can do this, temporarily or permanently.
Get the latest version from Sourceforge, and see the manpage for details.
-ml
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768
2008-12-31 16:33 ` Mark Lord
@ 2009-01-03 13:15 ` Justin Piszcz
0 siblings, 0 replies; 7+ messages in thread
From: Justin Piszcz @ 2009-01-03 13:15 UTC (permalink / raw)
To: Mark Lord; +Cc: Robert Hancock, linux-ide, linux-raid, linux-kernel
On Wed, 31 Dec 2008, Mark Lord wrote:
> Robert Hancock wrote:
>> Justin Piszcz wrote:
>>> On one system, two Raptor 150s:
>>>
>>> [ 0.739402] ata1.00: HPA detected: current 293044655, native 293046768
> ..
>> Presumably somebody or something set up a host protected area on one drive
>> and not the other.. I believe there are some utilities out there that can
>> be used to disable the HPA and allow the full capacity to be used.
> ..
>
> "hdparm -N" can do this, temporarily or permanently.
> Get the latest version from Sourceforge, and see the manpage for details.
>
> -ml
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Just incase someone Google's this later on, this is what it looks like,
for my case:
The /dev/sda (first disk) is the one with the problem.
root@Knoppix:~/hpa# hdparm -N /dev/sda
/dev/sda:
max sectors = 293044655/293046768, HPA is enabled
root@Knoppix:~/hpa# hdparm -N /dev/sdb
/dev/sdb:
max sectors = 293046768/293046768, HPA is disabled
root@Knoppix:~/hpa# hdparm -N p293046768 /dev/sda
/dev/sda:
setting max visible sectors to 293046768 (permanent)
max sectors = 293046768/293046768, HPA is disabled
root@Knoppix:~/hpa#
root@Knoppix:~# hdparm -N /dev/sda
/dev/sda:
max sectors = 293046768/293046768, HPA is disabled
root@Knoppix:~#
1. I backed up the volume of the RAID-1 array.
2. Failed out the disk with the problem.
3. Then ran the commands above.
4. Reboot back to the OS.
5. Re-add the disk back into the RAID-1.
Justin.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-01-03 13:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-30 12:26 2.6.27.10: ata1.00: HPA detected: current 293044655, native 293046768 Justin Piszcz
2008-12-30 15:41 ` Michal Soltys
2008-12-30 17:30 ` Robert Hancock
2008-12-30 18:12 ` David Lethe
2008-12-31 16:33 ` Mark Lord
2009-01-03 13:15 ` Justin Piszcz
2008-12-30 18:51 ` Kyle McMartin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).