Any chance on ZFS Support?
Seems http://zfsonlinux.org/ has made some progress.
ZFSonLinux.org
-
-
It would be nice if they added this, but it's doable on your own. I posted this on the last forum. Although some of the convenience of OMV goes out the door with this implementation.
I spent the time to write this for my own benefit, guess it could come in handy for others
How to guide for installing ZFS to your OMV system
Enable SSH from the browser interface and then login via ssh using something like putty and direct your browser to zfsonlinux.org, we'll need some links from there later.
First, we need to install some things that will allow us to compile the packages. As per the ZFSonLinux site:
#sudo apt-get install build-essential gawk alien fakeroot linux-headers-$(uname -r)
#sudo apt-get install zlib1g-dev uuid-dev libblkid-dev libselinux-dev parted lsscsi
Say yes to everything and once done cd on over to the /tmp directory and lets download the files we need from zfsonlinux there. We need the SPL and ZFS packages, I suggest you get the latest links from the website:
#cd /tmp
#wget http://github.com/downloads/zf…/spl/spl-0.6.0-rc9.tar.gz
#wget http://github.com/downloads/zf…/zfs/zfs-0.6.0-rc9.tar.gz
(unzip both packages)
#tar -xf spl-0.6.0-rc9.tar.gz
#tar -xf zfs-0.6.0-rc9.tar.gz
You should now have two folders for each of those packages. Let's build the spl one first:
#cd spl-0.6.0-rc9.tar.gz
#./configure
This should run through a big list of items, just make sure there are no errors. Once done enter:
#make deb
This will take some time but once it's done let's install it:
#sudo dpkg -i *_amd64.deb
Once that's all done let's repeat the process, but this time we are going to do it for the ZFS packages. CD over to the ZFS directory and repeat the steps we just did on the SPL directory. Assuming everything went ok you should now be set to go. There are a set of tests for each package that the ZFSonLinux site has, if you want to run through them to check that everything is installed ok I say go for it. Otherwise the quick and dirty way to see if things are running is to try and issue a ZFS command.
#zpool status
no pools available
#zfs list
no datasets available
So if everything is working now might be a good time to start building your ZFS data sets. ZFS is pretty straightforward to setup, but I highly suggest you consult the Oracle ZFS Administration guide and get the basics down.
http://docs.oracle.com/cd/E19253-01/819-5461/index.html
or download it (can't guarantee it's the latest version)
http://docs.oracle.com/cd/E19963-01/pdf/821-1448.pdfFrom what padrino has stated OMV can't see ZFS shares currently. So I manually setup a SMB share by doing the following (Note this setup is for full guest access only). EDIT: I chose to enable SMB in the web interface, don't forget guest access, in case I ran into any issues down the road. Also enabling SMB or NFS will wipe your config file. Backup any config file info you feel you need to keep!!!:
#nano /etc/samba/smb.confThe config file, with SMB enabled should look like something like this, the parts I added are the last line "security = share" and everything under "Share Definitions":
Code
Alles anzeigen#======================= Global Settings ======================= [global] workgroup = WORKGROUP server string = %h server include = /etc/samba/dhcp.conf dns proxy = no log level = 0 syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 syslog only = yes panic action = /usr/share/samba/panic-action %d encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = no passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n $ pam password change = yes socket options = TCP_NODELAY guest account = nobody load printers = no disable spoolss = yes printing = bsd printcap name = /dev/null unix extensions = yes wide links = no create mask = 0777 directory mask = 0777 use sendfile = no null passwords = no local master = yes time server = no wins support = no security = share #======================= Share Definitions ======================= [Data] comment = Data Store read only = no locking = no path = /pool/data guest ok = yes create mask = 0775 directory mask = 0775 writeable = yes browseable = yes
Hit Ctrl-X and save the file. Run the following to test the config file
#testparm
if everything is ok restart samba
#sudo /etc/init.d/samba restartAlso don't forget to run a chown command on your share directory and set the user to nobody otherwise guests won't be able to write to the ZFS volume.
#chown -R nobody pool/dataGood luck!
Mounting at Boot
This can be done manually...
#zfs mount /pool
#zfs mount /pool/filesystemI've taken a look at doing it automatically and there's no great way to get it done. You can first set the ZFS mount point as legacy and then make an entry in fstab or you can run a cron job every minute with "zfs mount /pool".
SOLVED (hopefully): Another issue I've run into, my N36L keeps changing up the boot order on me, so when I created the array via sdb, sdc, etc instead of the UUID it keeps degrading the array. This isn't a huge issue since you can just "zpool export pool -f" and then "zpool import pool -f", which just exports and imports the pool back in which solves any issues. I still do not know how to create a ZFS array using UUIDs or updating my current array to use UUIDs. If anyone has a solution, please post.
If this happens to you export your pool
#zfs export pool -f
Then run the following
#zpool import -d /dev/disk/by-id
Then reimport the pool
#zfs import pool -fSupposedly ZFS will see the hardware ID of these devices. Trying to get a UUID is useless as the command "blkid" shows "zfs" under UUID. Survived a few reboots so far, just hope it lasts.
-
Getting a UUID out of a zfs partition seems to be one obstacle to making zfs work more magically with OMV.
http://sourceforge.net/apps/ph…c.php?f=16&t=314&start=10
ZitatOMV uses UUIDs to recognize things (at least in 0.2) so it won't see the drives, even with legacy mount points because the system won't report UUIDs when querying the list of devices.
At the moment, my blkid output looks like this:Coderoot@omv:~# blkid /dev/sda1: UUID="40bbabba-4381-4443-8afd-67fb29a328d1" TYPE="ext4" /dev/sda5: UUID="380d50b7-f328-43b2-b624-4387ee6b1253" TYPE="swap" /dev/sdb1: TYPE="zfs"
Not good... and I see other people using OMV have the same issue. However, I found people out there whose blkid output looks like this:http://osdir.com/ml/zfs-discuss/2012-05/msg00148.html
Code~$ sudo blkid /dev/sda1: LABEL="zfspool1" UUID="99418587177431xxxxx" UUID_SUB="6234475309785482155" TYPE="zfs_member" /dev/sdb1: LABEL="zfspool1" UUID="99418587177431xxxxx" UUID_SUB="10595250736346505763" TYPE="zfs_member"
Is he running a newer version of udev or libblkid or some such? If so, would it be possible to upgrade just one or a few packages to get to where he is?I also found the following from Feb 2010 searching for "zfs_member". Maybe this is a relatively new thing...
http://marc.info/?l=util-linux-ng&m=126722443418413
ZitatOK, "zfs_member" sounds good.
-
thanks brbubba for the detailed tut on bulding & integrating spl and zfs. Finally it worked, but I had to install some more packages such as a c-compiler as per default in OMV, there was none installed (at least on my OMV 4.5 version).
What I still would like to see very much, whould be the seamless integration in OMV. That means, that from the Web-UI I can select the file system ZFS. It's still not shown after the install. Is there is a reason why I can't? (UUID).
The same would be nice with NTFS if there is a technical possibility.
Could that be a feature request for one of the next versions?
This is one of the main advantages of FreeNAS to support ZFS (based on FreeBSD). -
I think the lack of UUIDs has to do with the lack of zfs support in some of the core packages in Squeeze. ( i.e. util-linux ). I think this package pulls in a newer version of blkid that will see more than just 'zfs'.
When I get a chance, I'll try installing omv over Wheezy w/ the ZoL packages and see what happens. I don't think updating util-linux in an existing Squeeze-based omv install is a good idea.. but I might try that too
Do UUIDs get generated for pools in a VM?
-
It would be great if ZFS would be in OMV. Maybe as a Plugin?
What I've read so far about zfsonlinux.org, that seems to work quite well and above faster than the Fuse Variant.
I think then OMV would really be the best NAS.
-
Volker has mentioned before that once OMV based on Wheezy (0.6) was released that it should have support for btrfs. If someone needs/wants ZFS over btrfs, they probably have the skills to install/manage it. Sounds like installing it may be easier with Wheezy as well. Otherwise, ZFS support will have to come from a third party plugin.
-
I would prefer ZFS, because I think that btrfs is just too new.
ZFS is running now a few Years and it is really a good File System. -
ZFS on linux is as experimentals as btrfs. But the supporting community and cause it is the official kernel tree (which zfs never will be), it makes btrfs the number one choice for this project and for me.
-
Zitat von "SerErris"
ZFS on linux is as experimentals as btrfs.
I have no knowledge of the state of development of btrfs, but I would consider ZFS on LInux to be in beta rather than "experimental".
Lawrence Livermore labs developed and are actively using ZFS for Linux on the world's largest supercomputer managing 55PB of storage. See http://zfsday.com/wp-content/u…/08/Behlendorf-ZFSDay.pdfGiven that, I'm happy to trust my measly few TB to ZFS on Linux :-}
+1 for adding ZFS support into OMV. -
And still the integration will never be the same then btrfs will become. Simply ZFS is not supported by the official kernel as long as the copyright will stay as it is today.
-
I would choice ZFS also over btrfs, i got a lot of experience with ZFS on Solaris, so having it on linux would just feel normal as i work with ZFS every single day and love it.
Only the fact that btrfs needs a fsck tool scares me, let's see what the future brings but for now ZFS is for me the best filesystem ever.
Having choices in OMV is what it makes big, so dumping everything for btrfs would just be a wrong choice, it would be best to leave the choice to the user and having as much possible choices would only be better, anyway when i see that most people go for RAID 5 then i think a lot of people needs to be educated still as i don't think that they all have a full backup of the Tbs they use or use a UPS. -
btw did any of you who are using ZFS on OMV have already installed the latest spl-0.6.0-rc14, which is zpool version 28 and zfs version 5 ?
-
ZFSonLinux has finally added a repository for Wheezy, so when OMV comes out on Debian 7 it will be dead-easy to install without even having to compile:
http://zfsonlinux.org/debian.html
Package is called debian-zfs.
Hopefully this will help get zfs included in OMV on Wheezy.
ZFS pools don't auto-mount under Debian like they should; you have to run /etc/init.d/zfs-mount, but it works fine after that.
-Wes
-
Wes that is indeed great news and i can't wait to use it so i hope we go fast over to Wheezy
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!