Odd problem with RAID -> LVM
Digimer
linux at alteeve.com
Wed Aug 25 21:08:15 UTC 2010
Hi all,
I've been bashing my head all day trying to get a kickstart working
that takes two disks, creates two RAID1 devices, puts an LVM on one and
then creates two LVs. The server has 2x 500GB hard drives.
Here is the script, thus far:
http://wiki.alteeve.com/index.php/Fedora13_KS_xenmaster001.ks
As it is now, anaconda fails and the trace says that there is not
enough space for the LV. This made me think that "--grow" wasn't being
used. So I changed the "--size=500 --grow" to "--size=50000 --grow" and
it installed.
However!
This is what pvscan shows me post install:
-------------------------------------------------------------------------
[root at xenmaster001 ~]# pvscan
PV /dev/md1 VG vg01 lvm2 [232.75 GiB / 191.69 GiB free]
PV /dev/sdb3 lvm2 [232.76 GiB]
Total: 2 [465.51 GiB] / in use: 1 [232.75 GiB] / in no VG: 1 [232.76 GiB]
-------------------------------------------------------------------------
It looks like it created TWO physical volumes. If I look at the actual
drives, it gets even weirder:
-------------------------------------------------------------------------
[root at xenmaster001 ~]# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00064e85
Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 256000 fd Linux raid
autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2 32 60802 488129536 fd Linux raid
autodetect
Command (m for help): q
[root at xenmaster001 ~]# fdisk /dev/sdb
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00053b7f
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 32 256000 fd Linux raid
autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2 32 30417 244064256 fd Linux raid
autodetect
/dev/sdb3 30417 60802 244064256 8e Linux LVM
Command (m for help): q
-------------------------------------------------------------------------
How screwed up is that? lol!
So, I decided to run a manual install to see what kickstart script was
created. That came out really weird, too:
-------------------------------------------------------------------------
#clearpart --none --drives=sda,sdb
#ignoredisk --only-use=sda,sdb
#raid /boot --fstype=ext3 --level=1 --device=md0
raid.2db68162-2542-41c7-baca-d2b76328d459 raid.None
#raid pv.84iuZQ-4p9R-iOK1-XfJr-pfPz-1QJQ-UqLPYW --level=1 --device=md1
raid.None raid.None
#part raid.None --onpart=sda1
#part raid.None --grow --asprimary --size=500
#part raid.None --asprimary --size=250
#part raid.None --grow --asprimary --size=500
#volgroup vg_01 --pesize=32768 pv.84iuZQ-4p9R-iOK1-XfJr-pfPz-1QJQ-UqLPYW
#logvol / --fstype=ext3 --name=lv_root --vgname=vg_01 --size=40864
#logvol swap --name=lv_swap --vgname=vg_01 --size=2048
bootloader --location=mbr --driveorder=sda,sdb --append="rhgb quiet"
-------------------------------------------------------------------------
Am I doing something terribly daft, or is there a bug?
Thanks!
--
Digimer
E-Mail: linux at alteeve.com
AN!Whitepapers: http://alteeve.com
Node Assassin: http://nodeassassin.org
More information about the Kickstart-list
mailing list