Re: rebuilding a system remotely?



On Sun, Sep 03, 2006 at 08:56:29PM -0400, Miles Fidelman wrote:
Hi Folks,

I have two machines sitting in a data center. One of them, I've just
finished, very carefully, configuring for production use.

The other machine I've used a bit as a sandbox for trying things before
doing them on the production machine - and at this point the sandbox is
pretty well messed up.

I'd like to either
a. rebuild from scratch to Sarge
b. upgrade to a clean testing release.
either way, without a trip to the datacenter to rebuild from a CD.

So... is there some easy way to do a remote rebuild of a machine that
already has a (still) reasonably functioning base system on it?

I did this with a couple of Red Hat servers a few years ago. They were
located in a server room at the university and I did not have a key, but
wanted to do the rebuild over the weekend to minimize disruption.
Anyhow, what I did was to transfer all necessary data (e.g., home
directories, mail spools, etc, which I don't think are an issue in your
case) to another server. I then disabled the swap partition and
bootstrapped a base Debian install (*with* ssh, which is not part of the
base install, IIRC) and set the boot loader to look for the kernel in the
new base partition. I rebooted and logged in to the new Debian base
install. Then I nuked the rest of the disk (in my case also
repartitioned while the system was running, which is not for the faint
of heart). I installed a new base system on the newly nuked disk and
reinstalled the boot loader to boot from the new system. Once that was
done, I nuked the old swap partition back into a swap partition and then
went about installing whatever packages I needed. Note, that this whole
procedure requires a fair degree of intestinal fortitude and knowing
what you are doing, as one mistake can reneder the system completely
inaccessible by remote means. If you have any more specific questions,
please let me know.

Regards,

-Roberto

--
Roberto C. Sanchez
http://familiasanchez.net/~roberto

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • unsubmit
    ... Using a development server also [Roberto ... Can't find cable Internet connec [Roberto ... You can fix that manually by 'apt-get install ... > development machine, so if the production server goes down, we can ...
    (Debian-User)
  • Re: Major Version Upgrade - 4.11 to 5.x
    ... support) for you to upgrade? ... It is a general rule of thumb to do a clean install between ... > Other than the obvious advice to start with a good backup, ... leave the production system running and begin the ...
    (freebsd-questions)
  • Re: Boot and general operating problems with Home Premium 64
    ... I have contacted the Fair Trade people here who say they have no specific record of the retailer which means they have never had them on their radar. ... My initial "diagnosis" was that the hard drive was faulty, but between rebuild 1 and rebuild 2, HP had me run an HDD self test from the BIOS and it passed with flying colours. ... However, when the updates were installing, the system kept failing to install a large number of updates. ... Upon the next boot it would install some more but still some would fail and so on until there were only 4 updates left. ...
    (microsoft.public.windows.vista.general)
  • Re: Boot and general operating problems with Home Premium 64
    ... Check with your state's Fair Trading Office if the retailer is shonky. ... My initial "diagnosis" was that the hard drive was faulty, but between rebuild 1 and rebuild 2, HP had me run an HDD self test from the BIOS and it passed with flying colours. ... However, when the updates were installing, the system kept failing to install a large number of updates. ... Upon the next boot it would install some more but still some would fail and so on until there were only 4 updates left. ...
    (microsoft.public.windows.vista.general)
  • Re: Installation of a test server - licensing requirements
    ... production but only to test new technologies and modifications to the ISA ... Is it allowable to do an install of ... SBS on a system that will not be used as a production system? ... server setup and do this - so that would be a solution. ...
    (microsoft.public.windows.server.sbs)