mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kevin Corry <kevcorry@us.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: EVMS <evms-devel@lists.sourceforge.net>,
	Wakko Warner <wakko@animx.eu.org>
Subject: Re: deactivate dm disks?
Date: Tue, 16 Mar 2004 09:17:03 -0600	[thread overview]
Message-ID: <200403160917.03810.kevcorry@us.ibm.com> (raw)
In-Reply-To: <20040315205650.A11865@animx.eu.org>

Hi Wakko,

On Monday 15 March 2004 7:56 pm, Wakko Warner wrote:
> I was playing with evms (2.2 kernel 2.6.3 vanilla) and some reason, it
> grabbed my usb disk (sde) and won't let go of it.  Is there any way I can
> make it let go of the disk?  It grabbed sde1 and sde2 of the disk.

You can put entries in your /etc/evms.conf file to tell EVMS to ignore certain 
disks (e.g. if you don't want it to examine sde). See the "legacy_devices" 
section (for 2.4 kernels) and/or the "sysfs_devices" section (for 2.6 
kernels).

> I tried the deactivate which just gave me an invalid argument. I really do
> not wish to reboot this machine just to remove the usb disk.

If you have the "dmsetup" tool, you can issue a "dmsetup remove_all" command 
to deactivate all the DM devices. Just make sure all the DM devices are 
unmounted, or it won't actually release the underlying disks. Dmsetup is part 
of the device-mapper package, available at ftp://sources.redhat.com/pub/dm/.

> I also noticed it wanted to grab my partitions on sda which were already
> mounted and couldn't grab them.

Again, you can add an "exclude" entry in your /etc/evms.conf if you want EVMS 
to ignore sda. Otherwise, have a look at
http://evms.sf.net/install/kernel.html#bdclaim

-- 
Kevin Corry
kevcorry@us.ibm.com
http://evms.sourceforge.net/

  reply	other threads:[~2004-03-16 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-16  1:56 Wakko Warner
2004-03-16 15:17 ` Kevin Corry [this message]
2004-03-16 19:22   ` Wakko Warner
2004-03-16 19:58     ` [Evms-devel] " Kevin Corry

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=200403160917.03810.kevcorry@us.ibm.com \
    --to=kevcorry@us.ibm.com \
    --cc=evms-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wakko@animx.eu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®