need anything else? Thanks.
Migrating from FreeNAS to Open Media Vault while also importing FreeNAS ZFS to ZFS on Linux - Roadmap Advice sought please
-
-
no, and I can't help, with those version numbers, import must works, so i do not know whats the problem is.
-
According to this output com.delphix:log_spacemap which was set on Freenas and the information on the support table this pool will only import as read only
-
According to this output com.delphix:log_spacemap which was set on Freenas and the information on the support table this pool will only import as read only
sorry you are right i confuse to line:
com.delphix:spacemap_histogram that can be imported in R/W mode
-
alright how about this, I have imported read only, now copying over 25tb of data to a regular non zfs raid array temporary. I will then delete zfs array create a raid 6 array and copy data over. Once this is done what is the best way to switch back to the most current kernel? Currently using proxmox kernel
-
proxmox kernell is the recommended kernell to use ZFS
-
Hi Guys,
I am in the same boat.
Moving from TrueNAS to OpenMediaVault.
Installed the latest version on Debian.
Have everything configured and running.
I managed to install zfs and import the pools with the command "zpool import -f PoolName" since import from the GUI was giving errors.
I am just having issues accessing the Data already on the disks.
If i create a shared folder it gets created and i am able to write data on the folder. But i am not able to browse the data already on the pool.
What am i missing. What do i need to do to be able to access the data already stored on the pools.
Best regards,
Adeel Akram
-
post zpool status to see if your pool need to be upgraded
-
Hi raulfg3,
Below is the output for zpool status for the two pools:
root@OpenMediaVault:~# zpool status Data
pool: Data
state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(5) for details.
scan: scrub repaired 0B in 04:07:05 with 0 errors on Sun Dec 27 04:07:09 2020
config:
NAME STATE READ WRITE CKSUM
Data ONLINE 0 0 0
sdb ONLINE 0 0 0
errors: No known data errors
root@OpenMediaVault:~# zpool status Replica
pool: Replica
state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(5) for details.
scan: scrub repaired 0B in 00:06:21 with 0 errors on Sun Dec 27 00:06:27 2020
config:
NAME STATE READ WRITE CKSUM
Replica ONLINE 0 0 0
sdc ONLINE 0 0 0
errors: No known data errors
Best regards,
Adeel Akram
-
you have 2 pools , each pool with only one disk on it, correct?.
please consider to have a backup before to upgrade your pool, because you cant revert to old ZFS version.
do a zpool upgrade poolname to upgrade your pòols, reboot your NAS, do a zpool status to be sure that no more warnnings on zpool.
test again, must work.
PD: revise first your permission on that pool, owner must be root an group must be users, perhaps you can have correct permission and your browser problems are because this.
-
Hi raulfg3,
Yes, i have two disks, each pool with only 1 disk. I am not using ZFS RAID. I use rsync to replicate only the important data on to another disk.
I am just testing these two disks first before moving the other two to this storage. The data on these disks is also backed up.
I did the zpool upgrade on one of the disks as you suggested. But that was actually not the issue. I just was not sure how to share the data that was on the pools. Since its been only a few days that i have started using OpenMediaVault.
After i created shared folders and mapped folders on the Pool with the created shared folder and assigned them to an SMB share i was able to access the data on the pool. I still get permission errors when adding the existing folders but things seem to be working since i am able to read and write data in the folders. Is there an easy way to get rid of all these permission errors.
-
Below is the error that i get when adding the existing folders:
OMV\Exception: Failed to set file mode to '42775' for '/Backups/Backups/':
Failed to set file mode to '42775' for '/Backups/Backups/':
-
Below error when i try to Modify Shared folder ACL:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; setfacl --remove-all -M '/tmp/setfaclhYnFHV' -- '/Backups/Backups/' 2>&1' with exit code '1': setfacl: /Backups/Backups/: Operation not supported
-
I don't know what FreeNAS uses but try this.
Substitute your pool name in for ZFS1
zfs set aclinherit=passthrough ZFS1zfs set acltype=posixacl ZFS1
zfs set xattr=sa ZFS1
-
Thanks crashtest,
I ran the the commands through ssh using putty on two of the pools. But it does not seem to have any effect.
I can browse all the files that are on the pool. But i can not delete any files.
Is there any way to recursively change permission on all files and folders so that i can modify and delete them as well.
Best regards,
Adeel Akram
-
Also i can not seem to delete the highlighted unwanted folders that became visible once i imported the pool from one of the pools.
Same folders were visible on other pools as well but i was able to delete them one by one from the ZFS tab.
I Get the below error when i try to delete them.
No such Mntent exists
Error #0:
OMVModuleZFSException: No such Mntent exists in /usr/share/omvzfs/Utils.php:84
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/zfs.inc(253): OMVModuleZFSUtil::deleteOMVMntEnt(Array, Object(OMVModuleZFSFilesystem))
#1 [internal function]: OMVRpcServiceZFS->deleteObject(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('deleteObject', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('ZFS', 'deleteObject', Array, Array, 1)
#5 {main} -
That screen capture with .system appears to be a file folder structure that may be using overlayfs. That's what "legacy" in the mount point might mean. I've seen that before when users put Docker containers on a ZFS pool, without the Docker for ZFS driver. Maybe this has something to do with FreeNAS?
Have you tried deleting from the CLI?
zfs destroy Data/.system -r_________________________________________________________________
Is there any way to recursively change permission on all files and folders so that i can modify and delete them as well.
If you create a "shared folder" (Access Rights Management, Shared Folder) using each ZFS filesystem as the device, (note that the path will be a single / ) once created, click on the shared folder entry and the ACL button. In the bottom window (it's labeled Extra Options for some reason), set root, group, and others to Read/Write/Execute. Set the recursive button ON (green) and Apply.
If you go this route, you'd have to create a shared folder for each ZFS filesystem. Thiss probably something you'll do anyway, if you want to put ZFS data sets on the network.
Once you're straightened out, this ref might be helpfull. -> NAS Permissions in OMV. -
Thanks crashtest,
The zfs destroy Data/.system -r command worked perfectly. (ZFS Tab looks all clean now )
I already created each shared folder for each ZFS pool as you suggested to give a structure to things. Created another folder with Same name as the pool in each ZFS pool and put all folders inside the same name folder. I then created an SMB share with this folder. All looks nice and clear in the network shares now. With each shared folder having the same name as the ZFS pool.
Below is what my ACL window looks like:
I selected the below options as you suggested:
But after a while i get errors similar to below error on all files and folders in the share:
setfacl: /Backups/Backups/: Operation not permitted
Best regards,
Adeel Akram
-
setfacl: /Backups/Backups/: Operation not permitted
From your screen captures I see Backups with "Others" as Read/Execute. That needs to be be Read/Write/Execute., with the recursive switch on when applied.
We'll see if that works first. -
Along with the above, I can't see the check boxes for User / Group permissions. This box (User / Group Permissions) are actually ACL's which can be a PITA if you don't know their effects. There should be NO boxes checked under User / Group Permissions.
If there are, uncheck them, use the recursive switch and Apply.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!