* [gentoo-user] suspend2 with lvm
@ 2006-09-29 8:02 Shaochun Wang
2006-09-29 19:17 ` Richard Fish
0 siblings, 1 reply; 2+ messages in thread
From: Shaochun Wang @ 2006-09-29 8:02 UTC (permalink / raw
To: gentoo-user
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 <scwang@ios.ac.cn>
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] suspend2 with lvm
2006-09-29 8:02 [gentoo-user] suspend2 with lvm Shaochun Wang
@ 2006-09-29 19:17 ` Richard Fish
0 siblings, 0 replies; 2+ messages in thread
From: Richard Fish @ 2006-09-29 19:17 UTC (permalink / raw
To: gentoo-user, gentoo-user
On 9/29/06, Shaochun Wang <scwang@ios.ac.cn> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-29 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-29 8:02 [gentoo-user] suspend2 with lvm Shaochun Wang
2006-09-29 19:17 ` Richard Fish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox