Getting error while trying to create a Solaris boot instance

I issue the following command to create a boot instance from an active boot instance on solaris 11.1.

beadm create -a -d "Oracle x86 64 BIT Solaris SunOS Rel 5.11 Ver 11.1 10/2012 Enable SSH [BACKUP]" OraSolBcp 

I get the following error below;-

 be_mount_callback: failed to mount dataset rpool/ROOT/OraSolBcp/var at /tmp/.be.AqaW_j/var: directory is not empty 
 be_mount: failed to mount BE (OraSolBcp) on /tmp/.be.AqaW_j 
 be_copy: failed to mount newly created BE 
 be_copy: destroying partially created boot environment 
 be_get_uuid: failed to get uuid property from BE root dataset user properties. 
 Unable to create OraSolBcp. 
 Unable to find message for error code: 1

How do I fix this error?

/tmp/.be.AqaW_j/var: directory is not empty

see if the named directory could be emptied and retry ...

/tmp/.be.AqaW_j/var

This directory is empty and gets created when the code below excutes:

beadm create -a -d "Oracle x86 64 BIT Solaris SunOS Rel 5.11 Ver 11.1 10/2012 Enable SSH [BACKUP]" OraSolBcp

Once you reboot it gets deleted. When I issue the code below before reboot:

ls -alt /tmp

This is what I get below:

total 655621
drwxrwxrwt  27 root     sys         2857 Jun 25 15:01 .
-r--------   1 Tenyhwa  staff    67108904 Jun 25 15:00 .SHMDpulse-shm-2833702401
drwx------   2 Tenyhwa  staff        117 Jun 25 15:00 tracker.msword_filter.XXXXq8aiam
drwx------   2 Tenyhwa  staff        117 Jun 25 15:00 tracker.msword_filter.XXXXxvaGZl
drwx------   2 Tenyhwa  staff        117 Jun 25 15:00 tracker.msword_filter.XXXXyraWYl
-r--------   1 Tenyhwa  staff    67108904 Jun 25 14:50 .SHMDpulse-shm-884535489
drwx------   2 Tenyhwa  staff        178 Jun 25 14:50 fam-Tenyhwa
drwx------   2 Tenyhwa  staff        117 Jun 25 14:38 tracker.msword_filter.XXXXz.ayVi
drwx------   2 Tenyhwa  staff        117 Jun 25 14:36 tracker.msword_filter.XXXXriaWpi
drwx------   2 Tenyhwa  staff        117 Jun 25 14:35 tracker.msword_filter.XXXXSEaimi
drwx------   2 Tenyhwa  staff        117 Jun 25 14:35 tracker.msword_filter.XXXXl1aOji
drwx------   2 Tenyhwa  staff        117 Jun 25 14:34 tracker.msword_filter.XXXXfraWci
drwx------   2 Tenyhwa  staff        117 Jun 25 14:34 tracker.msword_filter.XXXXzPaObi
drwx------   2 Tenyhwa  staff        117 Jun 25 14:34 tracker.msword_filter.XXXXVTaG_h
drwx------   2 Tenyhwa  staff        117 Jun 25 14:33 tracker.msword_filter.XXXXA9aW9h
drwx------   2 Tenyhwa  staff        117 Jun 25 14:33 tracker.msword_filter.XXXXnHay8h
-r--------   1 Tenyhwa  staff    67108904 Jun 25 14:11 .SHMDpulse-shm-2091827700
drwx------   2 root     root         117 Jun 25 11:57 .be.xAaW7f
drwxr-xr-x   2 Tenyhwa  staff        178 Jun 25 11:43 hsperfdata_Tenyhwa
-r--------   1 Tenyhwa  staff    67108904 Jun 25 11:41 .SHMDpulse-shm-4163100507
drwx------   2 Tenyhwa  staff        240 Jun 25 11:41 pulse-9GI79M9Kw7cN
drwx------   2 Tenyhwa  staff        180 Jun 25 11:41 .esd-60004
-r--------   1 Tenyhwa  staff    67108904 Jun 25 11:41 .SHMDpulse-shm-2038124043
srwxrwxrwx   1 Tenyhwa  staff          0 Jun 25 11:41 dbus-ueRHgAztG6
drwxrwxrwt   2 gdm      gdm          178 Jun 25 11:41 .ICE-unix
drwx------   2 Tenyhwa  staff        184 Jun 25 11:41 ssh-XXXX_6aGgf
srwxrwxrwx   1 Tenyhwa  staff          0 Jun 25 11:41 dbus-yRhHI1lN9H
drwx--x--x   4 root     gdm          273 Jun 25 11:41 gdm-auth-cookies-37ayId
srwxrwxrwx   1 root     root           0 Jun 25 11:41 dbus-nzzFlAHQCW
drwxr-xr-x   2 root     sys          178 Jun 25 11:40 hsperfdata_root
drwxrwxrwt   2 root     root         176 Jun 25 11:40 .X11-pipe
drwxrwxrwt   2 root     root         176 Jun 25 11:40 .X11-unix
-r--r--r--   1 root     root          11 Jun 25 11:40 .X0-lock
drwx------   2 pkg5srv  pkg5srv      117 Jun 25 11:40 tmpWRw4DN
srwxrwxrwx   1 mysql    mysql          0 Jun 25 11:40 mysql.sock
drwxr-xr-x   2 noaccess noaccess     178 Jun 25 11:40 hsperfdata_noaccess
drwxr-xr-x  35 root     staff         41 Jun 25 11:38 ..

Note each time I re-issue the command a new directory is created in tmp directory and begins with .be. see the directory listing above showing the line below:-

 drwx------   2 root     root         117 Jun 25 11:57 .be.xAaW7f 

This contains the var directory which is empty after the error below:

be_mount_callback: failed to mount dataset rpool/ROOT/OraSolBcp/var at /tmp/.be.xAaW7f/var: directory is not empty
 be_mount: failed to mount BE (OraSolBcp) on /tmp/.be.xAaW7f
 be_copy: failed to mount newly created BE
 be_copy: destroying partially created boot environment
 be_get_uuid: failed to get uuid property from BE root dataset user properties.
 Unable to create OraSolBcp.   Unable to find message for error code: 1

further search turned up this thread on oracle.com ... see if what they were talking at that link helps you out ... if yes, please post the steps you took to fix your specific issue so people here would know also ...

Thanks. I will read through what is posted at this link. I will report what I find.

Solution to the problem:-

The systems was upgraded from a legacy file system to zfs file system and therefore it was not using the entries set in the /etc/vfstab. By default ZFS file systems are automatically mounted at boot time without requiring you to edit the /etc/vfstab file. Override the default mount point by using the zfs set command to set the mountpoint property to a specific path for both legacy and zfs file boot environment instances. Also make appropriate entries in /etc/vfstab. See the Oracle Solaris 11.1 Administration: ZFS File Systems document for guidance. This was not easy! I spent a lot of time reading!