From: Michael Ossmann <mike@ossmann.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvm2 vgchange -a n problem
Date: Fri Mar 5 18:58:01 2004 [thread overview]
Message-ID: <20040305235958.GG8500@ossmann.com> (raw)
I'm using lvm2 with linux 2.6.4-rc1. When I try to
deactivate lvm with 'vgchange -a n' it always tells me:
LV vgfoo/lvbar in use: not removing
even when the lv is not mounted at all. So I try to
'lvchange -a n' the lv, but it tells me the same thing.
My workaround is to do 'dmsetup remove vgfoo-lvbar' for each
lv prior to deactivation. Then 'vgchange -a n' and
'lvchange -a n' work. My shutdown script includes:
for lv in $(lvs --noheadings | awk '{print $2 "-" $1}'); do
dmsetup remove $lv
done
/sbin/vgchange -a n
Is this how I'm supposed to do this? Am I missing
something?
Thanks,
mossmann
next reply other threads:[~2004-03-05 23:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-05 18:58 Michael Ossmann [this message]
2004-03-08 4:36 ` [linux-lvm] lvm2 vgchange -a n problem Joe Thornber
2004-03-10 16:14 ` Michael Ossmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040305235958.GG8500@ossmann.com \
--to=mike@ossmann.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.