Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 harddrives in my system, managed by LVM

vg1 (on /dev/sda2)

vg2 (on /dev/sdb2)

I removed the sdb HDD and when booting it has gotton slower and drops into debug mode and dmesg shows me:

dracut: Scanning sda2 for LVM logical volumes vg1/lv_root vg1/lv_swap vg2/lv_root vg2/lv_swap
dracut: inactive /dev/vg1/lv_swap inherit
dracut: inactive /dev/vg1/lv_root inherit
Volume group vg2 not found
Skipping volume group vg2
dracut: Warning: No root device "block:/dev/mapper/vg_myname-lv_root" found
dracut: /dev/mapper/vgmyname-lv-swap" not found.

It's the same issue as here:


The problem was that the bootloader looked for the removed swap logical volume. All I had to do was to edit grub.confand reboot.

Just to be sure I also deactivated the drive in KDE's 'Disk Utility'.

share|improve this question

Before you can remove the disk, you need to migrate the data to another disk.

If I'm interpreting your question right, you appear to have different Volume Groups on different disks. In that case, your simplest solution would be just to make a new VG on a new disk, make a new lv on that vg, and copy the disk however you like.

If you want to get complicated, you can add the new disk (pv) to VG2 using vgextend vg2 /dev/sdc1. Then you migrate all the data off of the old disk onto the new one using pvmove /dev/sdb1 /dev/sdc1, then remove it from the vg using vgreduce vg2 /dev/sdb1

share|improve this answer
Hi - yes I have different Volume Groups on different Disks. One disk is from Computer A and one is from Computer B. Unfortunately both disks were plugged in during OS installation, but I made sure that the OS is getting installed ONLY on the Computer A disk. Now i want to remove Computer B disk without loosing data or having to copy it? When I pull the cable from Computer B disk, the data remains on the disk, so everything is fine. But I get error messages that say dev/mapper cldnt find lv_root and lv_swap on Computer A disk (plugged in). HTH – Stephan Kristyn Jun 19 '11 at 18:16

A likely cause is that you have filesystems on the volume group(s) that the drive provides physical volume(s) for, and the error is the OS trying to mount these on boot. Check your /etc/fstab/ for this issue.

It would be helpful to include the text of the relevant part of the boot sequence. "some device mapper error messages" isn't all that helpful from a remote diagnostics point-of-view.

share|improve this answer
You are right. The error message was from "dracut" on FC15 saying: "dracut: Warning: No root device "block:/dev/mapper/vg_myname-lv_root" found" – Stephan Kristyn Jun 19 '11 at 18:09
I saw now in my LVM GUI that both swap LVs are unmounted. – Stephan Kristyn Jun 19 '11 at 18:12
Maybe I could write in the fstab "/dev/vg_myname-lvroot" instead of "/dev/mapper/vg_myname-lv-root /" ? – Stephan Kristyn Jun 19 '11 at 18:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.