[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Re: Re: Re: Loopback mount a disk image with lvm



-----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-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]