[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Use anaconda procedure for partiton and format a new HD



Dario Lesca wrote:

Hi, I am new of this list, My first question is: It is possible
to use the anaconda procedure (/usr/lib/anaconda/*) to format,
patition, and create LVM volumes on a new disk, taking the layout
info from a file whit anaconda KS syntax?

Something like this:

export PYTHONPATH=/usr/lib/anaconda
echo "
clearpart --all
part /boot --fstype ext3 --onpart hda1
part swap --onpart hda2
part pv.3 --noformat --onpart hda3
volgroup Vol0 pv.3
logvol /u --fstype ext3 --name=lvmu --vgname=Vol0 --size=10000.0
logvol /var --fstype ext3 --name=lvmvar --vgname=Vol0 --size=6000.0
logvol / --fstype ext3 --name=lvmroot --vgname=Vol0 --size=4000.0
" | python /tmp/mymkdisk.py /dev/hdb


Pretty much. Here is an example that I have used in the past

clearpart --all
part /boot --fstype ext3 --size=250 --asprimary
part swap --size=4096
part pv.39 --size=100 --grow
volgroup vg00 pv.39
logvol /home --fstype ext3 --name=lvol03 --vgname=vg00 --size=1024
logvol /var --fstype ext3 --name=lvol02 --vgname=vg00 --size=1024
logvol /usr --fstype ext3 --name=lvol01 --vgname=vg00 --size=6144
logvol / --fstype ext3 --name=lvol00 --vgname=vg00 --size=1024
logvol /tmp --fstype ext3 --name=lvol04 --vgname=vg00 --size=1024


Cheers

Iain

Many thanks for your suggestions..



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]