kickstart logical volume on specific diskCan't remove open logical volumeKickstart CentOS 6 prompting for TCP/IP with network set to DHCPLogical volume attributesIssue with Centos 7 + kickstart raid configurationCentOS 7.2.1511, kickstart and user creationCentOS/RHEL 7 LVM Partitioning in Kickstart?logical-Volume / rhel 7CentOS 7 kickstart argumentsCentOS 7 kickstart hangsCentOS7 Kickstart issue

Information to fellow intern about hiring?

What is the command to reset a PC without deleting any files

Why do we use polarized capacitors?

How to deal with fear of taking dependencies

Why is my log file so massive? 22gb. I am running log backups

How many letters suffice to construct words with no repetition?

How would photo IDs work for shapeshifters?

"listening to me about as much as you're listening to this pole here"

Some basic questions on halt and move in Turing machines

Copycat chess is back

Is there a way to make member function NOT callable from constructor?

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

Where to refill my bottle in India?

How to manage monthly salary

extract characters between two commas?

System.XmlException: start tag unexpected character =

Need help identifying/translating a plaque in Tangier, Morocco

Are white and non-white police officers equally likely to kill black suspects?

Mapping arrows in commutative diagrams

Is it true that "The augmented fourth (A4) and the diminished fifth (d5) are the only aug and dim intervals that appear in diatonic scales"

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

What are the advantages and disadvantages of running one shots compared to campaigns?

I see my dog run

Does a dangling wire really electrocute me if I'm standing in water?



kickstart logical volume on specific disk


Can't remove open logical volumeKickstart CentOS 6 prompting for TCP/IP with network set to DHCPLogical volume attributesIssue with Centos 7 + kickstart raid configurationCentOS 7.2.1511, kickstart and user creationCentOS/RHEL 7 LVM Partitioning in Kickstart?logical-Volume / rhel 7CentOS 7 kickstart argumentsCentOS 7 kickstart hangsCentOS7 Kickstart issue






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Is it possible, in kickstart, to specify which physical volume a logical volume gets created in?



I have:



clearpart --all --initlabel --drives=sda,sdb,sdc,sdd
zerombr
part /boot --asprimary --fstype="ext4" --ondisk=sdb --size=515
part pv.001 --asprimary --ondisk=sdb --size=1024 --grow
part pv.002 --asprimary --ondisk=sda --size=10240 --grow
#
volgroup rootvg pv.001 pv.002
logvol / --fstype=xfs --name=rootlv --vgname=rootvg --size=10240
logvol swap --fstype=swap --name=swaplv --vgname=rootvg --size=32768
logvol /home --fstype=xfs --name=homelv --vgname=rootvg -size=10240
logvol /usr --fstype=xfs --name=usrlv --vgname=rootvg --size=10240
logvol /tmp --fstype=xfs --name=tmplv --vgname=rootvg --size=2048
logvol /varlv --fstype=xfs --name=varlv --vgname=rootvg --size=524288


I would like to have rootlv, swaplv and homelv on sdb and the rest on sda.



Is there an option to make this happen?










