Page 1 of 1

ZFS Pool Growing - if only one HD is needed to replaced

Posted: 05 Aug 2016 14:35
by redline
Hello
I have an older stable 9.1 Sandstorm running (embedded which boots from a USB stick)

Long ago i created a single ZFS RZ1 pool , where 3 HD's are 3TB and one was 2TB.
So the Pool could only use 2TB of the 3TB devices til yet.

I have now the needed new fresh 3TB (same model) and would like to replace the 2TB HD.
This way the pool should grow , if i switch autoexpand to ON before.

Most replace , resilver , pool growing threads describe the way to go, when all harddisk
are replaced against bigger ones. I have only one to replace.

Unfortunately it was a run and forget System for me. In the last 2 years i had an unwanted mandatory break
so i didn't follow the nas4free development and so i'm now unshure if upgrading the OS should be done
also. (first, later, or never touch)

I never missed anything and if only security is the reason to go 10.3 then i can stay 9.1 as well.

I could read here that the upgrade path before 9.3 isn't straight forward over Webgui and i should
go fresh install , with importing old config.

Because i'm not very familar with nas4free in the moment, because of my break ; i would like to ask for some
advice before i shoot something up.

The main reason is only increasing capacity , using the wasted space of the existig devices
and have all Harddisk then in the same size and model.

Re: ZFS Pool Growing - if only one HD is needed to replaced

Posted: 06 Aug 2016 01:07
by substr
Before doing a drive change, you should run a scrub on the pool, unless one has been done recently.

Re: ZFS Pool Growing - if only one HD is needed to replaced

Posted: 06 Aug 2016 03:00
by kenZ71
Not sure what a ZR3 is but sounds like your running a 3 drive mirror.

So follow these steps:

https://mattwilson.org/blog/solaris/rep ... -with-zfs/

If the pool don't recognize the new size run this:

zpool set autoexpand=on tank

Where tank is the name of your pool.

Yes, ZFS is awesome

Re: ZFS Pool Growing - if only one HD is needed to replaced

Posted: 08 Aug 2016 12:22
by redline
I scrubbed the pool. After this i tried to set autoexpand to ON , but had no success.

I have a SSH Connection over putty and am logged in as user with admin rights.

But i get allways the message "permission denied" when i try ...

zpool set autoexpand=on RZ1

When i tried to connect over putty as admin , i noticed that i don't remember the
password anymore. It is not nas4free.
So I can only use the user with admin rights in the moment.

Over the WebGui i'm logged in automatically as admin because the Password is automatic
filled in over the browser. But i cannot see the Password anymore.
Trying to send zpool Messages from the gui, i noticed that "set" and "get" is not to find
in the command list of the Gui.

Any ideas ??

Re: ZFS Pool Growing - if only one HD is needed to replaced

Posted: 08 Aug 2016 13:07
by redline
Resilvering is now running.
I used before "admin" instead of "root" as Login.
That was the only Problem. Sorry about the rumours.