xfs
[Top] [All Lists]

Re: Any specific options for creating XFS fs over software raid ?

To: David Sparks <daves@xxxxxxxxxxxxxxx>
Subject: Re: Any specific options for creating XFS fs over software raid ?
From: Nathan Scott <nathans@xxxxxxx>
Date: Wed, 26 May 2004 15:41:36 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <40B390AB.3080204@ActiveState.com>
References: <20040524044653.GA21546@outblaze.com> <40B390AB.3080204@ActiveState.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
Hi there,

On Tue, May 25, 2004 at 11:30:03AM -0700, David Sparks wrote:
> Yusuf Goolamabbas wrote:
> >Hi, Was reading Christophs and Nathan's email on lkml about using v2 XFS
> >log format when using software raid5 and then Nathan's message about
> >creating the filesystem with -ssize=4096
> 
> I've got a software MD RAID5 that was not created with that option.  I 
> could've sworn that I read that mkfs.xfs would query the block size if 
> it was being created on a MD device and adjust accordingly.

mkfs.xfs queries alot of things, and at one point in the code it does
actually know if its writing to a MD RAID5 device.  There isn't any
heuristic in there for switching to a sector size that matches the
block size though, we'll need to add that.  Its on my list now... ;)

> What is the best course of action to fix this problem?  Backup data, 
> reformat partition and restore data?

Yep.

> Should I adjust the MD device to 
> match XFS or adjust XFS to match MD?

You cannot do the former (while contining to use RAID5), so the
latter will be your best bet.

cheers.

-- 
Nathan


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