VMware Solutions Discussions

lun resize

TDUBB1234

how do I resize a lun to fill out all the remaining space allowed?

lun maxsize /vol/voltest/voltest_qtr        

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

        Without snapshot reserve: 16353m (17147363328)

        With snapshot reserve: no space

        With complete snapshot reserve: no space

how do I use lun resize to automatically use all the remaining space?

27 REPLIES 27

kvenu

you can not increase the LUN size more than 10x times original.....example when you assign 10 gb to the lun originally you can grow the lun size max 100gb...not more than 100gb.

scottgelb

The 10x rule was posted in several places but also disproven in another post (was news to me too).  From priv set advanced run "lun geometry" and you can see the max size you can grow the lun which will likely be more than 10x.

VKALVEMULA

i also have same iissue:

is there any way that we can change this initial lun geometry without destroying and recreating lun

NAS01> vol size Vsphere_vol1

vol size: Flexible volume 'Vsphere_vol1' has size 800g

NAS01> lun resize /vol/Vsphere_vol1/vsphere_lun1 +100g

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

lun resize: max size: 511g (549747425280)

NAS01> lun maxsize /vol/Vsphere_vol1

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

        Without snapshot reserve: 744g (799895715840)

        With snapshot reserve: 744g (799895715840)

        With complete snapshot reserve: 372g (399963586560)

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

        Without snapshot reserve: 745g (799990732800)

        With snapshot reserve: 745g (799990732800)

        With complete snapshot reserve: 372g (399946014720)

NAS01*>  lun geometry /vol/Vsphere_vol1/vsphere_lun1

SCSI Disk Geometry:

             512 bytes/sector

            1024 sectors/track

              16 tracks/cylinder (heads)

           16384 sectors/cylinder

           64000 cylinders

      1048576000 sectors

         8388608 cylinder size (8 MB)

    536870912000 device size (512000 MB)

   549747425280 max resize size (524280 MB)

aborzenkov

You cannot. The only thing that can be changed is number of cylinders. But cylinder geometry (sectors per track and tracks per cylinder) is fixed when LUN is created.

lwei

You can use "lun resize /vol/voltest/voltest_qtr  +16353m".   -Wei     

TDUBB1234

having a problem resizing a lun

df -h

/vol/test/               104GB       80GB       23GB      77%  /vol/test/

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

AGGR SHOW_SPACE

test                                130GB            48GB          volume

> lun resize /vol/test/test_qtr/test.lun +5g

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

lun resize: max size: 65535m (68718428160)

lwei

Was the LUN created with the -o noreserve option? If not, the LUN has space-reservation enabled. And there may not be enough space to expand the LUN.

Wei

TDUBB1234

vol options show

> vol options test

nosnap=on, nosnapdir=off, minra=off, no_atime_update=off, nvfail=off,

ignore_inconsistent=off, snapmirrored=off, create_ucode=on,

convert_ucode=off, maxdirsize=45875, schedsnapname=ordinal,

fs_size_fixed=off, compression=off, guarantee=volume, svo_enable=off,

svo_checksum=off, svo_allow_rman=off, svo_reject_errors=off,

no_i2p=off, fractional_reserve=100, extent=off, try_first=volume_grow,

read_realloc=off, snapshot_clone_dependency=off, nbu_archival_snap=of

you mean fractional reserve?

lwei

yeah, there is also snapshot reserve. Do a "df -g" and "df -g -A".   -Wei

TDUBB1234

df -g

/vol/test/ 104GB 80GB 23GB 77% /vol/test/

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

df -g -A

test 8491GB 488GB 8003GB 6%

test/.snapshot 446GB 7GB 439GB 2%

TDUBB1234

should i set the fractional reserve to 0?

lwei

Yeah, try that. BTW, what's the current LUN size?  -Wei

TDUBB1234

i changed fractional reserve to 0 on the volume but still cannot increase the lun size

TDUBB1234

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)

lwei

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

TDUBB1234

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)

HENRYPAN2

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

Good luck

Henry

TDUBB1234

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

aborzenkov

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.

lwei

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public