Gary Palmer
2016-Nov-21 18:29 UTC
Help! two machines ran out of swap and corrupted their zpools!
On Mon, Nov 21, 2016 at 05:47:29PM +0000, Pete French wrote:> So, I am off sick and my colleagues decided to load test our set of five > servers excesively. All ran out of swap. So far so irritating, but whats has > happened is that twoof them now will not boot, as it appears the ZFS pool > they are booting from has become corrupted. > > One starts to boot, then crases importing the root pool. The other doenst > even get that far with gptzfsboot saying it can't find the pool to boot from! > > Now I can recover these, but I am a bit worried, that it got like this at > all, as I havent ever seen ZFS corrupt a pool like this. Anyone got any insights, > or suggstions as to how to stop it happening again ? > > We are swapping to a separate partition, not to the pool by theway.Silly question - have you checked that the swap partition does not overlap your boot pool partition? It could well be that the end of the swap partition intrudes into the affected ZFS pool Gary
Pete French
2016-Nov-22 08:37 UTC
Help! two machines ran out of swap and corrupted their zpools!
> Silly question - have you checked that the swap partition does not > overlap your boot pool partition? It could well be that the end of > the swap partition intrudes into the affected ZFS poolInteresting idea - all partitons were created with gpart add -a 8 but I have explictly checked, and I cant currently access the drives. Was there eer a bug in gpart which could cause this that you can remember ? The drives are GPT partitoned. When I gte the drives back online on a system I will check this though, thanks -pete.