Hi.
I'm trying to create a virtual machine using Xen of which image is based
on Fuse filesystem such as sshfs and encfs.
The created virtual machine(CentOS 5.2) boots up, shows some messsages
as follows, and is suspended.
...
USB Universal Host Controller Interface driver v3.0
Loading jbd.ko module
Loading ext3.ko module
Loading xenblk.ko module
Registering block device major 202
xvda:Scanning and configuring dmraid supported devices
Creating root device.
This virtual machine doesn't progress any more.
Fuse-2.7.4 and encfs-1.4.1 on CentOS 5.3 box are used.
And I straced the fuse process like this.
# ps aux | grep encfs
root 4279 0.0 0.0 54860 1564 ? Ss 11:40 0:00 encfs /home/vmimages
/tmp/enc
# strace -f -p 4279
...
4279 read(4,
"1\0\0\0\1\0\0\0\225\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
135168) = 49
4279 lstat("/home/vmimages/hpZuh1bi-5AkeCfTiikjx4rc",
{st_mode=S_IFREG|0644, st_size=10737418248, ...}) = 0
4279 writev(4, [{"\210\0\0\0\0\0\0\0\225\0\0\0\0\0\0\0", 16},
{"\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0"...,
120}], 2) = 136
4279 read(4,
"0\0\0\0\16\0\0\0\226\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
135168) = 48
4279 writev(4, [{" \0\0\0\0\0\0\0\226\0\0\0\0\0\0\0", 16},
{"\3602\277\f\0\0\0\0\0\0\0\0\0\0\0\0", 16}], 2) = 32
4279 read(4,
The last read() call never returns.
That means the fuse kernel module is deadlocked or falls into infinite loop.
Here, fd=4 represents /dev/fuse.
# ls -l /proc/4279/fd/
total 0
lrwx------ 1 root root 64 Aug 26 11:51 0 -> /dev/null
lrwx------ 1 root root 64 Aug 26 11:51 1 -> /dev/null
lrwx------ 1 root root 64 Aug 26 11:51 2 -> /dev/null
lrwx------ 1 root root 64 Aug 26 11:51 3 -> /home/vmimages/hpZuh1bi-5AkeCfTiikjx4rc
lrwx------ 1 root root 64 Aug 26 11:51 4 -> /dev/fuse
The result of top command shows like this.
# top
top - 11:07:06 up 23:29, 2 users, load average: 1.00, 1.00, 1.00
Tasks: 173 total, 1 running, 172 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 14424064k total, 1212924k used, 13211140k free, 108140k buffers
Swap: 2097144k total, 0k used, 2097144k free, 463316k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 15 0 10344 696 584 S 0.0 0.0 0:00.14 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1
7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
8 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/2
9 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/2
10 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/2
11 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/3
12 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/3
13 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/3
14 root 10 -5 0 0 0 S 0.0 0.0 0:01.23 events/0
Load average is 1.00, but user applications aren't consuming CPU at all.
Do you have any hint?
Thank you.
|