Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to put /home on a different drive with ZFS? [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bpaddock
Apprentice
Apprentice


Joined: 04 Nov 2005
Posts: 160
Location: Franklin, PA

PostPosted: Sat Mar 09, 2013 11:00 pm    Post subject: How to put /home on a different drive with ZFS? [Solved] Reply with quote

I'm trying to bring up a new system using ZFS.

The root file system and such I want on a small SSD.
I wan to put /home on a larger hard disk.

During the install ether I end up with broken mount points like /mnt/gentoo/home/home or /mnt/gentoo/home/mnt/gentoo/home
or I get good mount points but grub2 failes to install (it can't find /home?).

I've been following https://github.com/ryao/zfs-overlay/blob/master/zfs-install , so what is the correct way
to get /home on /dev/sdb with ZFS?


Last edited by bpaddock on Mon Mar 18, 2013 7:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
jpc22
Apprentice
Apprentice


Joined: 29 Jan 2012
Posts: 186

PostPosted: Mon Mar 11, 2013 1:32 am    Post subject: Reply with quote

you could mount the separate drive as whatever you want and create a symlink on your ssd to a home folder on that drive, it might work.
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1266

PostPosted: Mon Mar 11, 2013 2:03 am    Post subject: Reply with quote

You shouldn't need to do anything that contrived. A home partition is not required to boot. You should not need to do anything special during the install. You shouldn't even need to mount your home partition during the install.

All you you need to do is add an fstab entry for your home, something like:
Code:
 /dev/sdb1             /home           ext4            noatime         0 1
with the appropriate changes for your preferred file system.

Grub doesn't need to know about it. The only partition grub needs to know about is /boot. For boot up to work, you system needs /usr to be accessible. The rest are just needed if you actually want to do something with your system. Heck, you can even boot up without /usr. it just isn't pretty.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
bpaddock
Apprentice
Apprentice


Joined: 04 Nov 2005
Posts: 160
Location: Franklin, PA

PostPosted: Mon Mar 11, 2013 10:50 am    Post subject: Reply with quote

The Doctor wrote:
You shouldn't need to do anything that contrived. A home partition is not required to boot. You should not need to do anything special during the install. You shouldn't even need to mount your home partition during the install.

All you you need to do is add an fstab entry for your home, something like:
Code:
 /dev/sdb1             /home           ext4            noatime         0 1
with the appropriate changes for your preferred file system.

Grub doesn't need to know about it. The only partition grub needs to know about is /boot. For boot up to work, you system needs /usr to be accessible. The rest are just needed if you actually want to do something with your system. Heck, you can even boot up without /usr. it just isn't pretty.


Thank you. However I don't believe any of that applies with full-disk-ZFS. fstab is empty and there are no separate part ions other than BIOS-EF02.

I went ahead with the normal ZFS install, so now just need to get /home moved. Currently the problem is that rhome disappears on each reboot.
Back to top
View user's profile Send private message
ryao
Developer
Developer


Joined: 27 Feb 2012
Posts: 118

PostPosted: Mon Mar 18, 2013 7:14 pm    Post subject: Re: How to put /home on a different drive with ZFS? Reply with quote

bpaddock wrote:
I'm trying to bring up a new system using ZFS.

The root file system and such I want on a small SSD.
I wan to put /home on a larger hard disk.

During the install ether I end up with broken mount points like /mnt/gentoo/home/home or /mnt/gentoo/home/mnt/gentoo/home
or I get good mount points but grub2 failes to install (it can't find /home?).

I've been following https://github.com/ryao/zfs-overlay/blob/master/zfs-install , so what is the correct way
to get /home on /dev/sdb with ZFS?


Unfortunately, I don't frequent the forums very often, so my response here was slow, but this is a known issue:

https://github.com/zfsonlinux/zfs/issues/1078

The workaround is to run the ZFS commands outside of the chroot, which is what zfs-install does.
Back to top
View user's profile Send private message
bpaddock
Apprentice
Apprentice


Joined: 04 Nov 2005
Posts: 160
Location: Franklin, PA

PostPosted: Mon Mar 18, 2013 7:31 pm    Post subject: Re: How to put /home on a different drive with ZFS? [Solved] Reply with quote

ryao wrote:
.. this is a known issue:

https://github.com/zfsonlinux/zfs/issues/1078

The workaround is to run the ZFS commands outside of the chroot, which is what zfs-install does.


Thank you. Got the system up and running.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum