Skip to contentSkip to conversation

LVM pv blocking RAID device

DISCUSSION Hadmut Danisch 1 participant 1 message Sep 14, 2006 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi,

I wanted to modify several RAID1 partitions (changing the preferred minor), which requires to

  mdadm --stop /dev/md?

before. This worked well except with the RAID device which contained an LVM physical volume. I could not stop that contains an pv, even after vgchange -a n and vgexport. The RAID device is still busy.

How could I make LVM to release the underlying device (without destroying the contents)?

regards
Hadmut