<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&nbsp; &nbsp; &nbsp; isize=256&nbsp; &nbsp; agcount=9, agsize=61047928 blks
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sectsz=512&nbsp; &nbsp;attr=2
<br>
data&nbsp; &nbsp; &nbsp;=&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bsize=4096&nbsp; &nbsp;blocks=488383679, imaxpct=25
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sunit=0&nbsp; &nbsp; &nbsp; swidth=0 blks
<br>
naming&nbsp; &nbsp;=version 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bsize=4096&nbsp; &nbsp;ascii-ci=0
<br>
log&nbsp; &nbsp; &nbsp; =internal&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bsize=4096&nbsp; &nbsp;blocks=32768, version=2
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sectsz=512&nbsp; &nbsp;sunit=0 blks, lazy-count=0
<br>
realtime =none&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;extsz=4096&nbsp; &nbsp;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>
&nbsp; &nbsp; &nbsp; &nbsp; Version : 0.90
<br>
&nbsp; Creation Time : Sat May 30 19:25:26 2009
<br>
&nbsp; &nbsp; &nbsp;Raid Level : raid5
<br>
&nbsp; &nbsp; &nbsp;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&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Size&nbsp; &nbsp;Used&nbsp; Avail Use% Mounted on
<br>
/dev/mapper/data1&nbsp; &nbsp; &nbsp; 2.1T&nbsp; &nbsp;2.0T&nbsp; &nbsp; 63G&nbsp; 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>