[cobbler] Somewhat off topic. Re: Kickstarts.
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:mtier...@mit.edu +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 cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Re: [cobbler] Somewhat off topic. Re: Kickstarts.
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 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:mtier...@mit.edu +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 > cobbler@lists.fedorahosted.org > https://lists.fedorahosted.org/mailman/listinfo/cobbler > ___ cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Re: [cobbler] Somewhat off topic. Re: Kickstarts.
On 4/23/15 11:25 AM, Tucker DeWitt wrote: > 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: Yes, that's the route I'v ebeen going down. What surprised me was that it would create one with the MSDOS label and the other one, it freely uses the gpt label. Gotta love consistancy. ___ cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Re: [cobbler] Somewhat off topic. Re: Kickstarts.
On 4/23/15 8:11 AM, Michael Tiernan wrote: > In trying to do some new kickstarts, Just out of morbid curiosity since I like doing things against the stream, is there a way to force kickstarts/anaconda to NOT use the UUID of the drives in the mount table? (i.e. fstab) -- << MCT >> Michael C Tiernan xmpp:mtier...@mit.edu +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 cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler