Submitted by SteveAcup on Fri, 12/31/2010 - 14:49
I've done a backup to FTP of all of my VS on my old VMPro server with a disk that is dying. I've built a new VMPro server with the same configuration. I try to restore the VS backups and the process fails at the first VM telling me that it could not set quota for the Administration user. I'm dry-running this today and plan to do the real backup / restore on 1 Jan.
I followed the process identified in http://www.virtualmin.com/documentation/system/backup-and-restore for "Using Backups to Transfer Virtual Servers". It appears there is information that needs to be transferred to the new server before I can do the VS restore.
Status:
Active
Comments
Submitted by SteveAcup on Fri, 12/31/2010 - 15:31 Comment #1
Here's info from the failed backup attempt:
Starting restore of 38 domains from /HOME_fri on FTP server backup.lucketts.net ..
Downloading archive from FTP server .. .. done
Extracting backup archive files .. .. done
Restoring backup for virtual server acupfamily.com .. Restore failed : setquota: User acupfamily.com doesn't exist. <- Return to previous page
Submitted by SteveAcup on Fri, 12/31/2010 - 15:40 Comment #2
None of the unix users or webmin users or usermin user from the old machine are on the new machine. I gather that the procedure in your documentation on restoring a domain to a new machine is not complete?
Submitted by JamieCameron on Fri, 12/31/2010 - 16:51 Comment #3
That's unusual - it looks like it is trying to set the quota even before the domain is re-created.
What command are you using to do the restore, or what options are you setting on the restore form? You should be able to just accept the defaults for everything except the backup file.
Submitted by SteveAcup on Sat, 01/01/2011 - 12:05 Comment #4
All work entirely from webmin qui.
On machine 1 (old server we are replacing) I told it to do a backup to FTP of all virtual servers with all Features and all Virtualmin settings.
On machine 2 ( a fresh centos 5.5 server with VM installed from script) I tell it to restore from the ftp backup server - all settings.
If I try to restore just the "Virtual server password, description and other details " info from the backup, I can get the actual servers recreated on the new machine, but the admin user is still not created and any further backups fail at the same quota point.
I've been trying it with all 30+ domains and that takes a long time per cycle. I tried again with just one of the domains backed up with all features and data to be backup up and I get the same problem.
Both servers centos (1st = 5.4 and 2nd = 5.5) from install script - both running current VM/WM/UM
Submitted by SteveAcup on Sat, 01/01/2011 - 12:13 Comment #5
Here are the results from a single domain backup from the backup module:
Starting backup of 1 domains to /HOME_fri on FTP server backup.lucketts.net ..
Creating backup for virtual server acupfamily.com ..
Backing up Virtualmin settings (Module configuration, Server templates and plans, Reseller accounts, New mailbox email messages, Custom fields, links and shells, Third-party script installers, Third-party content styles, Scheduled Virtualmin backups, FTP directory restrictions) .. .. done
Uploading archive to FTP server backup.lucketts.net .. .. done
1 servers backed up successfully, 0 had errors. 9 Virtualmin configuration settings backed up successfully.
Backup is complete. Final size was 108.59 MB.
Submitted by SteveAcup on Sat, 01/01/2011 - 12:19 Comment #6
On the restore from FTP for a single domain:
1) Set up FTP
2) Features and Settings:
- Features to restore: "Restore all features" selected - Virtualmin settings to restore: all boxes selected
3) Other restore options: - Yes - Yes - Yes
Here are the results:
Starting restore of 1 domains from /HOME_fri on FTP server backup.lucketts.net ..
Downloading archive from FTP server .. .. done
Extracting backup archive files .. .. done
Restoring backup for virtual server acupfamily.com .. Restore failed : setquota: User acupfamily.com doesn't exist. <- Return to previous page
Submitted by SteveAcup on Sat, 01/01/2011 - 13:10 Comment #7
OK... here's what I had to do to get a domain to restore:
1) delete all the partial restores that did not have an admin account created.
2) Restore the VM default settings (templates and the like) from the specific virtualmin.tar.gz file
3) once any partial domains were zapped and the proper templates in place, I was able to restore teh test domain I was playing with.
I'll try this process again with the entire batch to verify it works.
You may want to add a few steps to your domain transfer via backup documentation since it assumes that the user knows to transfer the templates first.
Submitted by SteveAcup on Sat, 01/01/2011 - 14:53 Comment #8
When I try to create more than 1 restore any new domain fails:
Starting restore of 2 domains from /HOME_fri on FTP server backup.lucketts.net ..
Downloading archive from FTP server .. .. done
Extracting backup archive files .. .. done
Restoring backup for virtual server acupfamily.com ..
Restoring backup for virtual server brookwoodstables.com .. Restore failed : setquota: User brookwoodstables.com doesn't exist.
Submitted by JamieCameron on Sat, 01/01/2011 - 14:57 Comment #9
Could you try adding the line :
error_stack=1
to
/etc/webmin/config
and then re-trying the restore, and posting the full error message here. That will tell me exactly where in the code the quota setting is failing..If you don't see a list of lines in .pl files at which the error happened, check the file
/var/webmin/miniserv.error
- they should be logged at the end.Submitted by JamieCameron on Sat, 01/01/2011 - 15:00 Comment #10
Also, try going to System Settings -> Re-Check Config, and see if any configuration problems are reported. Then re-try the restore.
Submitted by SteveAcup on Sat, 01/01/2011 - 15:04 Comment #11
When I try to create more than 1 restore any new domain fails:
Starting restore of 2 domains from /HOME_fri on FTP server backup.lucketts.net ..
Downloading archive from FTP server .. .. done
Extracting backup archive files .. .. done
Restoring backup for virtual server acupfamily.com ..
Restoring backup for virtual server brookwoodstables.com .. Restore failed : setquota: User brookwoodstables.com doesn't exist.
Submitted by SteveAcup on Tue, 01/04/2011 - 07:51 Comment #12
I had to finish the project to get the server operational, so I transferred the domains one at a time.
Now I'm spending time tracking down all the minor settings that did not copy over. When I rebuild the original server I'll try the debugging tips you provided.