Friday, November 30, 2018

NDM Migration commands



symdm create -src_sid 123 -tgt_sid 345 -sg SG_esx113_114 -validate -nop

symdm create -src_sid 123 -tgt_sid 345 -sg SG_esx113_114  -nop


symdm create -src_sid 123 -tgt_sid 345 -sg SG_esx113_114 -nop


 symdm -sid 123 -sg SG_esx113_114 list -v -detail pairs_info


 symaccess -sid 345 show view MV_esx113_114

 symsg -sid 1663 show SG_esx113_114

 symdm -sid 123 -sg SG_esx113_114 list

 symdm -sid 123 -sg SG_esx113_114 list

 symdm -sid 123 -sg SG_esx113_114 cutover -nop


 symrdf -sid 345 -rdfg 250 -sg SG_esx113_114 query -i 15


 symrdf -sid 345 -rdfg 250 -sg SG_esx113_114 query

 symdm -sid 123 -sg SG_esx113_114 commit -nop

Thursday, November 15, 2018

How to enable crontab job



Setting Up Cron Job Using crontab:
Step 1: Open a Terminal Window (Command Line) in Linux.
Step 2: The following is a list of cron directories:
• /etc/cron.hourly
• /etc/cron.daily
• /etc/cron.weekly
• /etc/cron.monthly
Copy your shell script ‘script.sh` or ‘script’ into one of the directories above.
If you need to run the script hourly, place your script file in the “cron.hourly”
folder. For daily, place it inside the “cron.daily” and so forth.
Step 3: Give the shell script the correct permission. For example, if script is called
“script.sh”, set permission as follows:
cd /etc/cron.daily/
chmod 755 script.sh
Step 4: Add new cron job to crontab:
crontab –e
This opens vi editor for you. Create the cron command using the following syntax:
1. The number of minutes after the hour (0 to 59)
2. The hour in military time (24 hour) format (0 to 23)
3. The day of the month (1 to 31)
4. The month (1 to 12)
5. The day of the week(0 or 7 is Sun, or use name)
6. The command to run
More graphically they would look like this:
* * * * * Command to be executed
- - - - -
| | | | |
| | | | +----- Day of week (0-7)
| | | +------- Month (1 - 12)
| | +--------- Day of month (1 - 31)
| +----------- Hour (0 - 23)
+------------- Min (0 - 59)
An example command would be “0 0 * * * /etc/cron.daily/script.sh”. This
would mean that the shell script will exactly execute at midnight every
night.
To save the changes to the crontab that you just made, hit ESC key, and
then type :w followed by :q to exit.
To list existing cron jobs:
 crontab –l
To remove an existing cron job:
• Enter: crontab –e
• Delete the line that contains your cron job
• Hit ESC > :w > :q

Thursday, October 4, 2018

How to get lun wwn id on windows server 2012

How to get lun wwn id on windows server 2012

go to powershell and run below mentioned command.


Get-Disk -Number 17 | Select UniqueId



output :


UniqueId
--------
60002AC0000000000000006A000190FA

Monday, September 24, 2018

VMAX Policy migration by symmigrate command



command to execute on SG_abcbb03_abcbb04 luns


symaccess –sid 123 -type storage –name SG_policy0_1102_01 remove dev XXX
symaccess –sid 123 –type storage –name SG_policy1_1112_02 add dev XXX

symmigrate -sid 123 -name migr_abc_123 -f tdev_mig_abc_123 -src_pool E00_R5_09_MA -tgt_pool -pool F15_R5_02_1B validate
symmigrate -sid 123 -name migr_abc_123 -f tdev_mig_abc_123 -src_pool E00_R5_09_MA -tgt_pool -pool F15_R5_02_1B establish

symmigrate –sid 123 –name migr_abc_123 query
symmigrate –sid 123 –name migr_abc_123 terminate


symaccess –sid 123 -type storage –name SG_policy0_1102_01 remove dev XXX
symaccess –sid 123 –type storage –name SG_policy1_1112_02 add dev XXX

symmigrate -sid 123 -name migr_abc_123 -f tdev_mig_abc_123 -src_pool E00_R5_09_MA -tgt_pool -pool F15_R5_02_1B validate
symmigrate -sid 123 -name migr_abc_123 -f tdev_mig_abc_123 -src_pool E00_R5_09_MA -tgt_pool -pool F15_R5_02_1B establish

symmigrate –sid 123 –name migr_abc_123 query
symmigrate –sid 123 –name migr_abc_123 terminate

************************************************************************************************************************
command to execute on SG_LX03486D_LX03487D luns

symaccess –sid 123 -type storage –name SG_policy1_1112_02 remove dev XXX
symaccess –sid 123 –type storage –name SG_policy0_1102_01 add dev XXX

symmigrate -sid 123 -name migr_abc_LX_123 -f tdev_mig_LX034_123 -src_pool S07_R6_08_XA -tgt_pool -pool F15_R5_02_1B validate
symmigrate -sid 123 -name migr_abc_LX_123 -f tdev_mig_LX034_123 -src_pool S07_R6_08_XA -tgt_pool -pool F15_R5_02_1B establish

symmigrate –sid 123 –name migr_abc_LX_123 query
symmigrate –sid 123 –name migr_abc_LX_123 terminate


symaccess –sid 123 -type storage –name SG_policy1_1112_02 remove dev XXX
symaccess –sid 123 –type storage –name SG_policy0_1102_01 add dev XXX

symmigrate -sid 123 -name migr_abc_LX_123 -f tdev_mig_LX034_123 -src_pool S07_R6_08_XA -tgt_pool -pool F15_R5_02_1B validate
symmigrate -sid 123 -name migr_abc_LX_123 -f tdev_mig_LX034_123 -src_pool S07_R6_08_XA -tgt_pool -pool F15_R5_02_1B establish

symmigrate –sid 123 –name migr_abc_LX_123 query
symmigrate –sid 123 –name migr_abc_LX_123 terminate




Thursday, August 9, 2018

Hitachi True Copy commands

do the horcm file entry if required.

c:\windows\horcomfile


Pair create

paircreate -ITC123 -g servergroupname -d 0005_0804 -vl -fg never 3 -c 6


pairdisplay -ITC123 -g servergroupname -fxce -CLI


pair removal

pairsplit -ITC123 -S -g  servergroupname -d 0005_0804



***************
horcmshutdown 100 101
horcmstart 100 101
set horcminst=101
raidqry -l
raidcom get ldev -ldev_id 08:09
************************