Вы находитесь на странице: 1из 1

When Solaris boots, it is loading ZFS

> > kernel modules. These kernel modules are checking all disks devices in
> > /dev, /devices directories for possibility of performing silent 'zpool
> > import -a'.
Not so - we don't do a zpool import -a, rather we go on the zpool.cache
file. If that file isn't present, you'll need to manually zpool import
pools in order for the system to see them.
==========================
Emulated Volumes as Swap or Dump Devices
To set up a swap area, create a ZFS volume of a specific size and then enable sw
ap on that device. Do not swap to a file on a ZFS file system. A ZFS swap file c
onfiguration is not supported.
In the following example, the 5-Gbyte tank/vol volume is added as a swap device.
# swap -a /dev/zvol/dsk/tank/vol
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 32,33 16 1048688 1048688
/dev/zvol/dsk/tank/vol 254,1 16 10485744 10485744
Using a ZFS volume as a dump device is not supported. Use the dumpadm command to
set up a dump device.

------------------------------
zfs create -V 60m test/testvol
newfs /dev/zvol/rdsk/test/testvol
mkdir /mnt/testvol
mount -F ufs /dev/zvol/dsk/test/testvol /mnt/testvol
touch /mnt/testvol/testfile
ls -lh /mnt/testvol/testfile
-rw-r--r-- 1 root root 0 2007-07-06 22:57 /mnt/testvol/testfile
zfs snapshot test/testvol@1
rm /mnt/testvol/testfile
mkdir /mnt/testsnapshot
mount -F ufs -o ro /dev/zvol/dsk/test/testvol@1 /mnt/testsnapshot

Вам также может понравиться