Forum Discussion

Satyajit_Pal's avatar
12 years ago

Change of ownership of the medias

Hi,

For a restore purpose, I asked the required medias to be loaded in TLD2 as the same series of medias are in the same TLD. But the DCO loaded in TLD0 with a comment that they can't load the required medias in the asked TLD as it requires a high level approval.

The tape density (LTO4-hcart) and drive density (hcart2) are not compatible. Hence the tape drive is not able to mount the tape for the restoration.

Refer the below details:

bash-3.00$ suexec /usr/openv/netbackup/bin/admincmd/bpmedialist -m B*****

Server Group = UNRESTRICTED_SHARING_GROUP

 

id     rl  images   allocated        last updated      density  kbytes restores

           vimages   expiration       last read         <------- STATUS ------->

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

B*****  21     11   04/14/2013 21:00  04/16/2013 21:56   hcart  1117139384     0

               11   04/14/2023 21:56        N/A         FULL SUSPENDED

 

bash-3.00$

bash-3.00$ suexec vmoprcmd -devconfig -l
Device Robot Drive       Robot                    Drive             Device         Second
Type     Num Index  Type DrNum Status  Comment    Name              Path           Device Path
robot      2    -    TLD    -       -  -          -                 /dev/sg/c0tw2002000e111201ffl1
  drive    -    3 hcart2    2      UP  -          IBM.ULT3580-TD47  /dev/rmt/3cbn
  drive    -    4 hcart2    1      UP  -          IBM.ULT3580-TD4   /dev/rmt/2cbn
bash-3.00$

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

So is there anyway i can change the ownership of the medias being in the different robot type?

 

  • Finally i made it work....

    at the oldserver option i gave the NAS filer name instead of the RCH name it worked.

     

    suexec /usr/openv/netbackup/bin/admincmd/bpmedia -movedb -oldserver s******  -newserver s****** -m B*****

    It worked and the restore now got completed.

     

     

  • Yep you should have the same density on tape and drive to get this sorted. We have below options

    1> Change the tape density to hcart2

    vmchange -new_mt -m B***** hcart2. This would be good option as you are just doing the restore from one of the tape.

    2> If you get frequent or lot of restores then you can change one of the drive density to hcart. Make sure if you do so the backup will not run on that drive.

    tpconfig -update -drive -index <drv index> -type hcart

    you can get driveindex from tpconfig -d

    3> You can also change the owndership of the media to different media sever.

    bpmedia  -movedb -m <media_id> -newserver <new-media-server>

     

  • Hi Satya,
     
    Plz share the output of command,
     
    /usr/openv/netbackup/bin/admincmd/nbemmcmd -listmedia -mediaid <media ID>
  • @sazz,

    I tried changing the density but it is not happening. The restore is not going through.

    When i tried to bpmedia command it didn't work as it gave me the below error.

    At oldserver i gave the current robot control host.

    At newserver, i gave the TLD2 RCH.

    suexec /usr/openv/netbackup/bin/admincmd/bpmedia -movedb -oldserver s*******  -newserver s***** -m B*****

    requested media id is not assigned to this host in the EMM database

     

    @Netbackup_user

    Please find the output below.

    /usr/openv/netbackup/bin/admincmd/nbemmcmd -listmedia -mediaid B*****

     

    NBEMMCMD, Version:7.0.1
    ====================================================================
    Media GUID:                     3215de9e-56d3-11e2-8000-b98c14d9af48
    Media ID:                       B******
    Partner:                        -
    Media Type:                     HCART
    Volume Group:                   000_00002_TLD
    Application:                    Netbackup
    Media Flags:                    1
    Description:                    LTO4 Tapes
    Barcode:                        B*****L4
    Partner Barcode:                --------
    Last Write Host:                s********
    Created:                        01/04/2013 17:04
    Time Assigned:                  04/14/2013 21:00
    First Mount:                    01/13/2013 03:05
    Last Mount:                     06/17/2013 18:01
    Volume Expiration:              -
    Data Expiration:                04/14/2023 21:56
    Last Written:                   04/16/2013 21:56
    Last Read:                      06/17/2013 18:01
    Robot Type:                     TLD
    Robot Control Host:             s*******
    Robot Number:                   2
    Slot:                           14
    Side/Face:                      -
    Cleanings Remaining:            -
    Number of Mounts:               8
    Maximum Mounts Allowed:         0
    Media Status:                   FULL
    Kilobytes:                      1117139384
    Images:                         11
    Valid Images:                   11
    Retention Period:               21
    Number of Restores:             4
    Optical Header Size Bytes:      1024
    Optical Sector Size Bytes:      0
    Optical Partition Size Bytes:   0
    Last Header Offset:             3905551
    Adamm Guid:                     00000000-0000-0000-0000-000000000000
    Rsm Guid:                       00000000-0000-0000-0000-000000000000
    Origin Host:                    NONE
    Master Host:                    s********
    Server Group:                   NO_SHARING_GROUP
    Upgrade Conflicts Flag:
    Pool Number:                    58
    Volume Pool:                    NAS_VOL_DAILY
    Previous Pool Name:             Spare
    Vault Flags:                    -
    Vault Container:                -
    Vault Name:                     S******-3500-A-TLD0-LTO4
    Vault Slot:                     630
    Session ID:                     44
    Date Vaulted:                   04/20/2013 10:05
    Return Date:                    -
    ====================================================================
    Command completed successfully.
     

  • the source host is NAS filer.

    Is it a NDMP restore or CIFS on the NAS filer. NDMP restore can only be restored to same NAS filer. Please provide the detailed status of the restore job.

    At oldserver i gave the current robot control host.

    At newserver, i gave the TLD2 RCH.

    Are the library shared between the media server otherwise it will not work.

    requested media id is not assigned to this host in the EMM database

    Make sure you run the command from assigned host or use the -hn paramenter

  • Finally i made it work....

    at the oldserver option i gave the NAS filer name instead of the RCH name it worked.

     

    suexec /usr/openv/netbackup/bin/admincmd/bpmedia -movedb -oldserver s******  -newserver s****** -m B*****

    It worked and the restore now got completed.

     

     

  • Great! but to be fair we pointed you in the right direction.

    Anyways good to see it is resolved now.