On 2013-09-04 09:26, Vratislav Podzimek wrote:
On Thu, 2013-08-22 at 20:05 +0200, Anders Blomdell wrote:
On a system with the following disk layout:
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x83dae9c4
Device Boot Start End Blocks Id System
/dev/sda4 2048 3907029167 1953513560 5 Extended
/dev/sda5 4096 4198399 2097152 fd Linux raid autodetect
/dev/sda6 4200448 3907029167 1951414360 fd Linux raid autodetect
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x88b817cf
Device Boot Start End Blocks Id System
/dev/sdb4 2048 3907029167 1953513560 5 Extended
/dev/sdb5 4096 4198399 2097152 fd Linux raid autodetect
/dev/sdb6 4200448 3907029167 1951414360 fd Linux raid autodetect
PV VG Fmt Attr PSize PFree
/dev/md1 vg0 lvm2 a-- 1.82t 1.63t
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
opt vg0 -wi-a---- 60.00g
root vg0 -wi-a---- 60.00g
src vg0 -wi-d---- 60.00g
swap vg0 -wi-a---- 16.00g
I'm trying to kickstart a Fedora-19 system with the following partitioning:
part raid.0a --onpart=sda5 --noformat
part raid.0b --onpart=sdb5 --noformat
raid /boot --fstype=ext4 --level=1 --device=md0 raid.0a raid.0b
part raid.1a --onpart=sda6 --noformat
part raid.1b --onpart=sdb6 --noformat
raid pv.0 --level=1 --device=md1 raid.1a raid.1b
I think you'd need to use '--useexisting' and '--noformat' when
specifying raids and drop 'part' lines for raid members.
Also the 'volgroup' command shouldn't have PV members listed when using
'--useexisting'.
See:
http://fedoraproject.org/wiki/Anaconda/Kickstart#raid
http://fedoraproject.org/wiki/Anaconda/Kickstart#volgroup
OK, the following seem to work. The weird :md* names are for not need to have one
kickstart file for each machine, without it $(hostname): will be prepended to the
raid device name:
part raid.0a --fstype="mdmember" --noformat --onpart=sda2 # :md2
part raid.0b --fstype="mdmember" --noformat --onpart=sdb2 # :md2
part raid.1a --fstype="mdmember" --noformat --onpart=sda3 # :md3
part raid.1b --fstype="mdmember" --noformat --onpart=sdb3 # :md3
raid /boot --device=:md2 --fstype="ext4" --level=1 --useexisting --label="/boot"
raid pv.0 --device=:md3 --fstype="lvmpv" --level=1 --noformat --useexisting
volgroup vg0 --noformat --pesize=32768 --useexisting pv.0
logvol / --fstype="ext4" --useexisting --label="/" --name=root --vgname=vg0
logvol /opt --fstype="ext4" --useexisting --label="/opt" --name=opt --vgname=vg0
logvol /usr/src --fstype="ext4" --useexisting --label="/usr/src" --name=src --vgname=vg0 --noformat
logvol swap --fstype="swap" --useexisting --name=swap --vgname=vg0
Regards
Anders Blomdell
--
Anders Blomdell Email: anders.blomdell@xxxxxxxxxxxxxx
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list