share|improve this question




























    0















    Is it possible, in kickstart, to specify which physical volume a logical volume gets created in?



    I have:



    clearpart --all --initlabel --drives=sda,sdb,sdc,sdd
    zerombr
    part /boot --asprimary --fstype="ext4" --ondisk=sdb --size=515
    part pv.001 --asprimary --ondisk=sdb --size=1024 --grow
    part pv.002 --asprimary --ondisk=sda --size=10240 --grow
    #
    volgroup rootvg pv.001 pv.002
    logvol / --fstype=xfs --name=rootlv --vgname=rootvg --size=10240
    logvol swap --fstype=swap --name=swaplv --vgname=rootvg --size=32768
    logvol /home --fstype=xfs --name=homelv --vgname=rootvg -size=10240
    logvol /usr --fstype=xfs --name=usrlv --vgname=rootvg --size=10240
    logvol /tmp --fstype=xfs --name=tmplv --vgname=rootvg --size=2048
    logvol /varlv --fstype=xfs --name=varlv --vgname=rootvg --size=524288


    I would like to have rootlv, swaplv and homelv on sdb and the rest on sda.



    Is there an option to make this happen?










    share|improve this question
























      0












      0








      0








      Is it possible, in kickstart, to specify which physical volume a logical volume gets created in?



      I have:



      clearpart --all --initlabel --drives=sda,sdb,sdc,sdd
      zerombr
      part /boot --asprimary --fstype="ext4" --ondisk=sdb --size=515
      part pv.001 --asprimary --ondisk=sdb --size=1024 --grow
      part pv.002 --asprimary --ondisk=sda --size=10240 --grow
      #
      volgroup rootvg pv.001 pv.002
      logvol / --fstype=xfs --name=rootlv --vgname=rootvg --size=10240
      logvol swap --fstype=swap --name=swaplv --vgname=rootvg --size=32768
      logvol /home --fstype=xfs --name=homelv --vgname=rootvg -size=10240
      logvol /usr --fstype=xfs --name=usrlv --vgname=rootvg --size=10240
      logvol /tmp --fstype=xfs --name=tmplv --vgname=rootvg --size=2048
      logvol /varlv --fstype=xfs --name=varlv --vgname=rootvg --size=524288


      I would like to have rootlv, swaplv and homelv on sdb and the rest on sda.



      Is there an option to make this happen?










      share|improve this question














      Is it possible, in kickstart, to specify which physical volume a logical volume gets created in?



      I have:



      clearpart --all --initlabel --drives=sda,sdb,sdc,sdd
      zerombr
      part /boot --asprimary --fstype="ext4" --ondisk=sdb --size=515
      part pv.001 --asprimary --ondisk=sdb --size=1024 --grow
      part pv.002 --asprimary --ondisk=sda --size=10240 --grow
      #
      volgroup rootvg pv.001 pv.002
      logvol / --fstype=xfs --name=rootlv --vgname=rootvg --size=10240
      logvol swap --fstype=swap --name=swaplv --vgname=rootvg --size=32768
      logvol /home --fstype=xfs --name=homelv --vgname=rootvg -size=10240
      logvol /usr --fstype=xfs --name=usrlv --vgname=rootvg --size=10240
      logvol /tmp --fstype=xfs --name=tmplv --vgname=rootvg --size=2048
      logvol /varlv --fstype=xfs --name=varlv --vgname=rootvg --size=524288


      I would like to have rootlv, swaplv and homelv on sdb and the rest on sda.



      Is there an option to make this happen?







      lvm centos7 kickstart






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 14 '16 at 8:20









      Simply SethSimply Seth

      1076




      1076




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You're missing a level of indirection.



          A logical volume is created in a volume group, which itself is comprised of one or more physical volumes in various possible topologies (not all of which can be constructed in kickstart, but that's irrelevant here).



          To put the LV in a different PV, the VG containing it must be on the desired PV. So, you need to create a second VG, and assign the PV to only that VG. For example:



          volgroup rootvg pv.001
          volgroup othervg pv.002


          Then you can assign LVs to the othervg VG. For example:



          logvol /usr --fstype=xfs --name=usrlv --vgname=othervg --size=10240


          You should also reconsider your names. Having "lv" and "vg" in names is redundant and unnecessary. It's always obvious which is which.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f796722%2fkickstart-logical-volume-on-specific-disk%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You're missing a level of indirection.



            A logical volume is created in a volume group, which itself is comprised of one or more physical volumes in various possible topologies (not all of which can be constructed in kickstart, but that's irrelevant here).



            To put the LV in a different PV, the VG containing it must be on the desired PV. So, you need to create a second VG, and assign the PV to only that VG. For example:



            volgroup rootvg pv.001
            volgroup othervg pv.002


            Then you can assign LVs to the othervg VG. For example:



            logvol /usr --fstype=xfs --name=usrlv --vgname=othervg --size=10240


            You should also reconsider your names. Having "lv" and "vg" in names is redundant and unnecessary. It's always obvious which is which.






            share|improve this answer



























              0














              You're missing a level of indirection.



              A logical volume is created in a volume group, which itself is comprised of one or more physical volumes in various possible topologies (not all of which can be constructed in kickstart, but that's irrelevant here).



              To put the LV in a different PV, the VG containing it must be on the desired PV. So, you need to create a second VG, and assign the PV to only that VG. For example:



              volgroup rootvg pv.001
              volgroup othervg pv.002


              Then you can assign LVs to the othervg VG. For example:



              logvol /usr --fstype=xfs --name=usrlv --vgname=othervg --size=10240


              You should also reconsider your names. Having "lv" and "vg" in names is redundant and unnecessary. It's always obvious which is which.






              share|improve this answer

























                0












                0








                0







                You're missing a level of indirection.



                A logical volume is created in a volume group, which itself is comprised of one or more physical volumes in various possible topologies (not all of which can be constructed in kickstart, but that's irrelevant here).



                To put the LV in a different PV, the VG containing it must be on the desired PV. So, you need to create a second VG, and assign the PV to only that VG. For example:



                volgroup rootvg pv.001
                volgroup othervg pv.002


                Then you can assign LVs to the othervg VG. For example:



                logvol /usr --fstype=xfs --name=usrlv --vgname=othervg --size=10240


                You should also reconsider your names. Having "lv" and "vg" in names is redundant and unnecessary. It's always obvious which is which.






                share|improve this answer













                You're missing a level of indirection.



                A logical volume is created in a volume group, which itself is comprised of one or more physical volumes in various possible topologies (not all of which can be constructed in kickstart, but that's irrelevant here).



                To put the LV in a different PV, the VG containing it must be on the desired PV. So, you need to create a second VG, and assign the PV to only that VG. For example:



                volgroup rootvg pv.001
                volgroup othervg pv.002


                Then you can assign LVs to the othervg VG. For example:



                logvol /usr --fstype=xfs --name=usrlv --vgname=othervg --size=10240


                You should also reconsider your names. Having "lv" and "vg" in names is redundant and unnecessary. It's always obvious which is which.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 14 '16 at 9:21









                Michael HamptonMichael Hampton

                174k27319644




                174k27319644



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f796722%2fkickstart-logical-volume-on-specific-disk%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                    What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                    Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos