VMware Solutions Discussions

Re: lun resize

lun size is

/vol/test/test_qtr/test.lun   64.0g (68718428160)   (r/w, online, mapped)

        /vol/test/test_qtr/test1.lun   15.9g (17119051776)   (r/w, online, mapped)

Re: lun resize

Was the LUN created with "-o noreserve" switch? The LUN may have space reservation enabled. Could you try a "lun show -v"? If the LUN has reservation enabled, you can turn it off by "lun set reservation <lun-path> disable" command. Then try the lun resize command again.

Thanks,

Wei

Re: lun resize

ok i disabled space reservation but

resizing the lun still gives that error

lun resize: New size exceeds this LUN's initial geometry

lun resize: max size: 65535m (68718428160)

Highlighted

Re: lun resize

You may need to increase the volume size, then re-size the LUN under the volume.

Good luck

Henry

Re: lun resize

i already increased the volume size

/vol/test/               104GB       62GB       41GB      60%  /vol/test/

/vol/test/.snapshot       25GB        0TB       25GB       0%  /vol/test/.snapshot

/vol/test/test_qtr/test.lun   64.0g (68718428160)   (r/w, online, mapped)

        /vol/test/test_qtr/test1.lun   15.9g (17119051776)   (r/w, online, mapped)

lun show -v /vol/test/test_qtr/test.lun

        /vol/test/test_qtr/test.lun   64.0g (68718428160)   (r/w, online, mapped)

                Serial#: dfkpVZdQYdQ4

                Share: none

                Space Reservation: disabled

                Multiprotocol Type: vmware

                Maps: test=10

                Occupied Size:   46.3g (49682784256) 

                Creation Time: Tue Jun 14 21:51:55 PDT 2011

                Cluster Shared Volume Information: 0x0

Re: lun resize

i was able to resize another lun under the same volume. just not this lun. any idea?

Re: lun resize

What exactly is not clear in error message?

lun resize: New size exceeds this LUN's initial geometry

When LUN size is increased, LUN geometry (as returned to client) has to be adjusted. It is adjusted so that it remains compatible with old size and disk layout. This is not possible with new size you requested - geometry change may result in incompatible layout and client data corruption.

Re: lun resize

Can you run the command "lun maxsize <path>", where <path> is the volume or qtree path? You may need to eliminate the volume snapshot reserve.

Wei

Re: lun resize

this is what I see

lun maxsize /vol/test

Space available for a LUN of type: solaris, aix, hpux, linux, netware, vmware, openvms, xen, solaris_efi or image

Without snapshot reserve: 58041m (60860399616)

With snapshot reserve: 58041m (60860399616)

With complete snapshot reserve: 29020m (30429675520)

Space available for a LUN of type: windows, windows_gpt, windows_2008 or hyper_v

Without snapshot reserve: 58031m (60850621440)

With snapshot reserve: 58031m (60850621440)

With complete snapshot reserve: 29015m (30425310720)

Re: lun resize

That's probably the reason why you can expand the LUN size. But I don't quite understand why with and without snapshot reserve the lun maxsize is the same. Which version of ONTAP are you using?

Thanks,

Wei

Forums