當前位置:首頁 » 操作系統 » linuxnbu

linuxnbu

發布時間: 2023-05-25 19:57:30

Ⅰ 高分求助~紅帽linux系統里安裝Oracle10g軟體、配置Oracle監聽、安裝和配置nbu client...救命~~~~

裝linux無需完全安裝,把所有的開發包裝上就夠用了
oracle10g安裝向導運行後自然有提醒你是否創建實例的步驟
NBU只要版本對安裝很簡單只要輸入你的NBU伺服器名並在hosts文件中把IP地址和主機名對應即可
NBU伺服器只要掃描一下就能找到已經裝過客戶端的主機了

Ⅱ 備份伺服器信息收集

收集NBU軟體信息 nbsu_info

C:\Program Files\Veritas\NetBackup\bin\support\nbsu.exe -s DEV_scsi_reg -s NBU_nbdb_info -s

收集進程狀態信息 NBU_bpps

C:\Program Files\Veritas\NetBackup\bin\bpps

備份存儲單元狀態 NBU_bpstulist

C:\Program Files\Veritas\netbackup\bin\admincmd\bpstulist -g -U

磁帶使用狀態    NBU_available_media

C:\Program Files\Veritas\NetBackup\Bin\goodies\available_media -a

客戶端信息      NBU_bpplclients

C:\Program Files\Veritas\NetBackup\Bin\admincmd\bpplclients -allunique -U

備份作業檢查    NBU_backup_status

C:\Program Files\Veritas\NetBackup\Bin\admincmd\bperror -U -backstat

linux下巡檢命令

[root@nbuserver ~]# /usr/openv/netbackup/bin/bpps -a

[root@nbuserver ~]# /usr/openv/netbackup/bin/admincmd/bpstulist -L

[root@nbuserver ~]# /usr/openv/netbackup/bin/admincmd/bpplclients -allunique -U

[root@nbuserver ~]# /usr/openv/netbackup/bin/admincmd/bpdbjobs -L

[root@nbuserver ~]# /usr/openv/netbackup/bin/admincmd/bperror -backstat -hoursago 72 –L

日誌文件收集執行命令  /usr/openv/netbackup/bin/support/nbsu -c -t

啟動NetBackup圖形界面

/usr/openv/netbackup/bin/jnbSA &

可做alias如下所示

oracle@nbumaster:~> cat /etc/bash.bashrc | grep ^alias

alias nbu='/usr/openv/netbackup/bin/jnbSA &'

NetBackup故障後,日誌收集

nbumaster:~ # /usr/openv/netbackup/bin/support/nbsu

日誌存放點:/usr/openv/netbackup/bin/support/output/nbsu

以及收集如下日誌:

3. Display NetBackup status and troubleshooting information or entries from NetBackup error catalog

Unix/Linux

/usr/openv/netbackup/bin/admincmd/bperror -all -hoursago 72 -verbose -U > /tmp/bperror_all.txt

/usr/openv/netbackup/bin/admincmd/bperror -backstat -hoursago 72 -verbose -U > /tmp/bperror_backstat.txt

/usr/openv/netbackup/bin/admincmd/bperror -problems -hoursago 72 -verbose -U > /tmp/bperror_problems.txt

/usr/openv/netbackup/bin/admincmd/bperror -media -hoursago 72 -verbose -U > /tmp/bperror_media.txt

/usr/openv/netbackup/bin/admincmd/bperror -tape -hoursago 72 -verbose -U > /tmp/bperror_tape.txt

3、磁帶立即過期

nbumaster:~ # /usr/openv/netbackup/bin/admincmd/bpexpdate -m media_id -d 0

4、查看所有磁帶使用情況,條形碼為media id

nbumaster:~ # /usr/openv/netbackup/bin/goodies/available_media

5、查看磁帶過期時間

nbumaster:~ # /usr/openv/netbackup/bin/admincmd/bpmedialist -U

6、查看nbu的版本

nbumaster:~ # cat /usr/openv/netbackup/version

HARDWARE LINUX_SUSE_X86

VERSION NetBackup 7.0.0

RELEASEDATE Thu Jul 08 01:22:07 CDT 2010

BUILDNUMBER 20100707



nbumaster:~ # more /usr/openv/netbackup/bin/version

NetBackup-SuSE2.6.16 7.0.1

7、查看驅動器的狀態,是否處於正常的TLD狀態還是ACTIVE,或者不正常的AVR狀態

