<div dir="ltr">I've missed this one, sorry.<br><br><div>Searching for your problem I've found people with the same problems using glusterfs and XFS. Also XFS is usually the backing storage for gluster, at least that's what most of the howtos say.</div><div><br></div><div>That's good to know that a new version solved the problem.</div><div><br></div><div>Cheers</div></div><br><div class="gmail_quote">On Mon Jan 26 2015 at 9:39:23 PM Wilma Hermann <<a href="mailto:wilma.hermann@gmail.com">wilma.hermann@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,</div><div dir="ltr"><br><br>> There seems to be a problem with sparse files and glusterfs and/or the<br>
> underlying FS (XFS?).<br></div><div dir="ltr">No, it's only in combination with mkfs. Creating sparse files without a preset filesystem (i.e. raw images) works perfectly.<br><br>By the way: How did you figure out that XFS is used? Is it known to produce problems?<br><br>In addition to your suggestions, I experimented with overriding the filesystem type setting by setting FSTYPE = "raw" in /var/lib/one/remotes/tm/shared/mkimage. As far as I tested, that worked as well. However, we recently upgraded to Ubuntu 14.04 and GlusterFS 3.4.2. Now the bug seems to be gone.<br><br>Thanks anyway!<br><br>Greetings</div><div dir="ltr"><br>Wilma</div><div dir="ltr"><br><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-22 10:10 GMT+01:00 Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There seems to be a problem with sparse files and glusterfs and/or the<br>
underlying FS (XFS?).<br>
<br>
You can disable that functionality adding an "exit 1" command at the<br>
top of these scripts:<br>
<br>
* /var/lib/one/remotes/datastore/mkfs<br>
* /var/lib/one/remotes/tm/mkimage<br>
<br>
Another way of solving this is changing the what the image is created<br>
(so it is not sparse). The problem is that it will take a lot more<br>
time to create the image. The commad to change is 'dd' from those<br>
scripts. For example, for 'mkfs':<br>
<br>
exec_and_log "$DD if=/dev/zero of=$DST bs=1 count=1 seek=${SIZE}M" \<br>
"Could not create image $DST"<br>
<br>
to<br>
<br>
exec_and_log "$DD if=/dev/zero of=$DST bs=1M count=${SIZE}" \<br>
"Could not create image $DST"<br>
<br>
Cheers<br>
<div><div><br>
On Sat, Jan 17, 2015 at 10:43 AM, Wilma Hermann <<a href="mailto:wilma.hermann@gmail.com" target="_blank">wilma.hermann@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> Our OpenNebula setup uses GlusterFS to share /var/lib/one among all<br>
> machines. Yesterday a customer created a new volatile disk for a VM. But<br>
> this image creation crashed the gluster client on the host the VM was<br>
> running on. I assume it has something to do with the fact that the customer<br>
> entered 'ext3' as filesystem type.<br>
><br>
> This isn't the first time this bug occured, we also had it almost one year<br>
> ago and there it was also related to the filesystem type of an image. I<br>
> believe that this feature is rarely used by our customers and simply wasn't<br>
> used in the meantime. Now we are using OpenNebula 4.8.0 on Ubuntu 12.04.5<br>
> with glusterfs 3.2.5.<br>
><br>
> Here's the log of the VM that triggered the crash:<br>
><br>
> Sat Jan 10 13:24:21 2015 [Z0][VMM][I]: VM successfully rebooted-hard.<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: Command execution fail:<br>
> /var/lib/one/remotes/tm/shared/mkimage 51200 ext3<br>
> 192.168.128.14:/var/lib/one//datastores/0/346/disk.2 346 0<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: mkimage: Making filesystem of 51200M<br>
> and type ext3 at 192.168.128.14:/var/lib/one//datastores/0/346/disk.2<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][E]: mkimage: Command "set -e<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: export PATH=/usr/sbin:/sbin:$PATH<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: dd if=/dev/zero<br>
> of=/var/lib/one/datastores/0/346/disk.2 bs=1 count=1 seek=51200M<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: mkfs -t ext3 -F<br>
> /var/lib/one/datastores/0/346/disk.2" failed: Warning: Permanently added<br>
> '192.168.128.14' (ECDSA) to the list of known hosts.<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: 1+0 records in<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: 1+0 records out<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: 1 byte (1 B) copied, 0.000576409 s,<br>
> 1.7 kB/s<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: mke2fs 1.42 (29-Nov-2011)<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: Warning: could not erase sector 2:<br>
> Attempt to write block to filesystem resulted in short write<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: Warning: could not read block 0:<br>
> Attempt to read block from filesystem resulted in short read<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: Warning: could not erase sector 0:<br>
> Attempt to write block to filesystem resulted in short write<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: mkfs.ext3: Attempt to write block to<br>
> filesystem resulted in short write while zeroing block 13107184 at end of<br>
> filesystem<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]:<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: Could not write 5 blocks in inode<br>
> table starting at 1027: Attempt to write block to filesystem resulted in<br>
> short write<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][E]: Could not create image<br>
> /var/lib/one/datastores/0/346/disk.2<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: ExitCode: 1<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][I]: Failed to execute transfer manager<br>
> driver operation: tm_attach.<br>
> Fri Jan 16 17:31:00 2015 [Z0][VMM][E]: Error attaching new VM Disk: Could<br>
> not create image /var/lib/one/datastores/0/346/disk.2<br>
><br>
> After that crash all subsequent operations fail because the frontend was<br>
> unable to log into that particular host (since /var/lib/one was missing and<br>
> passwordless SSH did not work anymore).<br>
><br>
> I have 2 questions:<br>
> 1) Does anyone have an idea what's going on there?<br>
> 2) Is it possible to disable this filesystem type feature. We don't need it,<br>
> but I would like to prevent these accidental host crashes.<br>
><br>
> Greetings<br>
> Wilma<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
</font></span></blockquote></div><br></div></div></div></div></blockquote></div>