Creating an unformatted, unmounted LVM LV in kickstart

Tyler Aviss tjaviss-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Jun 19 16:58:35 UTC 2009


On Thu, Jun 18, 2009 at 5:36 PM, John Miles<jmiles242-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> Interesting question - the kickstart docs say:
> "--noformat — Use an existing logical volume and do not format it. "
> but - you wouldn't have an "existing" lv to use.
> Maybe a post-install task?
>

You might if you were reinstalling over an existing system, orhad
disks from an existing system being used alongside the current? You
definitely could have reasons you do not want to format over it in
that case too.

> On Thu, Jun 18, 2009 at 1:23 PM, Madison Kelly <linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org> wrote:
>>
>> Hi all,
>>
>>  I am setting up a kickstart file for a CentOS 5.3/Xen install and want to
>> have it create a logical volume on a VG, but not format or mount it. The
>> reason is, I will give the partition to a specific virtual machine, so would
>> just has to unmount it and remove it's entry from fstab, which kind of
>> defeats having it pre-built with the OS install as I can just as easy create
>> it after the fact.
>>
>>  I've got:
>>
>> ### LVM setup.
>> raid pv.20 --fstype "physical volume (LVM)" --level=RAID1 --device=md2
>> raid.11 raid.21
>> volgroup        vg0     --pesize=32768 pv.20
>> logvol          /       --fstype ext3   --name=lv0 --vgname=vg0
>> --size=20000
>> logvol          /vm     --fstype ext3   --name=lv1 --vgname=vg0
>> --size=250000
>>
>>  Could I simply add:
>>
>> logvol --name=lv2 --vgname=vg0 --size=1 --grow
>>
>>  Without the mount point or fstype being specified?
>>
>>  Thanks for any help! Google is failing me...
>>
>> Madi
>> --
>> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
>> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
>> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
>



-- 
Tyler Aviss
Systems Support
LPIC/LPIC-2
(778) 890-0942
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list