<div dir="ltr">+1 @local etc.<div>I like the idea that C. Petro has of setting up tags in %PRE, however @local and possibly others should be immutable.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 30, 2016 at 1:36 PM, C. Petro <span dir="ltr"><<a href="mailto:petro@cpetro.us" target="_blank">petro@cpetro.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> I know we can already hardcode which disk to use (--ondisk=sda)<br>
<br>
</span>When building a kickstart configuration for two or more types of<br>
machines sometimes that *doesn't* work.<br>
<br>
Last time I went through that I had Dell R620XDs (IIRC) and these<br>
awful SuperMicro boxes that had a windows only raid controller and I<br>
had to scriptomagically bang sdb and sdc together to get a predictable<br>
MD0. The sda device was present, but didn't work.<br>
<br>
What would be *really* cool is a couple of built in tags (@local,<br>
@remote, etc.) but also a way to define NEW tags on the fly--for<br>
example having a PRE script that creates an MD device then tags that<br>
as @fred or one that goes looking for a drive with particular<br>
characteristics (say for example I have a HP DL380G8 with 3 onboard<br>
RAID controllers and want to strip my data RAID across them, I can<br>
look for the first drive on each controller and make them a RAID 1,<br>
then the next X drives as a PV, and the last Y drives as a second PV<br>
etc..<br>
<span class="im HOEnZb"><br>
> but I'd like to be able to tell kickstart to use only the 1st disk found, or at<br>
least confine the kickstart to 1 drive.<br>
<br>
</span><div class="HOEnZb"><div class="h5">On Mon, Aug 29, 2016 at 6:31 PM, Steve Rikli <<a href="mailto:sr@genyosha.net">sr@genyosha.net</a>> wrote:<br>
> On Mon, Aug 29, 2016 at 03:44:09PM -0400, David Lehman wrote:<br>
>><br>
>> I work on blivet, which is the storage management backend for<br>
>> anaconda/kickstart. I'm working on a feature that was inspired by<br>
>> discussion on this list: specification of disks by class/tag.<br>
>> Eventually, I imagine this capability will be plumbed through kickstart<br>
>> and anaconda.<br>
>><br>
>> In the interest of determining how much machinery I should build into<br>
>> this, I'm soliciting use-cases for this type of filtering. Here's what<br>
>> I have so far:<br>
>><br>
>> # do autopart, but only use local drives<br>
>> ignoredisk --onlyuse=@local<br>
>> autopart<br>
>><br>
>> # make sure /boot goes on a local drive<br>
>> part /boot??--ondisk=@local<br>
>><br>
>> # make sure a pv that backs an lvm cache lv goes on the ssd<br>
>> part pv.cache.0 --fstype=lvmpv --size=4096 --grow --ondisk=@ssd<br>
>><br>
>> # put a data volume on a shared SAN volume<br>
>> part /shared --size=100000 --grow --ondisk=@remote<br>
>><br>
>><br>
>> What kinds of restrictions do you wish you could easily place on disk<br>
>> sets in your kickstart configurations?<br>
><br>
> I know we can already hardcode which disk to use (--ondisk=sda) but I'd<br>
> like to be able to tell kickstart to use only the 1st disk found, or at<br>
> least confine the kickstart to 1 drive.<br>
><br>
> You're in the same ballpark with @local (+ @<disktype> maybe?) but e.g.<br>
> if I have a pair of SSD and I want the 2nd one to be used for non-sysdisk<br>
> duties, today I think I have to use disk names.<br>
><br>
> Thanks for looking into this sort of enhancement.  Even just the above<br>
> ideas are potentially helpful.<br>
><br>
> sr.<br>
><br>
> ______________________________<wbr>_________________<br>
> Kickstart-list mailing list<br>
> <a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/kickstart-<wbr>list</a><br>
<br>
______________________________<wbr>_________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/kickstart-<wbr>list</a><br>
</div></div></blockquote></div><br></div>