On Wednesday 17 August 2016 09:16:01 to...@tuxteam.de wrote:

> On Wed, Aug 17, 2016 at 08:54:47AM -0400, Gene Heskett wrote:
> > On Wednesday 17 August 2016 03:43:36 ML mail wrote:
> > > Hello
> > >
> > > On my Debian 8 machine I have two XFS data partitions on my disk:
> > >
> > > - /dev/sdb1 of 4TB
> > > - /dev/sdb2 of 9TB
> > >
> > > Now I would like to decrease the first partition [...]
> >
> > I think this is a job for gparted [...]
>
> Gparted will grow (or shrink) the partition. Not the file system.
> The file system has to play along, otherwise you'll get a train
> wreck.
>
>  - Shrinking:
>    - first, shrink the file system (make sure FS has no data
>      beyond some block [1]
>    - then, shrink the partition accordingly
>
>  - Growing
>    - first, grow the partition
>    - then, grow the filesystem accordingly (i.e. tell the file
>      system it can use the extra space [2]
>
> [1] Ext2/3/4 supports shrinking. XFS not, according to the FAQ
> [2] XFS (and Ext*) support growing
>
> regards
>
> -- t
And I sit here with egg on my face. :(

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

Reply via email to