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

Re: xfs questions



On Mon, 2003-01-06 at 17:29, Mihai RUSU wrote:
> Hi Dragos
> 
> On 6 Jan 2003, Dragos Delcea wrote:
> 
> > -how does one recreate the log (external log, that is) after a device
> > (hdd) crash? the xfs partition resides on an raid5 device, but the log
> > itself resides on a simple disk; I browsed through man pages, but found
> > no clue of how to do it; does it work like that to just mount as usually
> > with "logdevice=/.." and automatically the log is recreated? sorry, I
> > haven't tried that, I'm two disks short now and a little away from the
> > server; fortunately, it's just a test setup (no data is lost).
> 
> I think the best thing to do is to backup your log partition. This is what
> I do on every server with XFS external log:
> cp /dev/logpartition xfs-log
you mean dd if=/dev/logpartition of=./xfs_log, right?
> 
anyway, you made your point.
> Keep that backup somewhere safe and after you loose your XFS log should be
> enough to cp xfs-log /dev/logpartition (while the XFS volume is not
> mounted). Notice that you will need a xfs_repair tho.
> 
> > -also, on an earlier test run, I created an xfs partition with an
> > internal log, (log) version 2; mkfs.xfs created it, but I could not
> > mount it, it complained something about "invalid sb" (not quite sure,
> > citing from memory); I'm on SuSE 8.1 with an updated kernel (still from
> > SuSE, ready compiled (from SLES8, used for oracle certification I
> > think), xfsutils and xfsdump from distribution). I know I should ask
> > them, but I have a feeling that I'm doing something wrong.
> 
> The XFS version 2 log works with latest XFS code (1.2pre or late CVS).
> Are you sure the XFS bits you are using do support version 2 log ?
I'm pretty sure it's at least 1.2preX; while compiling a kernel from
SuSE sources the xfs suboptions were: [*] include realtime support [*]
enable DMAPI support, so I assume that is at least 1.2pre; as for
userland, if mkfs.xfs din't barf at logversion=2 I think it should
support it.

thanks,
dragos

PS I'm delighted to see romanian users here! (besides me, that is)
> 
> ----------------------------
> Mihai RUSU