About Me

My photo
HI , this is Shivakant working in IT Infrastructure from about more than 17 years now .Implemented many small and large data centers , Executed huge Storage Migration , Implemented Backup Infrastructure for many small and Big organizations.I am a passionate learner of new technology , Love to fiddle with gadgets and read about them on internet. love to read books .

flipkart3

Tuesday, July 25, 2017

CONFIGURING SNAPMIRROR IN ONTAP

ALL DOCUMENT ARE PROPERTY OF SHIVAKANT , DO NOT COPY IBM , AIX , HACMP , ARE REGISTERED TRADE MARK OF IBM, NETAPP IS REGISTERED TRADEMARK OF NETAPP 
 http://aix-administration.blogspot.com/p/index-of-posts-available-in-this-blog.html 


PING ONE NETAPP BOX TO ANOTHER HERE NAS1 IS A PRIMARY BOX AND NewTest2 IS A SECONDARY BOX


NewTest2> ping NAS2
NAS2 is alive
NewTest2> ping 192.168.2.215
192.168.2.215 is alive

CREATE A VOLUME AT SECONDARY AND RESTRICT THE VOlUME AS SHOWN

NewTest2> vol create vol16 aggr1 1500g
Creation of volume 'vol16' with size 1500g on containing aggregate
'aggr1' has completed.
NewTest2> vol restrict vol16
Volume 'vol16' is now restricted.


ALLOW NAS2 TO WRITE ON NewTest2

NewTest2> wrfile -a /etc/snapmirror.allow NAS2
NewTest2> wrfile -a /etc/snapmirror.allow 192.168.2.215

CHECK SNAPMIRROR OPTIONS

NewTest2> options snapmirror
snapmirror.access            host=192.168.2.0,192.168.2.216,NAS2
snapmirror.checkip.enable    on
snapmirror.cmode.suspend     off
snapmirror.delayed_acks.enable on
snapmirror.enable            on
snapmirror.log.enable        on
snapmirror.vbn_log_enable    off        (value might be overwritten in takeover)
snapmirror.vfiler0.logging.enable on
snapmirror.volume.local_nwk_bypass.enable on
snapmirror.vsm.volread.smtape_enable on

CHECK SNAPMIRROR OPTIONS
snapmirror.access            host=192.168.2.0,192.168.2.216,NAS2
snapmirror.checkip.enable    on

ALLOW SNAP MIRROR ACCESS

NewTest2> options snapmirror.access host=NAS2,192.168.2.215

ADD ENTRIES IN HOSTS FILE

THE ENTRIES ARE LIKE A NORMAL /etc/hosts FILE
 rdfile /etc/hosts
127.0.0.1 localhost
wrfile -a /etc/hosts 192.9.1.91 NAS1 NAS1-Vif1
wrfile -a /etc/hosts 192.10.1.122 mailhost
wrfile -a /etc/hosts 192.168.2.243 FAS2554P1 FAS2554P1-e0a
wrfile -a /etc/hosts 192.168.2.245 FAS2554P1 FAS2554P1-e0b
wrfile -a /etc/hosts 192.168.2.246 NewTest2 NewTest2-e0b

INITIALISE SNAPMIRROR USING NAS2 AS SOURCE AND NewTest AS SECONDARY

NewTest2> snapmirror initialize -S NAS2:vol3 NewTest2:vol16
Transfer started.
Monitor progress with 'snapmirror status' or the snapmirror log.

MONITOR SNAPMIRROR
         
NewTest2> snapmirror status -t
Snapmirror is on.
Source                Destination           State          Lag        Status
NAS1:vol3             NewTest2:vol16       Uninitialized  00:00:00   Transferring  (105 MB done)
 

PACEMAKER STONITH USING SHARED DISK

ALL DOCUMENT ARE PROPERTY OF SHIVAKANT , DO NOT COPY IBM , AIX , HACMP , ARE REGISTERED TRADE MARK OF IBM, NETAPP IS REGISTERED TRADEMARK OF NETAPP
 http://aix-administration.blogspot.com/p/index-of-posts-available-in-this-blog.html




BELOW IS STONITH CONFIGURATION FOR PACEMAKER USING A SBD DEVICE
So STONITH stands for shoot the other node in the head , it is just a mechanism for fencing in cluster
Fencing is nothing but the way to isolate other node .

Here the steps to create a SBD device for pacemaker cluster
Create a SBD device on a shared LUN , note the disk id used here .

sbd -d /dev/mapper/360060e80125266005040526600000021 create
Add SBD entry in the /etc/sysconfig/sbd
echo ' SBD_DEVICE="/dev/mapper/360060e80125266005040526600000021"
SBD_OPTS="-W" ' >> /etc/sysconfig/sbd
Test that SBD communication is working .
sbd -d /dev/mapper/360060e80125266005040526600000021 message slesha2 test
Now add SBD device to Current cluster configuration
Crm configure
primitive sbddevice stonith:external/sbd \
        meta target-role="Started" \
        operations $id="sbddevice-operations" \
        op monitor interval="3600" timeout="20" \
        params sbd_device="/dev/mapper/360060e80125266005040526600000021"
configure commit

 

Total Pageviews