* changing xfs file system tunnings(sunit,swidth) after mkfs.xfs
@ 2007-03-26 20:25 Raz Ben-Jehuda(caro)
2007-03-26 22:10 ` Nathan Scott
0 siblings, 1 reply; 6+ messages in thread
From: Raz Ben-Jehuda(caro) @ 2007-03-26 20:25 UTC (permalink / raw)
To: linux-xfs
I want to change the sunit,swidth of a file system which
was already created with a different tunnings, or at least
mount it with a different values.
Is it possible ?
thank you
--
Raz
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing xfs file system tunnings(sunit,swidth) after mkfs.xfs
2007-03-26 20:25 changing xfs file system tunnings(sunit,swidth) after mkfs.xfs Raz Ben-Jehuda(caro)
@ 2007-03-26 22:10 ` Nathan Scott
2007-03-27 7:04 ` Raz Ben-Jehuda(caro)
0 siblings, 1 reply; 6+ messages in thread
From: Nathan Scott @ 2007-03-26 22:10 UTC (permalink / raw)
To: Raz Ben-Jehuda(caro); +Cc: xfs
On Mon, 2007-03-26 at 22:25 +0200, Raz Ben-Jehuda(caro) wrote:
> I want to change the sunit,swidth of a file system which
> was already created with a different tunnings, or at least
> mount it with a different values.
> Is it possible ?
>From the XFS section in mount(8) ...
sunit=value and swidth=value
Used to specify the stripe unit and width for a RAID device or a
stripe volume. value must be specified in 512-byte block units.
If this option is not specified and the filesystem was made on a
stripe volume or the stripe width or unit were specified for the
RAID device at mkfs time, then the mount system call will
restore the value from the superblock. For filesystems that are
made directly on RAID devices, these options can be used to
override the information in the superblock if the underlying
disk layout changes after the filesystem has been created. The
swidth option is required if the sunit option has been speci‐
fied, and must be a multiple of the sunit value.
cheers.
--
Nathan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing xfs file system tunnings(sunit,swidth) after mkfs.xfs
2007-03-26 22:10 ` Nathan Scott
@ 2007-03-27 7:04 ` Raz Ben-Jehuda(caro)
2007-03-27 9:48 ` Shailendra Tripathi
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Raz Ben-Jehuda(caro) @ 2007-03-27 7:04 UTC (permalink / raw)
To: nscott; +Cc: xfs
ahha...
but did you ever tried to set an sunit value bigger than the one
set during the mkfs.xfs ?
On 3/27/07, Nathan Scott <nscott@aconex.com> wrote:
> On Mon, 2007-03-26 at 22:25 +0200, Raz Ben-Jehuda(caro) wrote:
> > I want to change the sunit,swidth of a file system which
> > was already created with a different tunnings, or at least
> > mount it with a different values.
> > Is it possible ?
>
> >From the XFS section in mount(8) ...
>
> sunit=value and swidth=value
> Used to specify the stripe unit and width for a RAID device or a
> stripe volume. value must be specified in 512-byte block units.
> If this option is not specified and the filesystem was made on a
> stripe volume or the stripe width or unit were specified for the
> RAID device at mkfs time, then the mount system call will
> restore the value from the superblock. For filesystems that are
> made directly on RAID devices, these options can be used to
> override the information in the superblock if the underlying
> disk layout changes after the filesystem has been created. The
> swidth option is required if the sunit option has been speci‐
> fied, and must be a multiple of the sunit value.
>
>
> cheers.
>
> --
> Nathan
>
>
--
Raz
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing xfs file system tunnings(sunit,swidth) after mkfs.xfs
2007-03-27 7:04 ` Raz Ben-Jehuda(caro)
@ 2007-03-27 9:48 ` Shailendra Tripathi
2007-03-27 12:20 ` David Chinner
2007-03-27 23:50 ` Nathan Scott
2 siblings, 0 replies; 6+ messages in thread
From: Shailendra Tripathi @ 2007-03-27 9:48 UTC (permalink / raw)
To: Raz Ben-Jehuda(caro); +Cc: nscott, xfs
Raz Ben-Jehuda(caro) wrote:
> ahha...
> but did you ever tried to set an sunit value bigger than the one
> set during the mkfs.xfs ?
>
Yes, I do it many times and I have always got it right.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing xfs file system tunnings(sunit,swidth) after mkfs.xfs
2007-03-27 7:04 ` Raz Ben-Jehuda(caro)
2007-03-27 9:48 ` Shailendra Tripathi
@ 2007-03-27 12:20 ` David Chinner
2007-03-27 23:50 ` Nathan Scott
2 siblings, 0 replies; 6+ messages in thread
From: David Chinner @ 2007-03-27 12:20 UTC (permalink / raw)
To: Raz Ben-Jehuda(caro); +Cc: nscott, xfs
On Tue, Mar 27, 2007 at 09:04:33AM +0200, Raz Ben-Jehuda(caro) wrote:
> ahha...
> but did you ever tried to set an sunit value bigger than the one
> set during the mkfs.xfs ?
Sure - but you've got to satisfy a whole heap of alignment
and size considerations when changing sunit e.g. AGs must be
stripe unit aligned and their size must be a whole multiple
of the stripe unit.
Hence any new value generally needs to be a multiple so
that filesystem alignment remains valid.
You might want to get a recent kernel, too, as it will
tell more about the reason why the mount with the new
sunit is failing (in dmesg).
Cheers,
dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: changing xfs file system tunnings(sunit,swidth) after mkfs.xfs
2007-03-27 7:04 ` Raz Ben-Jehuda(caro)
2007-03-27 9:48 ` Shailendra Tripathi
2007-03-27 12:20 ` David Chinner
@ 2007-03-27 23:50 ` Nathan Scott
2 siblings, 0 replies; 6+ messages in thread
From: Nathan Scott @ 2007-03-27 23:50 UTC (permalink / raw)
To: Raz Ben-Jehuda(caro); +Cc: xfs
On Tue, 2007-03-27 at 09:04 +0200, Raz Ben-Jehuda(caro) wrote:
> EST)
>
>
> ahha...
> but did you ever tried to set an sunit value bigger than the one
> set during the mkfs.xfs ?
I've not tried it, no - is that a trick question? :)
cheers.
--
Nathan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-03-27 23:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-26 20:25 changing xfs file system tunnings(sunit,swidth) after mkfs.xfs Raz Ben-Jehuda(caro)
2007-03-26 22:10 ` Nathan Scott
2007-03-27 7:04 ` Raz Ben-Jehuda(caro)
2007-03-27 9:48 ` Shailendra Tripathi
2007-03-27 12:20 ` David Chinner
2007-03-27 23:50 ` Nathan Scott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox