Hey Nahum, Thanks for jumping in again to help. Below...
This is imprecise. It needs to find its "zones" ZFS pool. Unless explicitly > instructed otherwise SmartOS imports all ZFS pools it can find. It does > this via the mechanism implemented by "zpool import". > 1. How does it go about finding the zpools? Does it scan all disks? All partitions? The first hard disk? 2. "unless explicitly instructed otherwise": how do I control that process? (and, yes, once I understand it, happy to write up another wiki page....) > Just to harp on it a bit more, a "global zone" isn't a filesystem or a >> pool, it's just the context in which software runs that hasn't been started >> in a (non-global) zone. > > Harp accepted. Fair enough. > ZFS pools and the filesystems within them are a different issue, and like >> Ian said, don't have multiple pools with the same name in a SmartOS >> machine; it will cause headaches. > > Got it. > If it can't find the "zones" pool it will run the setup script unless >> you've booted in a way that indicated that you don't want to (see the >> menu.lst file shipped on the ISO) >> > I will look at it. Not documented anywhere? > > Are these all kernel-load options that set up as part of grub? Is it a >> logical flow? How do I control it? >> > There are some things you can add to the kernel command line to limit > which zpools get imported, but it's by name, so again, don't have multiple > pools with the same name. OK. > Where can I find a clear step by step description of the boot process from >> live media, so I can understand how it works and where I can customize? E.g. >> > In the code? I'm not sure if there's a single place with the whole boot > process documented outside the codebase. > > The process is pretty simple for the most part: > https://github.com/joyent/smartos-live/blob/master/overlay/generic/lib/svc/method/fs-joyent#L79-L180 Looking now. It looks like it looks for explicit list of zpools to import on the command-line? > If provided a list of zpools to import, import those with "zpool import > <poolname>", otherwise, run "zpool import" and then import all found pools > (again with "zpool import <poolname>". All intelligence on scanning the > disks for pools is delegated to the ZFS tools. > This is really important to understand. > Once it's done that, it mounts up the filesystems that store critical > configuration and finishes booting. > How does it know which to mount? > If you have a specific question about your use case, perhaps you might > want to ask that as well... Heh, probably should. In my case, just continuing the previous grub2 question. Booting up on servers that have multiple disks and partitions. Only some are configured for SmartOS, so need to ensure that it loads in the right way. -- Avi Deitcher Follow me http://twitter.com/avideitcher Read me http://blog.atomicinc.com ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
