Legato Backup Server DR SOP

Legato Backup Server DR SOP
  
Legato 备份服务器系统瘫痪而需要恢复时
 
一. 从本地或异地获得灾难备份磁带
二. 安装备份服务器操作系统并配置网络(包括与磁带库的连接)
  安装操作系统时 我们必须清楚 backup server shbs1 的以下一些信息 :
 
OS 版本信息 : SUNOS 5.8
Partition 信息 : /dev/dsk/c0t0d0s0   à    /          4.88G        0  --  3544
           /dev/dsk/c0t0d0s1   à    /usr       4.88G     3545  --  7089
           /dev/dsk/c0t0d0s3   à    swap      3.91G     7090  --  9925
           /dev/dsk/c0t1d0s4   à   /nsr_index     20.24G    9926  --  24619
                    /dev/dsk/c0t1d0s2   à   /nsr          33.9G        0  --  24619
三. 安装 Legato 服务器端软件,配置存储设备,装载灾难备份磁带;
1.         安装 backup server emulex HBA 卡的 driver 驱动程式
2.         安装 Qlogic SCISI 卡的 driver patch
3.         安装 LEGATO Networker package
 
# cd /cdrom/networker_vol_1/solaris
# pkgadd -d .

The following packages are available:
  1  LGTOclnt     NetWorker for Solaris (Backup/Recover) Client
                  (sparc) 6.1.1 .Build.238
  2  LGTOdrvr     NetWorker for Solaris (Backup/Recover) Device Drivers
                  (sparc) 6.1.1.Build.238
  3  LGTOlicm     NetWorker for Solaris (Backup/Recover) Licensing Manager
                  (sparc) 6.1.1.Build.238
  4  LGTOman      NetWorker for Solaris (Backup/Recover) Man
                  (sparc) 6.1.1.Build.238
  5  LGTOnode     NetWorker for Solaris (Backup/Recover) Storage Node
                  (sparc) 6.1.1.Build.238
  6  LGTOserv     NetWorker for Solaris (Backup/Recover) Server
                  (sparc) 6.1.1.Build.238
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Directory to use for client, licensing and server information [/home/nsr]?

The nsrexecd program restricts access to a select set of NetWorker
servers.  Please enter the names of each computer running a NetWorker
server that will back up this computer, one name at a time.  If a
computer has more than one network interface, please enter each
interface's name (one at a time).

Enter the first NetWorker server's name [no more]:
Allowing access to all NetWorker servers.

Start NetWorker daemons at end of install [yes]? no
Using </usr> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <LGTOclnt> [y,n,?] y

Installing NetWorker for Solaris (Backup/Recover) Client as <LGTOclnt>

## Installing part 1 of 1.
/lib/X11/app-defaults/Networker
/usr/bin/networker <symbolic link>
/usr/bin/nsrfile
/usr/bin/nsrports
/usr/bin/nsrwatch
/usr/bin/nwadmin
/usr/bin/nwarchive <symbolic link>
/usr/bin/nwbackup
……
[ verifying class <none> ]
## Executing postinstall script.
        Installing NetWorker home directory in /home/nsr
        nsr-izing system files
        nsr-izing system files
        Initializing //nsr/res/servers
        Creating /etc/init.d/networker
        Creating /etc/rc2.d/S95networker
        Creating /etc/rc0.d/K05networker
        Completing Installation
