Forum Discussion

YOYO_YUE's avatar
YOYO_YUE
Level 3
5 years ago

How to create msdp using scripts

HI    anybody known how to use scripts to create the msdp (include pool & stu ) .   NBU VERSION = 8.1.2 OS VERSION = Redhat7.3 x64
  • mph999's avatar
    mph999
    5 years ago

    OK - understandably SDO isn't comfortable to publish the steps, which I totally understand   ... but I can ...  :0)  - so if it saves a support call that's geat.

    I've not tested this, but at first glance it looks to be complete.

     

    First make sure Server is configured as Media Server in Netbackup and make sure the name resolution between Master Server and Media server is working fine .

    Then run below command either on Master server or Media server to create the MSDP Storage Server ( I would request you to run the below command on Master server )
    If Master Server is windows machine :
    1) Install_Path\Program_files\veritas\netbackup\bin\admincmd\nbdevconfig -creatests -storage_server <storage Server Name>-stype PureDisk -media_server <Media Server Hostname>
    2) Install_Path\Program_files\veritas\volmgr\bin\tpconfig -add -storage_server <Storahe Server Name> -stype PureDisk -sts_user_id <user_name> -password <password>

    If Master Server is Linux Machine
    1) /usr/openv/netbackup/bin/admincmd/nbdevconfig -creatests -storage_server <storage Server HostName>-stype PureDisk -media_server <Media Server Hostname>
    2) /usr/openv/volmgr/bin/tpconfig -add -storage_server <Storahe Server Name> -stype PureDisk -sts_user_id <user_name> -password <password>

    NOTE : In command 1 I would request you to keep the Storage Server and Media Server Hoatname same .
    In command 2 username and password is for spa user and would be saved in spad database and this username and password has nothing to do with any OS login credentials or any Active Directory user's credentials
    keep the username and password simple like Uesrname : admin Passowrd : admin or Uesrname : root Passowrd : root


    Then run below command locally on Media Server to create the MSDP file and folder structure :
    If Media Server Serevr is Windows Machine :
    3) Install_Path\Program_files\veritas\pdde\PDDE_initConfig.bat --storagepoolid=1234 --spalogin=username --spapasswd=password --spalogpath=<MSDP_Path\log> --storagepath=<MSDP_Path> --spalogretention=7 --verboselevel=5 --installpath="C:\Program Files\Veritas\pdde" --dbpath=<MSDP_DBPath> --required_interface=Hostname of Media Server


    If Media Server is Linux Machine :
    3) /usr/openv/pdde/pdconfigure/scripts/installers/PDDE_initConfig.sh --storagepoolid=1234 --spalogin=username --spapasswd=password --spalogpath=<MSDP_Path/log> --storagepath=<MSDP_Path> --spalogretention=7 --verboselevel=3 --installpath=/usr/openv/pdde --dbpath=<MSDP_DBPath> --required_interface=Hostname of Media Server

    NOTE : In command 3 , keep the username and password same which we provided in command 2 .
    Also you can either keep the MSDP_Path and MSDP_DBPath same or keep them them on different paths


    Then restart the Netbackup services on Media server and check if spad and spoold services are running on it .

    Once the sapd and spoold services are up , then create Diskpool using below command :
    If Master Server is windows machine :
    4) Install_Path\Program_files\veritas\netbackup\bin\admincmd\nbdevconfig -createdp -dp <DiskPoolName> -stype PureDisk -storage_server <Storage_Server_Name> -hwm 90 -lwm 80 -max_io_streams 40

    If Master Server is Linux Machine :
    4) /usr/openv/netbackup/bin/admincmd/nbdevconfig/nbdevconfig -createdp -dp <DiskPoolName> -stype PureDisk -storage_server <Storage_Server_Name> -hwm 90 -lwm 80 -max_io_streams 40


    Then create Storage Unit with Command :
    If Master Server is windows machine :
    5) Install_Path\Program_files\veritas\netbackup\bin\admincmd\bpstuadd -label <Storage Unit Name> -dp <Disk_Pool_Name created in command 4>

    If Master Server is Linux Machine :
    5) /usr/openv/netbackup/bin/admincmd/bpstuadd -label <Storage Unit Name> -dp <Disk_Pool_Name created in command 4>