Project

General

Profile

Feature #27863

Add -B to freenas-debug to dump the configuration database to a text file

Added by Caleb St. John over 1 year ago. Updated about 1 year ago.

Status:
Done
Priority:
Important
Assignee:
Caleb St. John
Category:
Middleware
Target version:
Estimated time:
Severity:
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hide from ChangeLog:
No
Support Department Priority:
0

Related projects 1 project

Description

With the x-series, there is only 1 boot device on which the OS is installed. This poses a significant problem in the event of the drive failing. When this happens, the system has to be, basically, re-deployed as a new unit. While it's, ultimately, up to the customer to backup their configuration database, it would be incredibly useful to include the database dump in the output of the freenas-debug script.

The likelihood of the support department having a debug of the customers system is quite high. This would allow us to better server the customer by being able to rebuild their database to a known working copy.

I have added a new module to the freenas-debug script to do this.

Associated revisions

Revision dd7ed5cd (diff)
Added by Warren Block about 1 year ago

Update freenas-debug options

Ticket: #27863

History

#1 Updated by Caleb St. John over 1 year ago

  • Status changed from Untriaged to Unscreened

#2 Updated by Caleb St. John over 1 year ago

Pull Request associated with the changes here: https://github.com/freenas/freenas/pull/708

#3 Updated by Dru Lavigne over 1 year ago

  • Status changed from Unscreened to 42
  • Assignee changed from Ash Gokhale to Kris Moore

Kris: does this one also need a PR to a stable branch for this target version?

#4 Avatar?id=14398&size=24x24 Updated by Kris Moore over 1 year ago

  • Assignee changed from Kris Moore to Caleb St. John

Yes, if this is intended to land in TN 11.1 it'll need a PR into the freenas/11.1-stable branch as well.

#5 Updated by Caleb St. John over 1 year ago

I've cherry-picked this PR back into the freenas/11.1-stable branch.

https://github.com/freenas/freenas/pull/709

#6 Avatar?id=13649&size=24x24 Updated by Ben Gadd over 1 year ago

  • Due date set to 02/12/2018

#7 Updated by Dru Lavigne about 1 year ago

  • Status changed from 42 to Done

#8 Updated by Dru Lavigne about 1 year ago

Corrected PR or master: https://github.com/freenas/freenas/pull/708.

Will also need the PR link for the merge to the stable branch for U2.

Due to gitardness, this is the correct commit message :-)

#9 Updated by Dru Lavigne about 1 year ago

  • Status changed from Done to In Progress

#10 Updated by Caleb St. John about 1 year ago

Cherry Pick PR for 11.1-stable: https://github.com/freenas/freenas/pull/710

#11 Updated by Dru Lavigne about 1 year ago

  • Subject changed from capture freenas-v1.db file in the freenas-debug script to Add -B to freenas-debug to dump the configuration database to a text file
  • Needs Merging changed from Yes to No

#12 Avatar?id=13649&size=24x24 Updated by Ben Gadd about 1 year ago

  • Target version changed from TrueNAS 11.1-U2 to TrueNAS 11.2

#13 Updated by Caleb St. John about 1 year ago

Dru, this ticket is done and has been merged into freenas head and freenas 11.1-stable.

#14 Updated by Dru Lavigne about 1 year ago

  • Target version changed from TrueNAS 11.2 to TrueNAS 11.1-U2

#15 Updated by Dru Lavigne about 1 year ago

  • Status changed from In Progress to Done

#16 Updated by Dru Lavigne about 1 year ago

  • 1 added project (FreeNAS)
  • Target version changed from TrueNAS 11.1-U2 to 11.1-U2

#17 Updated by Warren Block about 1 year ago

  • Status changed from Done to In Progress

The name of the menu entry is (currently) just

-B  Dump freenas-v1.db

This does not give the user any idea about what it actually does. It should be:

-B  Dump System Configuration Database

It should not say "freenas", since this applies to both FreeNAS and TrueNAS.

#18 Updated by Caleb St. John about 1 year ago

PR to master for correcting the verbiage: https://github.com/freenas/freenas/pull/799
PR to 11.1-stable for correcting the verbiage: https://github.com/freenas/freenas/pull/800

#19 Avatar?id=14398&size=24x24 Updated by Kris Moore about 1 year ago

  • Status changed from In Progress to Closed

#20 Avatar?id=14398&size=24x24 Updated by Kris Moore about 1 year ago

  • Status changed from Closed to Done

#21 Updated by Bonnie Follweiler about 1 year ago

  • QA Status Test Passes FreeNAS added

#22 Updated by Dru Lavigne about 1 year ago

  • Needs Doc changed from Yes to No

Also available in: Atom PDF