NetWorker successfully installed on `hostname'!

Installation of <LGTOclnt> was successful.

Processing package instance <LGTOdrvr> from </cdrom/networker_vol_1/solaris>

NetWorker for Solaris (Backup/Recover) Device Drivers
(sparc) 6.1.1 .Build.238

        Copyright (c) 1990-2001, Legato Systems, Inc.
        All Rights Reserved.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <LGTOdrvr> [y,n,?] y

Installing NetWorker for Solaris (Backup/Recover) Device Drivers as <LGTOdrvr>

## Executing preinstall script.
## Installing part 1 of 1.
/etc/LGTOuscsi/algnelem
/etc/LGTOuscsi/ascdcode
/etc/LGTOuscsi/changers
/etc/LGTOuscsi/dpy120
/etc/LGTOuscsi/dpy210
/etc/LGTOuscsi/erase
/etc/LGTOuscsi/exacln
/etc/LGTOuscsi/format
/etc/LGTOuscsi/hpflip
/etc/LGTOuscsi/ielem
/etc/LGTOuscsi/inquire
/etc/LGTOuscsi/ldunld
/etc/LGTOuscsi/lrescan
……
[ verifying class <none> ]
## Executing postinstall script.
/usr/kernel/drv/lus
/usr/kernel/drv/lus32
/usr/lib/nsr/libscsi.so.1
/usr/lib/nsr/libscsi27.so.1
Legato SCSI passthrough driver configured and loaded
Legato optical driver configured - will load at next boot.

Installation of <LGTOdrvr> was successful.

Processing package instance <LGTOlicm> from </cdrom/networker_vol_1/solaris>

NetWorker for Solaris (Backup/Recover) Licensing Manager
(sparc) 6.1.1.Build.238
Legato Systems, Inc.
                NetWorker(TM) - Release 6.1.1.Build.238
Copyright (c) 1990-2001, Legato Systems, Inc.  All rights reserved.
This product includes software developed by the University of
California , Berkeley and its contributors.


To set up a NetWorker storage node, licensing manager or client, you
need to supply a directory for the nsrexecd state file.

Directory /nsr exists, it will be used as the default.


Below is a list of some of the filesystems, with their free space, which you
might consider:

Directory to use for client, licensing and server information [/nsr]?

Start NetWorker daemons at end of install [yes]? no
Using </usr> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
 
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <LGTOlicm> [y,n,?] y
 
Installing NetWorker for Solaris (Backup/Recover) Licensing Manager as <LGTOlicm>

## Installing part 1 of 1.
/nsr/lic/res/lictype.res
/usr/nsr/lic/res/lictype.res
/usr/sbin/lgtolic
/usr/sbin/lgtolmd
[ verifying class <none> ]
## Executing postinstall script.
       nsr-izing system files
        /etc/rpc already nsr-ized
        Completing Installation
NetWorker successfully installed on `hostname'!

Installation of <LGTOlicm> was successful.

Processing package instance <LGTOman> from </cdrom/networker_vol_1/solaris>

NetWorker for Solaris (Backup/Recover) Man
(sparc) 6.1.1 .Build.238
Legato Systems, Inc.
Using </usr> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <LGTOman> [y,n,?] y

Installing NetWorker for Solaris (Backup/Recover) Man as <LGTOman>

## Installing part 1 of 1.
/usr/share/man/man 1m /EMASS_silo .1m
/usr/share/man/man 1m /IBM_silo .1m
/usr/share/man/man 1m /STK_silo .1m
……
[ verifying class <none> ]
## Executing postinstall script.
        Creating /usr/lib/nsr/nsr_man

Installation of <LGTOman> was successful.

Processing package instance <LGTOnode> from </cdrom/networker_vol_1/solaris>

NetWorker for Solaris (Backup/Recover) Storage Node
(sparc) 6.1.1 .Build.238
Legato Systems, Inc.
                NetWorker(TM) - Release 6.1.1.Build.238
Copyright (c) 1990-2001, Legato Systems, Inc.  All rights reserved.
This product includes software developed by the University of
California , Berkeley and its contributors.


Start NetWorker daemons at end of install [yes]? no
Using </usr> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <LGTOnode> [y,n,?] y


Installing NetWorker for Solaris (Backup/Recover) Storage Node as <LGTOnode>

## Installing part 1 of 1.
/usr/sbin/dasadmin
/usr/sbin/jb_config
/usr/sbin/jbconfig
/usr/sbin/jbexercise
/usr/sbin/jbverify
/usr/sbin/mini_el
/usr/sbin/nsrcnct
/usr/sbin/nsrjb
/usr/sbin/nsrmmd
/usr/sbin/scanner
/usr/sbin/ssi
/usr/sbin/stk_eject
/usr/sbin/tapeexercise
[ verifying class <none> ]
## Executing postinstall script.
        Completing Installation
NetWorker successfully installed on `hostname'!

Installation of <LGTOnode> was successful.

Processing package instance <LGTOserv> from </cdrom/networker_vol_1/solaris>

NetWorker for Solaris (Backup/Recover) Server
(sparc) 6.1.1.Build.238
Legato Systems, Inc.
                NetWorker(TM) - Release 6.1.1.Build.238
Copyright (c) 1990-2001, Legato Systems, Inc.  All rights reserved.
This product includes software developed by the University of
California , Berkeley and its contributors.


Start NetWorker daemons at end of install [yes]? no
Using </usr> as the package base directory.
## Processing package information.
## Processing system information.
   1 package pathname is already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <LGTOserv> [y,n,?] y

Installing NetWorker for Solaris (Backup/Recover) Server as <LGTOserv>

## Installing part 1 of 1.
/usr/lib/nsr/nsrindexasm
/usr/lib/nsr/nsrmmdbasm
/usr/lib/nsr/oldindexasm
/usr/lib/nsr/oldmmdbasm
/usr/lib/nsr/v5xindexasm
/usr/lib/nsr/v5xmmdbasm
……
[ verifying class <none> ]
## Executing postinstall script.
        Modifying /etc/rpc
        Modifying /etc/syslog.conf
        Restarting syslog daemon
        Completing Installation
        Starting NetWorker daemons
NetWorker successfully installed on `hostname'!

