You are not logged in.

#1 2016-06-30 09:06:33

Simone98RC
Member
From: Reggio Calabria, Italy
Registered: 2015-07-22
Posts: 22

Zfs configuration with Efi partition

Hi guys,
since Btrfs filesystem won't support yet standby/hibernate, I've decided to switch to Zfs.
However, I find it much confusing.

What I want to do?
> Create a Zfs partition containing the entire Arch Linux system with separated /home and swap volume;
> Symblinking /boot/efi to /dev/sda1 (that's my Efi partition, containing both Grub and Windows Boot Manager).

In the following code I've only set up the configuration of Zfs partition, tell me if some string is wrong.
After that, I need to symblinking (as specified above) the Efi partition, but I don't know what's the mount point.


curl http://portnumber53.com/0-zfs.sh | sh

modprobe zfs

zpool create -f archlinux /dev/sda2 && zfs create -o mountpoint=none archlinux/data && zfs create -o mountpoint=none archlinux/rootvol && zfs create -o mountpoint=/ archlinux/rootvol/default && zfs create -o mountpoint=/home archlinux/data/home

zfs create -V 16G -b $(getconf PAGESIZE) archlinux/swap && zfs set primarycache=metadata archlinux/swap && zfs set com.sun:auto-snapshot=false archlinux/swap && mkswap -f /dev/zvol/archlinux/swap

zfs umount -a && zfs set mountpoint=/ archlinux/rootvol/default && zfs set mountpoint=legacy archlinux/data/home && zpool set bootfs=archlinux/rootvol/default archlinux && zpool export archlinux && zpool import -d /dev/sda2 -R /mnt archlinux

swapon /dev/zvol/archlinux/swap

cp /etc/zfs/zpool.cache /mnt/etc/zfs/zpool.cache && zpool set cachefile=/etc/zfs/zpool.cache archlinux

I absolutely need your help, thanks in advance

Last edited by jasonwryan (2016-06-30 09:15:26)

Offline

Board footer

Powered by FluxBB