LU CREATE
This step is to create a new boot enviroment. It contains the following steps.
- detach mirror
- modified detached root mirror so it can be a boot device if error happens
- prepare exclusive list
- housekeep var, determine zone infor, shutdown zone if you can
- lucreate
detach mirror
Use metastat -a , metastat -p to check mirror information. And detache the mirror.
modified detached root mirror so it can be a boot device if error happens
Modify the detached root mirror. For example the root mirror used to be d3 and it contains d13,d23. Now the d23 is detached, we need to mount the d23 and modify its /etc/vfstab and /etc/system to make it bootable.
prepare exclusive list
When lu create , we need to copy the current root and var to the target root var. Some file system like nfs need to be exclueded.
Housekeep var,determine zone infor
The reasone to housekeep var is to speed up the lucreate. And for the upgrade procedure you may need more var space.
Use zoneadm list -vc to check the zone infor. If there are zones not in running but in installed status. You need to modify the /etc/zone/index file. Remove the installed zone infor from this file.
If it is ok to shutdown the zone. Then shut the zone done. Or there may be some warrnnings like the zone having some nfs file system and can not be copied to the new BE.
Lucreate
Now you can lucreate