Installation of <LGTOserv> was successful.

The following packages are available:
  1  LGTOclnt     NetWorker for Solaris (Backup/Recover) Client
                  (sparc) 6.1.1 .Build.238
  2  LGTOdrvr     NetWorker for Solaris (Backup/Recover) Device Drivers
                  (sparc) 6.1.1.Build.238
  3  LGTOlicm     NetWorker for Solaris (Backup/Recover) Licensing Manager
                  (sparc) 6.1.1.Build.238
  4  LGTOman      NetWorker for Solaris (Backup/Recover) Man
 
                (sparc) 6.1.1 .Build.238
  5  LGTOnode     NetWorker for Solaris (Backup/Recover) Storage Node
                  (sparc) 6.1.1.Build.238
  6  LGTOserv     NetWorker for Solaris (Backup/Recover) Server
                  (sparc) 6.1.1.Build.238

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: q

    
检查进程是否启动,是否正常。
 
# ps -ef|grep nsr
    root  2922  2911  0 11:15:54 ?        0:00 /usr/sbin/nsrmmdbd
    root  2906     1  1 11:15:51 ?        0:00 /usr/sbin/nsrexecd
    root  2911     1  1 11:15:54 ?        0:00 /usr/sbin/nsrd
    root  2908     1  1 11:15:51 ?        0:00 /usr/sbin/lgtolmd -p /nsr/lic -n 1
    root  2923  2911  0 11:15:56 ?        0:00 /usr/sbin/nsrindexd
    root  2910  2906  1 11:15:51 ?        0:00 /usr/sbin/nsrexecd
    root  2924  2911  0 11:15:58 ?        0:00 /usr/sbin/nsrmmd -n 1

 
如果没有启动,可以手工启动,使用命令:
#nsrexecd
#nsrd
   
  
4. 配置存储设备
  Legato Networker 提供了一个识别系统中的 SCSI 设备的命令,使用该命令可以判断 Legato Networker 是否能够正确识别我们所挂接的磁带设备
     
# inquire
scsidev@ 0.6.0 :TOSHIBA DVD-ROM SD-M14011009|CD-ROM, /dev/rdsk/c0t6d0s2
[email protected]:ADIC    Pathlight 5000  40  |(Unknown Device Type c)
[email protected]:ADIC    Scalar 1000      600A |Autochanger (Jukebox)
[email protected]:IBM     ULTRIUM-TD1     18N2|Tape, /dev/rmt/0cbn
[email protected]:IBM     ULTRIUM-TD1     18N2|Tape, /dev/rmt/1cbn
[email protected]:HITACHI OPEN-L      -SUN0113|Disk, /dev/rdsk/c4t1d0s2
[email protected]:HITACHI OPEN-L      -SUN0113|Disk
[email protected]:HITACHI OPEN-L      -SUN0113|Disk
[email protected]:HITACHI OPEN-L      -SUN0113|Disk
[email protected]:HITACHI OPEN-L      -SUN0113|Disk
[email protected]:HITACHI OPEN-L      -SUN0113|Disk
      为了使 Legato Networker 能自动地管理磁带库设备,我们需要将配置我们的磁带库设备到 Legato Networker 中,下面是我们在备份服务器上面做的一个例子。
     
Shbs1:/home#[1] jbconfig
         1) Configure an AlphaStor/SmartMedia Jukebox.
         2) Configure an Autodetected SCSI Jukebox.
         3) Configure an Autodetected NDMP SCSI Jukebox.
         4) Configure an SJI Jukebox.
         5) Configure an STL Silo.
 
What kind of Jukebox are you configuring? [1] 2
Installing 'Standard SCSI Jukebox' jukebox - scsidev@ 4.0.0 .
^M
What name do you want to assign to this jukebox device? HP5052
Turn NetWorker auto-cleaning on (yes / no) [yes]? yes
 
The following drive(s) can be auto-configured in this jukebox:
 3> sdlt320 @ 4.3.0 ==> /dev/rmt/3cbn
The 3 drive(s) that cannot be auto-configured will be addressed in a moment,
 but first:
