ZFS pools/filesystems created manually do not persist.

Status
Not open for further replies.

rwaltman

Cadet
Joined
Apr 25, 2012
Messages
4
As title says, ZFS vol/fs created manually via console commands,

(A) are not visible via the web interface.
(B) are not imported automatically when rebooting the system.

I can live with (A), but (B) is a "show stopper" for me. I can not use the web GUI to create the volumes, because I do not want to allocate the whole disk to a single pool. [Details of my setup below]

How do I make FreeNAS "remember" the ZFS configuration and swap settings?

Thanks,

Roberto Waltman.

-----------------------------

Details:
I have a system with 5x1TB drives.
I want to use two pools of the same capacity (1596G,) one raidz1, the other raidz2.
The 100 Mbyte free area is to accommodate replacing a failing disk with a new one that doesn't have exactly the same number of sectors.

[root@freenas] ~# gpart show ada0
=> 34 1953525101 ada0 GPT (932G)
34 94 - free - (47K)
128 2097152 1 freebsd-swap (1.0G)
2097280 836239360 2 freebsd-zfs (399G)
838336640 1114984448 3 freebsd-zfs (532G)
1953321088 204047 - free - (100M)

( Same for ada1,2,3 & 4 )

[root@freenas] ~# zpool list

NAME SIZE USED AVAIL CAP HEALTH ALTROOT
vol_1 1.94T 315K 1.94T 0% ONLINE -
vol_2 2.59T 356K 2.59T 0% ONLINE -

[root@freenas] ~# zpool status

pool: vol_1
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
vol_1 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
ada0p2 ONLINE 0 0 0
ada1p2 ONLINE 0 0 0
ada2p2 ONLINE 0 0 0
ada3p2 ONLINE 0 0 0
ada4p2 ONLINE 0 0 0

errors: No known data errors

pool: vol_2
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
vol_2 ONLINE 0 0 0
raidz2 ONLINE 0 0 0
ada0p3 ONLINE 0 0 0
ada1p3 ONLINE 0 0 0
ada2p3 ONLINE 0 0 0
ada3p3 ONLINE 0 0 0
ada4p3 ONLINE 0 0 0

errors: No known data errors

[root@freenas] ~# zfs list

NAME USED AVAIL REFER MOUNTPOINT
vol_1 244K 1.52T 33.6K none
vol_1/svn 33.6K 1.52T 33.6K /mnt/svn
vol_2 204K 1.52T 37.5K none
 

rwaltman

Cadet
Joined
Apr 25, 2012
Messages
4
Some more information - Following the advice on another thread, I exported, (via cli,) both pools and then performed a "reset to factory defaults".
After rebooting, I can see both pools in the Storage --> Auto Import Volume, but I can import only one.
After importing either vol_1 or vol_2, the other one does not show up in the list anymore.
(It reappears if I export the volume that was imported succesfully)

--
Roberto Waltman
 
J

James

Guest
This is expected behaviour for versions prior to 8.2. One of the new features in 8.2 is "ZFS is now integrated in that any ZFS operations that are performed at the command line are now reflected in the GUI. This means that you can now create pools, datasets, snapshots, and zvols in either the command line or the GUI and they will stay in sync with each other. "
 

rwaltman

Cadet
Joined
Apr 25, 2012
Messages
4
Thanks for the reply.

> "... any ZFS operations that are performed at the command line are now reflected in the GUI."

Yes, that was my expectation. Unfortunately, it doesn't (fully) work.
I did not mentioned this in my post, but I am running the latest version:

[root@freenas] ~# uname -a
FreeBSD freenas.local 8.2-RELEASE-p6 FreeBSD 8.2-RELEASE-p6 #0: Wed Apr 11 10:19:51 PDT 2012 jpaetzel@build.ixsystems.com:/home/jpaetzel/fn_build/8.0.4/obj.amd64/build/home/jpaetzel/fn_build/8.0.4/FreeBSD/src/sys/FREENAS.amd64 amd64
( This is on an HP Proliant Microserver, and I did a clean install, not an upgrade. )

New filesystems/datasets created via the cli are visible in the GUI, but only after exporting/inporting, and only in one top-level pool.
I have two top-level pools, and only one, (either one,) can be imported via the GUI. The other becomes invisible.
So, I can import it manually, but I can not use the GUI to create shares, etc. The second pool import also vanishes when restarting the NAS.
It seems the system expects the disks to be allocated to only one pool. (Ignoring swap space.)
I will experiment a little bit over the weekend - If I can not get this to work, I will have to switch to a single top-level pool, or go back to Solaris... :(

--
Roberto Waltman
 

rwaltman

Cadet
Joined
Apr 25, 2012
Messages
4
> ... I am pretty certain you are not using FreeNAS 8.2.

Thank you very much, sir. You are right - I downloaded 8.2 BETA 3, but it seems I picked the wrong ISO when I made the install CD-ROM.
I installed from a disk that was labeled 8.2.0, but actually contained 8.0.4.

*BUT*, I installed 8.2, (clean, no upgrade,) verified I'm running the right version (FreeNAS-8.2.0-BETA3-x64 (r11188)) and the problems remain.
I have to pools named 'vol_1' and 'vol_2'. Both are listed in the "Auto Import Volume" menu. After importing either one, the other is not available anymore.

--
Roberto Waltman
 
J

James

Guest
That sounds like a bug that should be reported as a ticket in support.freenas.org.
 
Status
Not open for further replies.
Top