[indiana-discuss] How to deal with /opt folder?

Evan Layton Evan.Layton at Sun.COM
Thu Dec 4 08:33:29 PST 2008


It's likely that the mountpoint got messed up while these mounts were failing 
due to /opt not being empty. It's possible that repeated mounting and unmounting 
of the BE could have caused this. To fix the issue try the following steps:

if rpool/ROOT/opensolaris-8/opt is not currently mounted:
zfs set mountpoint=/opt rpool/ROOT/opensolaris-8/opt
zfs mount rpool/ROOT/opensolaris-8/opt

if rpool/ROOT/opensolaris-8/opt is mounted you'll need to unmount it before 
cleaning up the mountpoint property using the commands listed above.

-evan

Aubrey Li wrote:
> Hi list,
> 
> This problem remains in the 200811.  When /opt folder is not empty,
> "pkg image-update" will fail due to image-update cannot be done on live image.
> Empty the /opt folder solved the problem.
> 
> Similarly, beadm create new-BE will fail too if /opt folder is not empty.
> The workaround of image-update works as well for new BE creation.
> 
> The following is the zfs list on my side:
> 
> $ zfs list
> NAME                           USED  AVAIL  REFER  MOUNTPOINT
> rpool                         30.3G   114G  61.5K  /rpool
> rpool/ROOT                    11.3G   114G    18K  /rpool/ROOT
> rpool/ROOT/opensolaris-8      11.3G   114G  6.70G  legacy
> rpool/ROOT/opensolaris-8/opt  3.81M   114G  3.60M  /////opt
> rpool/export                  18.9G   114G    19K  /export
> rpool/export/home             18.9G   114G  18.9G  /export/home
> 
> Every time image-update, I removed everything under /opt folder and it was
> successful. Now, I saw the weird mountpoint is ////opt.
> 
> I'm not sure if it's a known bug or I did something wrong.
> How to deal with /opt folder?
> 
> Thanks,
> -Aubrey
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss




More information about the indiana-discuss mailing list