If my memory serves me correctly, xfs_repair etc were all in
in the root filesystem on Irix.
If XFS fails to run log recovery at mount time then it is in a
pretty sorry state. There is a mount option not to run recovery,
which will give you a readonly filesystem for the really desperate,
it is quite possible that it will shut itself down if corrupted
metadata is detected during access in this case (and the shutdown
code in linux was not working too well).
If the mount system call is not returning an error code for a
failed XFS mount that sounds like a bug.
Also, ask Martin Peterson at LinuxCare about an xfs aware
version of the LinuxCare rescue disk, that would be a useful
thing to have.
> -----Original Message-----
> From: Seth Mos [mailto:knuffie@xxxxxxxxx]
> Sent: Tuesday, December 19, 2000 5:34 PM
> To: Russell Cattelan
> Cc: linux-xfs@xxxxxxxxxxx
> Subject: Re: XFS and root shell
> On Tue, 19 Dec 2000, Russell Cattelan wrote:
> > Seth Mos wrote:
> > XFS either cleanly mounts or it doesn't, if it fails there is no
> > ok go what the hell go ahead and mount in a dirty state.
> > With ext2 you can tell it to go ahead and ignore the fact that
> > the file system isn't clean and mount it up.
> Sorry, that's not what I meant.
> What I mean is that if a fs doesn't mount in general that it should go
> single user. I DON'T want to _mount_ it dirty.
> Just drop me to a shell.
> If you make sure that the xfs* commands in /bin instead of /usr/bin.
> If you can mount your root fs (al my machines have a 400 MB
> root fs) you
> can repair your xfs partitions. e2fsck is in /bin for the
> same reason for
> a long time. This fs survives most of the horror that can
> happen (except
> disk failure) because it is fairly static (some mount it ro).
> > The hope in doing that, files like sh and fsck are probably
> > not part of what is wrong with the file system and therefore
> > able to bring up single user.
> You mean you can't effetively detect a not succesful mount
> except using a
> dmesg check?
> > The best thing to do is grab Thomas Graichen XFS miniroot.
> > http://innominate.org/~graichen/projects/miniroot/0.6/
> > One caveat you the system needs to be up to install it.
> No nothing is wrong for me. Just a question of wondering what can be
> > > Hi,
> > >
> > > If I have an ext2 filesystem that can not be mounted on
> boot time it will
> > > bring up a root shell for system maintenance. How
> difficult is it to make
> > > XFS do the same.
> > >
> > > I booted and older kernel (older style log) did a dirty
> reboot and the
> > > newer kernel could not mount /home because of the older log style.
> > > Ofcourse xfs_repair nows what to do but i did not notice
> untill I tried to
> > > log in.
> > >
> > > Normally I would get a Emergency shell to check out what is wrong.
> > > What needs to be changed if anyone can give pointers.
> > >
> > > Bye
> > > Seth
> > --
> > Russell Cattelan
> > cattelan@xxxxxxxxxxx