Tuesday, May 12, 2015

A typical .gitconfig that make my life easier when working with git

This is what make my life working with git easier. alisa save thousands of keystrokes every weeks !


$cat .gitconfig
[user]
        name = Nasimuddin Ansari
        email = Nasimuddin Ansari@example.com
[push]
        default = matching
[branch]
        autosetupbase = always
        autosetuprebase = always
[color]
        ui = true
        status = auto
        branch = auto
[core]
        editor = vi
        excludesfile = ~/.gitignore

[alias]
        bd = branch -d
        l = log --graph --decorate --oneline --all -n15
        rbm = rebase master
        co = checkout
        cm = checkout master
        ss = status -s
        s = status
        b = branch -v
        a = add .
        c = commit -a
        ca = commit --amend
        d = diff
        p = pull
        dc = diff --cached
        dh = diff HEAD
        dhh = diff HEAD^
        cb = checkout -b
        r = review -v
        rn = review -n

[help]
        autocorrect = 3



Ref: https://gist.github.com/pksunkara/988716

Monday, May 4, 2015

Veritas VVR - removing a volume from VVR and deleting it from disk group

Follow below steps to remove a volume  from VVR replication and remove it from disk group.


1- Unmount filesystem using volume ( say app_vol)

2- Run below command on Primary site to delete volume from VVR

  vradmin -g app_dg -f delvol app_rvg app_vol

3- Confirm volume has been removed from VVR

 vradmin -g app_dg -l repstatus app_rvg
 vradmin printvol

4- Now remove, volume from Primary as well as secondary systems

  vxvol -g app_dg stop app_vol
 vxassist -g app_dg remove volume app_vol

5- Confirm, volume has been removed from Disk Group and space has been freed up

vxprint -v
vxdg -g app_dg -u h free

6-If you want to use freed up space in another replicated volume, follow.