is it possible to disable partition mapping on specific SATA disk?
I'm using ,say "sdb", disk for DRBD replication where KVM VM is installed directly. Because of that, /dev/sdb got partitions and host recognized it after reboot.
I'd like to compose a rule to completely ignore disk (partitions) on KVM host by connection path if possible.
I've already tried with these rules (and combinations of it) in 10-ignore-disk.rules, but none of them worked out of the box
KERNEL=="sdb", GROUP="disk", OPTIONS:="last_rule"
KERNEL=="sdb1",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sdb", OPTIONS:="ignore_device"
KERNEL=="1:0:0:0", SUBSYSTEMS=="scsi", DRIVERS=="sd",OPTIONS:="last_rule"
sudo mkfs.ext4 /dev/sdband have that work swimmingly. Can you be more specific about what your end goal here is? – Jim Salter Nov 26 '12 at 3:17kpartx -a /dev/VG0/LV0and you get partition mapping in /dev/mapper/LV0p1, LV0p2 etc and remove partition mapping withkpartx -d /dev/VG0/LV0– AlexT Dec 9 '12 at 22:47