It's been a long time since I tried to deal with this same problem so I've
forgotten where the actual bug lies but we ended up hacking in some pre
install work that _I think_ managed to get it working. This is the snippet
we're using before setting up the dick layouts:
# Remove any existing MD devices
mdadm --remove /dev/md0
mdadm --remove /dev/md1
mdadm --zero-superblock /dev/sda
mdadm --zero-superblock /dev/sdb
# Remove patrition tables on all sd devices and create new GPT labels
for dev in `parted -lms 2>/dev/null |egrep '^/dev/[s]'|cut -d':' -f1`; do
dd if=/dev/zero of=${dev} bs=512 count=4096
blockdev --rereadpt ${dev}
parted -s ${dev} mklabel gpt
done
The problem lies in the fact that the older anaconda (I think) does
something "smart" with partitions and only applies GPT labels for
volumes > 2T. Alternatively, you can dig into the Python and find the
place where it makes this decision and patch it yourself. I wish I
could be more helpful but it's been a long time since I touched that
code and I think it has now made it into my collection of repressed
memories.
On Thu, Apr 23, 2015 at 5:41 PM, Michael Tiernan <[email protected]> wrote:
> In trying to do some new kickstarts, I've found the problem of not being
> able to specify gpt labels on drives. But I've run into a strange thing
> and I'm looking for pointers to read more about it.
>
> I have two 2tb drives. I build an MD raid across two of their partitions
> (i.e. sda1, sdb2) at kickstart.
>
> The quirky thing is that the first drive is, as we know, given an MSDOS
> label but the quirky part is that the second drive *does* get the GPT
> label. Is there anyway to control this odd behavior so that both drives
> get the exact same label?
>
> --
> << MCT >> Michael C Tiernan xmpp:[email protected] +1 (617) 324-9173
> MIT - Laboratory for Nuclear Science - http://www.lns.mit.edu
> High Perf Research Computing Facility at The Bates Linear Accelerator
> Please avoid sending me MS-Word or MS-PowerPoint attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler