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 1GTDUs-0005Dv-Jm for garchives@archives.gentoo.org; Fri, 29 Sep 2006 08:13:27 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8T8B311028772; Fri, 29 Sep 2006 08:11:03 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 k8T82br5002901 for ; Fri, 29 Sep 2006 08:02:38 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E124D64D61 for ; Fri, 29 Sep 2006 08:02:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 required=5.5 tests=[AWL=0.211, BAYES_00=-2.599, RCVD_IN_WHOIS_INVALID=2.234, TW_LV=0.077, TW_QK=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 VBZuwM2k33P2 for ; Fri, 29 Sep 2006 08:02:35 +0000 (UTC) Received: from ios.ac.cn (unknown [159.226.5.150]) by smtp.gentoo.org (Postfix) with ESMTP id F20B364FDF for ; Fri, 29 Sep 2006 08:02:34 +0000 (UTC) Received: by x31.ios.ac.cn (Postfix, from userid 1000) id 7C2A7697C9; Fri, 29 Sep 2006 16:02:26 +0800 (CST) Date: Fri, 29 Sep 2006 16:02:26 +0800 From: Shaochun Wang To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] suspend2 with lvm Message-ID: <20060929080226.GB6852@localhost> Mail-Followup-To: gentoo-user@gentoo.org 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=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Archives-Salt: 62090d94-49fb-4cff-8c2c-28d1d53b4c1e X-Archives-Hash: 3ff20fc9b833d4f9269b1a19a4997514 Hi Everyone: I use suspend2 and lvm at the same time. I use a lvm partition (/dev/vg/swap) as my suspend target by setting resume2=swap:/dev/vg/swap. I order to use make it work, I use initramfs. It works properly except that I get the following message when I shut down the computer: 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? My initramfs is at http://lcs.ios.ac.cn/~scwang/docs/initramfs_data.cpio.gz The following is my some information of my system: $ uname -a $ Linux x31 2.6.16-suspend2-r8 #40 PREEMPT Fri Sep 29 14:25:38 CST 2006 i686 Intel(R) Pentium(R) M processor 1500MHz GNU/Linux $ lvdisplay /dev/vg/swap $ --- Logical volume --- LV Name /dev/vg/swap VG Name vg LV UUID E6oRRu-qkza-XIb5-TnGw-rGak-v7Kr-Jr5qZL LV Write Access read/write LV Status available # open 2 LV Size 1000.00 MB Current LE 250 Segments 1 Allocation inherit Read ahead sectors 0 Block device 254:4 -- Shaochun Wang GPG Fingerprint: 70C2 6945 0E46 E08B 419A 007C AC5C F21F 358A 0833 You can get my publickey from the following url: http://lcs.ios.ac.cn/~scwang/docs/scwangpublickey.gpg -- gentoo-user@gentoo.org mailing list