Upgraded Drives without autoexpand on now what

Status
Not open for further replies.

godofdew11

Dabbler
Joined
Dec 9, 2014
Messages
11
Alright, updated my 5 drives from 2tb to 4tb after a couple started throwing errors. Resilvered one at a time and at the end volume didnt grow bummer. Do some reading, learn about autoexpand, check, it wasnt on, crap. its turned on now, tried restarting and no such luck. How can I get my pool to recognize the larger drives?

Thanks,
Don
 

godofdew11

Dabbler
Joined
Dec 9, 2014
Messages
11
I see, rtfm, totally missed the next section sorry. could use help clarifying though, my disks are all currently online, the instructions appear to start with all drives offline, should i take them offline via GUI?

Thanks,
Don
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Can't say for sure, as I haven't needed to do this (I thought FreeNAS created pools with autoexpand=on by default). But it looks to me like you should be able to do the zpool online -e with the device already online.
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
Per the 9.10 Manual (I am guessing you are running 9.10):

To verify the autoexpand property, run this command from Shell, replacing Vol1 with the name of the volume to
expand:
zpool get autoexpand Vol1
NAME PROPERTY VALUE SOURCE
Vol1 autoexpand on local
If autoexpansion is not enabled, enable it by specifying the name of the ZFS volume:
zpool set autoexpand=on Vol1

8.1.12 Enabling ZFS Pool Expansion
It is recommended to enable the autoexpand property before you start replacing drives. If the property is not enabled
before replacing some or all of the drives, extra configuration is needed to inform ZFS of the expanded capacity.
Verify that autoexpand is set as described in the previous section. Then, bring each of the drives back online with the
following command, replacing the volume name and GPT ID for each disk in the ZFS pool:
zpool online -e Vol1 gptid/xxx
Online one drive at a time and check the status using the following example. If a drive starts to resilver, you need to
wait for the resilver to complete before proceeding to online the next drive.

Meh, didn't read the other comments fully... /Echo... my bad
 

godofdew11

Dabbler
Joined
Dec 9, 2014
Messages
11
thanks for the help, I am currently on 9.3 and my autoexpand was apparently off. possibly because this volume was recovered to this fresh install 9.3 after a 8.x failure. this may be a silly question but in the 9.3 manual the last step zpool online -e vol1 device name, what do i use for my device names? ada0-4?

Don
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
You can get that info via: zpool status

Example:
Code:
[root@ASC-FN01] ~# zpool status
  pool: ASC-Volume01
state: ONLINE
  scan: none requested
config:

        NAME                                            STATE     READ WRITE CKS                                                                              UM
        ASC-Volume01                                    ONLINE       0     0                                                                                   0
          mirror-0                                      ONLINE       0     0                                                                                   0
            gptid/1369570f-2aa7-11e6-895b-000c293acb47  ONLINE       0     0                                                                                   0
            gptid/141b8d14-2aa7-11e6-895b-000c293acb47  ONLINE       0     0                                                                                   0
          mirror-1                                      ONLINE       0     0                                                                                   0
            gptid/14d09730-2aa7-11e6-895b-000c293acb47  ONLINE       0     0                                                                                   0
            gptid/15929484-2aa7-11e6-895b-000c293acb47  ONLINE       0     0                                                                                   0


 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
Just looked at both the 9.3 and 9.10 manuals and they have similar info:

Online one drive at a time and check the status using the following example. If a drive starts to resilver, you need to
wait for the resilver to complete before proceeding to online the next drive.

To find the GPT ID information for the drives, use zpool status Pool_Name which will also show you if any drives
are failed or in the process of being resilvered:

zpool status Vol1
pool: Vol1
state: ONLINE
scan: scrub repaired 0 in 16h24m with 0 errors on Sun Mar 10 17:24:20 2013
config:
NAME STATE READ WRITE CKSUM
Vol1 ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gptid/d5ed48a4-634a-11e2-963c-00e081740bfe ONLINE 0 0 0
gptid/03121538-62d9-11e2-99bd-00e081740bfe ONLINE 0 0 0
gptid/252754e1-6266-11e2-8088-00e081740bfe ONLINE 0 0 0
gptid/9092045a-601d-11e2-892e-00e081740bfe ONLINE 0 0 0
gptid/670e35bc-5f9a-11e2-92ca-00e081740bfe ONLINE 0 0 0
errors: No known data errors

After onlining all of the disks, type zpool status to see if the drives start to resilver. If this happens, wait for the
resilvering process to complete.
Next, export and then import the pool:
zpool export Vol1
zpool import -R /mnt Vol1

Once the import completes, all of the drive space should be available. Verify that the increased size is recognized:

zpool list Vol1
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
Vol1 9.06T 1.41T 7.24T 31% 1.00x ONLINE /mnt

If you cannot see the extra space, you may need to run zpool online -e pool_name device_name for every device
listed in zpool status.
 

godofdew11

Dabbler
Joined
Dec 9, 2014
Messages
11
alright i thought so, but when i use the gptid it states no such device in pool
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
Post the output of zpool status (in CODE Tags please)
Code tags hint:
index.php
 

godofdew11

Dabbler
Joined
Dec 9, 2014
Messages
11
Code:
[root@freenas] ~# zpool status
  pool: Donsnetworkstorage
state: ONLINE
status: One or more devices are configured to use a non-native block size.
        Expect reduced performance.
action: Replace affected devices with devices that support the
        configured block size, or migrate data to a properly configured
        pool.
  scan: scrub repaired 0 in 4h58m with 0 errors on Sun May 22 04:58:52 2016
config:

        NAME                                            STATE     READ WRITE CKS                                           UM
        Donsnetworkstorage                              ONLINE       0     0                                                0
          raidz2-0                                      ONLINE       0     0                                                0
            gptid/38bb3ed6-0c0d-11e6-8926-6c626d3a4e60  ONLINE       0     0                                                0  block size: 512B configured, 4096B native
            gptid/3e54a463-0b0e-11e6-8989-6c626d3a4e60  ONLINE       0     0                                                0  block size: 512B configured, 4096B native
            gptid/91f9052c-0cf5-11e6-8f20-6c626d3a4e60  ONLINE       0     0                                                0  block size: 512B configured, 4096B native
            gptid/b2e5edd4-0e31-11e6-891f-6c626d3a4e60  ONLINE       0     0                                                0  block size: 512B configured, 4096B native
            gptid/42def392-0f13-11e6-a80d-6c626d3a4e60  ONLINE       0     0                                                0  block size: 512B configured, 4096B native

errors: No known data errors

  pool: freenas-boot
state: ONLINE
  scan: scrub repaired 0 in 0h2m with 0 errors on Sat May  7 03:47:03 2016
config:

        NAME                                          STATE     READ WRITE CKSUM
        freenas-boot                                  ONLINE       0     0     0
          gptid/73a1e3b8-089a-11e5-9d1f-6c626d3a4e60  ONLINE       0     0     0

errors: No known data errors
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
...and 'zpool online -e Donsnetworkstorage gptid/38bb3ed6-0c0d-11e6-8926-6c626d3a4e60' doesn't work? How about 'zpool online -e Donsnetworkstorage /dev/gptid/38bb3ed6-0c0d-11e6-8926-6c626d3a4e60'?
 

godofdew11

Dabbler
Joined
Dec 9, 2014
Messages
11
aha i think we have done it. thank you gents for talking me through it i was only using the number id not keeping the gpid/infront of them
appears to be as right as i can get it for now

thank you!
 
Status
Not open for further replies.
Top