System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Restore backup using TSM to a HP-UX 11.23 box

bubunis
Occasional Advisor

Restore backup using TSM to a HP-UX 11.23 box

How to restore backup using TSM to a new disk installed in a HP UX box (11.23).

 

1)    Insert the New Disk into the server.

2)    Verify whether that newly installed disk is detected or NOT (using SAM)

 

Disk Devices                                                  0 of 13 selected│

│──────────────────────────────────────────────────────────────────────────────│

│  Hardware      Number              Volume      Total                               │

│     Path          of Paths   Use      Group      Mbytes   Description           │

│┌───────────────────────────────────────────────────────────────────────────┐ │

││ 10/0.1.0      1          Unused     ---         17366   SEAGATE XXXXXXX 

││ 10/0.2.0      1          LVM        vg05         8683   SEAGATE XXXXXXXX 

 

Issuing the ioscan and diskinfo command we can find the disk details :

 

IOSCAN #

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

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

disk     11  10/0.1.0     sdisk       CLAIMED   DEVICE    SEAGATE XXXXXXXX

                         /dev/dsk/c0t1d0   /dev/rdsk/c0t1d0

 

DISKINFO#

SCSI describe of /dev/rdsk/c0t1d0:

             vendor: SEAGATE

         product id: XXXXXXX

               type: direct access

               size: 17783240 Kbytes

   bytes per sector: 512

 

            We can also find the disk status viewing the timestamp of it in the /dev/rdsk directory :

HPUX (root):/dev/rdsk:# ls -l

total 0

crw-r-----   1 bin        sys        188 0x001000 Apr  6 10:54 c0t1d0

 

3)      Restore the vg configuration using below commands

  1. pvcreate -f /dev/rdsk/c0t1d0 - pvcreate new disk
  2. vgcfgrestore -n /dev/vg07 /dev/rdsk/c0t1d0 - restores vg configuration to the new disk
  3. vgchange -a y /dev/vg07 - reactivates VG07
  4. vgsync vg07 - Syncs VG07
  5. newfs -F vxfs -o largefiles /dev/vg07/rlvol1 – Creating vxfs filesystem

 

4)  Now mount the filesystem by issuing mount –a command (if we have already an entry in /etc/fstab) or manually giving the command

mount -F vxfs /dev/vg07/lvol1 /MOUNTPOINT

 

5)      Check whether the /MOUNTPOINT is visible in bdf command or not

 

HPUX(root):/:# bdf /backup

Filesystem          kbytes    used   avail %used Mounted on

/dev/vg07/lvol1    10240000    3614 9596619    0% /backup

 

6)      Now we can start up the procedure for restoring data of /MOUNTPOINT using TSM. Firstly after logging in ROOT issue the command “dsmc” (Before doing this check whether TSM client is installed or not.)

7)  Issue the commands below one by one :

 

  • Dsmc> q ba "/MOUNTPOINT/" -su=yes (checking backup status)

 

Node Name: HPUX
Session established with server SMA02: AIX-RS/6000
  Server Version 5, Release 4, Level 4.0
  Server date/time: 04/06/12   23:48:28  Last access: 04/06/12   21:32:28

             Size      Backup Date        Mgmt Class A/I File
             ----      -----------        ---------- --- ----
               96  04/06/12   21:32:27    UX_MG       A  /MOUNTPOINT/
               96  04/06/12   21:32:27    UX_MG       A  /MOUNTPOINT/lost+found

  • Dsmc> q ba "/MOUNTPOINT/" -su=yes -pitd=04/06/12 -pitt=23:59:00 ( Checking yesterday’s backup status)

 

Size      Backup Date        Mgmt Class A/I File
             ----      -----------        ---------- --- ----
               96  04/06/12   21:32:27    UX_MG       A  /MOUNTPOINT/lost+found
               96  04/06/12   21:32:27    UX_MG       A  /MOUNTPOINT/

 

  • Dsmc> q ba "/MOUNTPOINT/" -su=yes –inactive

 

Node Name: HPUX

