Raid group and LUN creation in EMC NS480
We are migrating our storage environment to the new Data center. As a result of which we had to replicate the storage environment from our current CX3-80 to the new NS-480. We had managed to get the excat snapshot of the existing setup in and excel sheet with raid type, lun number, raid group, lun size etc. We started like this:
1. The code 28 of the Flare on the NS-480 backend supports the navisecli as default not the classic navicli. So we had to create the security file for the user nasadmin on the Celerra control station in order to access the Clariion. We had created the user nasadmin on the Clariion as well.
/nas/opt/Navisphere/bin/naviseccli -AddUserSecurity -scope 0 -password-user nasadmin
2. We had only about 14 raid groups so we created them manually one comand at a time. This is just one example
/nas/opt/Navisphere/bin/naviseccli -h SPA createrg 101 0_1_0 1_1_0 0_2_0 1_2_0 0_1_1 1_1_1 0_2_1 1_2_1 -rm no -pri high -raidtype R10
3. Once the raid groups are in place, we had a simple script in place to bind the luns to the raid group.
---- Script starts -----
#!/bin/bash
FILE=/home/nasadmin/NewLun/Book1.csv
SP=a
while read line; do
RT=`echo $line awk -F\ '{print $1}'`
SZ=`echo $line awk -F\ '{print $2}'`
NU=`echo $line awk -F\ '{print $3}'`
RG=`echo $line awk -F\ '{print $4}'`
if [ "$SP" = "a" ]; then
SP=b
else
SP=a
fi
echo "echo $RT-$SZ-$NU-$RG" >> /home/nasadmin/LUN.sh
echo "/nas/opt/Navisphere/bin/naviseccli -h SPA bind $RT $NU -rg $RG -sp $SP -sq gb -rc 1 -wc 1 -cap $SZ" >> /home/nasadmin/LUN.sh
done< $FILE
---- Script end ----
The file Book1.csv is a pipe seperated list with raid type,lun size,lun number and raid group number. The lun ownership alternates between spa and spb.
That's done. Simple isn't it.
1. The code 28 of the Flare on the NS-480 backend supports the navisecli as default not the classic navicli. So we had to create the security file for the user nasadmin on the Celerra control station in order to access the Clariion. We had created the user nasadmin on the Clariion as well.
/nas/opt/Navisphere/bin/naviseccli -AddUserSecurity -scope 0 -password
2. We had only about 14 raid groups so we created them manually one comand at a time. This is just one example
/nas/opt/Navisphere/bin/naviseccli -h SPA createrg 101 0_1_0 1_1_0 0_2_0 1_2_0 0_1_1 1_1_1 0_2_1 1_2_1 -rm no -pri high -raidtype R10
3. Once the raid groups are in place, we had a simple script in place to bind the luns to the raid group.
---- Script starts -----
#!/bin/bash
FILE=/home/nasadmin/NewLun/Book1.csv
SP=a
while read line; do
RT=`echo $line awk -F\ '{print $1}'`
SZ=`echo $line awk -F\ '{print $2}'`
NU=`echo $line awk -F\ '{print $3}'`
RG=`echo $line awk -F\ '{print $4}'`
if [ "$SP" = "a" ]; then
SP=b
else
SP=a
fi
echo "echo $RT-$SZ-$NU-$RG" >> /home/nasadmin/LUN.sh
echo "/nas/opt/Navisphere/bin/naviseccli -h SPA bind $RT $NU -rg $RG -sp $SP -sq gb -rc 1 -wc 1 -cap $SZ" >> /home/nasadmin/LUN.sh
done< $FILE
---- Script end ----
The file Book1.csv is a pipe seperated list with raid type,lun size,lun number and raid group number. The lun ownership alternates between spa and spb.
That's done. Simple isn't it.
Comments
Post a Comment