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!
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
-
marcdd2
- NewUser

- Posts: 2
- Joined: 25 Aug 2012 18:57
- Status: Offline
[SOLVED] Expand ZFS Pool
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

- Posts: 9
- Joined: 22 Oct 2012 05:48
- Status: Offline
Re: Expand ZFS Pool
To export a pool:
If the pool is busy:
To import a pool:
displays a list of available pools or simply...
(All commands must run as root)
Code: Select all
zpool export poolnameCode: Select all
zpool export -f poolnameCode: Select all
zpool importCode: Select all
zpool import poolname- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Expand ZFS Pool
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
Wiki
Last changes
HP T510
-
marcdd2
- NewUser

- Posts: 2
- Joined: 25 Aug 2012 18:57
- Status: Offline
Re: Expand ZFS Pool
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.
so I ran:
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.
I ran the following and saw that autoexpand was off.
Code: Select all
# zpool get autoexpand poolnameCode: Select all
# zpool set autoexpand=on poolnameI 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.