Session established with server SMA02: AIX-RS/6000

  Server Version 5, Release 4, Level 4.0

  Server date/time: 04/07/12   01:01:23  Last access: 04/07/12   00:00:30

 

             Size      Backup Date        Mgmt Class A/I File

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

               96  04/06/12   21:32:27    UX_MG       A  /MOUNTPOINT/

               96  04/06/12   21:32:27    UX_MG       A  /MOUNTPOINT/lost+found

               96  03/04/10   02:41:45    UX_MG       I  /MOUNTPOINT/

               96  03/04/10   02:41:45    UX_MG       I  /MOUNTPOINT/crash

               96  03/04/10   02:41:45    UX_MG       I  /MOUNTPOINT/lost+found

            1,024  03/04/10   02:41:45    UX_MG       I  /MOUNTPOINT/piyush

            1,024  03/04/10   02:41:45    UX_MG       I  /MOUNTPOINT/piyush/dynepo

            3,346  03/04/10   02:41:45    DEFAULT     I  /MOUNTPOINT/piyush/create_w1_tst5.log

              114  03/04/10   02:41:45    DEFAULT     I  /MOUNTPOINT/piyush/create_w1_tst5.sh

                0  03/04/10   02:41:45    DEFAULT     I  /MOUNTPOINT/piyush/nohup.out

           13,577  03/04/10   02:41:45    DEFAULT     I  /MOUNTPOINT/piyush/ora_26676.trc

            6,062  03/04/10   02:41:45    DEFAULT     I  /MOUNTPOINT/piyush/dynepo/dyn_20051117_0000001993_B.err

       47,986,699  03/04/10   02:41:45    DEFAULT     I  /MOUNTPOINT/piyush/dynepo/dyn_20051117_0000001993_B.xml

       48,005,120  03/04/10   02:41:50    DEFAULT     I  /MOUNTPOINT/piyush/dynepo/dynepo.tar

              

 

 

 

  • Dsmc> rest "/MOUNTPOINT/" /MOUNTPOINT/ -su=yes –inactive

 

Restore function invoked.

Restoring              96 /MOUNTPOINT/crash --> /MOUNTPOINT/crash [Done]
Restoring              96 /MOUNTPOINT/lost+found --> /MOUNTPOINT/lost+found
[Done]
Restoring              96 /MOUNTPOINT/ --> /MOUNTPOINT/ [Done]
Restoring           1,024 /MOUNTPOINT/piyush/dynepo --> /MOUNTPOINT/piyush/dynepo
[Done]
Restoring           1,024 /MOUNTPOINT/piyush --> /MOUNTPOINT/piyush [Done]
Restoring               0 /MOUNTPOINT/piyush/nohup.out --> /MOUNTPOINT/piyush/nohup.out [Done]
 ** Interrupted **
ANS1114I Waiting for mount of offline media.
Restoring           3,346 /MOUNTPOINT/piyush/create_w1_tst5.log --> /MOUNTPOINT/piyush/create_w1_tst5.log [Done]
Restoring             114 /MOUNTPOINT/piyush/create_w1_tst5.sh --> /MOUNTPOINT/piyush/create_w1_tst5.sh [Done]
Restoring          13,577 /MOUNTPOINT/piyush/ora_26676.trc --> /MOUNTPOINT/piyush/ora_26676.trc [Done]
Restoring           6,062 /MOUNTPOINT/piyush/dynepo/dyn_20051117_0000001993_B.err --> /MOUNTPOINT/piyush/dynepo/dyn_20051117_0000001993_B.err [Done]
Restoring      47,986,699 /MOUNTPOINT/piyush/dynepo/dyn_20051117_0000001993_B.xml --> /MOUNTPOINT/piyush/dynepo/dyn_20051117_0000001993_B.xml [Done]
Restoring      48,005,120 /MOUNTPOINT/piyush/dynepo/dynepo.tar --> /MOUNTPOINT/piyush/dynepo/dynepo.tar [Done]

Restore processing finished.

Total number of objects restored:        12
Total number of objects failed:           0
Total number of bytes transferred:    91.57 MB
Data transfer time:                    9.72 sec
Network data transfer rate:        9,642.88 KB/sec
Aggregate data transfer rate:      1,751.70 KB/sec
Elapsed processing time:           00:00:53

 

AFTER completing the restoration:

HPUX(root):/:# bdf /backup

Filesystem          kbytes    used   avail %used Mounted on

/dev/vg07/lvol1    10240000   97384 9508707    1% /backup