VMware Solutions Discussions

Highlighted

lun resize

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
Highlighted

lun resize

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

Highlighted

Re: lun resize

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)

Highlighted

Re: lun resize

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

Highlighted

Re: lun resize

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?

Highlighted

Re: lun resize

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

Highlighted

Re: lun resize

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%

Highlighted

Re: lun resize

should i set the fractional reserve to 0?

Highlighted

Re: lun resize

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

Re: lun resize

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

Highlighted

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)

Highlighted

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

Highlighted

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

Highlighted

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

Highlighted

Re: lun resize

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

Try the NEW Knowledgebase!
NetApp KB Site
Forums