Project

General

Profile

Bug #26175

expanding encrypted Volume failed

Added by Chris D almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
No priority
Assignee:
Nick Wolff
Category:
Middleware
Target version:
Seen in:
Severity:
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Hello,
I kept playing with my Test-Server.
The server had an encrypted RaidZ2 volume with 10 500GB HDDs. I tried to expand this volume with 10 250GB HDDs.
During the expanding process there was an timeout error.
Now it seems that the new HDDs have been added to the volume, but they have not been encrypted.
When I now try to decrypt the volume I get the following error:

Environment: Software Version: FreeNAS-11.0-U4 (54848d13b) Request Method: POST Request URL: http://192.168.178.44/storage/volume/1/unlock/?X-Progress-ID=3f36f852-dd7f-48f3-8e5d-6127bf474721 Traceback: File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner 39. response = get_response(request) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 178. response = middleware_method(request, callback, callback_args, callback_kwargs) File "./freenasUI/freeadmin/middleware.py" in process_view 162. return login_required(view_func)(request, *view_args, **view_kwargs) File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 23. return view_func(request, *args, **kwargs) File "./freenasUI/storage/views.py" in volume_unlock 1190. form.done(volume=volume) File "./freenasUI/storage/forms.py" in done 2619. raise MiddlewareError(msg) Exception Type: MiddlewareError at /storage/volume/1/unlock/ Exception Value: [MiddlewareError: b'Volume could not be imported: 10 devices failed to decrypt']

Any idea how I can fix this?

Forum post: https://forums.freenas.org/index.php?threads/expanding-encrypted-volume-failed.58383/

History

#1 Updated by Dru Lavigne almost 3 years ago

  • Status changed from Unscreened to 15

Chris: please attach a debug (System -> Advanced -> Save Debug).

#2 Updated by Chris D almost 3 years ago

  • File debug-Klaus-20171014004253.tgz added

I just noticed that I mixed up the HDDs configuration. There where 10x 4TB HDDs installed and I tried to add 10x 3TB HDDs.
I attached the debug files.

#3 Updated by Dru Lavigne almost 3 years ago

  • Status changed from 15 to Unscreened
  • Assignee changed from Release Council to William Grzybowski
  • Private changed from No to Yes

#4 Updated by William Grzybowski almost 3 years ago

  • Status changed from Unscreened to 15
  • Assignee changed from William Grzybowski to Joe Maloney

I am seeing some errors but I cant tell why?

@Chris was your volume password protected?

@Joe I could not readily reproduce the issue. Maybe I missed some step. Is this something your team could try, please?

#5 Updated by Chris D almost 3 years ago

I try to sum it up.
There was an encrypted volume with password.
I tried to expand this volume with the assistant. Thereby a timeout error occured. Sadly I didn't safe this traceback msg.
After a reboot I tried to mount/decrypt the expanded volume (with the password), but got the "Volume could not be imported" error from above.

#6 Updated by Chris D almost 3 years ago

Hi, ist there a way to restore the old config with just 10 drives per volume?
Otherwise I am inclined to setup everything from scratch. The stored data is not essential, but it would save time and work if I could get it back.

#7 Updated by William Grzybowski almost 3 years ago

Chris D wrote:

Hi, ist there a way to restore the old config with just 10 drives per volume?
Otherwise I am inclined to setup everything from scratch. The stored data is not essential, but it would save time and work if I could get it back.

That depends if the zfs pool extended. You could be able to export the pool and importing it back using just the 10 drives.

#8 Updated by Joe Maloney almost 3 years ago

  • Assignee changed from Joe Maloney to Nick Wolff

William,
I will go over this with Nick Wolff today.

#9 Updated by Dru Lavigne almost 3 years ago

  • Target version set to 11.1

#10 Updated by Dru Lavigne almost 3 years ago

  • File deleted (debug-Klaus-20171014004253.tgz)

#11 Updated by Dru Lavigne almost 3 years ago

  • Status changed from 15 to Closed: Not Applicable
  • Target version changed from 11.1 to N/A
  • Private changed from Yes to No

#12 Avatar?id=14398&size=24x24 Updated by Kris Moore over 2 years ago

  • Status changed from Closed: Not Applicable to Closed

Also available in: Atom PDF