How to expand zpool?

Status
Not open for further replies.

eastatom

Cadet
Joined
Dec 14, 2014
Messages
2
OS: FreeNAS-9.10.1-U4 (ec9a7d3)


I want to extend da1's data6t zfs volume.

The total capacity of ESXi is 8T, and the capacity allocated by freebsd-zfs is now 6.0T.

Gpart show - free - I want to extend 1.8T capacity to data6t.

I wonder how.

Please give zfs related command.


=================================================================================



[root@freenas] /dev# gpart show

=> 34 16642998205 da1 GPT (7.8T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 12880707416 2 freebsd-zfs (6.0T)
12884901848 3758096391 - free - (1.8T)



[root@freenas] ~# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
data6t 5.97T 5.37T 608G - 33% 90% 1.00x ONLINE /mnt
freenas-boot 24.9G 12.8G 12.0G - - 51% 1.00x ONLINE -



[root@freenas] ~# zpool status

pool: data6t
state: ONLINE
scan: scrub repaired 0 in 8h34m with 0 errors on Sun Nov 6 08:34:07 2016
config:

NAME STATE READ WRITE CKSUM
data6t ONLINE 0 0 0
gptid/a24651d2-a175-11e4-8ee3-005056a041e6 ONLINE 0 0 0

errors: No known data errors
 

darkwarrior

Patron
Joined
Mar 29, 2015
Messages
336
Hey mate,
Are you using RDMs or Hardware RAID?
If you are (which is sure at some point), please be advised that currently you are running your pool inside a FreeNAS VM without any redundancy and without following the virtualisation Best practices (link below).
That means that you almost certainly will have issues at some point, going from complete dataloss to uncorrectable filecorruption............

http://www.freenas.org/blog/yes-you-can-virtualize-freenas/

Good luck
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
I wonder how.
Simple. You don't.

ZFS does not like disks that mysteriously change size. The only way to expand a pool (without adding vdevs, of course) is to replace drives with larger ones. No clones, expanding drives or assorted bad ideas.
 
Status
Not open for further replies.
Top