[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Xen 4.3 xl migrate " htree_dirblock_to_tree" on second host



http://www.drbd.org/users-guide/s-xen-configure-domu.html suggests we
need disk = [ 'drbd:ressouce-name,xvda,w' ] not a full path...

this is my config:

# Comment this out if uncommenting the next section (installing)
bootloader="pygrub"

#kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz"
#ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz"

extra = 'console=hvc0 xencons=tty'

### Cpu & RAM ##
vcpus = 2
memory = 1024

# Disk device(s). ###
root = '/dev/xvda1 rw'
disk = [
        'drbd:drbd-remus-test,xvda,w'
]

### Hostname ###
name = 'remus-test'


### Networking ###
vif = [ 'bridge=xenbr0' ]


#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'


If I use kernel/ramdisk files instead of pygrub it works, with he same
disk syntax!

Thanks

On Thu, Feb 6, 2014 at 10:03 AM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
> On Thu, 2014-02-06 at 03:37 +0000, Miguel Clara wrote:
>> Sorry forgot to add the error:
>>
>> # xl create test.cfg
>> Parsing config from test.cfg
>> libxl: error: libxl_bootloader.c:628:bootloader_finished: bootloader
>> failed - consult logfile /var/log/xen/bootloader.34.log
>> libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
>> bootloader [10762] exited with error status 1
>> libxl: error: libxl_create.c:900:domcreate_rebuild_done: cannot
>> (re-)build domain: -3
>>
>> # cat /var/log/xen/bootloader.34.log
>> Traceback (most recent call last):
>>   File "/usr/local/lib/xen/bin/pygrub", line 844, in <module>
>>     part_offs = get_partition_offsets(file)
>>   File "/usr/local/lib/xen/bin/pygrub", line 105, in get_partition_offsets
>>     image_type = identify_disk_image(file)
>>   File "/usr/local/lib/xen/bin/pygrub", line 47, in identify_disk_image
>>     fd = os.open(file, os.O_RDONLY)
>> OSError: [Errno 2] No such file or directory: 'drbd-remus-test'
>
> You haven't shared your cfg file but this sounds to me like something is
> missing the necessary absolute path.
>
>>
>> On Wed, Feb 5, 2014 at 3:20 AM, Mike C. <miguelmclara@xxxxxxxxx> wrote:
>> > Fixed this but it seems using drbd: in rhe disk config doesnt work with
>> > pygrub....
>> >
>> > does this makes sense?
>> >
>> > I found na old bug reporta but this is Debain squeze Xen 4.3
>> >
>> > I seems to work fine booting into the installer bit if ibuse pygrub It
>> > doesnt find the drbd device.
>> >
>> >
>> >
>> >
>> > On February 4, 2014 10:02:52 PM GMT, Shriram Rajagopalan
>> > <rshriram@xxxxxxxxx> wrote:
>> >>
>> >> On Tue, Feb 4, 2014 at 2:00 PM, Miguel Clara <miguelmclara@xxxxxxxxx>
>> >> wrote:
>> >>>
>> >>> I noticed /etc/xen/scripts doesn't include the 'block-drbd' script,
>> >>> does this come with xen or the drbd package?
>> >>>
>> >>> Xen 4.3.1 was compiled from source, but drdb is installed from apt-get
>> >>> on debian (v 8.3)
>> >>>
>> >>
>> >> It comes with the drbd package AFAIK
>> >>
>> >
>> > --
>> > Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.