Package: fai-server
Version: 3.3.3+experimental1
Severity: wishlist

Hello,

On the fai mailinglist you will find a thread (Error: Error initialising SCSI 
device /dev/sda - Invalid argument) where I was having problems partitioning a 
disk device inside a XenU.

Below is the information the let it work.  With this fix you can setup disks 
inside a xenu.  The only caveat is that you need to pass your disk as a xvd 
device to the xenu.

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.


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fai-server depends on:
ii  debootstrap          1.0.10lenny1        Bootstrap a basic Debian system
ii  fai-client           3.3.3+experimental1 Fully Automatic Installation clien

Versions of packages fai-server recommends:
ii  dhcp3-server             3.1.1-6+lenny3  DHCP server for automatic IP addre
ii  iproute                  20080725-2      networking and traffic control too
ii  nfs-kernel-server        1:1.1.2-6lenny1 support for NFS kernel server
ii  openssh-client           1:5.1p1-5       secure shell client, an rlogin/rsh
ii  openssh-server           1:5.1p1-5       secure shell server, an rshd repla
ii  syslinux-common          2:3.71+dfsg-5   Kernel loader which uses a FAT, ex
ii  tftpd-hpa                0.48-2.3        HPA's tftp server
ii  xinetd [inet-superserver 1:2.3.14-7      replacement for inetd with many en

Versions of packages fai-server suggests:
ii  apt-move              4.2.27-1+b4        Maintain Debian packages in a pack
ii  aptitude              0.4.11.11-1~lenny1 terminal-based package manager
pn  debmirror             <none>             (no description available)
ii  genisoimage           9:1.1.9-1          Creates ISO-9660 CD-ROM filesystem
ii  grub                  0.97-47lenny2      GRand Unified Bootloader (Legacy v
pn  libproc-daemon-perl   <none>             (no description available)
pn  perl-tk               <none>             (no description available)

-- no debconf information 



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to