VMware Solutions Discussions

lun resize

TDUBB1234
38,241 Views

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

lwei
34,825 Views

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

TDUBB1234
34,825 Views

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
34,825 Views

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
34,825 Views

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
34,826 Views

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

TDUBB1234
34,826 Views

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
34,827 Views

should i set the fractional reserve to 0?

lwei
34,827 Views

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

TDUBB1234
34,829 Views

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

TDUBB1234
18,063 Views

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
18,064 Views

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
18,064 Views

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
18,066 Views

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

Good luck

Henry

TDUBB1234
17,123 Views

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

TDUBB1234
18,067 Views

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

aborzenkov
16,936 Views

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
16,937 Views

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

TDUBB1234
15,992 Views

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)

lwei
15,992 Views

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

TDUBB1234
14,217 Views

i dont understand either. this is my version

NetApp Release 8.0.1P3 7-Mode:

Public