xfs
[Top] [All Lists]

Re: xfs_repair use all memory

To: Lampa <lampacz@xxxxxxxxx>
Subject: Re: xfs_repair use all memory
From: Emmanuel Florac <eflorac@xxxxxxxxxxxxxx>
Date: Wed, 17 Jun 2015 13:42:00 +0200
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CAG_XuNWJhCGrSB7jOi54wzdjxXVec+i=s6szkWea=8sx7SD50g@xxxxxxxxxxxxxx>
Organization: Intellique
References: <CAG_XuNWrbyb97h3moqgYJLdvMr3J1OPGb2VknDTpcO0-8upMnw@xxxxxxxxxxxxxx> <20150612122750.21c2a8e4@xxxxxxxxxxxxxxxxxxxx> <CAG_XuNUxBCYZtPJixcA8sJqN7nzb85Eg+vJyvAoNB73wryPcTw@xxxxxxxxxxxxxx> <20150612154353.1c0df8b6@xxxxxxxxxxxxxxxxxxxx> <CAG_XuNWJhCGrSB7jOi54wzdjxXVec+i=s6szkWea=8sx7SD50g@xxxxxxxxxxxxxx>
Le Wed, 17 Jun 2015 13:33:48 +0200
Lampa <lampacz@xxxxxxxxx> Ãcrivait:

> unable to repair - running without -n parameter requires more memory.
> Always killed by kernel
> 

If you have some storage room available on another filesystem, create
some swap space. I've done it once on a 1 GB RAM machine (adding up 8
GB of swap). The repair will be much, much longer but it works.

To create 64GB of swap space in a file, do something like this:

dd if=/dev/zero bs=1M count=65536 of=/some/file.swp
mkswap /some/file.swp
swapon /some/file.swp

However preferably don't use a single spinning drive, it's much too
slow. Flash devices are to be preferred, even a good quality USB thumb
drive will do.

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |   <eflorac@xxxxxxxxxxxxxx>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

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