Mark Furner wrote:
> PREPARE LOOPBACK DEVICE
> note need full path for file
>
> root at sol10 /export/home# lofiadm -a /export/home/t1_fs1.COPY.dd /dev/lofi/1
> root at sol10 /export/home# lofiadm
> Block Device File
> /dev/lofi/1 /export/home/t1_fs1.COPY.dd
> root at sol10 /export/home#
>
> ZFS MOUNT OF LOOPBACK DEVICE DOESNT WORK
>
> root at sol10 /export/home# zfs mount -o
> noexec,nosuid,noatime,nodevices,ro /dev/lofi/1 /fs1
> too many arguments
That is the wrong level of abstraction for ZFS. The file you have is a
pool not a filesystem. That means you need to import the pool into the
system before you can see the filesystems.
For example:
oversteer:pts/1# zpool create -f test c0t0d0s7
oversteer:pts/1# zpool export test
oversteer:pts/1# dd if=/dev/dsk/c0t0d0s7 of=/var/tmp/c0t0d0s7.copy
144585+0 records in
144585+0 records out
oversteer:pts/1# zpool import -d /var/tmp
pool: test
id: 8033455162408061258
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
test ONLINE
/var/tmp/c0t0d0s7.copy ONLINE
You don't need to use lofiadm at all but you do need to first import the
pool using zpool import.
--
Darren J Moffat