Comment 7 for bug 737027

Revision history for this message
Jesse Johnson (holocronweaver) wrote :

I believe Philip may be incorrect about the dmraid rule not belonging. I have a RAID 5 disk with a GPT partition table. When only dmraid runs, my drive is listed in /dev/mapper/drive but not its partitions. If I then run 'kpartx -a /dev/mapper/drive' then my two partitions appear as /dev/mapper/drive1 and /dev/mapper/drive2 which can both be mounted. Therefore kpartx must run even after dmraid already added the tables since dmraid cannot handle GPT partition tables. Note that you are right that this is not needed for standard MBR tables.

When I changed the case in the dmraid rule from 'dmraid-*' to 'DMRAID-*' I can now mount my partitions via /etc/fstab using UUID as per usual. However, this causes a duplication of mappings for my disks with MBR. Is there a way to make this rule only fire for disks with GPT?