灌溉梦想,记录脚步

NetBackup SAN Client光纤连接

通常SAN Switch连接设计为:

  • FT Media Server启用Target 模式的端口连接到SAN Switch(假设1口)
  • Client端口连接到SAN Switch(假设2口)
  • 1口和2口创建一个Zone。
  • 在配置完成后,在JavaConsole中看不到设备,FT Media Server日志中可以看到:

    0,51216,137,199,32,1448943642598,14971,1090509120,0:,20:parsing = >7.6.1.2
    < ,23:parsePatchVersionString,1
    0,51216,137,199,33,1448943642598,14971,1090509120,0:,12:theRest = >< ,23:parsePatchVersionString,1 \
    0,51216,199,199,33,1448943643588,14971,1125271872,0:,16:targets 2 luns 2,35:FTServerMgr_i::listAllPseudoDevices,1
    0,51216,199,199,34,1448944596103,14971,1110579520,0:,212:A LOGO or link down was observed on PN=1 for 15 
    minutes. Please check the port-switch connectivity. Setting the port speed on the switch to Fixed instead of Auto-negotiate 
    has been known to fix some login issues.,23:PerformDeadPortWatchDog,1

    继续阅读 »

    NetBackup FT Media Server配置

    FT Media Server 配置

    在Media Server上启动NBHBA模式:

    /usr/openv/netbackup/bin/admincmd/nbftsrv_config -nbhba
     
    Example:
     
    /usr/openv/netbackup/bin/admincmd/nbftsrv_config -nbhba
    Installing nbhba driver. Are you sure you want to unload QLogic driver: qla2300? [y,n] (y)
    /usr/sbin/update_drv-v-d-i "pci1077,2312.1077.12a" qlc
    Done copying driver into system directories. Done adding driver.
    MUST REBOOT TO COMPLETE INSTALLATION.

    重启主机,完成后可通过以下命令查看HBA口信息
    继续阅读 »

    NetBackup SAN Client Overview

    SAN Client是NetBackup的一个特殊客户端,它的作用是让主机在不部署Media Server的情况下,也能通过SAN进行备份,它有以下特点:

    • 拥有传输大量数据的能力。
    • 替代Media Server,主机不部署为Media Server也能使用SAN传输数据。

    SAN Client涉及的技术:

    • Fibre Transport(FT) ,一种数据传输方式,通过在SAN或者LAN上传输SCSI指令。
    • FT Media Server, 指启用了FT功能的Media Server。
    • FT Service Manager(FSM), 像EMM一样运行的进程,FSM负责Clients和FT Media Server的交互,负责发现、配置、监视及分配FT资源。
    • Target Mode Driver, 替换系统驱动,只适用于Qlogic HBA卡。

    继续阅读 »

    Oracle启用归档

    1、单实例

    Oracle 9i

    ALTER SYSTEM SET log_archive_start=TRUE SCOPE=spfile;
    ALTER SYSTEM SET log_archive_dest_1='location=/u01/oradata/MYSID/archive/' SCOPE=spfile;
    ALTER SYSTEM SET log_archive_format='arch_%t_%s.arc' SCOPE=spfile;
     
    SHUTDOWN IMMEDIATE;
    STARTUP MOUNT;
    ARCHIVE LOG START;
    ALTER DATABASE ARCHIVELOG;
    ALTER DATABASE OPEN;

    Oracle 10g

    ALTER SYSTEM SET log_archive_dest_1='location=/u01/oradata/MYSID/archive/' SCOPE=spfile;
    ALTER SYSTEM SET log_archive_format='arch_%t_%s_%r.arc' SCOPE=spfile;
     
    SHUTDOWN IMMEDIATE;
    STARTUP MOUNT;
    ALTER DATABASE ARCHIVELOG;
    ALTER DATABASE OPEN;

    继续阅读 »

    命令创建ACFS

    创建挂载点

    mkdir -p /u01/app/oracle/acfsmounts/data_acfsvol3
    chown oracle:oinstall /u01/app/oracle/acfsmounts/data_acfsvol3

    连接到ASM创建Volume

    su - oracle
    [oracle@rac1 ~]$ . oraenv
    ORACLE_SID = [RAC1] ? +ASM1
    The Oracle base for ORACLE_HOME=/u01/app/11.2.0/grid is /u01/app/oracle
    [oracle@rac1 ~]$ dbhome
    /u01/app/11.2.0/grid
    [oracle@rac1 ~]$ sqlplus / as sysasm
    Issue to the following command to create a new volume.
     
    SQL> ALTER DISKGROUP DATA ADD VOLUME ACFSVOL3 SIZE 10G;
     
    Diskgroup altered.
     
    SQL>
    Exit the SQL*Plus session, then create a file system on the volume.

    继续阅读 »

    在11gR2中使用RMAN复制数据库

    RMAN 可以通过复制或者克隆,从一个运行的库中复制一个备份。可以用来在远程站点上复制数据库,下面示例中源库和复制库使用同样的SID:DB11G

    在源库中创建备份。

    $ rman target=/
     
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    RMAN> BACKUP DATABASE PLUS ARCHIVELOG

    为目标库创建password文件

    $ orapwd file=/u01/app/oracle/product/11.2.0/db_1/dbs/orapwDB11G password=password entries=10

    在”$ORACLE_HOME/network/admin” 中增加”tnsnames.ora” 允许目标库访问源库。

    # Added to the tnsnames.ora
    DB11G-SOURCE =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = ol5-112-dup1)(PORT = 1521))
        )
        (CONNECT_DATA =
          (ORACLE_SID = DB11G)
        )
      )

    继续阅读 »

    清洗磁带机

    1.查看需要清洗的磁带机

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    
    netback:root:/usr/openv/volmgr/bin>./tpclean -L
    Drive Name              Type      Mount Time  Frequency   Last Cleaned         Comment
    **********              ****      **********  *********   ****************     *******
    IBM.ULT3580-TD4.000     hcart*    1906.3      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.001     hcart*    2950.6      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.002     hcart*    2804.5      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.003     hcart*    2895.4      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.004     hcart*    1804.2      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.005     hcart*    2916.2      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.006     hcart*    2970.3      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.007     hcart*    2909.5      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.008     hcart*    2895.8      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.009     hcart*    2896.7      0                N/A             NEEDS CLEANING
    IBM.ULT3580-TD4.010     hcart*    2840.6      0                N/A             NEEDS CLEANING

    继续阅读 »