Do you want to configure any of the detected drives as shared or NDMP
drives or otherwise manually change their configuration? (yes / no) [no] yes
 
Is (any path of) any drive intended for NDMP use? (yes / no) [no] yes
Is any drive going to have more than one path defined? (yes / no) [no] yes
^M
You will be prompted for multiple paths for each drive.
Pressing <Enter> on a null default advances to the next drive.
 
 
Please enter the device path information in one of the following formats:
 
        /dev/rmt/1cbn --for local path or
        host:device-path --for remote node or
        host:drive-letter:directory path --for Windows disk file
 
   After you have entered a device path, you will be prompted for an NDMP
user name for that path's host. If this device path is not an NDMP device,
press the enter key to advance to the next device path.  For NDMP devices,
you need to enter the user name and password the first time we encounter
that NDMP host. Pressing the enter key for the NDMP user name for any
subsequent device path on the same host will set the user name and password
to those defined the first time. You will not be prompted for the password
in such a case.
 
Drive  1, element 480
Device path 1 ? /dev/rmt/0cbn
     Enter NDMP user name for host 'bj50'?
Device path 2 ?
     Enter NDMP user name for host 'bjna01'? root
Enter NDMP password (characters will not be echoed): *******
Device path 3 ?
     Enter NDMP user name for host 'bjna02'? root
Enter NDMP password (characters will not be echoed): ********
Device path 4 ?
     Enter NDMP user name for host 'bjna03'? root
Enter NDMP password (characters will not be echoed): *******
Device path 5 ?
 
Drive  2, element 481
Device path 1 ? /dev/rmt/1cbn
     Enter NDMP user name for host 'bj50'?
Device path 2 ?
     Enter NDMP user name for host 'bjna01'? root
Device path 3 ?
     Enter NDMP user name for host 'bjna02'? root
Device path 4 ?
     Enter NDMP user name for host 'bjna03'? root
Device path 5 ?
 
Drive  3, element 482, system name = /dev/rmt/3cbn,
       local bus / target / lun value = 4/3/0 ,
           model sdlt320
Device path 1 ? [/dev/rmt/3cbn] /dev/rmt/3cbn
     Enter NDMP user name for host 'bj50'?
Device path 2 ?
 
Drive  4, element 483
Device path 1 ? /dev/rmt/2cbn
     Enter NDMP user name for host 'bj50'?
Device path 2 ?
 
Only model sdlt320 drives have been detected.
Are all drives in this jukebox of the same model?  (yes / no) [ yes]
 
 
Jukebox has been added successfully^M
 
The following configuration options have been set:
 
   > Jukebox description to the control port and model.
   > Autochanger control port to the port at which we found it.
   > Networker managed tape autocleaning on.
   > At least one drive was defined with multiple paths.  All such drives are
     defined with a hardware identification as well as a path value to avoid
     confusion by uniquely identifying the drive.  The hardware identification
     for all drives which have one is always 'autochanger_name - Drive #' where
     "autochanger_name" is the name you gave to the autochanger that was
     just defined, and the # symbol is the drive numer.
   > Barcode reading to on.
   > Volume labels that match the barcodes.
   > Slot intended to hold cleaning cartridge to 50.  Please insure that a
     cleaning cartridge is in that slot
   > Number of times we will use a new cleaning cartridge o 5.
   > Cleaning interval for the tape drives to 6 months.
 
You can review and change the characteristics of the autochanger and its
associated devices using nwadmin.
 
