All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] lvm2 vgchange -a n problem
@ 2004-03-05 18:58 Michael Ossmann
  2004-03-08  4:36 ` Joe Thornber
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Ossmann @ 2004-03-05 18:58 UTC (permalink / raw)
  To: linux-lvm

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-10 21:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 18:58 [linux-lvm] lvm2 vgchange -a n problem Michael Ossmann
2004-03-08  4:36 ` Joe Thornber
2004-03-10 16:14   ` Michael Ossmann

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.