Start a Conversation

Unsolved

27 Posts

2712

September 12th, 2018 04:00

unable to claim Netapp volumes on Vplex as LUNs are not divisible by 4k

Hello,

I am trying to encapsulate some Netapp LUNs created via Windows.

The error I am getting is "the storage-volume does not have a capacity divisible by the system block size (4K and cannot be claimed."

I tried expanding the volume so that it becomes divisible by 4K, I even tried creating new Netapp volumes divisible by 4 K, but no luck, the new volumes have the same problem whenever I try to claim them.

Please advise.

Thanks

286 Posts

September 12th, 2018 07:00

Have you seen this?

https://support.emc.com/kb/461229

Many years ago a customer created this script for his environment

#!/usr/bin/ksh

#run "netapp_vplex_resize.ksh arrayname lunname" to resize the LUN until it is 4K divisible

#requires extra space in the volume for increased LUN sizes

#requires you to be able to remotely execute commands on the filer through remsh

#you must rediscover the array through VPLEX once resizing is complete.

ARRAY=$1

LUN=$2

COUNT=0

SIZE=$(remsh $ARRAY lun show -v $LUN | grep $LUN | awk '{print $3}' | sed 's/[()]//g')

ORIGSIZE=$SIZE

NEWSIZE=$SIZE

echo "current size is $SIZE"

DIVSIZE=$(echo "$SIZE / 4096" | bc -l)

#echo "LUN divided by 4096 equals $DIVSIZE"

INTERGER=$(echo $DIVSIZE | grep -c 00000000000000000000)

while [[ $INTERGER -eq 0 ]]

do

        COUNT=$(( $COUNT + 1 ))

        NEWSIZE=$(remsh $ARRAY lun resize $LUN $(( $NEWSIZE + 1 )) | awk '{print $NF}' | sed 's/[()]//g')

        DIVSIZE=$(echo "$NEWSIZE / 4096" | bc -l)

        echo "new LUN size divided by 4096 equals $DIVSIZE"

        INTERGER=$(echo $DIVSIZE | grep -c 00000000000000000000)

done

echo "LUN is divisible by 4096"

echo "$2 added $(( $(( $NEWSIZE - $ORIGSIZE )) / 1048576 )) MB in $COUNT resizes"

echo "$2 added $(( $(( $NEWSIZE - $ORIGSIZE )) / 1048576 )) MB in $COUNT resizes" >> /home/cschm/netapp_vplex_resize.out

I just looped through it for each of the LUNs on the arrays with

for LUN in $(remsh ahnetap002 lun show| awk '{print $1}')

do

/home/cschm/netapp_vplex_resize.ksh ahnetap002 $LUN

Done

And

for LUN in $(remsh ahnetap001 lun show| awk '{print $1}')

do

/home/cschm/netapp_vplex_resize.ksh ahnetap001 $LUN

Done

1 Message

May 12th, 2019 08:00

Hi,

I have the same issue. Even though I make sure that the netapp luns are 4k divisible, Vplex complains that they are not 4k divisible.

Were you able so solve the issue ? 

This article https://support.emc.com/kb/461229 cannot be opened with my current EMC credentials.

Regards,

No Events found!

Top