Using xfs_growfs on a single disc

From: Rhubear (rupert_at_heesom.org.uk)
Date: 10/06/04


Date: 5 Oct 2004 15:00:41 -0700

I have migrated an existing partition to a larger disk and now want to
enlarge the existing partition to take up all the disk space.

The FDISK output of my disk looks like:

Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/hda1 * 1 6 48163+ 83 Linux
/dev/hda2 7 1116 8916075 5 Extended
/dev/hda5 7 1038 8289508+ 83 Linux
/dev/hda6 1039 1116 626503+ 82 Linux swap

Entries from my /etc/fstab are:

/dev/hda5 / xfs defaults 1 1
/dev/hda1 /boot ext2 defaults 1 2
/dev/hda6 swap swap defaults 0 0

I understand from the docs I've read that before I can use xfs_growfs
that I need to enlarge the partition. In the past I've enlarged
partitions with FAT32, NTFS, ext2 using Partition Magic.

How do I enlarge a parition for XFS? Do I need to use LVM even if I
am not dealing with a parition spanning multiple disks?

Also, I've been reading that the Root partition (my /dev/hda5) should
not be XFS and cannot be enlarged. This suggests that I need to
redesign my partitioning system.

I want to use Software RAID using md to mirror 2 discs with whatever
partition structure is needed, also would like the flexability of
adding disc space later using more pairs of mirrored disks. Thus I
would probably need to use LVM for the disc management. Do I need to
use LVM straight away for the immediate task?



Relevant Pages

  • Re: Linux community software-update-anarchy polemic
    ... Remember, I'm just a monkey. ... That implies that if you have one disk per partition, ... Trust the kernel or don't trust the kernel, but either way, both ...
    (comp.os.linux.misc)
  • Re: Partitioned Hard Drive in XP
    ... paritionrd XP into C:\ and D:\ drives. ... Which is the correct amount of hard disk space-160GB or 127.80GB? ... is the primary partition; D is the logical drive; Unallocated is ... then-present 127 GB is considered "unallocated" disk space. ...
    (microsoft.public.windowsxp.general)
  • Re: Partitioned Hard Drive in XP
    ... paritionrd XP into C:\ and D:\ drives. ... Which is the correct amount of hard disk space-160GB or 127.80GB? ... is the primary partition; D is the logical drive; Unallocated is ... then-present 127 GB is considered "unallocated" disk space. ...
    (microsoft.public.windowsxp.general)
  • SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
    ... One of the reasons for doing this is to end up with a smaller root ... Install the boot block and boot off the new drive. ... " In order for the root partition to be fscked and remounted ... D> temporarily on the existing disk. ...
    (SunManagers)
  • Re: SMS 2003 Installation & Configuration Question
    ... Number of disk arrays: 4 x SCSI Disk Arrays;one for OS, one for SMS, ... Can I have a single array and have one single large partition where I could ... event server crashes the database:) which usually does not happen atleast ... will the above disk space be ...
    (microsoft.public.sms.setup)