Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GRUB 2, Full disk ZFS
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
hcaulfield57
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2012
Posts: 148

PostPosted: Fri May 09, 2014 3:41 am    Post subject: [SOLVED] GRUB 2, Full disk ZFS Reply with quote

Assuming I understand it correctly, GRUB 2 has support for booting full disk from ZFS, however I cannot find any documentation on how to actually do this. I used to have GRUB 2 installed on a small boot partition, but I moved over to full disk ZFS. My current setup has /dev/sda1 as a 32mb EFI partition, and /dev/sda2, /dev/sdb, /dev/sdc as a RAIDZ configuration. GRUB 2 installs fine, but I cannot get it to actually boot the system. My /etc/grub.d/40_custom is as follows:
Code:

menuentry "Gentoo Linux" {
    insmod zfs
    insmod part_gpt
    set root=(hd0,gpt1)
    linux /boot/linux root=ZFS=rpool/ROOT/linux dozfs=force
    initrd /boot/initramfs
}

When I turn on the computer, grub gives me "error: unknown filesystem." I'm not familiar enough with GRUB 2 to figure out how to fix this, any help would be much appreciated.
_________________
"To design the perfect anti-Unix, make all file formats binary and opaque, and require heavyweight tools to read and edit them." - The Art of Unix Programming


Last edited by hcaulfield57 on Sat May 10, 2014 3:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
necrose99
n00b
n00b


Joined: 23 Apr 2014
Posts: 8
Location: United States

PostPosted: Fri May 09, 2014 11:16 pm    Post subject: Funtoo Linux Reply with quote

Funtoo is a variant of gentoo,

on to the point ,

Funtoo has some nice documentation on ZFS installs , as well as you tube video's.
https://www.youtube.com/watch?v=SWyThdxNoP8

for adding drive or mirroring zfs root http://docs.oracle.com/cd/E19253-01/819-5461/gazgw/index.html

RPOOL/Funtoo just drop in Gentoo , myroot or etc.

shows using Slax Live as install media/rescue media.

other quick and dirty option would be to install Sabayon , {then do a bit of house keeping IE equo entropy rigo >>> to the dust bin }--if your an absolute Gentoo purest.
and the fact Sabayon although a pre-configured Gentoo , it is a rolling release and at times is really bleeding edge. Expect nosebleeds As Sabayon is the Ginnie Pig Cousin of Gentoo. extreme bleeding edge
...... it tends to suggest conf files and it can be a pain their are ways to keep entropy off them by masking them , but if migrating back to a pure Gentoo just killing entropy can do.
make file Sabayon uses is arrayed for categories and you will like wish to edit it from AMD64 testing to stable.
not much tweaking on config files left to do , less you prefer too, and since done for you can then edit at leisure or as required.
the build you own gentoo kernel etc with zfs or prune sabayon's at leasure.

make a archive of the install circa 4-8 gigs Uncompressed. , to a usb ,

follow the steps mentioned in Funtoo docs as a rough guide ,


for the following I'll Assume /DEV/SDB
ie 2nd drive for dual boot...
Partition 1 /boot
Partition N/A-2 (N/A if not using GPT) but if you do a 50-100 mb fat32 /boot/ufei with correct bios boot flag. hear. best read ufei guide....
Partition 3 (or 2 if not using GPT)
do a ext3 Partition do build gentoo ZFS or and anything else... or if you have a gentoo , install back it up ... then do zfs
do ZFS kernel portions of emerge

back up to usb etc drive you root.

do steps as suggested in zfs install guide by funtoo , making the rpool and root fs mounts for zfs.
unpack root then adjust things accordingly ie boot and fstab etc ,
zfs provides swap. space if initilized.


anyhow these are suggestions
and not gospel .. Its just a road map.....
were way you go is all you.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2970
Location: Germany

PostPosted: Sat May 10, 2014 12:08 am    Post subject: Reply with quote

does your grub have (lib)zfs useflags enabled?

Even if it worked, I'd still make a simple /boot partition using ext2 or something. The simpler you keep the boot procedure, the more likely it will actually work in every situation...
Back to top
View user's profile Send private message
hcaulfield57
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2012
Posts: 148

PostPosted: Sat May 10, 2014 6:22 am    Post subject: Reply with quote

frostschutz wrote:
does your grub have (lib)zfs useflags enabled?

Even if it worked, I'd still make a simple /boot partition using ext2 or something. The simpler you keep the boot procedure, the more likely it will actually work in every situation...


Yes, I have libzfs enabled for GRUB. My old setup had /boot on ext2, but I figured, hey why not try putting /boot on ZFS instead, since apparently this is supported, although it seems to be undocumented in so far as I can tell. I know there are a lot of ZFS Gentoo users (since it's well supported by the distro), so I was hoping someone had run into this problem before.
_________________
"To design the perfect anti-Unix, make all file formats binary and opaque, and require heavyweight tools to read and edit them." - The Art of Unix Programming
Back to top
View user's profile Send private message
hcaulfield57
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2012
Posts: 148

PostPosted: Sat May 10, 2014 3:21 pm    Post subject: Reply with quote

Thanks for the help everyone, but I decided just to switch to MBR with GRUB Legacy and put /boot on ext2. It's not the ideal solution, but I know this configuration works, so I'm just going to stick with what I know for now.
_________________
"To design the perfect anti-Unix, make all file formats binary and opaque, and require heavyweight tools to read and edit them." - The Art of Unix Programming
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