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

Use anaconda procedure for partiton and format a new HD



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

Many thanks for your suggestions..

-- 
Dario Lesca <d lesca solinos it>


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