Re: RFC: Disk specification by classes/tags

Thomas Sanders <[email protected]> Tue, 6 Sep 2016 13:14:13 -0700
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <CAD3gjcHdGVscbKoX6=217Tyn6Nq5XsZj5uDpDdF13SE5L_u_Pg@mail.gmail.com>
--===============3435912267459592580==
Content-Type: multipart/alternative; boundary=001a11446ebcbf8d2f053bdc70ec

--001a11446ebcbf8d2f053bdc70ec
Content-Type: text/plain; charset=UTF-8

+1 @local etc.
I like the idea that C. Petro has of setting up tags in %PRE, however
@local and possibly others should be immutable.

On Tue, Aug 30, 2016 at 1:36 PM, C. Petro <[email protected]> wrote:

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

--001a11446ebcbf8d2f053bdc70ec
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">+1 @local etc.<div>I like the idea that C. Petro has of se=
tting up tags in %PRE, however @local and possibly others should be immutab=
le.</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On=
 Tue, Aug 30, 2016 at 1:36 PM, C. Petro <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrot=
e:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><span class=3D"">&gt; I know we can al=
ready hardcode which disk to use (--ondisk=3Dsda)<br>
<br>
</span>When building a kickstart configuration for two or more types of<br>
machines sometimes that *doesn&#39;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&#39;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=3D"im HOEnZb"><br>
&gt; but I&#39;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=3D"HOEnZb"><div class=3D"h5">On Mon, Aug 29, 2016 at 6:31=
 PM, Steve Rikli &lt;<a href=3D"mailto:[email protected]">[email protected]</a>=
&gt; wrote:<br>
&gt; On Mon, Aug 29, 2016 at 03:44:09PM -0400, David Lehman wrote:<br>
&gt;&gt;<br>
&gt;&gt; I work on blivet, which is the storage management backend for<br>
&gt;&gt; anaconda/kickstart. I&#39;m working on a feature that was inspired=
 by<br>
&gt;&gt; discussion on this list: specification of disks by class/tag.<br>
&gt;&gt; Eventually, I imagine this capability will be plumbed through kick=
start<br>
&gt;&gt; and anaconda.<br>
&gt;&gt;<br>
&gt;&gt; In the interest of determining how much machinery I should build i=
nto<br>
&gt;&gt; this, I&#39;m soliciting use-cases for this type of filtering. Her=
e&#39;s what<br>
&gt;&gt; I have so far:<br>
&gt;&gt;<br>
&gt;&gt; # do autopart, but only use local drives<br>
&gt;&gt; ignoredisk --onlyuse=3D@local<br>
&gt;&gt; autopart<br>
&gt;&gt;<br>
&gt;&gt; # make sure /boot goes on a local drive<br>
&gt;&gt; part /boot??--ondisk=3D@local<br>
&gt;&gt;<br>
&gt;&gt; # make sure a pv that backs an lvm cache lv goes on the ssd<br>
&gt;&gt; part pv.cache.0 --fstype=3Dlvmpv --size=3D4096 --grow --ondisk=3D@=
ssd<br>
&gt;&gt;<br>
&gt;&gt; # put a data volume on a shared SAN volume<br>
&gt;&gt; part /shared --size=3D100000 --grow --ondisk=3D@remote<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; What kinds of restrictions do you wish you could easily place on d=
isk<br>
&gt;&gt; sets in your kickstart configurations?<br>
&gt;<br>
&gt; I know we can already hardcode which disk to use (--ondisk=3Dsda) but =
I&#39;d<br>
&gt; like to be able to tell kickstart to use only the 1st disk found, or a=
t<br>
&gt; least confine the kickstart to 1 drive.<br>
&gt;<br>
&gt; You&#39;re in the same ballpark with @local (+ @&lt;disktype&gt; maybe=
?) but e.g.<br>
&gt; if I have a pair of SSD and I want the 2nd one to be used for non-sysd=
isk<br>
&gt; duties, today I think I have to use disk names.<br>
&gt;<br>
&gt; Thanks for looking into this sort of enhancement.=C2=A0 Even just the =
above<br>
&gt; ideas are potentially helpful.<br>
&gt;<br>
&gt; sr.<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Kickstart-list mailing list<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]=
</a><br>
&gt; <a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list" rel=
=3D"noreferrer" target=3D"_blank">https://www.redhat.com/<wbr>mailman/listi=
nfo/kickstart-<wbr>list</a><br>
<br>
______________________________<wbr>_________________<br>
Kickstart-list mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><=
br>
<a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list" rel=3D"n=
oreferrer" target=3D"_blank">https://www.redhat.com/<wbr>mailman/listinfo/k=
ickstart-<wbr>list</a><br>
</div></div></blockquote></div><br></div>

--001a11446ebcbf8d2f053bdc70ec--


--===============3435912267459592580==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Kickstart-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kickstart-list
--===============3435912267459592580==--