Would you like to configure another jukebox? (yes/no) [ no ]
 
 
 
 
 
 
四. 从存储设备中取得最新的 Legato 引导信息( Bootstrap ),恢复 Bootstrap ;批准系统运行
1 .从存储设备中取得最新的 Legato 引导信息( Bootstrap ),最后一行的 ssid 即为最新的 Bootstrap id
 # mminfo -B
    date     time     level ssid        file  record   volume
    04/15/07  09:03:37   full 561637633    721       0   index.016
   04/16/07 04:36:59   full 579660545    738       0   index.016
   04/16/07 09:04:43   full 583772929    742       0   index.016
   04/17/07 04:14:37   full 601435393    764       0   index.016
   04/17/07 09:03:03   full 605865729    768       0   index.016
   04/18/07 04:12:54   full 623527425    784       0   index.016
   04/18/07 09:02:51   full 627981057    789       0   index.016
   04/19/07 04:13:04   full 645648385    805       0   index.016
   04/19/07 09:02:51   full 650099457    809       0   index.016
   04/20/07 04:33:11   full 668075777    826       0   index.016
   04/20/07 09:02:51   full 672217857    831       0   index.016
   04/21/07 04:24:36   full 690062337    847       0   index.016
   04/21/07 09:02:59   full 694338305    851       0   index.016
   04/21/07 20:32:45   full 704933121    860       0   index.016
   04/22/07 04:28:59   full 712248065    870       0   index.016
   04/22/07 09:03:06   full 716458497    875       0   index.016
   04/23/07 04:28:18   full 734355969    890       0   index.016
   04/23/07 08:03:10   full 737656321    893       0   index.016
   04/23/07 09:05:06   full 738607617    897       0   index.016
   04/24/07 04:15:16   full 756274177     28       0   index.017
   04/24/07 09:04:37   full 760718593     31       0   index.017
   04/25/07 04:12:41   full 778352897     46       0   index.017
   04/25/07 09:02:53   full 782810625     51       0   index.017
   04/26/07 04:16:58   full 800537089     67       0   index.017
   04/26/07 09:04:29   full 804953345     71       0   index.017
   04/27/07 04:20:49   full 822714625     87       0   index.017
   04/27/07 09:02:55   full 827047681     92       0   index.017
   04/28/07 04:26:51   full 844925697    109       0   index.017
   04/28/07 09:04:30   full 849190401    113       0   index.017

    
2 恢复 Bootstrap
 # mmrecov
mmrecov: Using happy as server

NOTICE: mmrecov is used to recover the NetWorker server's media index and
resource files from media (backup tapes or disks) when any of this
critical NetWorker data has been lost or damaged.  Note that this
command will OVERWRITE the server's existing media index.  mmrecov is not
used to recover NetWorker clients' on-line indexes; normal recover
procedures may be used for this purpose.  See the mmrecov( 1m ) and
nsr_crash( 1m ) man pages for more details.

/dev/rmt/0cbn
rd= happy1:/dev/rmt/1cbn
rd= happy2:/dev/rmt/3cbn
rd= happy3:/dev/rmt/1cbn
/dev/rmt/1cbn
rd= happy1:/dev/rmt/2cbn
rd= happy2:/dev/rmt/4cbn
rd= happy3:/dev/rmt/2cbn
/dev/rmt/2cbn
rd= happy1:/dev/rmt/3cbn
/dev/rmt/3cbn
rd happy4:/dev/rmt/1cbn
rd= happy5:/dev/rmt/0cbn

What is the name of the device you plan on using [/dev/rmt/0cbn]? 
Enter the latest bootstrap save set id: 849190401
Enter starting file number (if known) [0]: 113
Enter starting record number (if known) [0]: 0

Please insert the volume on which save set id 849190401 started
into /dev/rmt/0cbn.  When you have done this, press <RETURN>: 

Scanning /dev/rmt/0cbn for save set 849190401; this may take a while...
scanner: scanning LTO Ultrium tape index.017 on /dev/rmt/0cbn
/nsr
/nsr: file exists, overwriting
/export/home/nsr/res.R/nsrla.res
/export/home/nsr/res.R/servers
/export/home/nsr/res.R/nsr.res
/export/home/nsr/res.R/nsrjb.res
/export/home/nsr/res.R/
nsrmmdbasm -r /export/home/nsr/mm/mmvolume6/
/export/home/nsr/mm/
scanner: ssid 849190401: scan complete
scanner: ssid 849190401: 8906 KB, 8 file(s)
/dev/rmt/0cbn: 1:verifying label, moving backward 2 file(s)
/dev/rmt/0cbn: 1:mounted LTO Ultrium tape index.017 (write protected)

If your resource files were lost, they are now recovered in the 'res.R'
directory.  Copy or move them to the 'res' directory, after you have shut
down the service.  Then restart the service.

Otherwise, just restart the service.

If the on-line index for happy was lost, it can be recovered using
the nsrck command.
 
由于恢复的目录为 /nsr/res.R 要将原目录 /nsr/res 备份,将 /nsr/res.R 该为 /nsr/res
#cd /etc/init.d/
#./networker stop
#mv /nsr/res   /nsr/res.bak
#mv /nsr/res.R  /nsr/res
#./networker start 
 
3 Reset 带库
 
#nsrjb �CvHE
 
五. 触动恢复功能,恢复最近一次的全备份数据
   
#nsrck  -L7
 
六. 完成事故报告
对事故作记录,总结事故发生原因,避免产生同样的问题。
 
 
 
 
Reference   

 

---- end ----

你可能感兴趣的:(server,backup,DR,legato,SOP)