UNSOLVED

modaslam

updated

16 years ago

M

modaslam

2 Intern

•

217 Posts

0

2282

July 5th, 2010 22:00

VCBDB Restore

Can we restore a VCMDB with out a backup file?

  • RRR

    6 Operator

    •

    5739 Posts

    1961

    0

    Posted July 6th, 2010 00:00

    And where would this backup which you need come from ? You need a backup file of some sort to be able to restore !

    If you don't have a backup file you need to reconstruct it by listing the masked LUN's on each and every host (you need to do this on each host) and somehow find out to which FA each HBA is zoned to.

    If you have the wwpn's of the HBA's (you can look this up in the switch configs), and the symdev numbers each host had access to you can create a script to fill the vcmd again.

    symmask -sid -wwn -dir 4A -p 0 add devs symdev1,symdev2,symdev3,symdev4

    symmask -sid -wwn -dir 13A -p 0 add devs symdev1,symdev2,symdev3,symdev4

  • modaslam

    2 Intern

    •

    217 Posts

    1961

    0

    Posted July 6th, 2010 20:00

    so if I have a 200 hosts connected. It wld take days to rebuild the database.

    well can we recover it from SFS. Since VCMDB is a part of SFS and SFS is  protected via 2-way mirr.

    what do you mean by looking up in the switch config. Can you plz elaborate on it.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1961

    0

    Posted July 6th, 2010 22:00

    What are you trying to do ?

  • modaslam

    2 Intern

    •

    217 Posts

    1961

    0

    Posted July 6th, 2010 23:00

    I am just thinking of a   scenario where my VCMDB is corrupted. so I need to restore it. but I dont have backup for it. 

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1961

    0

    Posted July 7th, 2010 05:00

    create a script and keep multiple versions.

  • AranH1

    2163 Posts

    1961

    1

    Posted July 7th, 2010 08:00

    Do what Dynamox suggested.

    What I do is create a scheduled task on a Windows with SE on it and run the script below on a daily basis. Then I backup the directory that the VCMDB backup is saved to for even more protection.

    *** Begin Script ***

    REM Backup of VCMDB

    @echo off

    echo Backing up VCMDB ...

    cd "C:\Program Files\EMC\SYMCLI\bin"

    symmaskdb -sid XXX backup -file C:\SAN_Scripts\VCMDB\vcmdb_backup.txt -nop

    echo Renaming file to inlcude date stamp

    FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
    For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set date=%%a%%b%%c)

    ren C:\SAN_Scripts\VCMDB\vcmdb_backup.txt "%date%_vcmdb_backup.txt"

    echo VCMDB backup complete

    exit

    *** End Script ***

    Run this script for every sym in your infrastructure.