hp-ux 備份OS命令

zhanglei_itput發表於2009-10-22

LEIZ_TEST更換硬碟操作步驟

 

對伺服器進行硬碟的更換之前,要先做好os級的備份,操作步驟如下:

備註:請在hp工程師到位前對os進行備份,備份命令為

make_tape_recovery -Av

 

1.    檢視日誌

LEIZ_TEST#[/]cd /var/opt/resmon/log

LEIZ_TEST#[/var/opt/resmon/log]ls

api.log        client.log     event.log      registrar.log  rst.log

LEIZ_TEST#[/var/opt/resmon/log]vi event.log

"event.log" 6399 , 219948 個位元組

 

>------------ Event Monitoring Service Event Notification ------------<

 

Notification Time: Sat Sep 27 12:48:04 2008

 

LEIZ_TEST sent Event Monitor notification information:

 

/storage/events/disks/default/1_0_1_1_0_1_1.6.0

 is >= 1.

Its current value is INFORMATION(1).

 

Event data from monitor:

 

Event Time..........: Sat Sep 27 12:48:04 2008

Severity............: INFORMATION

Monitor.............: disk_em

Event #.............: 100401

System..............: LEIZ_TEST

 

Summary:

     Disk at hardware path 1/0/1/1/0/1/1.6.0 : Successful completion of

"event.log" 6399 , 219948 個位元組

 

v-v-v-v-v-v-v-v-v-v-v-v-v    D  E  T  A  I  L  S    v-v-v-v-v-v-v-v-v-v-v-v-v

 

Component Data:

     Physical Device Path...: 1/0/1/1/0/1/1.6.0

     Device Class...........: Disk

     Inquiry Vendor ID......: HP 73.4G

     Inquiry Product ID.....: ST373454LC

     Firmware Version.......: HPC2

     Serial Number..........: 3KP17RDX00007607ZL0J

 

Product/Device Identification Information:

 

     Logger ID.........: sdisk

     Product Identifier: SCSI Disk

     Product Qualifier.: HP73.4GST373454LC

     SCSI Target ID....: 0x06

     SCSI LUN..........: 0x00

 

I/O Log Event Data:

 

:q

 

 

 

2.    ioscan

LEIZ_TEST#[/var/opt/resmon/log]ioscan -kfnCdisk

Class     I  H/W Path       Driver   S/W State   H/W Type     Description

==========================================================================

disk      0  1/0/0/3/0.6.0  sdisk    CLAIMED     DEVICE       HP 73.4GST373454LC

                           /dev/dsk/c0t6d0   /dev/rdsk/c0t6d0

disk      1  1/0/0/3/1.2.0  sdisk    CLAIMED     DEVICE       _NEC    DVD+RW NDD

                           /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0

disk      2  1/0/1/1/0/1/1.6.0  sdisk    CLAIMED     DEVICE       HP 73.4GST373C

                           /dev/dsk/c3t6d0   /dev/rdsk/c3t6d0

disk      3  1/0/6/1/1.0.0  sdisk    CLAIMED     DEVICE       COMPAQ  BD07288277

                           /dev/dsk/c5t0d0   /dev/rdsk/c5t0d0

disk      4  1/0/6/1/1.1.0  sdisk    CLAIMED     DEVICE       COMPAQ  BD07288277

                           /dev/dsk/c5t1d0   /dev/rdsk/c5t1d0

                           

LEIZ_TEST#[/var/opt/resmon/log]ioscan -fnCtape

Class     I  H/W Path       Driver   S/W State   H/W Type     Description

==========================================================================

tape      1  1/0/1/1/0/1/0.1.0  stape    CLAIMED     DEVICE       HP      C5683A

LEIZ_TEST#[/var/opt/resmon/log]ioscan -fnCtape

Class     I  H/W Path       Driver   S/W State   H/W Type     Description

==========================================================================

tape      1  1/0/1/1/0/1/0.1.0  stape    CLAIMED     DEVICE       HP      C5683A

 

LEIZ_TEST#[/var/opt/resmon/log]uname -a

HP-UX LEIZ_TEST B.11.11 U 9000/800 192372456 不限使用者數的許可證

 

 

 

3. 備份OS命令--備份到小磁帶

192.168.203.66 2009-10-21日備份

LEIZ_TEST#[/var/opt/resmon/log]make_tape_recovery -Av

       * Creating local directories for configuration files and archive.

 

=======  10/21/09 14:22:08 EAT  Started make_tape_recovery. (Wed Oct 21

         14:22:08 EAT 2009)

         @(#) Ignite-UX Revision B.5.2.124

         @(#) net_recovery (opt) $Revision: 10.624 $

 

=======  10/21/09 17:04:33 EAT  make_tape_recovery completed successfully!

 

 

4. 取消2塊盤之間的mirror

5. 更換新硬碟

6. 重新做mirror

7. 更換硬碟完成(並填寫現場服務記錄單)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9252210/viewspace-617153/,如需轉載,請註明出處,否則將追究法律責任。

相關文章