We create the vg on /dev/sda2
Running command ['vgcreate', '--force', '--zero=y', '--yes', 'ubuntu-vg', '/dev/sda2'] with allowed return codes [0] (capture=True) Running command ['pvscan'] with allowed return codes [0] (capture=True) Running command ['vgscan', '--mknodes'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring lvm_volgroup: lvm_volgroup-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring lvm_partition: lvm_partition-0
Running command ['lvcreate', 'ubuntu-vg', '--name', 'ubuntu-lv', '--zero=y', '--wipesignatures=y', '--size', '4294967296.0B'] with allowed return codes [0] (capture=False) WARNING: Not using device /dev/sdb2 for PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU. WARNING: Not using device /dev/sdc2 for PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU. WARNING: Not using device /dev/sdd2 for PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU. WARNING: PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU prefers device /dev/sda2 because device name matches previous. WARNING: PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU prefers device /dev/sda2 because device name matches previous. WARNING: PV los2ZN-fWXS-JNWB-WPJC-vUhM-2K46-6f5AAU prefers device /dev/sda2 because device name matches previous. Cannot update volume group ubuntu-vg with duplicate PV devices. An error occured handling 'lvm_partition-0': ProcessExecutionError - Unexpected error while running command. Command: ['lvcreate', 'ubuntu-vg', '--name', 'ubuntu-lv', '--zero=y', '--wipesignatures=y', '--size', '4294967296'
And then lvm looks at other *disks* on the system (and sees duplicates due to multipath).
It looks like curtin will need to dynamically enable lvm filters to ignore these:
--config 'devices{ filter = filter = [ "a|/dev/sda2$|" ] }'
We create the vg on /dev/sda2
Running command ['vgcreate', '--force', '--zero=y', '--yes', 'ubuntu-vg', '/dev/sda2'] with allowed return codes [0] (capture=True) stage-partition ing/builtin/ cmd-block- meta: SUCCESS: configuring lvm_volgroup: lvm_volgroup-0 stage-partition ing/builtin/ cmd-block- meta: configuring lvm_partition: lvm_partition-0
Running command ['pvscan'] with allowed return codes [0] (capture=True)
Running command ['vgscan', '--mknodes'] with allowed return codes [0] (capture=True)
finish: cmd-install/
start: cmd-install/
Running command ['lvcreate', 'ubuntu-vg', '--name', 'ubuntu-lv', '--zero=y', '--wipesignatur es=y', '--size', '4294967296.0B'] with allowed return codes [0] (capture=False) fWXS-JNWB- WPJC-vUhM- 2K46-6f5AAU. fWXS-JNWB- WPJC-vUhM- 2K46-6f5AAU. fWXS-JNWB- WPJC-vUhM- 2K46-6f5AAU. fWXS-JNWB- WPJC-vUhM- 2K46-6f5AAU prefers device /dev/sda2 because device name matches previous. fWXS-JNWB- WPJC-vUhM- 2K46-6f5AAU prefers device /dev/sda2 because device name matches previous. fWXS-JNWB- WPJC-vUhM- 2K46-6f5AAU prefers device /dev/sda2 because device name matches previous. nError - Unexpected error while running command. es=y', '--size', '4294967296'
WARNING: Not using device /dev/sdb2 for PV los2ZN-
WARNING: Not using device /dev/sdc2 for PV los2ZN-
WARNING: Not using device /dev/sdd2 for PV los2ZN-
WARNING: PV los2ZN-
WARNING: PV los2ZN-
WARNING: PV los2ZN-
Cannot update volume group ubuntu-vg with duplicate PV devices.
An error occured handling 'lvm_partition-0': ProcessExecutio
Command: ['lvcreate', 'ubuntu-vg', '--name', 'ubuntu-lv', '--zero=y', '--wipesignatur
And then lvm looks at other *disks* on the system (and sees duplicates due to multipath).
It looks like curtin will need to dynamically enable lvm filters to ignore these:
--config 'devices{ filter = filter = [ "a|/dev/sda2$|" ] }'