nbumaster:~ # /usr/openv/volmgr/bin/vmoprcmd

8、查看驅動器是否需要清洗

nbumaster:~ # /usr/openv/volmgr/bin/tpclean -L

Drive Name              Type      Mount Time  Frequency  Last Cleaned        Comment

**********              ****      **********  *********  ****************    *******

HP.ULTRIUM4-SCSI.000    hcart*    4231.6      0                N/A            NEEDS CLEANING

HP.ULTRIUM4-SCSI.001    hcart*    798.4      0                N/A            NEEDS CLEANING

HP.ULTRIUM4-SCSI.002    hcart*    645.0      0                N/A            NEEDS CLEANING

HP.ULTRIUM4-SCSI.003    hcart*    642.3      0                N/A            NEEDS CLEANING

HP.ULTRIUM4-SCSI.004    hcart*    2340.8      0                N/A            NEEDS CLEANING

HP.ULTRIUM4-SCSI.005    hcart*    646.2      0                N/A            NEEDS CLEANING

HP.ULTRIUM4-SCSI.006    hcart*    14.9        0                N/A

HP.ULTRIUM4-SCSI.007    hcart*    17.4        0                N/A

HP.ULTRIUM4-SCSI.008    hcart*    10.0        0                N/A

HP.ULTRIUM4-SCSI.009    hcart*    22.1        0                N/A

9、掃描本機所有的機械手和驅動器

nbumaster:~ #/usr/openv/volmgr/bin/scan

************************************************************

*********************** SDT_TAPE    ************************

*********************** SDT_CHANGER ************************

************************************************************

------------------------------------------------------------

Device Name  : "/dev/sg30"  //機械手

Passthru Name: "/dev/sg30"

Volume Header: ""

Port: -1; Bus: -1; Target: -1; LUN: -1

Inquiry    : "ADIC    Scalar i2000    650Q"

Vendor ID  : "ADIC    "

Proct ID : "Scalar i2000    "

Proct Rev: "650Q"

Serial Number: "ADIC273100135_LL0"

WWN          : ""

WWN Id Type  : 0

Device Identifier: "ADIC    273100135_LL0          "

Device Type    : SDT_CHANGER  //機械手

NetBackup Robot Type: 8

Removable      : Yes

Device Supports: SCSI-3

Number of Drives : 10

Number of Slots  : 684

Number of Media Access Ports: 24  //10個驅動器

Drive 1 Serial Number      : "HU10159TD2"

Drive 2 Serial Number      : "HU10109851"

Drive 3 Serial Number      : "HU10159TC8"

Drive 4 Serial Number      : "HU10038GVG"

Drive 5 Serial Number      : "HU10109839"

Drive 6 Serial Number      : "HU101098DU"

Drive 7 Serial Number      : "HU10159TCV"

Drive 8 Serial Number      : "HU1010983B"

Drive 9 Serial Number      : "MXP1226LMC"

Drive 10 Serial Number      : "HU10159TAP"

10、手動嘗試抓取機械手,可驗證機械手是否正常,該操作可在nbu服務未啟動時候就可執行

以下表明機械手找不到

nbumaster:/usr/openv/volmgr/misc # /usr/openv/volmgr/bin/robtest

Configured robots with local control supporting test utilities:

  TLD(0)    robotic path = /dev/sg8

Robot Selection

---------------

  1)  TLD 0

  2)  none/quit

Enter choice: 1

Robot selected: TLD(0)  robotic path = /dev/sg8

Invoking robotic test utility:

/usr/openv/volmgr/bin/tldtest -rn 0 -r /dev/sg8

Opening /dev/sg8

Error opening /dev/sg8, No such device or address

Robotic test utility /usr/openv/volmgr/bin/tldtest

returned abnormal exit status (1).

11、查看磁帶驅動器及robot(機械手)細節情況

nbumaster:~ # /usr/openv/volmgr/bin/tpconfig -d 亦可使用tpconfig -dl或tpconfig -l,顯示的信息是不一樣的

Id  DriveName          Type  Residence

      Drive Path                                                      Status

****************************************************************************

0  HP.ULTRIUM4-SCSI.000 hcart  TLD(0)  DRIVE=10

      /dev/nst5                                                        UP

1  HP.ULTRIUM4-SCSI.001 hcart  TLD(0)  DRIVE=9

      /dev/nst6                                                        UP

2  HP.ULTRIUM4-SCSI.002 hcart  TLD(0)  DRIVE=8

      /dev/nst9                                                        UP

Currently defined robotics are:

  TLD(0)    robotic path = /dev/sg30

EMM Server = nbumaster

可使用如下命令查看驅動器和機械手的相關信息

(Display device configuration)

  tpconfig -d

  tpconfig -dl

  tpconfig -l

另/usr/openv/volmgr/bin/tpconfig      提供add ,delete,list NBU可以識別並使用的物理設備,如

機械手/dev/sg30的符號在操作系統更改後,可通過tpconfig來進行更改

12、查看nbu進程情況,一般使用bpps -x

nbumaster:~ # /usr/openv/netbackup/bin/bpps  -列出nbu服務運行的進程

-a  在列表中包括介質管理器進程

-x  在列表中包括介質管理器進程和其他共享進程

13、查看操作系統是否認識到機械手

nbumaster:~ # cat /proc/scsi/scsi  可搜索關鍵字Medium

Host: scsi1 Channel: 00 Id: 01 Lun: 02

  Vendor: ADIC    Model: Scalar i2000    Rev: 605A

  Type:  Medium Changer                  ANSI SCSI revision: 03

lsscsi和cat /proc/scsi/scsi其實是一樣的

nbumaster:~ # lsscsi

[0:0:0:0]    disk    SEAGATE  ST9146803SS      FS62  -

[0:0:1:0]    disk    SEAGATE  ST9146803SS      FS62  -

[0:1:2:0]    disk    LSILOGIC Logical Volume  3000  /dev/sda

[1:0:0:0]    storage QUANTUM  Scalar i6000    650Q  -

[1:0:0:2]    mediumx ADIC    Scalar i2000    650Q  -

14、如何重啟nbu服務

正常情況只需要

nbumaster:~ # /usr/openv/netbackup/bin/bp.kill_all

nbumaster:~ # /usr/openv/netbackup/bin/bpps -x

nbumaster:~ # /usr/openv/netbackup/bin/bp.start_all

如果以上重啟nbu方式不行,則採用如下方式

How to restart services

On NetBackup Master Server

1) Stop the NetBackup Services.

nbumaster:~ # /usr/openv/netbackup/bin/bp.kill_all

If the NetBackup services did not stop completely,please stop the process by using the kill command.

nbumaster:~ # /usr/openv/netbackup/bin/bpps -x

Remove cache files

nbumaster:~ # cd /usr/openv/var

nbumaster:~ # ls -lh

nbumaster:~ # rm /usr/openv/var/*.ior

nbumaster:~ # rm /usr/openv/var/*.ior.mgr

nbumaster:~ # cd /usr/openv/volmgr/misc 若有lock文件,可刪除

nbumaster:~ # ls -lh

2)stop vxpbx services.

nbumaster:~ # /opt/VRTSpbx/bin/vxpbx_exchanged stop

On NetBackup Master Server

1) start the vxpbx Services.

nbumaster:~ # /opt/VRTSpbx/bin/vxpbx_exchanged start

2) art the NetBackup Services.

nbumaster:~ # /usr/openv/netbackup/bin/bp.start_all

15、cannot connect to robotic software daemon報錯

這個錯誤是因為nbu在關閉的時候某些LOCK文件沒有被完全刪除造成的,可以使用下面的步驟重啟後解決

A.      Shut down all the VERITAS NetBackup (tm) daemons:

#/usr/openv/netbackup/bin/goodies/netbackup stop

B.      Verify all NetBackup daemons are down by running the command:

#/usr/openv/netbackup/bin/bpps –a

Do not proceed until all NetBackup processes are down. (Remember to exit from the GUI interface.)if remain process if JAVA REF. you can use the 「kill -9」 command to kill them.

C.      cd /usr/openv/volmgr/misc/

D.    Delete the lock files (*lock*) that exist in this directory

E.      Restart the NetBackup daemons:

#/usr/openv/netbackup/bin/goodies/netbackup start

16、bpexpdate過期磁帶,報」requested media id is in use」錯誤解決辦法

如果你確認這個media並沒有在使用,可以手工釋放這個media佔用的資源

首先使用/usr/openv/netbackup/bin/admincmd/nbrbutil -mp命令得到磁帶佔用資源的id

nbumaster:~ # /usr/openv/netbackup/bin/admincmd/nbrbutil -mp

Allocation Requests

(AllocationRequestSeq )

MDS allocations in EMM:

        MdsAllocation: allocationKey=91666 jobType=1 mediaKey=4000261 mediaId=YZ5350 driveKey=2000012 driveName=HP.ULTRIUM4-SCSI.004 drivePath=/dev/nst0 stuName=nbumaster-hcart-robot-tld-0 masterServerName=nbumaster mediaServerName=nbumaster ndmpTapeServerName= diskVolumeKey=0 mountKey=0 linkKey=0 fatPipeKey=0 scsiResType=1 serverStateFlags=1

        MdsAllocation: allocationKey=91667 jobType=1 mediaKey=4000264 mediaId=YZ5353 driveKey=2000008 driveName=HP.ULTRIUM4-SCSI.000 drivePath=/dev/nst5 stuName=nbumaster-hcart-robot-tld-0 masterServerName=nbumaster mediaServerName=nbumaster ndmpTapeServerName= diskVolumeKey=0 mountKey=0 linkKey=0 fatPipeKey=0 scsiResType=1 serverStateFlags=1

nbumaster:~ #

然後使用/usr/openv/netbackup/bin/admincmd/nbrbutil –releaseMDS 即上面的「allocationKey=」後面相應的數值,來釋放資源

這樣我們便能成功執行bpexpdate命令

17、查詢目前有哪些磁帶正在被哪個驅動器調用,以及正在運行哪些備份任務

nbumaster:~ # /usr/openv/netbackup/bin/admincmd/nbrbutil -mp

18、列出所有的job的明細

nbumaster:~ # /usr/openv/netbackup/bin/admincmd/bpdbjobs

將bpdbjobs輸出到/tmp/bpdbjobs.txt文件中

bpdbjobs -file /tmp/bpdbjobs.txt

列出所有作業的摘要,可查看目前正處於ACTIVE的任務有多少個

nbumaster:~ # /usr/openv/netbackup/bin/admincmd/bpdbjobs -summary

MASTER SERVER QUEUED REQUEUED ACTIVE SUCCESS PARTSUCC FAILED INCOMP SUSP WAITING_RETRY  TOTAL

nbumaster          0  0      5  1320      0      43      0      0    0  1368

僅供參考

Ⅲ linux安裝NBU需要哪些准備阿

不知道你問的是在linux上安裝NBU的客戶端還是伺服器端,首先需要准備的肯定是安裝介質和linux的root帳號(或者確保有sudo許可權)。我分別簡單的描述一下客戶端和伺服器端的安裝步驟:
客戶端:
使用root用戶直接運行安裝文件夾中的安裝腳本,按照提示進行輸入:
首先,進入安裝目錄,運行『./install』;
出現安裝選擇的時候,按照數字選擇NetBackup
Client
Software;
然後,在提示輸入Enter
the
name
of
the
NetBackup
serve的時候,輸入伺服器端的hostname;
再然後,在提示輸入Enter
the
name
of
this
NetBackup
client的時候,輸入本機的hostname(我比較偷懶,直接輸入127.0.0.1);
然後客戶端軟體就自動安裝到/usr/openv/netbackup目錄下了。其配置文件是bp.conf
伺服器端(我只在CentOS4.7系統下安裝NBU6.5的伺服器端,此處是給出的一個範例,具體情況請自信看屏幕的回饋信息):
1.確保系統需要的rpm包都已經安裝,由於我安裝的時候linux是選擇完全安裝,就跳過這一步。
2.安裝ICS組件(Infrastructure
Core
Services)
3.安裝NBU伺服器端。
4.登錄並進行配置(使用『/usr/openv/netbackup/bin/jnbSA
&』打開管理端進行配置)。

熱點內容
圖文資料庫 發布:2025-05-03 06:20:47 瀏覽:166
主機網路配置信息有哪些 發布:2025-05-03 06:13:27 瀏覽:572
編譯器輸出地址 發布:2025-05-03 05:56:10 瀏覽:484
手機軟體圖片存儲 發布:2025-05-03 05:50:25 瀏覽:862
nginxip訪問網站 發布:2025-05-03 05:47:32 瀏覽:720
太陽資料庫 發布:2025-05-03 05:39:51 瀏覽:137
qq空間java 發布:2025-05-03 05:39:44 瀏覽:414
設計師導航源碼 發布:2025-05-03 05:35:23 瀏覽:958
c語言程序案例 發布:2025-05-03 05:34:43 瀏覽:605
開播腳本 發布:2025-05-03 04:56:56 瀏覽:820