* can I shrink an xfs?
@ 2008-03-11 17:29 Louis-David Mitterrand
2008-03-11 17:47 ` Eric Sandeen
2008-03-11 18:02 ` Josef 'Jeff' Sipek
0 siblings, 2 replies; 4+ messages in thread
From: Louis-David Mitterrand @ 2008-03-11 17:29 UTC (permalink / raw)
To: xfs
Hi,
Is it possible to shrink an xfs? I tried using xfs_growfs to no avail.
zenon:~# xfs_growfs -D 650000000 /backup
meta-data=/dev/md2 isize=256 agcount=32, agsize=20539552 blks
= sectsz=4096 attr=1
data = bsize=4096 blocks=657265248, imaxpct=25
= sunit=16 swidth=48 blks
naming =version 2 bsize=4096
log =internal bsize=4096 blocks=32768, version=2
= sectsz=4096 sunit=1 blks, lazy-count=0
realtime =none extsz=196608 blocks=0, rtextents=0
data size 650000000 too small, old size is 657265248
... even though the fs is 80% full only.
Thanks,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: can I shrink an xfs?
2008-03-11 17:29 can I shrink an xfs? Louis-David Mitterrand
@ 2008-03-11 17:47 ` Eric Sandeen
2008-03-11 18:02 ` Josef 'Jeff' Sipek
1 sibling, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2008-03-11 17:47 UTC (permalink / raw)
To: xfs
Louis-David Mitterrand wrote:
> Hi,
>
> Is it possible to shrink an xfs? I tried using xfs_growfs to no avail.
Nope.
http://oss.sgi.com/projects/xfs/faq.html#resize
-Eric
> zenon:~# xfs_growfs -D 650000000 /backup
> meta-data=/dev/md2 isize=256 agcount=32, agsize=20539552 blks
> = sectsz=4096 attr=1
> data = bsize=4096 blocks=657265248, imaxpct=25
> = sunit=16 swidth=48 blks
> naming =version 2 bsize=4096
> log =internal bsize=4096 blocks=32768, version=2
> = sectsz=4096 sunit=1 blks, lazy-count=0
> realtime =none extsz=196608 blocks=0, rtextents=0
> data size 650000000 too small, old size is 657265248
>
> ... even though the fs is 80% full only.
>
> Thanks,
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: can I shrink an xfs?
2008-03-11 17:29 can I shrink an xfs? Louis-David Mitterrand
2008-03-11 17:47 ` Eric Sandeen
@ 2008-03-11 18:02 ` Josef 'Jeff' Sipek
2008-03-12 9:17 ` David Chinner
1 sibling, 1 reply; 4+ messages in thread
From: Josef 'Jeff' Sipek @ 2008-03-11 18:02 UTC (permalink / raw)
To: xfs
On Tue, Mar 11, 2008 at 06:29:58PM +0100, Louis-David Mitterrand wrote:
> Hi,
>
> Is it possible to shrink an xfs? I tried using xfs_growfs to no avail.
There's no official/supported way to do it. There might be some tool to do
it, but I'm not aware of any.
Dave, et. al.: why not support shrinking? I know, inode numbers and whatnot,
but that's already being messed up (at least to a degree) with the noikeep
mount option. I think that shrinking would be useful to have - even if you
have to pass it --i-know-what-i-am-doing kind of option. Maybe a offline
shrink via repair would be more viable?
Josef 'Jeff' Sipek.
--
Hegh QaQ law'
quvHa'ghach QaQ puS
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: can I shrink an xfs?
2008-03-11 18:02 ` Josef 'Jeff' Sipek
@ 2008-03-12 9:17 ` David Chinner
0 siblings, 0 replies; 4+ messages in thread
From: David Chinner @ 2008-03-12 9:17 UTC (permalink / raw)
To: Josef 'Jeff' Sipek; +Cc: xfs, ruben.porras
On Tue, Mar 11, 2008 at 02:02:10PM -0400, Josef 'Jeff' Sipek wrote:
> On Tue, Mar 11, 2008 at 06:29:58PM +0100, Louis-David Mitterrand wrote:
> > Hi,
> >
> > Is it possible to shrink an xfs? I tried using xfs_growfs to no avail.
>
> There's no official/supported way to do it. There might be some tool to do
> it, but I'm not aware of any.
>
> Dave, et. al.: why not support shrinking? I know, inode numbers and whatnot,
> but that's already being messed up (at least to a degree) with the noikeep
> mount option. I think that shrinking would be useful to have - even if you
> have to pass it --i-know-what-i-am-doing kind of option. Maybe a offline
> shrink via repair would be more viable?
It's being worked on - have a look in the achives at what Ruben Porras has
been doing (and the patches he recently sent). Shrinking involves a lot of
bits to come together sucessful, and we're slowly getting them together.
If you want to get it done faster - help Ruben ;)
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-12 9:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-11 17:29 can I shrink an xfs? Louis-David Mitterrand
2008-03-11 17:47 ` Eric Sandeen
2008-03-11 18:02 ` Josef 'Jeff' Sipek
2008-03-12 9:17 ` David Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox