[Gluster-devel] libgfapi with custom volfiles

Bharata B Rao bharata.rao at gmail.com
Tue Jul 17 15:01:42 UTC 2012


Hi Avati,

I am trying to boot QEMU with GlusterFS backend in RPC bypass mode. I
am using a custom volume file that just has storage/posix xlator.
Currently there is no way in gluster CLI to generate such custom
volfiles and hence I added such a custom volfile into the directory
where glusterd looks for volfiles and used volname.custom extension to
fetch the right volfile.

I see that QEMU waits forever waiting for glfs_init_wait() on
pthread_cond_wait. I will spend time debugging this, but just bringing
this up to check if you can spot any obvious problem quickly.

[root at bharata qemu]# gdb ./x86_64-softmmu/qemu-system-x86_64
(gdb) set args -enable-kvm -nographic -m 1024 -smp 4 -drive
file=gluster:bharata:test.rpcbypass:/F16,format=gluster,cache=none,if=virtio
-net nic,model=virtio -net user -redir tcp:2000::22
(gdb) r
Starting program: x86_64-softmmu/qemu-system-x86_64 -enable-kvm
-nographic -m 1024 -smp 4 -drive
file=gluster:bharata:test.rpcbypass:/F16,format=gluster,cache=none,if=virtio
-net nic,model=virtio -net user -redir tcp:2000::22
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff4c60700 (LWP 21967)]
[New Thread 0x7ffff445f700 (LWP 21968)]
[New Thread 0x7ffff3402700 (LWP 21969)]
[New Thread 0x7ffff27e0700 (LWP 21970)]
^C
Program received signal SIGINT, Interrupt.
0x00007ffff63a2ae5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
(gdb) bt
#0  0x00007ffff63a2ae5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00007ffff728509b in glfs_init_wait (fs=0x5555564c4e00) at glfs.c:508
#2  0x00005555555db147 in qemu_gluster_open (bs=0x5555564c2c20, filename=
    0x5555564bfeb0 "gluster:bharata:test.rpcbypass:/F16", bdrv_flags=98)
    at block/gluster.c:213
#3  0x00005555555cc89b in bdrv_open_common (bs=0x5555564c2c20, filename=
    0x5555564bfeb0 "gluster:bharata:test.rpcbypass:/F16", flags=98,
drv=0x555555beb800)
    at block.c:671
#4  0x00005555555ccd63 in bdrv_open (bs=0x5555564c2c20, filename=
    0x5555564bfeb0 "gluster:bharata:test.rpcbypass:/F16", flags=98,
drv=0x555555beb800)
    at block.c:808
#5  0x000055555560a050 in drive_init (opts=0x5555564c3610, default_to_scsi=0)
    at blockdev.c:616
#6  0x000055555570ddb8 in drive_init_func (opts=0x5555564bfe00,
opaque=0x555555c293a0)
    at vl.c:775
#7  0x0000555555743b72 in qemu_opts_foreach (list=0x555555c25620, func=
    0x55555570dd7d <drive_init_func>, opaque=0x555555c293a0, abort_on_failure=1)
    at qemu-option.c:1116
#8  0x0000555555715ff7 in main (argc=15, argv=0x7fffffffe3e8,
envp=0x7fffffffe468)
    at vl.c:3430

Regards,
Bharata.
-- 
http://bharata.sulekha.com/blog/posts.htm, http://raobharata.wordpress.com/




More information about the Gluster-devel mailing list