Move to Production

Moderator: crythias

Post Reply
chetannagaonkar
Znuny advanced
Posts: 148
Joined: 25 Oct 2010, 10:02
Znuny Version: 3.2
Location: Bangalore, India

Move to Production

Post by chetannagaonkar »

Hello,

Once the OTRS deployment is done on development server and tested, what are the steps to move it to production such that history and other unnecessary details are not reflected? The system should be able to used afresh so that when reports are generated, they don't take historical data tested on development server.

Thanks.
Best Regards
Chetan
Best Regards
Chetan
OTRS 3.06
ITSM 3.1
MySQL
Windows 7 Ultimate
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Move to Production

Post by crythias »

If you modified the schema of the database, you'll want to make sure you modify it again on the new one, but otherwise, if you don't copy the database, you won't copy tickets...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
chetannagaonkar
Znuny advanced
Posts: 148
Joined: 25 Oct 2010, 10:02
Znuny Version: 3.2
Location: Bangalore, India

Re: Move to Production

Post by chetannagaonkar »

Thanks Crythias. So, if I simply copy all the files under OTRS folder, should it suffice? Will it copy the groups/roles/notifications and all configurations that I would have created on dev server too? Is there a way to copy the customizations and just configurations but not the tickets to Prod server from dev server and Go Live?

Best Regards
Chetan
Best Regards
Chetan
OTRS 3.06
ITSM 3.1
MySQL
Windows 7 Ultimate
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Move to Production

Post by crythias »

Why not copy the whole database (mysqldump/restore) and use generic agent to delete tickets?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Move to Production

Post by ferrosti »

Why not delete first and then export? :wink:

You should have a look at your article* and ticket* tables. Empty all the ones that contain data, not the detail tables!
On a first look these should be:
- article
- article_attachment
- article_plain
- article_search
- ticket
- ticket_history
- ticket_index
- ticket_watcher

It is important then to reset the tables counter for its auto_id columns. This can either be done using mysql workbench or by editing the mysqldump itself.

After all, do not forget to reset your TicketCounter under $OTRSHOME/var/log.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
chetannagaonkar
Znuny advanced
Posts: 148
Joined: 25 Oct 2010, 10:02
Znuny Version: 3.2
Location: Bangalore, India

Re: Move to Production

Post by chetannagaonkar »

Thank you Crythias and Ferrosti.

I think that I got the answers. To sum up, can you just confirm if I delete the data listed in below tables after mirrorring the entire Linux server, should it suffice? I may not have to reset the Ticketcounter if I am using DateCheckSum, right? That way, the configuration would still remain intact and the tickets would start getting created afresh in the new system. Correct me if I have missed something pls.

Best Regards
Chetan
Best Regards
Chetan
OTRS 3.06
ITSM 3.1
MySQL
Windows 7 Ultimate
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Move to Production

Post by ferrosti »

Back it all up and give it a try.
I have never done this and there is no warranty to give on that. But a close look on the database reveals that these are the tables which are frequently in use or their lookup tables.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
chetannagaonkar
Znuny advanced
Posts: 148
Joined: 25 Oct 2010, 10:02
Znuny Version: 3.2
Location: Bangalore, India

Re: Move to Production

Post by chetannagaonkar »

In case, if I need to make the existing dev server as Prod server, I believe that deleting the records from the below tables should suffice, right ?
- article
- article_attachment
- article_plain
- article_search
- ticket
- ticket_history
- ticket_index
- ticket_watcher

Also, I may not have to reset the Ticketcounter if I am using DateCheckSum, right? Can someone share their thoughts on this pls?

Thanks.
Best Regards
Chetan
Best Regards
Chetan
OTRS 3.06
ITSM 3.1
MySQL
Windows 7 Ultimate
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Move to Production

Post by crythias »

probably, yes. Nobody here wants to say, "yes", because we don't want to be held to it. To be safer, you may consider using Generic Agent to delete your tickets.
If you're using DateCheckSum, no, you should not have to reset the counter.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
chetannagaonkar
Znuny advanced
Posts: 148
Joined: 25 Oct 2010, 10:02
Znuny Version: 3.2
Location: Bangalore, India

Re: Move to Production

Post by chetannagaonkar »

I wanted to ensure that my understanding, at least, about DateCheckSum is correct. Thanks, Crythias :-)
Best Regards
Chetan
OTRS 3.06
ITSM 3.1
MySQL
Windows 7 Ultimate
chetannagaonkar
Znuny advanced
Posts: 148
Joined: 25 Oct 2010, 10:02
Znuny Version: 3.2
Location: Bangalore, India

Re: Move to Production

Post by chetannagaonkar »

I was able to remove all records from the specified tables. Everything seems to be working as expected. The 7-day stats graph still reflects the history though. I don't see any relevant table from where I can remove the data. Anybody know where does it reflect the data from pls?

Best Regards
Chetan
Best Regards
Chetan
OTRS 3.06
ITSM 3.1
MySQL
Windows 7 Ultimate
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Move to Production

Post by crythias »

My guess is that these stats are cached, because if I recall correctly, they aren't real time.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
chetannagaonkar
Znuny advanced
Posts: 148
Joined: 25 Oct 2010, 10:02
Znuny Version: 3.2
Location: Bangalore, India

Re: Move to Production

Post by chetannagaonkar »

Thanks, Crythias. Your guess was right. I checked it today and the chart is reflecting correctly. There should be a way of clearing the cache though.

Best Regards
Chetan
Best Regards
Chetan
OTRS 3.06
ITSM 3.1
MySQL
Windows 7 Ultimate
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Move to Production

Post by ferrosti »

Did you ever read the manuals?

For cache deletion use

Code: Select all

$OTRS_HOME/bin/otrs.DeleteCache.pl
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
chetannagaonkar
Znuny advanced
Posts: 148
Joined: 25 Oct 2010, 10:02
Znuny Version: 3.2
Location: Bangalore, India

Re: Move to Production

Post by chetannagaonkar »

I cleared off all the data from database before going Live and then everything seems to be working correctly. However, the escalations that were being tested earlier still seem to send escalation mails daily (although those tickets don't exist in the system now). Is there any file/folder that I need to clear it too. I had cleared only relevant tables from database while going Live. Any help would be highly appreciated.

Chetan
Best Regards
Chetan
OTRS 3.06
ITSM 3.1
MySQL
Windows 7 Ultimate
Post Reply