This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[SOLVED] Expand ZFS Pool

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
marcdd2
NewUser
NewUser
Posts: 2
Joined: 25 Aug 2012 18:57
Status: Offline

[SOLVED] Expand ZFS Pool

Post by marcdd2 »

I had a ZFS pool, raidz1, with 3x1TB drives and 1x500GB drive. I took the 500GB offline, switched it out with a 2TB drive, and ran the replace command. The pool didn't auto expand. I've read that I need to export and import the zpool, but I have no idea how to in N4F. Can someone point me in the right direction?
Last edited by marcdd2 on 24 Oct 2012 19:47, edited 1 time in total.

torf74
NewUser
NewUser
Posts: 9
Joined: 22 Oct 2012 05:48
Status: Offline

Re: Expand ZFS Pool

Post by torf74 »

To export a pool:

Code: Select all

zpool export poolname
If the pool is busy:

Code: Select all

zpool export -f poolname
To import a pool:

Code: Select all

zpool import
displays a list of available pools or simply...

Code: Select all

zpool import poolname
(All commands must run as root)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Expand ZFS Pool

Post by raulfg3 »

this command are available from webgui ( ZFS |Tools ).
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

marcdd2
NewUser
NewUser
Posts: 2
Joined: 25 Aug 2012 18:57
Status: Offline

Re: Expand ZFS Pool

Post by marcdd2 »

Thanks for the help guys. Import and export weren't options in my tools, but I did get it sorted out late last night.

I ran the following and saw that autoexpand was off.

Code: Select all

# zpool get autoexpand poolname
so I ran:

Code: Select all

# zpool set autoexpand=on poolname
My plan was to turn the autoexpand on and just do everything over agin since resilvering only took 30 min.

I took the disk offline(GUI) and tried to run a replace(GUI) expecting it to resilver and autoexpand. It shot me back an error, but when I brought the disk back online through the GUI it had expanded. My guess would be that it it was the taking the disk offline and then back online that did the trick once I turned autoexapnd to on.

Post Reply

Return to “ZFS (only!)”