I have installed a NAS4Free on a VM, and as recommended, i installed it on a 1GB virtual disk, and assigned another disk 500GB to this VM for file storage.
I have created the disk, encrypted it, created a ZFS virtual disk, and then a ZFS storage pool. Everything was working. On every restart of this VM i needed to go on and mount the encrypted drive.
Recently i upgraded the host machine, and now i cant mount or make it work. I have tried removing everything and setting up from scratch everything, (with the exception of formating the disk i have used an encrypted one without formating it).
Any suggestion on how can i at least get back my data, can i mount somehow the encrypted drive even in another utility, just need to get back the data that were on it.
The following appears in the ZFS Storage Pool, and the mounted disk does not appear anywhere: Name: StoragePool; Size: Unknown; Used: Unknown; Free: Unknown; Capacity: Unknown; Dedup: Unknown; Health: Unknown; AltRoot: Unknown
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Encryption and ZFS
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: Encryption and ZFS
In your case, you should get snapshot of VM. Then try following from shell.mentor wrote:I have created the disk, encrypted it, created a ZFS virtual disk, and then a ZFS storage pool.
# geli load
# geli dump /dev/adaX (or /dev/daX)
If you don't know the disk, try it for all disks. If you encrypted before, dump show meta info of encryption.
If you encrypted RAID disks, try to find like /dev/mirror/XXX or /dev/raid5/XXX.
Finally, attach it to the system. (need password)
# geli attach /dev/adaX
Regards,
Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
-
mentor
- NewUser

- Posts: 4
- Joined: 17 Sep 2012 13:28
- Status: Offline
Re: Encryption and ZFS
I'm not having a problem attaching it, i'm having a problem establishing the ZFS Pool, the following is displayed at the Storage Pool:daoyama wrote:In your case, you should get snapshot of VM. Then try following from shell.mentor wrote:I have created the disk, encrypted it, created a ZFS virtual disk, and then a ZFS storage pool.
# geli load
# geli dump /dev/adaX (or /dev/daX)
If you don't know the disk, try it for all disks. If you encrypted before, dump show meta info of encryption.
If you encrypted RAID disks, try to find like /dev/mirror/XXX or /dev/raid5/XXX.
Finally, attach it to the system. (need password)
# geli attach /dev/adaX
Regards,
Daisuke Aoyama
Name: StoragePool; Size: Unknown; Used: Unknown; Free: Unknown; Capacity: Unknown; Dedup: Unknown; Health: Unknown; AltRoot: Unknown
When i'm creating the Storage Pool i'm receiving Error Code 1, but i've seen somewhere that it's just a UI bug.
Thank you for your support
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Encryption and ZFS
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
mentor
- NewUser

- Posts: 4
- Joined: 17 Sep 2012 13:28
- Status: Offline
Re: Encryption and ZFS
The moment that i remove it through UI or command line it gets recreated again! It takes a very long time to access zfs pool. But i'm having the same problem with it, as you can see in my posted above, every info is unknown.
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Encryption and ZFS
see viewtopic.php?f=16&t=1271 perhaps helps you.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
mentor
- NewUser

- Posts: 4
- Joined: 17 Sep 2012 13:28
- Status: Offline
Re: Encryption and ZFS
Thank you very very much, this one fixed my problem, i owe you oneraulfg3 wrote:see viewtopic.php?f=16&t=1271 perhaps helps you.