Hi Michael,
Citeren Michael Tautschnig <m...@debian.org>:
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hello Michael,
I've been away, so I'm not back to follow up on this.
Quoting Michael Tautschnig <m...@debian.org>:
>Could you do another run and run parted manually from the shell
>you should get
>dropped into? Like so:
>
>parted -s /dev/sda unit TiB print (should produce said error)
>parted -s /dev/sda mklabel msdos
>parted -s /dev/sda unit TiB print (should work)
>
>I'm just a bit worried for two reasons: (i) I haven't seen this
error before,
>blank disks should cause a somewhat different error, and (ii)
>depending on your
>Xen configuration you may or may not have /dev/sda really
>available and only see
>/dev/sda1 instead. (I'm using the latter configuration style myself.)
>
r...@shibidp1:/# parted -s /dev/sda unit TiB print
Error: Error initialising SCSI device /dev/sda - Invalid argument
r...@shibidp1:/# parted -s /dev/sda mklabel msdos
Error: Error initialising SCSI device /dev/sda - Invalid argument
r...@shibidp1:/# parted -s /dev/sda unit TiB print
Error: Error initialising SCSI device /dev/sda - Invalid argument
r...@shibidp1:/# ls -l /dev/sda
brw-rw---- 1 root disk 8, 0 Dec 14 10:46 /dev/sda
r...@shibidp1:/# ls -l /dev/sda1
brw-rw---- 1 root disk 8, 1 Dec 14 10:46 /dev/sda1
I'm exporting a logical volume to the xen vm. This logical volume
is then the disk.
You might want to post you Xen dom-U configuration file to check
back, but I'd
assume that the dom-U can't access /dev/sda the usual way. Maybe Henning
this is in my domU config file for that host:
kernel = '/boot/vmlinuz-2.6.26-2-xen-amd64'
ramdisk = '/boot/initrd.img-2.6.26-2-xen-amd64'
memory = 2048
name = "shibidp1"
ipadres = "157.193.42.29"
vcpus = 1
disk = ["phy:xenvg/shibidp1,sda,w"]
execfile("/xen/config/xenmachine.py")
(I have attached the xenmachine.py script)
Maybe some more information, because I was misunderstood.
I have create an lvm volume on my dom0 and have exported that volume
as sda to my domU. I want to install that domU with FAI.
(Sprang) can comment on this, he knows a lot more about all the Xen
stuff. The
way I'm using Xen I can't access /dev/sda and consequently cannot do any
partitioning inside dom-U.
I don't understand why this worked with my old fai (setup_harddisks).
And with setup-storage it doesn't.
With setup-storage you can use
disk_config sda virtual
and configure filesystems, etc. for each (existing!)
partition/device. See also
the RAID_XEN_VIRTUAL example that is shipped in disk_config/ as part of the
simple example configuration.
I understand that example is to be used for installing dom0's. Right?
Anyway:
Using config file: /var/lib/fai/config/disk_config/SHIBBOLETH_IDP
Input was:
disk_config sda virtual
primary /boot 200 ext3 rw createopts="-L boot"
primary swap 2048 swap sw createopts="-L swap"
primary / 6000- ext3 rw createopts="-L root"
(CMD) parted -s /dev/sda unit TiB print 1> /tmp/KV0IPRnvL2 2> /tmp/kF7tT2dyVN
Executing: parted -s /dev/sda unit TiB print
Command parted -s /dev/sda unit TiB print had exit code 1
INTERNAL ERROR in setup-storage:
Table header not seen yet
Please report this error to the Debian Bug Tracking System.
(STDOUT) Error: Error initialising SCSI device /dev/sda - Invalid argument
Error in task partition. Traceback: task_error task_partition task
task_install task task_action task main
Save log files via ssh to f...@wopr.ugent.be:shibidp1//install-20091214_125639
FATAL ERROR. Installation stopped.
bash: no job control in this shell
I hope Henning can be of assistance...
Thanks in advance,
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert rudy.geva...@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
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
#============================================================================
# This script sets the parameters used when a domain is created using 'xm create'.
#
# "xm create vminstall=1" will (re)install the domain or
# "xm create" will boot the domain
#
# vminstall is purely a script variable, and has no effect on the the domain
# id assigned to the new domain.
#============================================================================
execfile("/xen/config/macs.py")
# Define script variables here.
# xm_vars is defined automatically, use xm_vars.var() to define a variable.
# This function checks whether 'vminstall' has been given a value.
# It is called automatically by 'xm create'.
def vminstall_check(var, val):
try:
val = int(val)
except:
val = 0
if val <= 0:
val = 0
return val
# Define the 'vminstall' variable so that 'xm create' knows about it.
xm_vars.var('vminstall',
use="Reinstall domain if value > 0.",
check=vminstall_check)
# Check the defined variables have valid values..
xm_vars.check()
try:
diskdir
except:
diskdir = "mapper"
# If disk is not defined use old syntax
try:
disk
except:
disk=["phy:" + diskdir + "/" + name + ",sda,w"]
iparr = ipadres.split(".")
if macs.has_key(name):
macpub = macs[name]
print macpub
else:
macprefix = "aa:00:00:"
macpub = macprefix + "76:" + iparr[2] + ':'+ hex(int(iparr[3]))
print macpub
vif = [ 'mac='+macpub+', bridge=subnet' + iparr[2] ]
if vminstall > 0:
# Set if you want dhcp to allocate the IP address.
#dhcp = "dhcp"
ip = ipadres
# Set netmask.
netmask="255.255.255.0"
# Set default gateway.
gateway="157.193." + iparr[2]+".254"
# Set the hostname.
hostname = name
# Set root device.
root = "/dev/nfs"
# provided by dhcp
# The nfs server.
nfs_server = '157.193.71.46'
# Root directory on the nfs server.
#nfs_root = '/srv/fai/nfsroot'
#extra = "FAI_ACTION=install boot=nfs root=/dev/nfs nfsroot=/srv/fai/nfsroot-oldwopr,v2 FAI_FLAGS=verbose,sshd,createvt,syslogd,halt HOSTNAME=" + hostname + " SETIPADDR=" + ipadres
# dit is voor de nieuwe FAI install, maar heeft nog een BUG!
extra = "ip=dhcp root=/dev/nfs nfsroot=/srv/fai/nfsroot boot=live FAI_ACTION=install FAI_FLAGS=verbose,sshd,syslogd,createvt debug"
else:
root = "/dev/sda1 ro"