expand zfs

Status
Not open for further replies.

muzhik

Dabbler
Joined
Jan 24, 2016
Messages
19
Hi!
I've change volume size on my vmware host for freenas server.
How to expand current zfs pool to new allocated free space on drive?
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
Hi!
I've change volume size on my vmware host for freenas server.
How to expand current zfs pool to new allocated free space on drive?
For the freeNAS boot volume? You should not be using vmdk disks for the zpool, the freeNAS VM should have bare metal access to the hard drives.
 

muzhik

Dabbler
Joined
Jan 24, 2016
Messages
19
For the freeNAS boot volume? You should not be using vmdk disks for the zpool, the freeNAS VM should have bare metal access to the hard drives.
unfortunately, i have only esxi server.
not for boot volume, for volume with zfs pool (network share).
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
How to expand current zfs pool to new allocated free space on drive?
You don't.

This setup is a very bad idea and you should understand the risks you are taking.

If you understand the risks and don't care about your data, the simplest way to expand would be to add a second virtual disk and then use the GUI to expand your pool. Please realize that this is a striped setup and if you lose either vmdk you will lose all data.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I think, but am not sure, that zpool online -e <device name> would do the trick. But as others have posted, this is a spectacularly bad idea if you care about your data at all.
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
If you've grown the underlying device you need to replace the device in the pool with itself. Ie offline it, wipe it, and replace.

Repeat with all devices in the vdev and then the vdev will expand.

This will only work if the vdev has redundancy.

If it does not you need to make a NEW slice, then replace the existing slice with that slice, then you can destroy the original slice.
 
Status
Not open for further replies.
Top