Discussion:
Restore Zenoss Backup Procedure
arshadkhan20
2012-03-20 07:50:11 UTC
Permalink
arshadkhan20 [http://community.zenoss.org/people/arshadkhan20] created the discussion

"Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65336#65336

--------------------------------------------------------------
Hi,

I am running zenoss 2.5 on Ubuntu 10 and its working fine, i have take zenoss backup with zenoss web based BACKUP utility and when i try to restore zenoss backup i am getting bellow error, My steps are.
1. Take zenoss backup on web utility
2. stop zenoss instance (/etc/init.d/zenoss-stack stop)
3. zenrestore=/home/abc.tgz
*ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/usr/local/zenoss/mysql/tmp/mysql.sock' (2)*

Kindly let me know where i doing wrong and correct me.

Regards,
Arshad Ahmed
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65336#65336]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Andrea Consadori
2012-03-20 09:04:29 UTC
Permalink
Andrea Consadori [http://community.zenoss.org/people/andrea.consadori] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65337#65337

--------------------------------------------------------------
from admin guide:

If you used the *--save-mysql-access* option when you created the backup file then you only need to specify *--file* when you run zenrestore. Otherwise, you need to specify dbname, dbuser and dbpass also.

your mysql db have zenoss default password or you customize it?
your mysql db is up and running?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65337#65337]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
arshadkhan20
2012-03-20 09:31:23 UTC
Permalink
arshadkhan20 [http://community.zenoss.org/people/arshadkhan20] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65338#65338

--------------------------------------------------------------
HI Andrea,

sorry i mistype it, i am using mention line and mention  "--file " when i run backup
*zenrestore --file=/home/abc.tgz*
**ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/usr/local/zenoss/mysql/tmp/mysql.sock' (2)**

MYSQL running with default password and i stop mysql manually when i run zenstore.

Regards,
Arshad Ahmed
**
**

*
*
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65338#65338]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Andrea Consadori
2012-03-20 09:36:38 UTC
Permalink
Andrea Consadori [http://community.zenoss.org/people/andrea.consadori] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65339#65339

--------------------------------------------------------------
if mysql daemon is stopped zen restore correcly gives you this error
**Can't connect to local MySQL server**
start only mysql daemon and restart zenrestore
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65339#65339]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
arshadkhan20
2012-03-20 09:55:08 UTC
Permalink
arshadkhan20 [http://community.zenoss.org/people/arshadkhan20] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65340#65340

--------------------------------------------------------------
Dear Andrea,

I have also perform these steps in below manners.
1.Stop Zenoss (./ctlscript.sh stop zenoss).
2.Start MySQL (./ctlscript.sh start mysql)
3.Perform Zenrestore (*zenrestore --file=/home/abc.tgz*)

Then no error was come and then i start all zenoss services but ZENHUB,ZENEVENTLOG,ZENPROCESS and ZENWIN demons are not running and devices cant poll current data.

Regards,
Arshad Ahmed
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65340#65340]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Andrea Consadori
2012-03-20 09:59:21 UTC
Permalink
Andrea Consadori [http://community.zenoss.org/people/andrea.consadori] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65341#65341

--------------------------------------------------------------
http://community.zenoss.org/message/47341#47341?tstart=0 http://community.zenoss.org/message/47341?tstart=0
Any chance your permissions got messed up for mysql.sock, or permissions on the /tmp directory?
* You've updated /etc/hosts to reflect the new address
* You've updated the 'bind-address' directive in /etc/my.cnf to reflect either the new IP address, or '0.0.0.0' to bind to all local addresses.
When you get a chance, verify the above conditions are met and if they are then the answer to the problem likely is contained in the mysql .err log.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65341#65341]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
arshadkhan20
2012-03-20 10:11:03 UTC
Permalink
arshadkhan20 [http://community.zenoss.org/people/arshadkhan20] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65343#65343

--------------------------------------------------------------
kindly advice where i need to update host file source machine or target machine?

Regards,
Arshad Ahmed
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65343#65343]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
arshadkhan20
2012-03-26 05:27:23 UTC
Permalink
arshadkhan20 [http://community.zenoss.org/people/arshadkhan20] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65453#65453

--------------------------------------------------------------
Dear All,

Kindly advice as i am waiting.

Regards,
Arshad Ahmed
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65453#65453]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-03-26 12:54:25 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65477#65477

--------------------------------------------------------------
Why not ensure both BOTH source and target can properly resolve the names to IPs? than the question becomes irrelevant.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65477#65477]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-03-27 03:48:45 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65513#65513

--------------------------------------------------------------
Is this solved?

--Shane (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65513#65513]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
arshadkhan20
2012-03-28 04:36:52 UTC
Permalink
arshadkhan20 [http://community.zenoss.org/people/arshadkhan20] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65570#65570

--------------------------------------------------------------
no its not solved yet ..
kindly advice its entry in host file is nessessary ?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65570#65570]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
harish bisht
2012-03-28 10:26:22 UTC
Permalink
harish bisht [http://community.zenoss.org/people/hbisht%40gmail.com] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65574#65574

--------------------------------------------------------------
Hi All,

I am setup new zenoss server(ver 3.2.1) so I take backup of current zenoss (ver 3.1) and restore the same in new.
There was no error in the backup and restore. I started zenoss on new and it started without error but I am not able to see my devices, users,etc. but only events are there. I tried it 4-5 times but result was same. I also tried zenmigration but no luck.

than I upgrade my current zenoss to 3.2.1(as new one is 3.2.1)and do the same backup and restore.but same error this time I cannot see the devices/users/groups/location it only show the events.

I am not sure how to restore the backup on new server.

HBisht
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65574#65574]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-03-28 14:26:07 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65556#65556

--------------------------------------------------------------
harish / arshadkhan:

Restore normally then untar a copy and move the Data.fs to $ZENHOME/var/ replacing the destination file.

Zenrestore / Zenbackup isn't a great solution in v2 and v3. In v2 and v3 to backup the zodb simply zeopack and copy the $ZENHOME/var/Data.fs.old. That's the entire ZODB. Backup the file structure as you would any and backup the events db using an occasional mysqldump. In v4 zenbackup works much better..

Best,
--Shane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65556#65556]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
arshadkhan20
2012-03-29 09:26:09 UTC
Permalink
arshadkhan20 [http://community.zenoss.org/people/arshadkhan20] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65607#65607

--------------------------------------------------------------
Hey Shane,

I dont know very much about linux so kindly guide me in simple steps.
i shall be thankful to you

Regards,
Arshad Ahmed
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65607#65607]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
harish bisht
2012-03-29 11:53:02 UTC
Permalink
harish bisht [http://community.zenoss.org/people/hbisht%40gmail.com] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65603#65603

--------------------------------------------------------------
Thanks Shane, It work for me.

I just copy Data.fs from old server to new server (rename Data.fs to Data.fs-org). and restart the zenoss service. it show me the devices /group/users/.

I am still checking the thing on new setup.

Thanks
Harish
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65603#65603]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
arshadkhan20
2012-03-29 12:24:30 UTC
Permalink
arshadkhan20 [http://community.zenoss.org/people/arshadkhan20] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65610#65610

--------------------------------------------------------------
Dear Harish,

from where Data.fs is locate ?

Regards,
Arshad Ahmed
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65610#65610]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-03-29 15:32:22 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65625#65625

--------------------------------------------------------------
arshadkhan20:

$ZENHOME/var/

--Shane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65625#65625]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Simon Jakesch
2012-03-29 15:40:20 UTC
Permalink
Simon Jakesch [http://community.zenoss.org/people/simon] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65614#65614

--------------------------------------------------------------
Arshad,


do you have everyting you need now?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65614#65614]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-03-29 15:55:26 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Restore Zenoss Backup Procedure"

To view the discussion, visit: http://community.zenoss.org/message/65626#65626

--------------------------------------------------------------
Simon:

So when am I going to get my little Zenmaster badge? :)

--Shane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65626#65626]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...