xfs_growfs for Realtime partition returns error

Amit Agarwal agarwala at gmail.com
Tue Oct 13 10:31:18 CDT 2009


Hi,

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
and xfsprogs 3.0


Below is the output for all


*1) Created drive with 4 partitions (10, 15, 945, 30) GB*

/var/mnt/mine # fdisk -lu /dev/sda

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
1 heads, 63 sectors/track, 31008336 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

  Device Boot    Start       End    Blocks   Id  System
/dev/sda1              63    19531313     9765625+  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2        19531315    48828190    14648438   83  Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3        48828192  1894531317   922851563   83  Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4      1894531319  1953525167    29496924+  83  Linux
Partition 4 does not end on cylinder boundary.


*2) Created files systems (1, 4 regular partitions) while (2 will be
meta-data and 3 will be realtime partition)*

*mkfs.xfs -f /dev/sda1*

meta-data=/dev/sda1       isize=256    agcount=4, agsize=610352 blks
                =                       sectsz=512   attr=2
data         =                       bsize=4096   blocks=2441406, imaxpct=25
                =                       sunit=0      swidth=0 blks
naming   =version 2         bsize=4096   ascii-ci=0
log          =internal log     bsize=4096   blocks=2560, version=2
               =                       sectsz=512   sunit=0 blks,
lazy-count=0
realtime =none               extsz=4096   blocks=0, rtextents=0

* mkfs.xfs -fr extsize=2m,rtdev=/dev/sda3 -l internal,size=18240b /dev/sda2*

meta-data=/dev/sda2       isize=256    agcount=4, agsize=915528 blks
                =                       sectsz=512   attr=2
data        =                       bsize=4096   blocks=3662109, imaxpct=25
               =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log        =internal log           bsize=4096   blocks=18240, version=2
               =                       sectsz=512   sunit=0 blks,
lazy-count=0
realtime =/dev/sda3              extsz=2097152 blocks=230712890,
rtextents=450611

* mkfs.xfs -f /dev/sda4*

meta-data=/dev/sda4              isize=256    agcount=4, agsize=1843558 blks
        =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=7374231, imaxpct=25
        =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=3600, version=2
        =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0


* 3) After some operations partition 4 is deleted and partition 3 is
expanded to end of drive (10,15, 975)*

/var/mnt/mine # fdisk -lu /dev/sda

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
1 heads, 63 sectors/track, 31008336 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes

  Device Boot    Start       End    Blocks   Id  System
/dev/sda1              63    19531313     9765625+  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2        19531315    48828190    14648438   83  Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3        48828192  1953525167   952348488   83  Linux
Partition 3 does not end on cylinder boundary.


* 4) Now when i try to grow the realtime partition to end of drive growfs
fails*

mount -t xfs -o rtdev=/dev/sda3 /dev/sda2 /mnt/HDD_ROOT/

* xfs_growfs -r /mnt/HDD_ROOT/*

meta-data=/dev/sda2              isize=256    agcount=4, agsize=915528 blks
        =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=3662109, imaxpct=25
        =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal               bsize=4096   blocks=18240, version=2
        =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =/dev/sda3              extsz=2097152
blocks=230712890,rtextents=450611

xfs_growfs: XFS_IOC_FSGROWFSRT xfsctl failed: Input/output error
realtime blocks changed from 230712890 to 238087122


[88376.347000] attempt to access beyond end of device [88376.348000]
sda2: rw=0, want=4231282112, limit=29296876
[88376.349000] I/O error in filesystem ("sda2") meta-data dev sda2 block
0xfc343db8       ("xfs_trans_read_buf") error 5 buf count 4096
[88376.350000] xfs_force_shutdown(sda2,0x1) called from line 415 of file
fs/xfs/xfs_trans_buf.c.  Return address = 0xc028afe0 [88376.361000]
Filesystem "sda2": I/O Error Detected.  Shutting down filesystem: sda2
[88376.362000] Please umount the filesystem, and rectify the problem(s)


Thanks
Amit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20091013/6dd70090/attachment.htm>


More information about the xfs mailing list