Bug 700181 - [RFE] lvm tools not available for kickstart %pre section
Summary: [RFE] lvm tools not available for kickstart %pre section
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 14
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-27 17:02 UTC by jcpunk
Modified: 2011-04-28 01:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-28 00:10:06 UTC
Type: ---


Attachments (Terms of Use)

Description jcpunk 2011-04-27 17:02:40 UTC
Description of problem:
For building custom partitioning we are encouraged to use the %pre section.  However, I have a particularly messy lvm configuration that I need to deploy and I am unable to do so with kickstart.  

My primary need is the ability to examine the size of the volume group to determine the sizes of my slices.

My secondary need is to examine existing volume groups, and abort if I find a particular slice (VG-ORACLE for example.  One of the people doing the reload of these systems is not as attentive to node names as I would desire - sanity checks are good in my environment).

This extra command set for %pre may also come in handy for the rescue environment (which seems to be the same env that %pre runs from).

Comment 1 Brian Lane 2011-04-28 00:10:06 UTC
lvm is available from %pre

Comment 2 jcpunk 2011-04-28 00:26:20 UTC
If I may ask, what commands are available as I am unable to run a vgscan, vgchange, or lvscan from the pre environment.  Furthermore, there are no lvm commands listed in the documentation:

http://docs.fedoraproject.org/en-US/Fedora/14/html/Installation_Guide/s1-redhat-config-kickstart-prescript.html

If the lvm tools are available, what must I do to use them as I'm unable to find them in my instance of the Fedora 14 pre environment?

Comment 3 Brian Lane 2011-04-28 01:07:03 UTC
On an installed system those are symlinks to lvm. In the %pre environment you will need to use the lvm command itself. eg. lvm vgscan

Also, if you switch to tty2 you will find a bash shell that you can use to experiment with.


Note You need to log in before you can comment on or make changes to this bug.