Bu Blogda Ara

31 Ekim 2011 Pazartesi

Netapp' da LUN iceren volume'ler icin yapilmasi gereken volume ayarlari

____________________________________________________________
#/bin/sh
#Harun Sahiner 31/10/2011
#LUN iceren volume'ler icin yapilmasi gereken volume ayarlarini otomatik yapar.

rsh=/usr/bin/rsh

if [ $# -ne "1" ];then
        echo
        echo
        echo "You must provide 1 netapp ip number or Hostname"
        echo "Example: "
        echo "./lunayarla.sh ggnetapp1"
        echo
        exit 1
fi

vol_names=`$rsh $1 "lun show" |awk '{print $1}' |cut -f 3 -d "/"`

echo $vol_names

for i in $vol_names ; do $rsh $1 "snap autodelete $i on" ; done;
for i in $vol_names ; do $rsh $1 "vol options $i try_first snap_delete" ; done;
for i in $vol_names ; do $rsh $1 "snap autodelete $i target_free_space 5 " ; done;
for i in $vol_names ; do $rsh $1 "snap reserve $i 0" ; done;
for i in $vol_names ; do $rsh $1 "vol options $i fractional_reserve 5 " ; done;

___________________________________________________________________

Hiç yorum yok: