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;
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
add a comment |
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
add a comment |
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
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
lvm centos7 kickstart
asked Aug 14 '16 at 8:20
Simply SethSimply Seth
1076
1076
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Aug 14 '16 at 9:21
Michael Hampton♦Michael Hampton
174k27319644
174k27319644
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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