Linux LVM users
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <bmr@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Re: Re: Re: Loopback mount a disk image with lvm
Date: Mon, 09 Jun 2008 14:51:33 +0100	[thread overview]
Message-ID: <484D3565.9030202@redhat.com> (raw)
In-Reply-To: <2122f0920806090646h46bb29cds76fb957a2b8e0cbe@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Girish V wrote:
> Incidentally, how do I free the loop (/dev/loop0) associated with
> disk.img. I tried "sudo losetup -d /dev/loop0", but I get the error
> message "ioctl: LOOP_CLR_FD: Device or resource busy".
> 
> I tried looking at mount, ps, top etc - but the disk.img associated
> with loop0, was not being used.

Unmount all the file systems, deactivate the VG with "vgchange -an
<vgname>" (if you mounted/activated them) and finally delete the kpartx
mappings with "kpartx -d /dev/loop0". That should release all references
on the loop devices allowing you to unbind it with losetup.

Regards,
Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFITTVl6YSQoMYUY94RAnbGAJsGVXX5HCAHKqyLV32+9tupQpKp8QCfct2K
HKQvSKwxWw7k1esges0oyww=
=J2Oe
-----END PGP SIGNATURE-----

  reply	other threads:[~2008-06-09 13:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 13:46 [linux-lvm] Re: Re: Re: Loopback mount a disk image with lvm Girish V
2008-06-09 13:51 ` Bryn M. Reeves [this message]
2008-06-09 13:51 ` Milan Broz

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=484D3565.9030202@redhat.com \
    --to=bmr@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox