It doesn't sound like your XFS partition is your boot partition.

I think you can use a similar procedure as to expand LVM partitions. From
your iSCSI box, unmount the partition and/or stop the iSCSI target driver,
use GPT to erase the partition and redefine it with the new size (make sure
your starting cylinder is identical, ending cylinder can be different),
/usr/sbin/partprobe to update the OS partition table cache, then
/usr/sbin/xfs_growfs. Restart your iSCSI target driver and/or remount the
partition.

Disclaimer: test this on a lab box first. I've only done this for LVM
partitions with local file systems. LVM includes pvresize and lvextend
specific to that volume style.

Fdisk only supports DOS partitions and maxes out at 2TB. GPT is the only
utility GNU supports that can build a >2TB partition table, but the CentOS
5.5 installer doesn't support GPT out of the box. meh.
-Dave



On Tue, Mar 15, 2011 at 10:50 PM, Rene Churchill <[email protected]> wrote:

>
> Hey gang,
>
> Hopefully one of you have played with this.  I'm trying to expand an XFS
> partition on a raid.  I've added the new drives and iscsi correctly
> recognizes them.  The problem is that XFS was chosen as the file system
> which puts me in a catch-22.  GNU parted doesn't support XFS and fdisk
> doesn't support the GUID partition table that parted writes out.
>
> I can't use xfs_growfs to expand the drive until the partition table has
> been expanded first.  Anybody know of a partition editor for Linux that
> understands GPT partition tables and XFS?
>
> I can't back up the drive, wipe it and rebuild because I don't have a spare
> 3TB of disk space kicking around.
>
> Thanks,
>     Rene
>

Reply via email to