Hi, Does anyone know how to force the [b]zpool[/b] command to perform an overlay when mounting the file system? I get the following error: # zpool import testpool cannot mount ''/testpool'': directory is not empty use legacy mountpoint to allow this behavior, or use the -O flag I can mount an overlay file system with: #zfs mount -aO but I want to be able to automatically mount overlay file systems when the machine boots up and during a zpool import. Is there any way to force an overlay of a file system with the [b]zpool[/b] command and using the a [b]reboot[/b]? Thanks again, ljs This message posted from opensolaris.org
Luke Schwab wrote:> Hi, > > Does anyone know how to force the [b]zpool[/b] command to perform an overlay when mounting the file system? > > I get the following error: > # zpool import testpool > cannot mount ''/testpool'': directory is not empty > use legacy mountpoint to allow this behavior, or use the -O flag > > I can mount an overlay file system with: > #zfs mount -aO > > but I want to be able to automatically mount overlay file systems when the machine boots up and during a zpool import.You would need to ''zfs set mountpoint=legacy <fs>'' and then put the mount in /etc/vfstab. We are not fans of overlay mounts :-) --matt