<div class="gmail_quote">Hi,<br><br>When I am trying to grow my real time partition from 945GB to 975GB i am getting error. I am using Linux 2.6.18<br>and xfsprogs 3.0<br><br><br>Below is the output for all <br><br><br><b>1) Created drive with 4 partitions (10, 15, 945, 30) GB</b><br>
<br>
/var/mnt/mine # fdisk -lu /dev/sda<br>
<br>
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes<br>
1 heads, 63 sectors/track, 31008336 cylinders, total 1953525168 sectors<br>
Units = sectors of 1 * 512 = 512 bytes<br>
<br>
Device Boot Start End Blocks Id System<br>
/dev/sda1 63 19531313 9765625+ 83 Linux<br>
Partition 1 does not end on cylinder boundary.<br>
/dev/sda2 19531315 48828190 14648438 83 Linux<br>
Partition 2 does not end on cylinder boundary.<br>
/dev/sda3 48828192 1894531317 922851563 83 Linux<br>
Partition 3 does not end on cylinder boundary.<br>
/dev/sda4 1894531319 1953525167 29496924+ 83 Linux<br>
Partition 4 does not end on cylinder boundary.<br>
<br>
<br>
<b>2) Created files systems (1, 4 regular partitions) while (2 will be
meta-data and 3 will be realtime partition)</b><br><br><b>mkfs.xfs -f
/dev/sda1</b><br>
<br>meta-data=/dev/sda1 isize=256 agcount=4, agsize=610352
blks<br> = sectsz=512 attr=2<br>
data = bsize=4096 blocks=2441406, imaxpct=25<br> = sunit=0 swidth=0 blks<br>
naming =version 2 bsize=4096 ascii-ci=0<br>
log =internal log bsize=4096 blocks=2560, version=2<br> = sectsz=512 sunit=0 blks, lazy-count=0<br>
realtime =none extsz=4096 blocks=0, rtextents=0<br>
<br><b>
mkfs.xfs -fr extsize=2m,rtdev=/dev/sda3 -l
internal,size=18240b /dev/sda2</b><br>
<br>
meta-data=/dev/sda2 isize=256 agcount=4, agsize=915528
blks<br> = sectsz=512 attr=2<br>
data = bsize=4096 blocks=3662109, imaxpct=25<br>
= sunit=0 swidth=0 blks<br>
naming =version 2 bsize=4096 ascii-ci=0<br>
log =internal log bsize=4096 blocks=18240, version=2<br> = sectsz=512 sunit=0 blks, lazy-count=0<br>
realtime =/dev/sda3 extsz=2097152 blocks=230712890,
rtextents=450611<br>
<br><b>
mkfs.xfs -f /dev/sda4</b><br>
<br>
meta-data=/dev/sda4 isize=256 agcount=4, agsize=1843558
blks<br>
= sectsz=512 attr=2<br>
data = bsize=4096 blocks=7374231, imaxpct=25<br>
= sunit=0 swidth=0 blks<br>
naming =version 2 bsize=4096 ascii-ci=0<br>
log =internal log bsize=4096 blocks=3600, version=2<br>
= sectsz=512 sunit=0 blks, lazy-count=0<br>
realtime =none extsz=4096 blocks=0, rtextents=0<br>
<br>
<br><b>
3) After some operations partition 4 is deleted and partition 3 is
expanded to end of drive (10,15, 975)</b><br>
<br>
/var/mnt/mine # fdisk -lu /dev/sda<br>
<br>
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes<br>
1 heads, 63 sectors/track, 31008336 cylinders, total 1953525168 sectors<br>
Units = sectors of 1 * 512 = 512 bytes<br>
<br>
Device Boot Start End Blocks Id System<br>
/dev/sda1 63 19531313 9765625+ 83 Linux<br>
Partition 1 does not end on cylinder boundary.<br>
/dev/sda2 19531315 48828190 14648438 83 Linux<br>
Partition 2 does not end on cylinder boundary.<br>
/dev/sda3 48828192 1953525167 952348488 83 Linux<br>
Partition 3 does not end on cylinder boundary.<br>
<br>
<br><b>
4) Now when i try to grow the realtime partition to end of drive growfs fails</b><br>
<br>
mount -t xfs -o rtdev=/dev/sda3 /dev/sda2 /mnt/HDD_ROOT/<br><br><b>
xfs_growfs -r /mnt/HDD_ROOT/</b><br>
<br>
meta-data=/dev/sda2 isize=256 agcount=4, agsize=915528
blks<br>
= sectsz=512 attr=2<br>
data = bsize=4096 blocks=3662109, imaxpct=25<br>
= sunit=0 swidth=0 blks<br>
naming =version 2 bsize=4096 ascii-ci=0<br>
log =internal bsize=4096 blocks=18240, version=2<br>
= sectsz=512 sunit=0 blks, lazy-count=0<br>
realtime =/dev/sda3 extsz=2097152 blocks=230712890,rtextents=450611<br><br>
xfs_growfs: XFS_IOC_FSGROWFSRT xfsctl failed: Input/output error<br>
realtime blocks changed from 230712890 to 238087122<br>
<br>
<br>
[88376.347000] attempt to access beyond end of device [88376.348000]<br>
sda2: rw=0, want=4231282112, limit=29296876<br>
[88376.349000] I/O error in filesystem ("sda2") meta-data dev sda2 block<br>
0xfc343db8 ("xfs_trans_read_buf") error 5 buf count 4096<br>
[88376.350000] xfs_force_shutdown(sda2,0x1) called from line 415 of file<br>
fs/xfs/xfs_trans_buf.c. Return address = 0xc028afe0 [88376.361000]<br>
Filesystem "sda2": I/O Error Detected. Shutting down filesystem: sda2<br>
[88376.362000] Please umount the filesystem, and rectify the problem(s)<br>
<br><br>Thanks<br>Amit<br><br>
</div><br>