You are not logged in.

#1 2016-03-02 15:25:08

pablox
Member
From: /home/chile/santiago/
Registered: 2008-05-14
Posts: 183
Website

Expand partition containing a zpool

I installed arch on zfs almost a year ago, I don't remember how, I set up a zvol (or zpool, sorry if the concept is not right), now I realized that I'm running out of space, and I don't know how grow it.

Afaik, I need to expand the partition first, but I'm not sure how to do it hmm, and searching doesn't give us results either....

ps.- i'm using a gpt disk


Geeks & Linux Atelier
An eye for an eye ... ends in making everybody blind -- Mahatma Gandhi
dotfiles

Offline

#2 2016-03-08 00:37:41

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: Expand partition containing a zpool

Firstly, you need to make sure the “autoexpand” property is set to “on” on the pool (by default it's off).
If there is unallocated space the partition can be expanded into, you can use a tool like parted(8). Make sure you have a backup, it's very easy to get partition manipulation wrong.

If you can't resize the existing partition, you have a couple of alternatives:
A) expand the pool by adding another VDEV
B) use mirrors - attach a new, suitably sized VDEV and detach the old one.

Offline

Board footer

Powered by FluxBB