<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<span class="postbody">Hey all,
<br>
<br>
I ran against a problem today. I had a raid5 array with 5x500GB and
I've grown the array to 6x500GB. So far I always used this method to
add a disk to my raid setup:
<br>
<br>
* Partition the disk with one fd partition
<br>
* mdadm --add /dev/mddata1 /dev/sdf1
<br>
* mdadm --grow /dev/mddata1 --raid-devices=x
<br>
* cryptsetup luksOpen /dev/mddata1 data1
<br>
* xfs_check /dev/mapper/data1
<br>
* mount the disk
<br>
* xfs_growfs /dev/mapper/data1
<br>
<br>But at the last step, when I do xfs_growfs, nothing happens. I
found out about the -d option and this is what I get (pay attention to
the last line):
<br>
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody>        <tr>         <td class="code">
RoSe linux # xfs_growfs /dev/mapper/data1 -d
<br>
meta-data=/dev/mapper/data1 isize=256 agcount=9, agsize=61047928 blks
<br>
= sectsz=512 attr=2
<br>
data = bsize=4096 blocks=488383679, imaxpct=25
<br>
= sunit=0 swidth=0 blks
<br>
naming =version 2 bsize=4096 ascii-ci=0
<br>
log =internal bsize=4096 blocks=32768, version=2
<br>
= sectsz=512 sunit=0 blks, lazy-count=0
<br>
realtime =none extsz=4096 blocks=0, rtextents=0
<br>
data size unchanged, skipping</td>        </tr></tbody></table><span class="postbody">
<br>
<br>After searching around on the net I found out that I probably hit
"a" 2TB limit but I checked my kernel support and that seems to be ok:
<br>
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody>        <tr>         <td class="code">RoSe linux # zgrep -i efi /proc/config.gz
<br>
CONFIG_EFI=y
<br>
CONFIG_FB_EFI=y
<br>
CONFIG_EFI_VARS=y
<br>
CONFIG_EFI_PARTITION=y</td>        </tr></tbody></table><span class="postbody">
<br>
<br>Then I caught some hints about mbr and gpt, but is this also valid
with a software raid? That's some kind of a virtual drive, isn't it?
What can I do to bread this 2TB limit, or is it something else that
causes the grow to fail?
<br>
<br>
Proof that there is more size available:
<br>
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody>        <tr>         <td class="code">
<br>
RoSe linux # mdadm -D /dev/mddata1
<br>
/dev/mddata1:
<br>
Version : 0.90
<br>
Creation Time : Sat May 30 19:25:26 2009
<br>
Raid Level : raid5
<br>
Array Size : 2441919680 (2328.80 GiB 2500.53 GB)
<br>
</td>        </tr></tbody></table><span class="postbody">
<br>
<br>
</span><table width="90%" align="center" border="0" cellpadding="3" cellspacing="1"><tbody>        <tr>         <td class="code">RoSe linux # df --si
<br>
Filesystem Size Used Avail Use% Mounted on
<br>
/dev/mapper/data1 2.1T 2.0T 63G 97% /mnt/data1</td></tr></tbody></table><br /><hr />Je hele online leven op één stek? <a href='http://www.microsoft.com/belux/nl/windows/windowslive/default.aspx' target='_new'>Ontdek Windows Live!</a></body>
</html>