ZFS file systems defined:
(zone01:/)# zfs list | grep appco
zone01-pool/zone01/dataset/appco 60.5K 99.9M 60.5K /appco
zone01-pool/zone01/dataset/appcocow 494K 99.5M 494K /appco/cow
zone01-pool/zone01/dataset/appcows 418K 800M 418K /appco/ws
(zone01:/)#
(zone01:/)#
Mounted:
(zone01:/)# df -k | grep appco
zone01-pool/zone01/dataset/appco 102400 60 102339 1% /appco
zone01-pool/zone01/dataset/appcows 819200 417 818782 1% /appco/ws
(zone01:/)#
(zone01:/)#
(zone01:/)# zfs get all zone01-pool/zone01/dataset/appcocow
NAME PROPERTY VALUE SOURCE
zone01-pool/zone01/dataset/appcocow type filesystem -
zone01-pool/zone01/dataset/appcocow creation Mon Jan 3 12:04 2011 -
zone01-pool/zone01/dataset/appcocow used 494K -
zone01-pool/zone01/dataset/appcocow available 99.5M -
zone01-pool/zone01/dataset/appcocow referenced 494K -
zone01-pool/zone01/dataset/appcocow compressratio 1.00x -
zone01-pool/zone01/dataset/appcocow mounted no -
zone01-pool/zone01/dataset/appcocow quota 100M local
zone01-pool/zone01/dataset/appcocow reservation 100M local
zone01-pool/zone01/dataset/appcocow recordsize 128K default
zone01-pool/zone01/dataset/appcocow mountpoint /appco/cow local
zone01-pool/zone01/dataset/appcocow sharenfs off default
zone01-pool/zone01/dataset/appcocow checksum on default
zone01-pool/zone01/dataset/appcocow compression off default
zone01-pool/zone01/dataset/appcocow atime on default
zone01-pool/zone01/dataset/appcocow devices on default
zone01-pool/zone01/dataset/appcocow exec on default
zone01-pool/zone01/dataset/appcocow setuid on default
zone01-pool/zone01/dataset/appcocow readonly off default
zone01-pool/zone01/dataset/appcocow zoned on inherited from zone01-pool/zone01/dataset
zone01-pool/zone01/dataset/appcocow snapdir hidden default
zone01-pool/zone01/dataset/appcocow aclmode groupmask default
zone01-pool/zone01/dataset/appcocow aclinherit restricted default
zone01-pool/zone01/dataset/appcocow canmount on default
zone01-pool/zone01/dataset/appcocow shareiscsi off default
zone01-pool/zone01/dataset/appcocow xattr on default
zone01-pool/zone01/dataset/appcocow copies 1 default
zone01-pool/zone01/dataset/appcocow version 4 -
zone01-pool/zone01/dataset/appcocow utf8only off -
zone01-pool/zone01/dataset/appcocow normalization none -
zone01-pool/zone01/dataset/appcocow casesensitivity sensitive -
zone01-pool/zone01/dataset/appcocow vscan off default
zone01-pool/zone01/dataset/appcocow nbmand off default
zone01-pool/zone01/dataset/appcocow sharesmb off default
zone01-pool/zone01/dataset/appcocow refquota none default
zone01-pool/zone01/dataset/appcocow refreservation none default
zone01-pool/zone01/dataset/appcocow primarycache all default
zone01-pool/zone01/dataset/appcocow secondarycache all default
zone01-pool/zone01/dataset/appcocow usedbysnapshots 0 -
zone01-pool/zone01/dataset/appcocow usedbydataset 494K -
zone01-pool/zone01/dataset/appcocow usedbychildren 0 -
zone01-pool/zone01/dataset/appcocow usedbyrefreservation 0 -
zone01-pool/zone01/dataset/appcocow logbias latency default
(zone01:/)#
(zone01:/)# mkdir /appco/cow
mkdir: Failed to make directory "/appco/cow"; File exists
(zone01:/)#
(zone01:/)# mount zone01-pool/zone01/dataset/appcocow
mount: Mount point cannot be determined
(zone01:/)#
(zone01:/)#
Filesystem /appco/cow is not mounted:
(zone01:/)# df -k /appco/cow
Filesystem kbytes used avail capacity Mounted on
zone01-pool/zone01/dataset/appco
102400 60 102339 1% /appco
(zone01:/)#
Traditional mounting doesn't work because of zfs current property:
(zone01:/)# mount -F zfs zone01-pool/zone01/dataset/appcocow /appco/cow
filesystem 'zone01-pool/zone01/dataset/appcocow' cannot be mounted using 'mount -F zfs'
Use 'zfs set mountpoint=/appco/cow' instead.
If you must use 'mount -F zfs' or /etc/vfstab, use 'zfs set mountpoint=legacy'.
See zfs(1M) for more information.
(zone01:/)#
(zone01:/)#
Mount is not success even after setting the mount point:
(zone01:/)# zfs set mountpoint=/appco/cow zone01-pool/zone01/dataset/appcocow
(zone01:/)#
(zone01:/)# df -k /appco/cow
Filesystem kbytes used avail capacity Mounted on
zone01-pool/zone01/dataset/appco
102400 60 102339 1% /appco
(zone01:/)#
(zone01:/)# df -k | grep appco
zone01-pool/zone01/dataset/appco 102400 60 102339 1% /appco
zone01-pool/zone01/dataset/appcows 819200 417 818782 1% /appco/ws
(zone01:/)#
(zone01:/)#
Set the mountpoint option as legacy:
(zone01:/)# zfs set mountpoint=legacy zone01-pool/zone01/dataset/appcocow
(zone01:/)#
(zone01:/)#
(zone01:/)# mount -F zfs zone01-pool/zone01/dataset/appcocow /appco/cow
(zone01:/)#
(zone01:/)#
(zone01:/)# df -k /appco/cow
Filesystem kbytes used avail capacity Mounted on
zone01-pool/zone01/dataset/appcocow
102400 494 101905 1% /appco/cow
Successfully mounted
(zone01:/)# df -k | grep appco
zone01-pool/zone01/dataset/appco 102400 60 102339 1% /appco
zone01-pool/zone01/dataset/appcows 819200 417 818782 1% /appco/ws
zone01-pool/zone01/dataset/appcocow 102400 494 101905 1% /appco/cow
(zone01:/)#
Set the property back
(zone01:/)# zfs set mountpoint=/appco/cow zone01-pool/zone01/dataset/appcocow
(zone01:/)# df -k /appco/cow
Filesystem kbytes used avail capacity Mounted on
zone01-pool/zone01/dataset/appcocow
102400 494 101905 1% /appco/cow
(zone01:/)#
or mount using zfs mount option
(zone01:/)# zfs mount zone01-pool/zone01/dataset/appcocow
No comments:
Post a Comment