Re: Ganeti 2.1.3 + kvm drbd troubles

19 views
Skip to first unread message

Guido Trotter

unread,
Jun 11, 2010, 10:32:09 AM6/11/10
to Marco Casavecchia, gan...@googlegroups.com
On Fri, Jun 11, 2010 at 2:24 PM, Marco Casavecchia <marco...@gmail.com> wrote:

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

Marco Casavecchia

unread,
Jun 11, 2010, 11:26:24 AM6/11/10
to ganeti
PS: I just remembered that in the "create script" I commented out all
between line 51 and 164.

Marco Casavecchia

unread,
Jun 11, 2010, 11:13:54 AM6/11/10
to ganeti
I'm sorry to have posted into the wrong ml.

Thanks a lot for your suggestions Guido!
I didn't thought that it could be caused by the create os script I
modified..
But it's likely this that caused my issue. :O(

Unfortunately now I can't access to the systems so I can't take a look
on it.
I'll have to wait until monday morning to check this.
Anyway, thanks again for the support.

If you don't mind, I will let you know how this will end.

On 11 Giu, 16:32, Guido Trotter <ultrot...@google.com> wrote:

Guido Trotter

unread,
Jun 11, 2010, 12:54:17 PM6/11/10
to gan...@googlegroups.com
On Fri, Jun 11, 2010 at 4:26 PM, Marco Casavecchia <marco...@gmail.com> wrote:
> PS: I just remembered that in the "create script" I commented out all
> between line 51 and 164.

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

Marco Casavecchia

unread,
Jun 11, 2010, 2:32:16 PM6/11/10
to ganeti
On 11 Giu, 18:54, Guido Trotter <ultrot...@google.com> wrote:
> On Fri, Jun 11, 2010 at 4:26 PM, Marco Casavecchia <marcoli...@gmail.com> wrote:
> > PS: I just remembered that in the "create script" I commented out all
> > between line 51 and 164.
>
> 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".

Yeah, I know, but what I want is exactly to boot my VM form an
"Install CD".
In this way I can partition and use the device as if it is a real HD
and I can also install a bootloader on it. ^_^

> 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.

Exactly, I kept the last lines of the script as follws:

# execute cleanups
cleanup
trap - EXIT

exit 0

Do you still think my troubles depends on the custom create script?
Because as you told.. it ought work.

Anyway, I have some ideas to make further tests.. can you tell me if
there is a way to put ganeti in "debug mode"?
This could help me a lot.

Thanks a lot for your help.
Reply all
Reply to author
Forward
0 new messages