From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GTO1i-0005EU-9d for garchives@archives.gentoo.org; Fri, 29 Sep 2006 19:28:02 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8TJOVgW006337; Fri, 29 Sep 2006 19:24:31 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8TJHHvW013574 for ; Fri, 29 Sep 2006 19:17:18 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 7BDC9644DB for ; Fri, 29 Sep 2006 19:17:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.418 X-Spam-Level: X-Spam-Status: No, score=-2.418 required=5.5 tests=[AWL=-0.096, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, TW_LV=0.077] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WLQ3EEFssTt7 for ; Fri, 29 Sep 2006 19:17:15 +0000 (UTC) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by smtp.gentoo.org (Postfix) with ESMTP id C24426429C for ; Fri, 29 Sep 2006 19:17:14 +0000 (UTC) Received: by nf-out-0910.google.com with SMTP id k26so1192657nfc for ; Fri, 29 Sep 2006 12:17:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=PFxPSscU2v7/QPdonCiHTr5sbG4E6L1JkGaLM35zbST4NAlC6s0pP9OKJPdJlHRyEuz7kcu+W5UCNYGwmSiHLNhaF3tdWNSSIL38rEnEJFVwR+4Mie37rnc/dC3LljKbIEzh5LghV8zIUndwcTqJEWhetsB8reFrY9Fa2R5GZMU= Received: by 10.82.105.13 with SMTP id d13mr72981buc; Fri, 29 Sep 2006 12:17:13 -0700 (PDT) Received: by 10.82.126.14 with HTTP; Fri, 29 Sep 2006 12:17:13 -0700 (PDT) Message-ID: <7573e9640609291217k3d19dc67me5a9f463f13fc099@mail.gmail.com> Date: Fri, 29 Sep 2006 12:17:13 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org, gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] suspend2 with lvm In-Reply-To: <20060929080226.GB6852@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060929080226.GB6852@localhost> X-Google-Sender-Auth: a1945aedad18e94d X-Archives-Salt: 67c5c7a1-464e-4253-b6bb-372aae2b43ce X-Archives-Hash: cb0290daddc6c456a0066fb869713507 On 9/29/06, Shaochun Wang wrote: > Unable to shutdown: /dev/vg/swap > > After some analyzing, I know it happens because the open count of > /dev/vg/swap is 2 when the script /lib/rcscripts/addons/lvm-stop.sh is > executed. > > Maybe this is the problem of baselayout or my initramfs. > How can I resolve it? I assume this is when you fully shutdown the system (shutdown -h now or similar)? If so, my first instinct is to simply ignore it, since it is totally harmless. But I suppose you could put this in your /etc/conf.d/local.stop: echo 0x0000 >/proc/suspend2/resume2 I'm not currently using suspend2, but IIRC, this should clear the reference that suspend2 has on the device. -Richard -- gentoo-user@gentoo.org mailing list