# zoneadm -z zone-01 attach -u |
Workaround for s10u8, or below
To avoid the issue described in this document, make sure that any local zones are available to be booted if required on the local node (in the case of a stand alone system) or on one node in the cluster (in the case of a clustered system) during the upgrade to Storage Foundation 5.1. This requires leaving local zones attached with zone roots mounted before starting the upgrade to SF 5.1.
Systems where local zones are controlled by VCS:
Offline the zone resources.
Leave online any Mount or DiskGroup resources which are required to be online in order for the zone root to be mounted.
Before starting the upgrade, attach the local zones to the system with the following command:
# zoneadm -z zone_name attach -F
Systems where local zones are outside of the control of VCS but have zone roots on a Volume Manager volume:
Shut down the local zones using the zoneadm or shutdown commands, leaving them attached.
Leave the zone root mounted and the underlying disk group imported.
In either case, the local zone should be in a state of 'installed' with the zone root mounted before starting the installation.
For example:
# zoneadm list -vci | grep zone1
- zone1 installed /zone1 native shared
# mount | grep zone1
/zone1 on /dev/vx/dsk/zonedg23/zonevol1 read/write/setuid/devices/delaylog/largefiles/qio/ioerror=mwdisable/dev=50459d8 on Sat Jan 23 10:44:27 2010
Once the local zone is in the installed state, this will allow the local zone to be booted as required during package removal/installation during the upgrade process and ensures that SF packages installed in the local zone stay synchronized with those in the global zone.
In the case of local zones having a zone root on a VxVM volume, the install program reports an error because the VxVM disk groups are imported during the upgrade. The upgrade continues and completes successfully, but you may see the following messages in the installation logs:
1 10:25:24 VRTSvxvm uninstall failed on rdgv240sol23
Checking for system volumes:
swap ...
ERROR: The following volumes are still open:
zonevol1 zonevol2 <=== THESE ARE VOLUMES USED FOR ZONEROOT
Please stop these volumes before removing this package.
pkgrm: ERROR: preremove script did not complete successfully
Removal of
...
These messages are harmless and can be safely ignored. They will not prevent VxVM from being upgraded to the 5.1 release
Systems already affected by this issue
If a system was upgraded to SF 5.1 while the local zones were detached, the local zones will still have previous versions of SF packages installed while the global zone will be running the latest 5.1 packages. This difference in package versions may cause unexpected failures of SF software running on the system and needs to be addressed as soon as possible.
To correct this situation, use one of the following methods:
* Downgrade SF in the global zone to the previous release with local zones detached so that the SF packages installed in the local zones are synchronized with packages in the global zone once more. Repeat the upgrade to SF 5.1 using the steps described in this document to ensure that the local zones are upgraded together with the global zones. Contact Veritas Support to assist with this downgrade.
* Reinstall the affected local zones, causing the local zones root file system to be recreated and package database to be re-initialized using packages currently installed in the global zone. Note that reinstallation will cause the zones root file system to be re-created, and as such any post installation configuration performed in the local zone will be lost and will need to be repeated once zone installation is complete. Reinstallation can be performed with the zoneadm commands as follows:
First any affected local zones need to be attached to the global zone such that they are in a state of 'installed' (note that attaching the local zone also verifies that the zone root is mounted):
# zoneadm list -vci | grep zone1
- zone1 configured /zone1 native shared
# zoneadm -z zone1 attach -F
# zoneadm list -vci | grep zone1
- zone1 installed /zone1 native shared
The local zone can now be uninstalled and reinstalled:
# zoneadm -z zone1 uninstall -F
# zoneadm -z zone1 install
Preparing to install zone
...