Can I make a pool not mount on boot? I seem to recall reading somewhere how to do it, but can''t seem to find it now. -- John
John Andrunas wrote:> Can I make a pool not mount on boot? I seem to recall reading > somewhere how to do it, but can''t seem to find it now. > >You can''t do this at a pool level, but you can at a zfs/zvol level. to prevent a filesystem or vol from being mounted at boot: zfs set canmount=no <vol|fs> You''ll need to say ''zfs set canmount=yes <vol|fs>'' later on if you want to mount it. -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA Timezone: US/Pacific (GMT-0800)
----- "John Andrunas" <john at andrunas.net> skrev:> Can I make a pool not mount on boot? I seem to recall reading > somewhere how to do it, but can''t seem to find it now.I guess saying zfs mountpoint=legcy will help this, but still, that''s for the dataset, not the pool Vennlige hilsener / Best regards roy -- Roy Sigurd Karlsbakk (+47) 97542685 roy at karlsbakk.net http://blogg.karlsbakk.net/ -- I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er et element?rt imperativ for alle pedagoger ? unng? eksessiv anvendelse av idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og relevante synonymer p? norsk.
On 20 May, 2010 - John Andrunas sent me these 0,3K bytes:> Can I make a pool not mount on boot? I seem to recall reading > somewhere how to do it, but can''t seem to find it now.zpool export thatpool zpool import thatpool when you want it back. /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se
On Thu, 20 May 2010 11:53:17 -0700, John Andrunas <john at andrunas.net> wrote:>Can I make a pool not mount on boot? I seem to recall reading >somewhere how to do it, but can''t seem to find it now.As Tomas said, export the pool before shutdown. If you have a pool which causes unexpected trouble at boot time and you have no oppportunity to export it, you can: - boot from a live CD or do a failsafe boot, - zpool import -R the root pool in e.g. /a, - move /a/etc/zfs/zpool.cache out of the way - init 6 for a normal boot This way only the root pool will be imported. You can import any other pools afterwards. -- ( Kees Nuyt ) c[_]
Op Sat, 29 May 2010 20:34:54 +0200 schreef Kees Nuyt <k.nuyt at zonnet.nl>:> On Thu, 20 May 2010 11:53:17 -0700, John Andrunas > <john at andrunas.net> wrote: > >> Can I make a pool not mount on boot? I seem to recall reading >> somewhere how to do it, but can''t seem to find it now. > > As Tomas said, export the pool before shutdown.Why don''t you set the canmount=noauto option in the zfs dataset. -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | OpenSolaris 2010.03 b134 + All that''s really worth doing is what we do for others (Lewis Carrol)