Hi Marco,
Could you please post to gan...@googlegroups.com, rather than ganeti-devel?
ganeti-devel is used to submit patches and discuss about code and design docs.
> It works fine, but if I shut down the machine using "gnt-instance
> shutdown" command the system hangs for a long time before kill the kvm
> instance and reporting me this message:
>
> Waiting for job 2419 for gnttest.or.lan...
> Fri Jun 11 14:45:11 2010 - WARNING: Could not shutdown block device
> disk/0 on node deborder02.or.lan: drbd0: can't shutdown drbd device: /
> dev/drbd0: State change failed: (-12) Device is held open by someone\n
Have a look at the comments in the deboostrap defaults config file:
for a KVM linux guest instance you have to make sure that the acpi
support utilities are installed inside the OS.
This should make sure your guest shuts down itself properly when told
to do so. After that let us know if the drbd device gets released
properly or not. If not you may have something left from the os
installation script which holds it open: double check that you kept
the relevant part of the cleanup procedure for debootstrap, and you
haven't for example executed kpartx on the device but then haven't
unkpartexed it. Let's make sure your block devices are in the correct
state, and then we can look if you still see problems.
Thanks,
Guido
If you just want to boot from a cd, and don't care of
formatting/installing anything in the block device, the simplest
create script is just the one that does "exit 0".
Looking at those lines it seems you create a partition, but not
format/mount it. This ought to work, if you haven't commented the
cleanups, but is unnecessary, as you can still create the partition
later, on the block device, when you're going to use it.
Thanks,
Guido