Manual import works, but auto import of encrypted ZFS Volumes not showing any disks

Status
Not open for further replies.

valetti

Cadet
Joined
Feb 5, 2014
Messages
2
Hey there

First post and of course it's about a problem :-( Please be gentle - I am new to FreeNAS and FreeBSD, but I know 1 to 3 things about AIX, Linux, HP-UX, etc :) ...

Here is my problem:
After having detached (while NOT destroying) a GELI encrypted zfs volume I am unable to see any disks in the Auto Import dialog in step 2 of 3 for encrypted volumes and obviously I am doing something wrong here.
(This mentioned volume is a single disk volume that I only use as an additional backup)

My Workaround:
I am able to successfully decrypt the disk, import the pool (mount the file system) and browse the files on that ZFS volume (using the commands "geli attach" and "zfs import"). In this case though the FreeNAS GUI does not show the volume.

My Goal:
How can I successfully do this, so I can manage the volume again in the FreeNAS GUI ?

P.S.: I should have mentioned I am on FreeNAS-9.2.0-RELEASE-x64 (ab098f4).

Cheers,
Valetti
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
Can you please post output of this command before you decrypt the disk manually:
python /usr/local/www/freenasUI/middleware/notifier.py geli_get_all_providers
 

valetti

Cadet
Joined
Feb 5, 2014
Messages
2
Can you please post output of this command before you decrypt the disk manually:
python /usr/local/www/freenasUI/middleware/notifier.py geli_get_all_providers

Hello Dusan

Thanks for looking at this.

Long story short: It's working again and I do not know how how

The long story:
While trying to run this command you had suggested I ran into another problem. I noticed that the drive once plugged back in via eSATA would not get properly attached in the OS although gpart could list it ... The following messages was showing in dmesg

Code:
adaasync: Unable to attach to new device due to status 0x6


I rebooted and the command you had given me lists the correct gptid etc. (see below) .... and now the FreeNAS Auto Import Volume dialog also shows all available encrypted disks in step 2 of 3. I do not understand what changed ... previously the disk was obviously attached properly as I could decrypt and import the zpool via the command-line while the GUI dialog did not show any disks.

Some kind of fluke ?

______________________________________

Code:
[root@nas ~]# python /usr/local/www/freenasUI/middleware/notifier.py geli_get_all_providers
[('gptid/f5f95f77-811a-11e3-af61-1c6f659f1b8a', 'da0p2'), ('gptid/f60ce40a-811a-11e3-af61-1c6f659f1b8a', 'da1p2'), ('gptid/f6208a89-811a-11e3-af61-1c6f659f1b8a', 'da2p2'), ('gptid/f633e9e1-811a-11e3-af61-1c6f659f1b8a', 'da3p2'), ('gptid/5ac47c27-8b98-11e3-968f-1c6f659f1b8a', 'ada0p2')]
 
[root@nas ~]# gpart list | head -50
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 7814037134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
  Mediasize: 2147483648 (2.0G)
  Sectorsize: 512
  Stripesize: 4096
  Stripeoffset: 0
  Mode: r1w1e1
  rawuuid: 5aac8d41-8b98-11e3-968f-1c6f659f1b8a
  rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
  label: (null)
  length: 2147483648
  offset: 65536
  type: freebsd-swap
  index: 1
  end: 4194431
  start: 128
2. Name: ada0p2
  Mediasize: 3998639460352 (3.7T)
  Sectorsize: 512
  Stripesize: 4096
  Stripeoffset: 0
  Mode: r0w0e0
  rawuuid: 5ac47c27-8b98-11e3-968f-1c6f659f1b8a
  rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
  label: (null)
  length: 3998639460352
  offset: 2147549184
  type: freebsd-zfs
  index: 2
  end: 7814037127
  start: 4194432
[...]
 
 
Status
Not open for further replies.
Top