[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Decrease/increase XFS partitions



On Wednesday 17 August 2016 09:12:40 Brian wrote:

> On Wed 17 Aug 2016 at 08:54:47 -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 of 1TB in order
> > > to increase the second partition by that very same 1TB. Any ideas
> > > how to do that? My partition table is using GPT and I have parted
> > > installed.
> > >
> > > Regards
> > > ML
> >
> > I think this is a job for gparted. But since the amount of data that
>
> You would advise using gparted to shrink an XFS partition in spite of
>
>  
> http://xfs.org/index.php/XFS_FAQ#Q:_Is_there_a_way_to_make_a_XFS_files
>ystem_larger_or_smaller.3F
>
> saying it is not possible?
>
> Is this advice based on experience?

No, I just assumed, incorrectly it seems, that zfs had a command 
structure similar to ext2-3-4. The above link says you can't without a 
full backup, repartition and restore.

So I stand corrected.  And better educated.

And yes, I have used gparted to adjust ext3-4 systems.  Its a rather 
arduous, time consuming task but it worked.  And its dangerous to do on 
a live filesystem so I boot gparted from optical media.

But the size of my data has not grown as fast as the size of a commodity 
drive, a 1T drive is now $50 in my mailbox, so space is not, and has not 
been a problem for me for 4 or 5 years. 

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 to: