xfs_repair use all memory
Emmanuel Florac
eflorac at intellique.com
Wed Jun 17 06:42:00 CDT 2015
Le Wed, 17 Jun 2015 13:33:48 +0200
Lampa <lampacz at gmail.com> é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 at intellique.com>
| +33 1 78 94 84 02
------------------------------------------------------------------------
More information about the xfs
mailing list