- it is a critical system for the business of the server's owner;
- all the current user accounts and their emails must be preserved;
- all the relevant system settings of current mail server should be kept as well;
- down time is only allowed in the gap between the work time in Asia and Europe;
- all the operations should be done remotely;
- the connection speed between China and Australia is awfully slow.
The MDaemon email server runs Windows 2003 Server on a virtual machine (VM) hosted by VMware GSX Server. Its W2K3 system partition has a Ghost image saved on the DOS partition of this VM. The first installation of MDaemon 7.2.3 has a full backup stored on the third partition containing current MDaemon system and data files. I created all the above backups after I set up the whole system for production running. These backups are essential for this downgrade operation.
The virtual mail server, as well as other VMs, is hosted by a Dell PowerEdge server physically located at an ISP in Jinan, China, more than 8,600 kilometres away from Sydney in where I am currently living. All the operations were done remotely, by either Remote Desktop or DRAC4 Console, over the Internet via VPN. Thanks to Dell's Console Redirect, a Java applet based application, I can remotely "see" the server's screen, no matter what OS the server runs, even in naked BIOS mode! So I can even remotely re-configure the server's RAID settings and completely reinstall all software from its DVD and tape drive. In fact, even when I was physically beside the server, I would still use the DRAC4 Console to access it because the server has no monitor and no keyboard at all!
The following are the steps from the beginning to the end. The key steps are underlined.
- Shutdown the VM of this mail server.
- Backup the mail server by copying its VM files to another partition on the host server.
- Remove the 2nd virtual disk specializing for emails from the mail server VM.
- Delete the corresponding virtual disk file to free up disk space.
- Shutdown other VMs staying on the same partition of the mail server VM.
- Defrag the above partition on the host server.
- Start the other VMs that were stopped before the defragment.
- Create a new 80 GB virtual SCSI disk with fixed size and name it literally.
- Add the new disk to the mail server VM, as the 2nd SCSI disk.
- Copy back the virtual disk files containing the email backups from another partition
- Rename the virtual disk files literally and edit the .vmdk file respectively.
- Attach the above virtual disk back to the mail server VM, as the 3rd hard disk.
- Start the email server VM from VMware VM console.
- Choose MS-DOS at the Startup menu of Windows 2003 Server.
- Run Ghost to restore the system partition from the image on the DOS partition.
- Reboot the email server VM to the Windows 2003 that was just restored.
- Login as Administrator and shutdown all MDaemon's services
- Run MMC/Disk Management and confirm that a new hard disk has been added.
- Rename the partition on the 3rd disk initially for emails from drive letter M to N.
- Reboot the email server and ignore the error message for not started system services.
- Login as Administrator and run MMC/Disk Management again.
- Allocate the whole of 2nd empty disk for logical drive M and format it with NTFS.
- Run NTBackup to restore MDaemon's first installation back to drive M.
- Copy the following folders from drive N to the corresponding folders on drive M.
- Archives
- Localq
- RawFiles
- Badmsgs
- LockFiles
- Remoteq
- CFilter
- Logs
- SpamAssassin
- Digests
- OldFiles
- Temp
- Domains
- Pem
- Users
- Gateways
- PublicFolders
- Inbound
- Queues
- Copy the following files from the App folder on drive N to the same folder on drive M.
- alias.dat
- multipop.dat
- domains.dat
- tarpit.dat
- forward.dat
- userlist.dat
- Shutdown the Windows 2003 and stop the mail server VM.
- Re-configure the VM to remove the 3rd virtual disk, leave it therehost as a spare disk
- Start the mail server VM again.
- Boot the VM into Windows 2003 Server and login as Administrator.
- Run MDaemon' console to adjust some system settings as necessary.
- Alt-N: MDaemon - Installation and Configuration Guide
- Alt-N: MDaemon - User Manual
- Alt-N: WebAdmin v2 - Remote Server Administration
- Ars Technica: Virtual machine shootout: VMware vs. Virtual PC
- Dell: DRAC4 - User Guide
- Diskeeper: Virtualization Disk Performance
- VMware: Configuring Hard Disk Storage in a Virtual Machine
- VMware: Converting Image Files into Virtual Machine Disks
- Wikipedia: Remote Desktop Protocol
No comments:
Post a Comment