You are not logged in.

#1 2016-09-20 15:12:03

arshesney
Member
Registered: 2016-09-20
Posts: 7

root-on-zfs resize partition

Hello, I succesfully installed Arch on a root zfs following the guide in the wiki, without a separate boot partition, the current disk layout is a 1M boot_grub parition and rest assigned to the zroot pool.
I would like to switch to EFI boot and need room for the fat32 partition, would it be possible to operate on the partition holding the zpool using a tool like gparted?

Offline

#2 2016-09-20 20:47:30

null
Member
Registered: 2009-05-06
Posts: 398

Re: root-on-zfs resize partition

It's not possible to shrink zfs pools or remove non-redundant drives.

The fastest data and structure preserving way seems to be to use send and receive for snapshots. But if you've just installed al it's probably faster to just reinstall it..

Last edited by null (2016-09-21 09:06:31)

Offline

#3 2016-09-21 08:01:19

arshesney
Member
Registered: 2016-09-20
Posts: 7

Re: root-on-zfs resize partition

Yeah, it was a long shot, thank you.

Offline

#4 2017-02-04 23:01:46

PiroXiline
Member
Registered: 2013-08-06
Posts: 4

Re: root-on-zfs resize partition

Please don't say conclusive, if you don't know.
It is possible. In FreeBSD with:

# gpart resize

https://www.vultr.com/docs/resize-zfs-s … bsd-trueos.

In Arch gpart doesn't have zfs support (# gpart -L).

So boot from BSD and resize partition.

Offline

#5 2017-02-05 05:14:09

cedeel
Member
From: ~
Registered: 2009-08-25
Posts: 176
Website

Re: root-on-zfs resize partition

PiroXiline wrote:

Please don't say conclusive, if you don't know.

So boot from BSD and resize partition.

Your link refers to expanding a ZFS volume, which nobody has said is impossible. I believe that null was correct in saying that you can't shrink a ZFS volume.

Offline

#6 2017-02-05 11:29:05

null
Member
Registered: 2009-05-06
Posts: 398

Re: root-on-zfs resize partition

Yupp. That's what I said wink

Also for the expansion thing: zfsonlinux seems do have some trouble with autoexpansion but I'm pretty sure that you can expand a ZFS pool with zfsonlinux without having to boot up some FreeBSD.

Offline

Board footer

Powered by FluxBB