9 Replies Latest reply: Sep 27, 2012 3:59 PM by 964668 RSS

    resize the zfs on solaris 5.10

    964668
      hi All,
      i have solaris 5.10 serving zfs filesystem via equallogic iscsi , i have resized the luns from the equallogic gui but i do not know how to resize at the solaris server. what are the steps? can i do it while filesystem online?
        • 1. Re: resize the zfs on solaris 5.10
          muvvas
          zpool online -e pool device...

          Brings the specified physical device online.

          This command is not applicable to spares or cache dev-
          ices.

          -e

          Expand the device to use all available space. If the
          device is part of a mirror or raidz then all devices
          must be expanded before the new space will become
          available to the pool

          http://docs.oracle.com/cd/E19253-01/819-5461/gazgk/index.html
          http://docs.oracle.com/cd/E19082-01/817-2271/githb/index.html

          Edited by: muvvas on Sep 26, 2012 1:59 PM
          • 2. Re: resize the zfs on solaris 5.10
            bobthesungeek76036
            You need to make sure autoexpand is on for the zpool:

            zpool set autoexpand=on <zpool>

            And you need to run "format" on the disk, set type to auto, relabel the disk and write the new label to disk.

            Then if you deport and import the pool it should see the expanded space.
            • 3. Re: resize the zfs on solaris 5.10
              Cindys-Oracle
              A few comments:

              1. If you want to use the autoexpand property or the zpool online -e option in the Solaris 10 release,
              you will need this patch: 148098-03.

              Other previous ways to expand the pool, like exporting and importing the pool, probably won't work.

              2. Create (separate) larger LUNs and replace the existing smaller LUNs with the larger LUNs by using
              the zpool replace command.

              3. Either feature can be used while the pool is online.

              Thanks, Cindy
              • 4. Re: resize the zfs on solaris 5.10
                964668
                thanks guys for your replies, here is the output of the command " zpool status -v"
                can someone give me a step by step on how to resize, also, can i do the resize while the filesystems online.? anything else i need to worry about doing this resize process?

                pool: scratch1
                state: ONLINE
                scrub: none requested
                config:

                NAME STATE READ WRITE CKSUM
                scratch1 ONLINE 0 0 0
                c2t6090A01870227DAACFDFA437AB2792ADd0 ONLINE 0 0 0

                errors: No known data errors

                pool: wgsi1-1
                state: ONLINE
                scrub: none requested
                config:

                NAME STATE READ WRITE CKSUM
                wgsi1-1 ONLINE 0 0 0
                c2t0690A0184007CD6F716594E001003050d0 ONLINE 0 0 0
                c2t6090A01840075DB43DDFB4421A04A0A9d0 ONLINE 0 0 0

                errors: No known data errors

                pool: wgsi1-2
                state: ONLINE
                scrub: none requested
                config:

                NAME STATE READ WRITE CKSUM
                wgsi1-2 ONLINE 0 0 0
                c2t0690A01840079D717165D4E0010090B5d0 ONLINE 0 0 0
                c2t6090A01840078DAC3DDF74351A04C019d0 ONLINE 0 0 0

                errors: No known data errors

                pool: wgsi1-3
                state: ONLINE
                scrub: none requested
                config:

                NAME STATE READ WRITE CKSUM
                wgsi1-3 ONLINE 0 0 0
                c2t0690A01840075D73716514E1010030FBd0 ONLINE 0 0 0
                c2t6090A01840074D9F3DDF341F1A04A09Dd0 ONLINE 0 0 0

                errors: No known data errors

                pool: wgsi1-4
                state: ONLINE
                scrub: none requested
                config:

                NAME STATE READ WRITE CKSUM
                wgsi1-4 ONLINE 0 0 0
                c2t0690A01840070D75716554E1010090C3d0 ONLINE 0 0 0
                c2t6090A01840077D933DDF640B1A042020d0 ONLINE 0 0 0

                errors: No known data errors

                pool: wgsi1-5
                state: ONLINE
                scrub: none requested
                config:

                NAME STATE READ WRITE CKSUM
                wgsi1-5 ONLINE 0 0 0
                c2t0690A01840078D76716594E10100F05Dd0 ONLINE 0 0 0
                c2t6090A0184007BD703DDF64D1190420E6d0 ONLINE 0 0 0

                errors: No known data errors

                pool: wgsi1-6
                state: ONLINE
                scrub: none requested
                config:

                NAME STATE READ WRITE CKSUM
                wgsi1-6 ONLINE 0 0 0
                c2t0690A01840073D787165D4E101005005d0 ONLINE 0 0 0
                c2t6090A0184007DD5C3DDFF4AF1904E022d0 ONLINE 0 0 0

                errors: No known data errors

                pool: wgsi1-7
                state: ONLINE
                scrub: none requested
                config:

                NAME STATE READ WRITE CKSUM
                wgsi1-7 ONLINE 0 0 0
                c2t0690A0184007DD79716514E20100700Cd0 ONLINE 0 0 0
                c2t6090A0184007BD2F3DDF1465190420B6d0 ONLINE 0 0 0

                errors: No known data errors
                • 5. Re: resize the zfs on solaris 5.10
                  Cindys-Oracle
                  Which Solaris 10 release is this? That is an important first step. Thanks, Cindy
                  • 6. Re: resize the zfs on solaris 5.10
                    964668
                    sure, here is the output.

                    uname -a
                    SunOS cartier 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T200

                    more /etc/release
                    Solaris 10 8/07 s10s_u4wos_12b SPARC
                    Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
                    Use is subject to license terms.
                    Assembled 16 August 2007
                    • 7. Re: resize the zfs on solaris 5.10
                      muvvas
                      have u verified the reply from Cindys, clearly mentioned

                      the kernel required was

                      148098-03.

                      thanks cindys ,for the approach to resolve the issues.
                      • 8. Re: resize the zfs on solaris 5.10
                        Cindys-Oracle
                        Solaris 10 8/07 is old enough that I don't remember how this works so
                        I would suggest creating a new small LUN and create a test pool so
                        you are not experimenting on your existing pools.

                        # zpool create test small-lun1

                        Review the pool size.

                        Expand the small-lun1 size.

                        Export the test pool.

                        Import the test pool.

                        Review the pool size.

                        Let us know the results.

                        Thanks,

                        Cindy
                        • 9. Re: resize the zfs on solaris 5.10
                          964668
                          thanks for the help,
                          i looked at "showrev -p |grep 148098-03"
                          not found

                          so you suggest that i do the following.
                          1- setup a test lun from the equallogic storage with small size
                          2- create/mount on solaris server
                          3- change size on test lun on equallogic
                          4- do the expansion on solaris