Bug#549691: lvm2: lvremove fails to remove open logical volume which is not opened

Martin Jürgens ma at jgs-wg.de
Mon Oct 5 17:43:50 UTC 2009


Package: lvm2
Version: 2.02.39-7
Severity: normal

lvremove fails to remove my swap LV, although it is not mounted and not mentioned in /etc/fstab:

x:~# free -m
             total       used       free     shared    buffers     cached
Mem:           498        410         88          0         62        153
-/+ buffers/cache:        194        303
Swap:            0          0          0

x:~# cat /proc/swaps 
Filename				Type		Size	Used	Priority
x:~# lsof /dev/mapper/x-swap_1
x:~# fuser /dev/mapper/x-swap_1

x:~# lvremove --force /dev/x/swap_1 
  Can't remove open logical volume "swap_1"

x:~# lvchange -a n /dev/x/swap_1
  LV x/swap_1 in use: not deactivating


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lvm2 depends on:
ii  libc6                        2.7-18      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.27-4 The Linux Kernel Device Mapper use
ii  libreadline5                 5.2-3.1     GNU readline and history libraries
ii  lsb-base                     3.2-20      Linux Standard Base 3.2 init scrip

Versions of packages lvm2 recommends:
pn  dmsetup                       <none>     (no description available)

lvm2 suggests no packages.

-- no debconf information





More information about the pkg-lvm-maintainers mailing list