OpenVZ Forum


Home » General » Support » Creating ploop device fails on zfs storage
Creating ploop device fails on zfs storage [message #49176] Fri, 05 April 2013 21:39 Go to next message
PyotrVelikiy
Messages: 3
Registered: May 2012
Location: United States
Junior Member
Hello, using

ploop-1.6-1.x86_64
vzkernel-2.6.32-042stab076.5.x86_64
zfs-0.6.1-1.el6.x86_64

creating a CT fails when attempting to use ploop on a zfs /vz/private partition:

# vzctl create 1000 --ostemplate ubuntu-12.04-x86_64 --layout ploop --diskspace 8G
Creating image: /vz/private/1000.tmp/root.hdd/root.hdd size=8388608K
Creating delta /vz/private/1000.tmp/root.hdd/root.hdd bs=2048 size=16777216 sectors
Error in create_empty_delta (ploop.c:289): Can't open /vz/private/1000.tmp/root.hdd/root.hdd: Invalid argument
Failed to create image: Error in create_empty_delta (ploop.c:289): Can't open /vz/private/1000.tmp/root.hdd/root.hdd: Invalid argument [1]
Creation of container private area failed

Is this to be expected under zfs?
Is there a known workaround?

The same container works fine with default simfs on the same zfs partition.

Re: Creating ploop device fails on zfs storage [message #49183 is a reply to message #49176] Sat, 06 April 2013 18:52 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
I don't know about zfs, but ploop requires that partition fs (in which you create CT) have to be ext4 (ext3?).
Re: Creating ploop device fails on zfs storage [message #49295 is a reply to message #49183] Thu, 18 April 2013 19:08 Go to previous messageGo to next message
PyotrVelikiy
Messages: 3
Registered: May 2012
Location: United States
Junior Member
The question is not what fs needs to be inside a ploop container;
it is why the creation of /vz/private/{ctid}/root.hdd/root.hdd
fails when /vz/private is a zfs partition.

According to wiki.openvz.org/Ploop/Why
"Different containers may use file systems of different types and properties"

So one might have hoped that user-space ploop can also use
zfsonlinux file systems.
Re: Creating ploop device fails on zfs storage [message #49296 is a reply to message #49176] Thu, 18 April 2013 19:26 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
I didn't told anything about CT fs type.

please see https://bugzilla.openvz.org/show_bug.cgi?id=2277
comments #5 #7 #10 and of course #11

Re: Creating ploop device fails on zfs storage [message #51675 is a reply to message #49176] Tue, 30 September 2014 01:32 Go to previous message
bjdea1 is currently offline  bjdea1
Messages: 39
Registered: February 2009
Member
You can get ZOL (ZFS on Linux) to work with OpenVZ quite easily, including Ploop. I have written up a guide on how to use ZOL (ZFS on Linux) with OpenVZ here:

Creating ZFS Zpools for OpenVZ
http://hostrepo.com/article.php?id=190

I have been using ZOL (ZFS on Linux) with OpenVZ in a production environment for over 12 months. No problems at all, in fact I think it is safer, although performance is not as good, I feel ZFS is a more reliable filesystem and mitigates (prevents) corruption better - assuming you always use zpools with mirrors.


Deasoft.com Hosting/Software
AutoBillMe.com Billing Automation

[Updated on: Tue, 30 September 2014 01:33]

Report message to a moderator

Previous Topic: Partition does not mount in VE at boot time
Next Topic: ZOL (ZFS on Linux) works with OpenVZ
Goto Forum:
  


Current Time: Mon Nov 11 21:55:51 GMT 2024

Total time taken to generate the page: 0.03649 seconds