Does this theory hold water

Justin Bennett Justin.Bennett at dynabrade.com
Wed Oct 16 10:53:25 EDT 2002


I'm loading up my victim right now. Ok, thanks for the 2nd terminal tip.
You would agree though, it's better to do an install and overlay files
then just dump a tar to a blank disk.

Justin

Darin Perusich said:
> this should work, i've done similare restores on solaris systems. you
> shouldn't have to copy the tarball onto the freshly installed systems.
> before saying OK to reboot the system jump into another terminal
> (ctrl+alt+F3), ifconfig eth0 up, startup portmap and nfs. mount your
> network drive, and extract the tarball, lilo the disk and reboot.
>
> this is something i'd test and document all the steps before a fire
> starts, knowing that you've done it before can save alot of agrivation
> and get you home earlier.
>
> Justin Bennett wrote:
>> Ok let me know if this makes sense I know there has been some
>> discussion on here in the past, I've never done this but think it
>> should work.
>>
>> I have a RedHat 6.2 Pro web server, I'm running a nightly tar:
>>
>> tar -czf /home/backup/backup.tar.gz * --directory / --exclude=proc
>> --exclude=home/backup --exclude=mnt --exclude=*/lost+found
>>
>> to a network drive, I like that because the tar is only 900M and if
>> our Webmaster blows something away (you know those graphic artist
>> types) :) it's easy to pull something out of a tar on disk rather than
>> tape. if this drive were to fail. I should be able to recover this
>> way:
>>
>> 1. Reload box with redhat 6.2
>>    Use same partition scheme
>> 2. Boot into new 6.2
>> 3. Copy tar to local drive
>> 4. Boot into rescue mode (so that no files are used/locked on local
>> disk)
>>    mknod /dev/sda1,2,3, ect
>>    Mount disk structure under something like /mnt/root
>>    chroot /mnt/root
>> 5. Dump tar to disk (overlaying files)
>> 6. Run lilo
>> 7. Reboot and boot from disk
>>
>> Does this make sense? Do I need to do all this or can I boot into
>> rescue mode, fdisk and mkfs on all drives, mount and chroot, dump tar,
>> lilo, and reboot. I was just wondering if I don't do an install if
>> things like /mnt are made? Sounds like it might be fun to try on a
>> test box... :)
>>
>> Thanks
>> Justin
>>
>
>
> --
> Darin Perusich
> Unix Systems Administrator
> Cognigen Corp.
> darinper at cognigencorp.com
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by Dynabrade using Mailscanner,
> and is believed to be clean.


-- 
-------------------------------------------
Justin Bennett
Red Hat (Linux) Certified Engineer
Network Administrator
Dynabrade Inc.
8989 Sheridan Dr
Clarence, NY 14031
716-631-0100 ext 215





More information about the nflug mailing list