Hi, I'll try to clarify things:
There are three disks:
sda sdb sdc
on each disk, there is a
crypt-luks partition
The luks on sda shows up as a device /dev/dm-0
on this device is a lvm group called vgubuntu with three volumes
vgubuntu-Daten_LinuxSSD -> ../dm-3
vgubuntu-root -> ../dm-2
vgubuntu-swap -> ../dm-1
the luks partition on sdb and sdc gets dm-4 and dm-5 assigned. But, there is no way to tell which one gets which after booting the machine.
Here another view from lsblk:
Code: Select all
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 1,8T 0 disk
└─sdb1 8:17 0 1,8T 0 part
└─BACKUP 253:4 0 1,8T 0 crypt /mnt/BACKUP
sdc 8:32 0 931,5G 0 disk
├─sdc2 8:34 0 247,8G 0 part /mnt/Daten_Win
└─sdc1 8:33 0 683,7G 0 part
└─daten-linux 253:5 0 683,7G 0 crypt /mnt/Daten_Linux
sda 8:0 0 256,2G 0 disk
├─sda2 8:2 0 97,8G 0 part
├─sda5 8:5 0 156,3G 0 part
│ └─lukslvm 253:0 0 156,3G 0 crypt
│ ├─vgubuntu-swap 253:1 0 24G 0 lvm [SWAP]
│ ├─vgubuntu-root 253:2 0 64G 0 lvm /
│ └─vgubuntu-Daten_LinuxSSD 253:3 0 68,3G 0 lvm /mnt/Daten_LinuxSSD
├─sda3 8:3 0 2G 0 part /boot
└─sda1 8:1 0 100M 0 part
The problem is this: one time after boot, /dev/maper/ looks like this:
Code: Select all
lrwxrwxrwx 1 root root 7 Nov 22 11:31 BACKUP -> ../dm-4
lrwxrwxrwx 1 root root 7 Nov 22 11:31 daten-linux -> ../dm-5
the next time it looks like this:
Code: Select all
lrwxrwxrwx 1 root root 7 Nov 22 11:31 BACKUP -> ../dm-5
lrwxrwxrwx 1 root root 7 Nov 22 11:31 daten-linux -> ../dm-4
Because Veeam uses dm-4 and dm-5 to identify what to backup, the wrong disk gets backuped.
If veeam would use /dev/mapper/daten-linux instead of /dev/dm5 (which would be fine in the first case but not the second), everything would work like expected. But as db-xy can change after each reboot it just doesnt work.
Here a view of my veeam setup:
Code: Select all
Choose volumes to backup
──────────────────────────────────────────────────────────────────────────
Name │
Backup mode │ NAME MOUNT POINT
> Volumes │
Destination │ [] dm-4 /mnt/BACKUP
Network │ [+ ] dm-5 /mnt/Daten_Linux
Advanced │ [\] sda │
Schedule │ [+] sda1 │
Summary │ [+] sda2 │
│ [+] sda3 /boot │
│ [ ] sda4 │
│ [ ] sdb │
│ [+] sdc │
│ [+] sdc2 /mnt/Daten_Win
──────────────────────────────────────────────────────────────────────────
[Prev] [Next] [Cancel]
Any ideas?