Jim Klimov
2014-03-19 14:11:02 UTC
Hello all,
"It is known" that one convenient way to create snapshots is to
go into the POSIX dataset's directory $dataset/.zfs/snapshot and
create a subdirectory there - this is translated into creation of
the ZFS snapshot. This also works across CIFS and NFS access, as
long as the user has ZFS permissions to manage the dataset.
However, this seems to not work with lofs (i.e. when the common
/export/home is lofs-mounted from GZ into an NGZ) - I can "cd"
into the directory, but can't make the snapshot.
Examples from oi_151a7:
***@zone1:~# cd /code/.zfs/snapshot/
***@zone1:/code/.zfs/snapshot# ls -la
./testgz: Not owner
total 0
dr-xr-xr-x 2 root root 2 Mar 17 12:40 .
dr-xr-xr-x 4 root root 4 Mar 16 14:57 ..
***@zone1:/code/.zfs/snapshot# cd /code/.zfs/snapshot/testgz
-bash: cd: /code/.zfs/snapshot/testgz: Not owner
***@zone1:/code/.zfs/snapshot# mkdir testlz
mkdir: Failed to make directory "testlz"; No such file or directory
Is this a misconfiguration or something intentionally missing from
ZFS or illumos (by some reasoning or not-yet-programmed or whatever)?
Thanks,
//Jim
"It is known" that one convenient way to create snapshots is to
go into the POSIX dataset's directory $dataset/.zfs/snapshot and
create a subdirectory there - this is translated into creation of
the ZFS snapshot. This also works across CIFS and NFS access, as
long as the user has ZFS permissions to manage the dataset.
However, this seems to not work with lofs (i.e. when the common
/export/home is lofs-mounted from GZ into an NGZ) - I can "cd"
into the directory, but can't make the snapshot.
Examples from oi_151a7:
***@zone1:~# cd /code/.zfs/snapshot/
***@zone1:/code/.zfs/snapshot# ls -la
./testgz: Not owner
total 0
dr-xr-xr-x 2 root root 2 Mar 17 12:40 .
dr-xr-xr-x 4 root root 4 Mar 16 14:57 ..
***@zone1:/code/.zfs/snapshot# cd /code/.zfs/snapshot/testgz
-bash: cd: /code/.zfs/snapshot/testgz: Not owner
***@zone1:/code/.zfs/snapshot# mkdir testlz
mkdir: Failed to make directory "testlz"; No such file or directory
Is this a misconfiguration or something intentionally missing from
ZFS or illumos (by some reasoning or not-yet-programmed or whatever)?
Thanks,
//Jim