Jim Klimov
2012-Jan-11 11:48 UTC
[zfs-discuss] RFE: add an option/attribute to import ZFS pool without automounting/sharing ZFS datasets
I think about adding the following RFE to illumos bugtracker: add an option/attribute to import ZFS pool without automounting/sharing ZFS datasets I wonder if something like this (like a tricky workaround) is already in place? -- My rationale is the currently ongoing repairs and inspections of my pool, which often require reboots and lengthy imports of the pool in order to start/continue scrubbing. During this time I don''t benefit from automounting nor sharing the datasets, it only adds some 3+minute delays for the import. Actually, since the pool is in an uncertain state, inadvertent writes into its datasets *might* potentially be harmful and would best be avoided. I currently do this by "zpool import pool; zfs umount -a" However, skipping "zpool mount" step in the first place would suit me better and faster ;) -- Thanks, //Jim
Darren J Moffat
2012-Jan-11 12:00 UTC
[zfs-discuss] RFE: add an option/attribute to import ZFS pool without automounting/sharing ZFS datasets
On 01/11/12 11:48, Jim Klimov wrote:> I think about adding the following RFE to illumos bugtracker: > add an option/attribute to import ZFS pool without > automounting/sharing ZFS datasets > > I wonder if something like this (like a tricky workaround) > is already in place?-N Import the pool without mounting any file systems. If it isn''t mounted it can''t be shared. -- Darren J Moffat
Jim Klimov
2012-Jan-11 12:14 UTC
[zfs-discuss] RFE: add an option/attribute to import ZFS pool without automounting/sharing ZFS datasets
2012-01-11 16:00, Darren J Moffat ?????:> > > On 01/11/12 11:48, Jim Klimov wrote: >> I think about adding the following RFE to illumos bugtracker: >> add an option/attribute to import ZFS pool without >> automounting/sharing ZFS datasets >> >> I wonder if something like this (like a tricky workaround) >> is already in place? > > > -N > > Import the pool without mounting any file systems. > > > If it isn''t mounted it can''t be shared. >Thanks! Sounds good, except that I don''t see this description in the manpages (oi_148a LiveUSB I''m currently repair-booting from). The flag is listed in the command-line help though (zpool -h). Thanks, I''ll try that the next boot ;) //Jim