Re: [gentoo-user] Install on ZFS
On Wednesday, August 16, 2017 6:12:03 AM CEST Grant wrote: > >>I'm trying to get started on my first Gentoo install on ZFS. My > >>remote server is booted to a Gentoo LiveCD and I've SSH'ed in but it > >>looks like the CD doesn't have ZFS tools: > >> > >>livecd ~ # zpool status > >>-bash: zpool: command not found > >> > >>Can I pull this off from here or do I need to mail a different CD to my > >>host? > >> > >>This server has 6 SSDs and I'm planning to set up a 2-way stripe and > >>3-way mirror. Any tips that might help me pull this off? > >> > >>- Grant > >> > > I did this not too long ago, using the boot disc and howto from > > FearedBliss: https://wiki.gentoo.org/wiki/User:Fearedbliss > > This looks like a great guide. Are there instructions for extracting > a portage archive over my running LiveCD OS so I can then emerge zfs > and execute this guide without mailing another CD-R to my host? > > - Grant On this, I don't know. There are guides on how to build a sysresccd yourself with additional software added. I was thinking of having to do that myself. But when I found this one, I stopped investigating that. -- Joost
Re: [gentoo-user] Install on ZFS
"J. Roeleveld"writes: > On 15 August 2017 16:13:37 GMT+02:00, "C." wrote: >>Rich Freeman writes: >>> Is this your first Gentoo install, or your first Gentoo+ZFS install? >>> If the former, you're definitely not doing this the easy way... >> >>Not easy, no. But definitely possible. I managed to do so. >> >>One thing to keep in mind, though, is that it might be best to _not_ >>put >>"/boot" on ZFS. I did and can't upgrade my zpool just yet, because - as >>far as I know (please corret me if I am wrong)- Grub ain't able to boot >>from a zpool that has been upgraded to latest ZoL (> 0.7). It works >>just >>fine with 0.6.5.11 though. >> >>Kind regards >>Christian. > > That's why the one I linked to actually tells you to create 2 > zpools. 1 for /boot and 1 for the rest. Right, sorry, must've overlooked your link. Just as I have forgotten about this during installation. Ah well. -- [ Insert favourite quote here. ]
Re: [gentoo-user] Install on ZFS
>>I'm trying to get started on my first Gentoo install on ZFS. My >>remote server is booted to a Gentoo LiveCD and I've SSH'ed in but it >>looks like the CD doesn't have ZFS tools: >> >>livecd ~ # zpool status >>-bash: zpool: command not found >> >>Can I pull this off from here or do I need to mail a different CD to my >>host? >> >>This server has 6 SSDs and I'm planning to set up a 2-way stripe and >>3-way mirror. Any tips that might help me pull this off? >> >>- Grant > > I did this not too long ago, using the boot disc and howto from FearedBliss: > https://wiki.gentoo.org/wiki/User:Fearedbliss This looks like a great guide. Are there instructions for extracting a portage archive over my running LiveCD OS so I can then emerge zfs and execute this guide without mailing another CD-R to my host? - Grant
Re: [gentoo-user] Install on ZFS
On 15 August 2017 16:13:37 GMT+02:00, "C."wrote: >Rich Freeman writes: >> Is this your first Gentoo install, or your first Gentoo+ZFS install? >> If the former, you're definitely not doing this the easy way... > >Not easy, no. But definitely possible. I managed to do so. > >One thing to keep in mind, though, is that it might be best to _not_ >put >"/boot" on ZFS. I did and can't upgrade my zpool just yet, because - as >far as I know (please corret me if I am wrong)- Grub ain't able to boot >from a zpool that has been upgraded to latest ZoL (> 0.7). It works >just >fine with 0.6.5.11 though. > >Kind regards >Christian. That's why the one I linked to actually tells you to create 2 zpools. 1 for /boot and 1 for the rest. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Install on ZFS
On 15 August 2017 15:44:21 GMT+02:00, Dalewrote: >John Covici wrote: >> On Tue, 15 Aug 2017 08:52:45 -0400, >> Alan McKinnon wrote: >>> On 15/08/2017 14:49, Grant wrote: I'm trying to get started on my first Gentoo install on ZFS. My remote server is booted to a Gentoo LiveCD and I've SSH'ed in but >it looks like the CD doesn't have ZFS tools: livecd ~ # zpool status -bash: zpool: command not found Can I pull this off from here or do I need to mail a different CD >to my host? This server has 6 SSDs and I'm planning to set up a 2-way stripe >and 3-way mirror. Any tips that might help me pull this off? - Grant >>> >>> The Gentoo LiveCD is really nothing more than a feel-nice tool for >>> people who want to install Gentoo from a Gentoo tool; it is very >much >>> completely not required. >>> >>> Do your install from any medium you feel like as long as it has all >the >>> tools you need. >>> >>> I suppose you *could* emerge the zfs tools on the running LiveCD >system >>> if it supports fs merging but it's probably easier to use a medium >that >>> already has everything you want >> >> I would like to know which cd has zfs support. I could not find one, >> so I wrote some catalyst stuff to make an install cd with zfs >support, >> but it would be nice if I would not have to do that, a fair bit of >> work. >> > >Just for giggles, SystemRescueCd maybe?? Gentoo based and it has a lot >of tools just not sure on that one. > >Dale > >:-) :-) Not systemresccd. But the one I linked to is a rebuild of that with zfs and multipathing added. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Install on ZFS
On 15 August 2017 14:49:43 GMT+02:00, Grantwrote: >I'm trying to get started on my first Gentoo install on ZFS. My >remote server is booted to a Gentoo LiveCD and I've SSH'ed in but it >looks like the CD doesn't have ZFS tools: > >livecd ~ # zpool status >-bash: zpool: command not found > >Can I pull this off from here or do I need to mail a different CD to my >host? > >This server has 6 SSDs and I'm planning to set up a 2-way stripe and >3-way mirror. Any tips that might help me pull this off? > >- Grant I did this not too long ago, using the boot disc and howto from FearedBliss: https://wiki.gentoo.org/wiki/User:Fearedbliss -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Install on ZFS
Rich Freemanwrites: > Is this your first Gentoo install, or your first Gentoo+ZFS install? > If the former, you're definitely not doing this the easy way... Not easy, no. But definitely possible. I managed to do so. One thing to keep in mind, though, is that it might be best to _not_ put "/boot" on ZFS. I did and can't upgrade my zpool just yet, because - as far as I know (please corret me if I am wrong)- Grub ain't able to boot from a zpool that has been upgraded to latest ZoL (> 0.7). It works just fine with 0.6.5.11 though. Kind regards Christian. -- [ Insert favourite quote here. ]
Re: [gentoo-user] Install on ZFS
On Tue, Aug 15, 2017 at 6:31 AM, John Coviciwrote: > > I would like to know which cd has zfs support. I could not find one, > so I wrote some catalyst stuff to make an install cd with zfs support, > but it would be nice if I would not have to do that, a fair bit of > work. > IMO this is the easiest option out there: http://www.funtoo.org/ZFS_Install_Guide (Just the parts about loading the zfs module.) It uses an Ubuntu 16.04 boot USB, and installs the packaged zfs modules/etc. You could certainly add them to a Gentoo or systemrescuecd boot disk, but Ubuntu should work just as well. All you need is something you can boot with that can create filesystems, mount them, expand tarballs, and run chroot. A lot of rescue CDs lack zfs support due to the whole GPL linking non-GPL concern, which many believe is illegal. If you're not putting root/usr on zfs then it is pretty easy to get zfs running on Gentoo (though in this case you probably don't even need a zfs-capable boot cd to start it). If you want to put root on zfs it gets trickier, and if you want to put boot on zfs it gets trickier still. There are docs for both, but I've never actually done them. If you want boot on zfs then your bootloader needs to support it and there are limitations on what features you can enable on your pool. I think that if boot is non-zfs then there are fewer restrictions on root, but you need some scripts to unmount it cleanly when shutting down (unless using systemd+dracut where you can pivot back to the initramfs for this - which apparently hasn't actually been tested on Gentoo). Is this your first Gentoo install, or your first Gentoo+ZFS install? If the former, you're definitely not doing this the easy way... -- Rich
Re: [gentoo-user] Install on ZFS
John Covici wrote: > On Tue, 15 Aug 2017 08:52:45 -0400, > Alan McKinnon wrote: >> On 15/08/2017 14:49, Grant wrote: >>> I'm trying to get started on my first Gentoo install on ZFS. My >>> remote server is booted to a Gentoo LiveCD and I've SSH'ed in but it >>> looks like the CD doesn't have ZFS tools: >>> >>> livecd ~ # zpool status >>> -bash: zpool: command not found >>> >>> Can I pull this off from here or do I need to mail a different CD to my >>> host? >>> >>> This server has 6 SSDs and I'm planning to set up a 2-way stripe and >>> 3-way mirror. Any tips that might help me pull this off? >>> >>> - Grant >>> >> >> The Gentoo LiveCD is really nothing more than a feel-nice tool for >> people who want to install Gentoo from a Gentoo tool; it is very much >> completely not required. >> >> Do your install from any medium you feel like as long as it has all the >> tools you need. >> >> I suppose you *could* emerge the zfs tools on the running LiveCD system >> if it supports fs merging but it's probably easier to use a medium that >> already has everything you want > > I would like to know which cd has zfs support. I could not find one, > so I wrote some catalyst stuff to make an install cd with zfs support, > but it would be nice if I would not have to do that, a fair bit of > work. > Just for giggles, SystemRescueCd maybe?? Gentoo based and it has a lot of tools just not sure on that one. Dale :-) :-)
Re: [gentoo-user] Install on ZFS
On Tue, 15 Aug 2017 08:52:45 -0400, Alan McKinnon wrote: > > On 15/08/2017 14:49, Grant wrote: > > I'm trying to get started on my first Gentoo install on ZFS. My > > remote server is booted to a Gentoo LiveCD and I've SSH'ed in but it > > looks like the CD doesn't have ZFS tools: > > > > livecd ~ # zpool status > > -bash: zpool: command not found > > > > Can I pull this off from here or do I need to mail a different CD to my > > host? > > > > This server has 6 SSDs and I'm planning to set up a 2-way stripe and > > 3-way mirror. Any tips that might help me pull this off? > > > > - Grant > > > > > The Gentoo LiveCD is really nothing more than a feel-nice tool for > people who want to install Gentoo from a Gentoo tool; it is very much > completely not required. > > Do your install from any medium you feel like as long as it has all the > tools you need. > > I suppose you *could* emerge the zfs tools on the running LiveCD system > if it supports fs merging but it's probably easier to use a medium that > already has everything you want I would like to know which cd has zfs support. I could not find one, so I wrote some catalyst stuff to make an install cd with zfs support, but it would be nice if I would not have to do that, a fair bit of work. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com
Re: [gentoo-user] Install on ZFS
On 15/08/2017 14:49, Grant wrote: > I'm trying to get started on my first Gentoo install on ZFS. My > remote server is booted to a Gentoo LiveCD and I've SSH'ed in but it > looks like the CD doesn't have ZFS tools: > > livecd ~ # zpool status > -bash: zpool: command not found > > Can I pull this off from here or do I need to mail a different CD to my host? > > This server has 6 SSDs and I'm planning to set up a 2-way stripe and > 3-way mirror. Any tips that might help me pull this off? > > - Grant > The Gentoo LiveCD is really nothing more than a feel-nice tool for people who want to install Gentoo from a Gentoo tool; it is very much completely not required. Do your install from any medium you feel like as long as it has all the tools you need. I suppose you *could* emerge the zfs tools on the running LiveCD system if it supports fs merging but it's probably easier to use a medium that already has everything you want -- Alan McKinnon alan.mckin...@gmail.com