From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-141237-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id B4C35138010
	for <garchives@archives.gentoo.org>; Tue, 11 Sep 2012 03:35:13 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 86E3F21C15D;
	Tue, 11 Sep 2012 03:34:54 +0000 (UTC)
Received: from icp-osb-irony-out4.external.iinet.net.au (icp-osb-irony-out4.external.iinet.net.au [203.59.1.220])
	by pigeon.gentoo.org (Postfix) with ESMTP id A11E121C181
	for <gentoo-user@lists.gentoo.org>; Tue, 11 Sep 2012 03:31:53 +0000 (UTC)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EADuwTlDLOyOP/2dsb2JhbABFhge1UYEHgiABAQEEAQIgYgQLDQQDAQIDAiYCAigeCQgZiA+pApMmgSGJaxuCfIINgRIDiFGKX4gMIoocgnM
X-IronPort-AV: E=Sophos;i="4.80,401,1344182400"; 
   d="scan'208";a="31474653"
Received: from unknown (HELO moriah.localdomain) ([203.59.35.143])
  by icp-osb-irony-out4.iinet.net.au with ESMTP; 11 Sep 2012 11:31:51 +0800
Received: from localhost (localhost [127.0.0.1])
	by moriah.localdomain (Postfix) with ESMTP id 753A4F6DE
	for <gentoo-user@lists.gentoo.org>; Tue, 11 Sep 2012 11:31:51 +0800 (WST)
X-Virus-Scanned: amavisd-new at lan.localdomain
Received: from moriah.localdomain ([127.0.0.1])
	by localhost (moriah.lan.localdomain [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Q58ym-9hUH1s for <gentoo-user@lists.gentoo.org>;
	Tue, 11 Sep 2012 11:31:46 +0800 (WST)
Received: from [192.168.48.6] (unknown [192.168.48.6])
	by moriah.localdomain (Postfix) with ESMTP id 4861C238DD1
	for <gentoo-user@lists.gentoo.org>; Tue, 11 Sep 2012 11:31:46 +0800 (WST)
Message-ID: <1347334305.31196.3.camel@bunyip>
Subject: Re: [gentoo-user] Weird hibernate problem
From: "W.Kenworthy" <billk@iinet.net.au>
To: gentoo-user@lists.gentoo.org
Date: Tue, 11 Sep 2012 11:31:45 +0800
In-Reply-To: <504E4839.8030301@taydin.org>
References: <504E4839.8030301@taydin.org>
Organization: Home in Perth, Western Australia
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.2.3 
Content-Transfer-Encoding: 7bit
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
X-Archives-Salt: a9594284-4d65-473f-9e0e-5591d1717eb0
X-Archives-Hash: fee4693dec74b250d901b8c6a509b4d5

Hi Timur, we need a lot more information:

what kernel version
in kernel or ToI hibernation
are you using genkernel
separate /usr
lvm

and anything else applicable.

Hibernation can be a pig to get going.

BillK



-----Original Message-----
From: Timur Aydin <ta@taydin.org>
Reply-to: gentoo-user@lists.gentoo.org
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Weird hibernate problem
Date: Mon, 10 Sep 2012 23:06:17 +0300

After corrupting my gentoo root filesystem system during hibernate 
experiments, I have finally finished the reinstallation. But hibernate 
still doesn't seem to work correctly. The symptoms are the same as 
during the experiments leading to the root fs corruption, but this time 
the root seems to remain intact.

Here is what happened during the first experiment. I had an 8G swap 
partition as /dev/sda5 and a data partition as /dev/sda6. Thinking that 
pm-hibernate requires a dedicated, separate partition, I backed up 
/dev/sda6, turned off swap at /dev/sda5, deleted /dev/sda[56] and then 
created /dev/sda5 (8G), /dev/sda6 (8G) and /dev/sda7 (remaining size) 
Then I specified /dev/sda6 as the resume partition on the kernel command 
line.

But when I did the pm-hibernate, the system powered off, and after 
reboot, the system seemed to have restored itself to the state it was at 
when I ran pm-hibernate. So it "seemed" to have worked, but the system 
was strangely unstable. There were many filesystem errors in the root 
partition and when I did a ps ax, I saw hundreds of kworker kernel 
threads lingering around. It was as if the hibernate image was slightly 
corrupted, but not enough to cause a complete lockup, but enough to 
cause there strange symptoms.

I first thought this was related to using the swap partition as the 
resume destination. But after reinstalling gentoo, I again used a 
separate partition for hibernate, but I am still seeing the same 
symtoms. Many kworker kernel threads are sleeping. But this time, the 
root filesystem didn't have any error. Concerned that a filesystem 
corruption is imminent, I immediately turned off power.

So, what could be causing these strange problems? Based on what I have 
read so far, the resume partition needs to be an active swap partition. 
This seems rather strange, because linux is using the swap partition for 
memory management as well. So shouldn't these be well separated to 
prevent corrupting each other?

Hope someone can help me make sense of all of this...