FAI and xen xvd disks
Rudy Gevaert
rudy.gevaert at ugent.be
Thu Dec 17 15:40:44 CET 2009
Hello,
I was able to fix the problem in my previous thread. (Error: Error
initialising SCSI device /dev/sda - Invalid argument).
The problem doesn't lie in the fact that parted is not able to
partition the disk, but that I mustn't pass sda but xvda to my domU. I
could not find this in the XEN documentation.
When I put
disk = ["phy:disk/by-vfiler/vfass9/sysdisks1/rudy_test,xvda,w"]
in my xenu config the block device /dev/xvda appears in the virtual machine.
Unfortunately fai isn't able to do any partitioning because it doesn't
see /dev/xvda as a valid device!
By changing
/usr/share/fai/setup-storage/Init.pm (line 179):
if ($dev =~
m{^/dev/(i2o/hd[a-t]|sd[a-t]{1,2}|hd[a-t]|vd[a-t]|xvd[a-t])(\d+)?$})
/usr/lib/fai/disk-info (last line):
egrep ' etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.\b| cciss/c.d.\b|
ida/c.d.\b| rd/c.d.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b| vd.\b|
xvd[a-z]{1,2}\b' /proc/partitions | diskandsize
FAI detects the xvd device(s) and makes them disks. I can now even
use disk1 in my disk_config file
I would like to see my little change accepted upstream.
Should I report a bug for this?
Thanks
Rudy
PS the next step is to do LVM on that virtual disk.
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert Rudy.Gevaert at UGent.be tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur Direction ICT, Infrastructure dept.
Groep Systemen Systems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
More information about the linux-fai
mailing list