home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March / PCWK3A99.iso / Unixware / INFO / UW7 / INS_TEXT / 6_EMERG.TXT < prev    next >
Encoding:
Text File  |  1998-08-19  |  18.7 KB  |  468 lines

  1.  
  2.  Chapter 6
  3.  Creating and using emergency recovery media
  4.  
  5.     Emergency recovery media (diskettes and tapes) enable you to recover your
  6.     system if your hard disk experiences an unrecoverable error. You should
  7.     create emergency recovery media immediately after you install your
  8.     system, and again each time you add or change system hardware and
  9.     software.
  10.  
  11.     The following topics describe:
  12.  
  13.     +  an overview of recovering your system
  14.  
  15.     +  creating emergency recovery diskettes and tapes
  16.  
  17.     +  recovering your system using emergency recovery media
  18.  
  19.  
  20.  Keys to recovering your system
  21.  
  22.     To ensure that you always have a set of emergency recovery media and data
  23.     backups, we strongly recommend that you:
  24.  
  25.     +  Create emergency recovery diskettes and tapes immediately after
  26.        installing and configuring your system.
  27.  
  28.        If you install additional system or application software at a later
  29.        time, create new emergency recovery disks and tapes.
  30.  
  31.     +  Back up your system on a regular basis (daily or weekly).
  32.  
  33.        The length between backups is correlated to the amount of possible
  34.        data loss. If you back up your system each day, you can only lose up
  35.        to one day's data. If you only back up your system once a month, up to
  36.        one month's worth of data might be lost if your hardware fails.
  37.  
  38.     The emergency recovery diskettes contain a small, bootable version of
  39.     UnixWare 7 from which you can boot your system.
  40.  
  41.     The emergency recovery tapes contain an image of critical UnixWare 7
  42.     filesystems. If you have the UnixWare 7 NetWare Services product
  43.     installed and configured, the tapes also contain an image of the NetWare
  44.     Directory Services (NDS) master partitions and NetWare SYS: volume
  45.     defined on your system.
  46.  
  47.     By first booting your system with the emergency diskettes and then
  48.     restoring it from the emergency tapes, you restore all the system
  49.     software, filesystems, and NDS partitions that existed when you created
  50.     the diskettes and tapes.
  51.     _________________________________________________________________________
  52.  
  53.        NOTE  If your system does not have a tape drive, you should still
  54.        create emergency recovery disks and then back up the entire system
  55.        onto other media or across the network by using SCO
  56.        ARCserve(r)/Open from Cheyenne(r) or the cpio command.
  57.  
  58.        See SCO ARCserve/Open from Cheyenne in SCOhelp and the cpio(1)
  59.        manual page for more information.
  60.     _________________________________________________________________________
  61.  
  62.     Performing regular system backups ensures that data added to your system
  63.     after the creation of the emergency recovery media can also be restored.
  64.     Data created after the most recent backup may be lost if your hard disk
  65.     fails.
  66.  
  67.     The system owner can back up the entire system on a regular basis.
  68.     Individual users without owner privileges can perform backups of their
  69.     own directories.
  70.  
  71.     To ensure that you back up not only data but also any extended file
  72.     attributes (such as privileges, ACLs, and NetWare file attributes), use
  73.     SCO ARCserve/Open from Cheyenne or cpio(1).
  74.  
  75.     See SCO ARCserve/Open from Cheyenne in SCOhelp and the cpio(1) manual
  76.     page for more information.
  77.  
  78.  
  79.  Creating emergency recovery diskettes
  80.  
  81.     To create emergency recovery disks:
  82.  
  83.     1.  Use the format(1M) command to create two formatted diskettes.  For
  84.         example, this command creates a formatted, 1.44MB diskette in the
  85.         primary diskette drive:
  86.  
  87.            format -v /dev/rdsk/f03ht
  88.  
  89.  
  90.     2.  Label the diskettes with the name of the system, date created, and
  91.         their name and number. For example:
  92.  
  93.            mymachine               mymachine
  94.            30 January 1998         30 January 1998
  95.            Emergency Recovery      Emergency Recovery
  96.            Diskette 1              Diskette 2
  97.         _______________________________________________________________________
  98.  
  99.            NOTE  Emergency recovery disks are customized for a particular
  100.            system and only work on that system.
  101.         _______________________________________________________________________
  102.  
  103.  
  104.     3.  Log in to the system console as root. To switch from the graphical
  105.         environment, press <Ctrl><Alt><F1>.
  106.  
  107.     4.  Make sure there are no active users on the system. Enter:
  108.  
  109.            who
  110.  
  111.  
  112.     5.  If root is the only user logged in, bring the system to single-user
  113.         mode with this command:
  114.  
  115.            shutdown -y -g0 -i1
  116.  
  117.         If other users are listed, bring the system to single-user mode with
  118.         this command:
  119.  
  120.            shutdown -y -g300 -i1
  121.  
  122.         The -g300 flag in this command allows users 5 minutes (300 seconds)
  123.         to close their files and log out. A broadcast message from root
  124.         provides warnings that the system is coming down.
  125.  
  126.     6.  After the system enters single-user mode, determine in which
  127.         filesystem you will create the recovery media. The filesystem must
  128.         contain at least 30MB of free space.
  129.  
  130.         To determine which filesystems have enough space, enter:
  131.  
  132.            /sbin/dfspace
  133.  
  134.         For example, you might see:
  135.  
  136.            /        : Disk space:  195.10 MB of  429.00 MB available (45.48%)
  137.            /stand   : Disk space:    5.82 MB of    9.99 MB available (58.28%)
  138.            /home    : Disk space:  238.86 MB of  479.00 MB available (49.87%)
  139.            /tmp     : Disk space:    7.98 MB of    8.00 MB available (99.85%)
  140.            /var/tmp : Disk space:    9.99 MB of    8.99 MB available (90.00%)
  141.  
  142.         In this example, only the root (/) and /home filesystems have enough
  143.         space to be used for creating the emergency recovery media.
  144.  
  145.     7.  Enter:
  146.  
  147.            /sbin/emergency_disk -d pathname diskette
  148.  
  149.         pathname is the filesystem you selected. diskette is the diskette
  150.         drive where you will insert the diskette (either diskette1 or
  151.         diskette2).
  152.  
  153.         The following example creates an emergency recovery diskette on the
  154.         first diskette drive, using the /home filesystem as its working
  155.         directory:
  156.  
  157.            /sbin/emergency_disk -d /home diskette1
  158.  
  159.  
  160.     8.  When prompted, insert the first formatted disk into the appropriate
  161.         diskette drive.
  162.  
  163.         Creating each emergency recovery disk takes about fifteen minutes.
  164.  
  165.     9.  When prompted, remove the first diskette, insert the second diskette
  166.         and press <Enter>.
  167.  
  168.     10. When prompted, remove the diskette from the diskette drive.
  169.  
  170.         Store the emergency recovery disks in a secure location.
  171.  
  172.     After you create the emergency recovery diskettes, do one of the
  173.     following:
  174.  
  175.     +  If your system has a tape drive, you should now create emergency
  176.        recovery tapes.
  177.     +  If your system does not have a tape drive, then you should now create
  178.        a full system backup onto the network or other media.
  179.  
  180.  
  181.  Creating emergency recovery tapes
  182.  
  183.     Emergency recovery tapes allow you to restore your system and its data to
  184.     the configuration stored on the media.
  185.     _________________________________________________________________________
  186.  
  187.        NOTE  If you have installed the NetWare Services package, you may
  188.        need to run the Directory Services Install utility before beginning
  189.        this procedure.
  190.  
  191.        If you are creating emergency recovery media immediately after
  192.        installing your system, you do not need to run this utility.  If,
  193.        however, you add NDS partitions and NetWare volumes after
  194.        installation, you must run Directory Services Install so that these
  195.        partitions and data can be backed up.
  196.  
  197.        For more information, see ``Installing NetWare Directory Services''
  198.        in SCOhelp.
  199.     _________________________________________________________________________
  200.  
  201.     To create emergency recovery tapes:
  202.  
  203.     1.  Locate and label tapes for this procedure. Include the system name,
  204.         date the tapes were created, and sequence number.
  205.  
  206.         The number of tapes needed varies according to the size and
  207.         configuration of your system.
  208.  
  209.     2.  Log in to the system console as root. To switch from the graphical
  210.         environment, press <Ctrl><Alt><F1>.
  211.  
  212.     3.  If the system is already in single-user mode, skip to step 5.
  213.         Otherwise, make sure there are no active users on the system. Enter:
  214.  
  215.            who
  216.  
  217.  
  218.     4.  If root is the only user logged in, bring the system to single-user
  219.         mode with this command:
  220.  
  221.            shutdown -y -g0 -i1
  222.  
  223.         If other users are listed, bring the system to single-user mode with
  224.         this command:
  225.  
  226.            shutdown -y -g300 -i1
  227.  
  228.         The -g300 flag in this command allows users 5 minutes (300 seconds)
  229.         to close their files and log out. A broadcast message from root
  230.         provides warnings that the system is coming down.
  231.  
  232.     5.  At the single-user prompt (#), insert the first emergency recovery
  233.         tape into the appropriate cartridge tape drive.
  234.  
  235.     6.  Create the emergency recovery tapes using either step a or step b.
  236.  
  237.         a.  Use this step only if all the conditions below are true:
  238.  
  239.             +  you have only one hard disk installed on your system
  240.  
  241.             +  the tape drive you are using has the capacity to back up your
  242.                entire hard disk on one tape
  243.  
  244.             +  (if you have the UnixWare 7 NetWare Services product
  245.                installed) the NetWare server on your system is the only
  246.                server on the network
  247.  
  248.             Enter:
  249.  
  250.                /sbin/emergency_rec -e tape
  251.  
  252.             tape is the tape drive location of your inserted tape (ctape1 or
  253.             ctape2). The -e option tells emergency_rec to back up the entire
  254.             primary hard disk. Wait for this command to finish processing and
  255.             then go to Step 7.
  256.  
  257.         b.  Use this step for a multiple hard disk system or a single disk
  258.             system that does not meet the conditions in Step 6a.
  259.  
  260.             Enter:
  261.  
  262.                /sbin/emergency_rec tape
  263.  
  264.             tape is the tape drive location of your inserted tape (ctape1 or
  265.             ctape2).
  266.  
  267.             The emergency_rec command (without the -e option) backs up:
  268.  
  269.             +  all UnixWare 7 partitions on your primary hard disk
  270.  
  271.             +  the /home, /home2, /var, and /usr filesystems from the
  272.                secondary hard disk, if they exist there
  273.  
  274.             +  the SYS: volume of the NetWare Server, if NetWare Services is
  275.                installed
  276.  
  277.             +  any master NDS partitions defined on your system, if NetWare
  278.                Directory Services is installed
  279.                _______________________________________________________________
  280.  
  281.                   NOTE  The emergency_rec command does not back up any
  282.                   other UnixWare 7 filesystems on the secondary disk, nor
  283.                   any filesystem on additional hard disks, nor any
  284.                   additional NetWare server volumes defined on any disk.
  285.  
  286.                   To back up these filesystems and volumes, see ``After
  287.                   creating emergency recovery tapes''.
  288.                _______________________________________________________________
  289.  
  290.                You are prompted to insert additional tapes as needed.
  291.  
  292.     7.  Remove the last tape from the tape drive.
  293.  
  294.     8.  Store the emergency recovery tapes with the emergency recovery floppy
  295.         disks in a secure location.
  296.  
  297.  Handling tape error messages
  298.  
  299.     The following error messages may appear when you create emergency
  300.     recovery tapes:
  301.  
  302.     +  Cannot determine mountpoint for device <device_name>
  303.  
  304.        This message appears when a slice cannot be associated with a
  305.        filesystem. This prevents the indicated slice from being backed up or
  306.        restored.
  307.  
  308.     +  Duplicate mountpoint <mnt_pt> detected with device <device_name>
  309.  
  310.        This message appears when the determination of what filesystems the
  311.        slices are associated with produces a duplicate. Common causes of this
  312.        error include using old style device names (dev/dsk/1s1 instead of
  313.        /dev/dsk/c0b0t1d0s1), or having entries commented out in /etc/vfstab.
  314.        If you encounter this message, you must fix the problem before making
  315.        the emergency recovery tape.
  316.  
  317.  After creating emergency recovery tapes
  318.  
  319.     After you create the emergency recovery tapes, either:
  320.  
  321.     +  Begin regularly scheduled backups of your system as soon as you begin
  322.        using it, if you used Step 6a of ``Creating emergency recovery
  323.        tapes''.
  324.  
  325.     +  Separately back up any data that was not copied onto the emergency
  326.        recovery tapes, if you used Step 6b of ``Creating emergency recovery
  327.        tapes''.
  328.  
  329.        Specifically, you need to back up:
  330.  
  331.        -  any UnixWare 7 filesystems not on the primary hard disk
  332.  
  333.        -  the /home, /home2, and /usr filesystems, if they are defined on a
  334.           disk other than the primary or secondary hard disk
  335.  
  336.        -  any NetWare volumes other than SYS: (including any defined on the
  337.           primary hard disk)
  338.        The easiest way to do this is to make a full system backup. Then, you
  339.        can begin a regular schedule of incremental backups. You must use the
  340.        cpio(1) command to perform these backups if you want to retain
  341.        privilege and NetWare-related data on the files you back up.
  342.  
  343.  
  344.  Recovering an unusable system
  345.  
  346.     If your system will not boot, your system software is corrupted beyond
  347.     repair, or your hard disk has been reformatted or replaced, you can use
  348.     your emergency recovery media and incremental backups to restore your
  349.     system.
  350.  
  351.     Before attempting to restore the system, ensure that your motherboard,
  352.     hard disks, memory, and peripherals are in good working order. Do so by
  353.     running any hardware diagnostics included with your system by the
  354.     manufacturer. While this recovery procedure restores all the system
  355.     software, applications, and data on the recovery media to your hard disk,
  356.     it does not ensure proper operation of the system hardware.
  357.     To recover the system:
  358.  
  359.     1.  Place the first emergency recovery diskette in the primary (boot)
  360.         diskette drive, and reboot your system.
  361.  
  362.         +  If you mistakenly inserted the wrong disk, replace the current
  363.            disk with the correct emergency disk and repeat this procedure.
  364.  
  365.         +  If you want to use this disk, enter the license number from the
  366.            Certificate of License and Authenticity for your system.
  367.  
  368.     2.  Correct the system damage or restore data from the emergency recovery
  369.         tapes.
  370.  
  371.         The emergency recovery main menu provides options to:
  372.  
  373.         +  start a limited UnixWare 7 operating system command-line shell
  374.  
  375.         +  restore data from emergency recovery tapes
  376.  
  377.         +  mount or unmount all filesystems (if UnixWare 7 data is accessible
  378.            on the hard disk)
  379.  
  380.         +  reboot the system
  381.  
  382.     3.  Use the up or down arrow keys or the <Tab> key to select the desired
  383.         choice and then press <Enter>.
  384.  
  385.         +  If you select to invoke an emergency shell, a shell prompt is
  386.            displayed and the following commands are available:
  387.  
  388.            cat(1)        chroot(1M)   cpio(1)       date(1)
  389.            dd(1M)        echo(1)      edvtoc(1M)    fdisk(1M)
  390.            find(1)       fsck(1M)     grep(1)       ksh(1)
  391.            labelit(1M)   ln(1)        ls(1)         mkdir(1)
  392.            mkfs(1)       mount(1M)    prtvtoc(1M)   rm(1)
  393.            stty(1)       vi(1)
  394.  
  395.            Use these commands to investigate and fix the problem. To exit the
  396.            shell and return to the main menu, press <Esc>.
  397.            ____________________________________________________________________
  398.  
  399.               NOTE  Some of these commands (for example, the find command)
  400.               are limited-function shell aliases for the regular UnixWare
  401.               7 commands. If the hard disk is functional and mounted, you
  402.               can execute the full-function commands from the hard disk by
  403.               specifying the full path of the command (for example,
  404.               /mnt/usr/bin/find).
  405.            ____________________________________________________________________
  406.  
  407.  
  408.         +  If you select to reinstall your system, insert the emergency
  409.            recovery tapes when prompted. Wait for the processing of the last
  410.            tape to complete before going to the next step.
  411.  
  412.         +  If you select to mount filesystems, the UnixWare 7 filesystems are
  413.            mounted. If you then invoke the emergency shell, you can access
  414.            all the UnixWare 7 commands on your system. If your hard disk is
  415.            severely damaged, this option may not be available.
  416.  
  417.         +  If you select to unmount filesystems, the UnixWare 7 filesystems
  418.            are unmounted. If your hard disk is severely damaged, this option
  419.            may not be available.
  420.  
  421.         +  You can choose to reboot your system. If you used the emergency
  422.            recovery shell to repair your system, remove the second emergency
  423.            recovery disk from the disk drive before selecting the option to
  424.            reboot your system.
  425.  
  426.     4.  Remove the emergency recovery disk. If you restored the system from
  427.         the emergency recovery tapes, you can remove the last tape from the
  428.         tape drive at this time.
  429.  
  430.     5.  Press <Esc> to reboot your system.
  431.  
  432.         You may notice error messages similar to the following:
  433.  
  434.         UX: initprivs: WARNING: File ``file'' fails validation: entry ignored
  435.         UX: initprivs: WARNING: X entries ignored in ``/etc/security/tcb/privs''
  436.  
  437.         This is because the date stamp for the inode was changed during the
  438.         restore process.
  439.  
  440.         You can fix these errors after your system boots into multi-user
  441.         mode, by logging in as root and entering the following command:
  442.  
  443.            /etc/security/tools/setpriv -x
  444.  
  445.  
  446.     6.  If your system has the Netware Services (nws) package installed, you
  447.         are prompted to re-insert the recovery tape after the system reboots,
  448.         to complete the restoration of the NetWare file attributes.
  449.  
  450.     7.  If you are running NetWare Directory Services on your system as part
  451.         of the UnixWare 7 NetWare Services product, there are additional
  452.         steps you need to follow to restore NDS if your system is part of a
  453.         multiple-server NDS tree. These steps are necessary to avoid creating
  454.         problems on the other servers on your network. For full information
  455.         regarding restoring NDS for the UnixWare 7 NetWare Services product,
  456.         see the Installation Handbook for that product.
  457.  
  458.     8.  If you created any full or incremental backups of your system after
  459.         creating the emergency recovery tapes, restore those backups using
  460.         the restore method corresponding to the backup method you used to
  461.         create them.
  462.  
  463.         For example, if you created backups using the cpio(1) command, use
  464.         the same method to restore the archive.
  465.  
  466.         See SCO ARCserve/Open from Cheyenne in SCOhelp and the cpio(1) manual
  467.         page for more information.
  468.