* How do people deal with disk size variations?
@ 2009-05-13 8:50 Eyal Lebedinsky
2009-05-13 9:09 ` Peter Rabbitson
2009-05-13 13:05 ` Bill Davidsen
0 siblings, 2 replies; 3+ messages in thread
From: Eyal Lebedinsky @ 2009-05-13 8:50 UTC (permalink / raw)
To: linux-raid
I have a 5-disk raid5. I notice that the five identical disks, which also
list identical LBA numbers on the label, do not show the same size when
queried. One is reporting (smart - it should tell the truth from the disk
pov) a smaller size.
One disk reports
User Capacity: 1,000,203,804,160 bytes
and the other four
User Capacity: 1,000,204,886,016 bytes
Luckily I always build a raid on partitions so this difference is
irrelevant being in the slack past the partition end.
However, if I managed to use the whole disk, the raid will be as large as
the smallest disk. What happens when I replace a disk and get an even
smaller replacement one?
Do people always leave unused space at the end? Do you expect disks from
the same exact model to have exactly the same usable size?
BTW, even if the label gave the correct size, one does not know in
advance what will arrive when you order a disk, right?
cheers
--
Eyal Lebedinsky (eyal@eyal.emu.id.au)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do people deal with disk size variations?
2009-05-13 8:50 How do people deal with disk size variations? Eyal Lebedinsky
@ 2009-05-13 9:09 ` Peter Rabbitson
2009-05-13 13:05 ` Bill Davidsen
1 sibling, 0 replies; 3+ messages in thread
From: Peter Rabbitson @ 2009-05-13 9:09 UTC (permalink / raw)
To: Eyal Lebedinsky; +Cc: linux-raid
Eyal Lebedinsky wrote:
> I have a 5-disk raid5. I notice that the five identical disks, which also
> list identical LBA numbers on the label, do not show the same size when
> queried. One is reporting (smart - it should tell the truth from the disk
> pov) a smaller size.
>
> One disk reports
> User Capacity: 1,000,203,804,160 bytes
> and the other four
> User Capacity: 1,000,204,886,016 bytes
>
> Luckily I always build a raid on partitions so this difference is
> irrelevant being in the slack past the partition end.
>
> However, if I managed to use the whole disk, the raid will be as large as
> the smallest disk. What happens when I replace a disk and get an even
> smaller replacement one?
>
> Do people always leave unused space at the end? Do you expect disks from
> the same exact model to have exactly the same usable size?
I always leave about 2gb off a disk, regardless of if I use a full disk
or partitions. Considering you are dealing with terabyte drives here,
your question seems rather strange...
Cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do people deal with disk size variations?
2009-05-13 8:50 How do people deal with disk size variations? Eyal Lebedinsky
2009-05-13 9:09 ` Peter Rabbitson
@ 2009-05-13 13:05 ` Bill Davidsen
1 sibling, 0 replies; 3+ messages in thread
From: Bill Davidsen @ 2009-05-13 13:05 UTC (permalink / raw)
To: Eyal Lebedinsky; +Cc: linux-raid
Eyal Lebedinsky wrote:
> I have a 5-disk raid5. I notice that the five identical disks, which also
> list identical LBA numbers on the label, do not show the same size when
> queried. One is reporting (smart - it should tell the truth from the disk
> pov) a smaller size.
>
> One disk reports
> User Capacity: 1,000,203,804,160 bytes
> and the other four
> User Capacity: 1,000,204,886,016 bytes
>
> Luckily I always build a raid on partitions so this difference is
> irrelevant being in the slack past the partition end.
>
If a drive is advertised as a certain size and isn't as least that big I
think you have a return. But as for "bonus bytes" you take what you get.
In many cases recently I have found drives are even larger than claimed,
with extra capacity blocked using the hpa. In those cases you can reset
the hpa if you dare (the extra may not be good, that's why it was
downsized). Using space you unblock is like overclocking, sometimes you
get performance for free and sometimes you get a learning experience.
Note that downsizing to a given size using the hpa will allow you to run
"whole disk" arrays without the issues you mention. I have never seen a
benefit to do so, but I know people who do it.
> However, if I managed to use the whole disk, the raid will be as large as
> the smallest disk. What happens when I replace a disk and get an even
> smaller replacement one?
>
> Do people always leave unused space at the end? Do you expect disks from
> the same exact model to have exactly the same usable size?
>
> BTW, even if the label gave the correct size, one does not know in
> advance what will arrive when you order a disk, right?
>
> cheers
>
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
"You are disgraced professional losers. And by the way, give us our money back."
- Representative Earl Pomeroy, Democrat of North Dakota
on the A.I.G. executives who were paid bonuses after a federal bailout.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-13 13:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-13 8:50 How do people deal with disk size variations? Eyal Lebedinsky
2009-05-13 9:09 ` Peter Rabbitson
2009-05-13 13:05 ` Bill Davidsen
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).