UNSOLVED

kilaparthy

updated

16 years ago

K

kilaparthy

18 Posts

0

1869

August 31st, 2010 03:00

Creating raidgroups and binding luns using naviseccli

Hello All,

I was using naviseccli for creating raidgroups and binding luns to raidgroups for AX4-5 storage.

the following is what i try to do 


emc_spA=192.0.2.3
naviseccli="/opt/Navisphere/bin/naviseccli"
hostgroup="hostgrp"

log="/tmp/$$_navi_conf.log"
format_list="/tmp/format_list"
storage_list="/tmp/storage_layout"
echo "done config var"

$naviseccli -h $emc_spA -user admin -password xxxxxxxxx -scope 0 -addusersecurity
########CREATING RAID GROUP FROM SATA DISKS
$naviseccli -h $emc_spA createrg 10 0_2_0 0_2_1 0_2_2 0_2_3 0_2_4 -raidtype r5

echo "RAID GROUP CREATED"

########BINDING LUN THE RAID GROUP
$naviseccli -h $emc_spA bind r5 10 -rg 10

########CHECKING FOR THE STATUS WHETHER THE LUN IS BOUND  
state=`$naviseccli -h $emc_spA getlun 10 -state | awk ' { print $2 }'`
echo "$state";
while [ "$state" = 'Binding' ];
  do
   status=`$naviseccli -h $emc_spA getlun 10 -bind | awk ' { print $3 } '`
   echo "$status% " \\c
   sleep 100 ;
   if [ `$naviseccli -h $emc_spA getlun 10 -bind | awk ' { print $3 } '` -eq '100' ]
    then
     echo "LUN CREATED"
    break
   fi
  done
echo "##### Binded Sucessfully " >>$log


########ADD LUN TO STORAGE GROUP
$naviseccli -h $emc_spA storagegroup -addhlu -gname $hostgroup -alu 10 -hlu 10
echo "LUN added to stotrage group"

########CHANGING LUN NAME
$naviseccli -h $emc_spA chglun -l 10 -name arkvsarath
echo "done LUN name changed"


as you see from the code iam not a good programmer but now the question is it takes tooo long about 5.30 hours in total to bind the lun to the raid group

and is it possible for me to add the lun to the storage group as the binding goes on and further present it to the server.

the total capacity of the LUN is 3.5 TB

Thanks in advance

Sarath

  • RyanP2

    261 Posts

    526

    0

    Posted August 31st, 2010 09:00

    What version of Flare is on this array? I know there is a "fast bind" feature on the CX arrays where the lun is immediately available to give to the host. I am wondering if the lun is available to be put into the storage group, but in the background it still hasn't reached that "bound" state. What state is the lun in after issuing the command for the bind? "Binding"?

    5.3 hours for that size lun (depending on the rate) may be accurate.

    -Ryan

  • kelleg

    6 Operator

    •

    4537 Posts

    526

    0

    Posted August 31st, 2010 10:00

    AX4-5 - does this support "fast bind"?

    glen

  • robi_88c571

    21 Posts

    526

    0

    Posted September 4th, 2010 23:00

    you might be interested to see page 18 of attached Guide.

    1 Attachment