Re: restore Unix system

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 09/29/04

  • Next message: all mail refused: "Re: restore Unix system"
    Date: Tue, 28 Sep 2004 23:01:26 GMT
    
    

    In comp.unix.solaris Rav <ravcs@hotmail.com> wrote:
    > Hi all

    > We are using amanda to backup on of our unix systems which recently
    > had it's system disk failed...:-(

    > I am trying to restore the data from tape drive using ufsrestore.....

    > I have booted from cdrom in a single user mode and can see the tape.
    > I have partitoned the disk as it was on the old disk and have run
    > newfs on all slices......

    > I cannot make out what session is what part of the disk, as I need to
    > restore /, /opt, /usr, /home etc....is there any detailed
    > documentation on restoring without amanda....pls help..

    > have tried the following:
    > mt rew
    > mt fsf 1
    > dd if=/dev/rmt/0 bs=32k count=1

    Why the dd if you're trying to ufsrestore?

    Now that you've newfsed, mount the root slice.

    # mount /dev/dsk/c0t0d0s0 /a
    # cd /a
    # ufsrestore rf /dev/rmt/0cbn
     (wait for restore)

    At this point you can examine the old /etc/vfstab (which you should keep
    a copy of elsewhere to aid in "by hand" restores) to see which slices
    had what other filesystems. Unless Amanda has given it to you, you'll
    need to figure out which other filesystems are where on the tape. You
    can use 'ufsrestore -i' and then give the "what" command to see which
    filesystem is there. When you know, rewind to that file and do the
    restore...

    # mount /dev/dsk/c0t0d0s5 /a/usr (only an example)
    # cd /a/usr
    # ufsrestore rf /dev/rmt/0cbn

    -- 
    Darren Dunham                                           ddunham@taos.com
    Senior Technical Consultant         TAOS            http://www.taos.com/
    Got some Dr Pepper?                           San Francisco, CA bay area
             < This line left intentionally blank to confuse you. >
    

  • Next message: all mail refused: "Re: restore Unix system"

    Relevant Pages

    • Re: restore Unix system
      ... > I have partitoned the disk as it was on the old disk and have run ... Why the dd if you're trying to ufsrestore? ... (wait for restore) ... need to figure out which other filesystems are where on the tape. ...
      (comp.sys.sun.admin)
    • Re: restore Unix system
      ... > I have partitoned the disk as it was on the old disk and have run ... Why the dd if you're trying to ufsrestore? ... (wait for restore) ... need to figure out which other filesystems are where on the tape. ...
      (comp.unix.solaris)
    • Re: dump/restore over ssh question
      ... > To restore the filesystems: ... > Boot from a rescue disk and create the partitions of on the disk. ... It is very easy to dump filesystems for backup, but it is not easy to ...
      (freebsd-questions)
    • Re: Disaster recovery.
      ... how do you drop to the shell. ... If the old disk is 36 GIG and the new disk is 74 GIG, AND I partition every filesystem bigger than the old ones on the old disk, then do the restore of the 4 filesystems, will it work or do the new filesystems really need to be exactly the same size? ...
      (freebsd-questions)
    • Re: Disaster recovery.
      ... how do you drop to the shell (can I ... mount, cp, restore, etc). ... partition every filesystem bigger than the old ones on the old disk, ... then do the restore of the 4 filesystems, will it work or do the new ...
      (freebsd-questions)