LVM and Device Mapper Problem

Hello Forum,

In my system i have a lvm group named vg_tamagotchi with 8 lvm partitions. Now, i try to mount a usb device, that have also a lvm group named vg_tamabackup that have also 8 lvm partitions.
Now, i try to add the vg vg_tamabackup to my system with the “lvchange -ay /dev/vg_tamabackup” command.
But i can’t see any changes.
If i use “lvchange -an /dev/vg_tamabackup” i lose the mapping from the vg vg_tamagotchi that are not aktive mounted in my system!!!

  1. Why???

So, i try again an run the command “lvchange -ay /dev/vg_tamabackup”. Now, i see some devices from the vg_tamabackup, but not all. I see only thise devices that are mapped to the free (losen /dev/dm-? from the command above) /dev/dm-?

  1. Is this a DM Problem?

Can anyone help?

tamagotchi:/home/agroeschl # ls -l /dev/mapper/
insgesamt 0
crw------- 1 root root 10, 236 1. Okt 00:11 control
lrwxrwxrwx 1 root root 7 1. Okt 00:12 cr_tamagotchi_agroeschl → …/dm-8
lrwxrwxrwx 1 root root 7 1. Okt 00:12 vg_tamagotchi-tamagotchi_agroeschl → …/dm-2
lrwxrwxrwx 1 root root 7 1. Okt 00:11 vg_tamagotchi-tamagotchi_root → …/dm-0
lrwxrwxrwx 1 root root 7 1. Okt 00:11 vg_tamagotchi-tamagotchi_swap → …/dm-1
lrwxrwxrwx 1 root root 7 1. Okt 00:11 vg_tamagotchi-Windows2003_C → …/dm-5
lrwxrwxrwx 1 root root 7 1. Okt 00:11 vg_tamagotchi-Windows2003_D → …/dm-6
lrwxrwxrwx 1 root root 7 1. Okt 00:11 vg_tamagotchi-Windows7 → …/dm-3
lrwxrwxrwx 1 root root 7 1. Okt 00:11 vg_tamagotchi-Windows_Transfer → …/dm-7
lrwxrwxrwx 1 root root 7 1. Okt 00:11 vg_tamagotchi-WindowsXP → …/dm-4
tamagotchi:/home/agroeschl # ls -l /dev/vg_*
insgesamt 0
lrwxrwxrwx 1 root root 7 1. Okt 00:12 tamagotchi_agroeschl → …/dm-2
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_root → …/dm-0
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_swap → …/dm-1
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows2003_C → …/dm-5
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows2003_D → …/dm-6
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows7 → …/dm-3
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows_Transfer → …/dm-7
lrwxrwxrwx 1 root root 7 1. Okt 00:11 WindowsXP → …/dm-4
tamagotchi:/home/agroeschl # lvchange -ay /dev/vg_tamabackup
tamagotchi:/home/agroeschl # ls -l /dev/vg_*
insgesamt 0
lrwxrwxrwx 1 root root 7 1. Okt 00:12 tamagotchi_agroeschl → …/dm-2
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_root → …/dm-0
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_swap → …/dm-1
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows2003_C → …/dm-5
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows2003_D → …/dm-6
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows7 → …/dm-3
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows_Transfer → …/dm-7
lrwxrwxrwx 1 root root 7 1. Okt 00:11 WindowsXP → …/dm-4
tamagotchi:/home/agroeschl # ls -l /dev/vg_tamagotchi/
insgesamt 0
lrwxrwxrwx 1 root root 7 1. Okt 00:12 tamagotchi_agroeschl → …/dm-2
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_root → …/dm-0
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_swap → …/dm-1
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows2003_C → …/dm-5
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows2003_D → …/dm-6
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows7 → …/dm-3
lrwxrwxrwx 1 root root 7 1. Okt 00:11 Windows_Transfer → …/dm-7
lrwxrwxrwx 1 root root 7 1. Okt 00:11 WindowsXP → …/dm-4
tamagotchi:/home/agroeschl # lvchange -an /dev/vg_tamabackup
LV vg_tamabackup/tamabackup_root in use: not deactivating
LV vg_tamabackup/tamabackup_swap in use: not deactivating
LV vg_tamabackup/tamabackup_agroeschl in use: not deactivating
tamagotchi:/home/agroeschl # ls -l /dev/vg_tamagotchi/
insgesamt 0
lrwxrwxrwx 1 root root 7 1. Okt 00:12 tamagotchi_agroeschl → …/dm-2
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_root → …/dm-0
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_swap → …/dm-1
tamagotchi:/home/agroeschl # lvchange -ay /dev/vg_tamabackup
/dev/sdb: open failed: Kein Medium gefunden
/dev/sdc: open failed: Kein Medium gefunden
tamagotchi:/home/agroeschl # ls -l /dev/vg_tamagotchi/
insgesamt 0
lrwxrwxrwx 1 root root 7 1. Okt 00:12 tamagotchi_agroeschl → …/dm-2
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_root → …/dm-0
lrwxrwxrwx 1 root root 7 1. Okt 00:11 tamagotchi_swap → …/dm-1
tamagotchi:/home/agroeschl # ls -l /dev/vg_tamabackup/
insgesamt 0
lrwxrwxrwx 1 root root 7 1. Okt 01:17 backupWindows2003_C → …/dm-5
lrwxrwxrwx 1 root root 7 1. Okt 01:17 backupWindows2003_D → …/dm-6
lrwxrwxrwx 1 root root 7 1. Okt 01:17 backupWindows7 → …/dm-3
lrwxrwxrwx 1 root root 7 1. Okt 01:17 backupWindows_Transfer → …/dm-7
lrwxrwxrwx 1 root root 7 1. Okt 01:17 backupWindowsXP → …/dm-4
tamagotchi:/home/agroeschl #