xfs
[Top] [All Lists]

Re: noob question

To: "Fitzgerald, Dan" <dfitzger@xxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: Re: noob question
From: Stan Hoeppner <stan@xxxxxxxxxxxxxxxxx>
Date: Mon, 06 Jan 2014 19:58:59 -0600
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <15F45A6CEAEFE340A264C3346D71EF04C4C339@xxxxxxxxxxxxxxxxxxxx>
References: <15F45A6CEAEFE340A264C3346D71EF04C4C339@xxxxxxxxxxxxxxxxxxxx>
Reply-to: stan@xxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
On 1/6/2014 4:11 PM, Fitzgerald, Dan wrote:
> I had our VMWare admin extend the file system on which /space is
> mounted (/dev/sda8).

Repeat at least three times:  Storage requires planning.

xfs_growfs only works on contiguous LBA sectors.  The free space to be
grown into must begin one LBA sector after the last LBA sector of the
current XFS filesystem.  If XFS resides on a partition, then the
partition itself must be expanded into the free space before XFS can be
grown into the newly expanded partition.  This seems to be your
situation.  Resizing partitions is not a fun exercise, and if not done
properly you can lose everything, literally.

If a block device is directly formatted with XFS things are easy.
Simply expand the block device capacity, then run xfs_growfs.

Because of the limitations up above, those wishing to add capacity using
partitions, in an ad hoc manner, such as you seem to desire here, put
their block device space in LVM volumes.  LVM can create a linear LBA
address space from little pieces of capacity strewn all over the place
on many different storage devices, regardless of their native LBA
addressing.  I don't really care for this method either.

I've worked with ESX and bare metal hosts on FC SANs fairly extensively.
 For each of my guests/hosts I assign a 10GB LUN for the guest's
boot/root filesystems, and a separate LUN(s), sized appropriately, for
its data volume(s).  I directly format each LUN, no partitions.  In the
event I need to expand a LUN to increase capacity, xfs_growfs simply
works, the way it should, with no hoop jumping.

If you need PIT snapshot capability you must use LVM, unless your
storage has a PIT snapshot facility, or you use VMware's snapshot utility.

-- 
Stan


<Prev in Thread] Current Thread [Next in Thread>