Skip to content

Commit 71e52de

Browse files
committed
Clarify ipkg zone detach process
1 parent f3df804 commit 71e52de

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

upgrade.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,8 @@ Paths not shown have not been tested and are **not supported**.
6464
# pkg set-publisher -r -O https://pkg.omnios.org/{{site.omnios_stable}}/extra extra.omnios
6565
```
6666

67-
* Shut down and detach any _ipkg_ branded zones (NB: linked zones such as
68-
the _lipkg_ and _sparse_ brands do **not** need to be detached):
69-
```terminal
70-
# zoneadm -z <zonename> shutdown
71-
... use the following command to check when the zone has shut down ...
72-
# zoneadm -z <zonename> list -v
73-
# zoneadm -z <zonename> detach
74-
```
75-
It is also a good idea to take a ZFS snapshot of the zone root in
76-
case it's needed for rollback (such as if there are issues with the zone
77-
upgrade.)
78-
```terminal
79-
# zfs snapshot -r /path/to/zone@<old-release>
80-
```
67+
* If you have any _ipkg_ branded zones, detach them following the instructions
68+
below.
8169

8270
* Perform the update, optionally specifying the new boot-environment name:
8371
```terminal
@@ -92,22 +80,39 @@ the _lipkg_ and _sparse_ brands do **not** need to be detached):
9280
# init 6
9381
```
9482

95-
* Re-attach any _ipkg_ zones:
83+
* If applicable, re-attach any _ipkg_ zones:
9684
```terminal
9785
# zoneadm -z <zonename> attach -u
9886
```
9987

88+
### _ipkg_-branded zones **only** - detach procedure
89+
90+
For _ipkg_ branded zones only, it is necessary to shut down and detach prior
91+
to upgrading:
92+
```terminal
93+
# zoneadm -z <zonename> shutdown
94+
... use the following command to check when the zone has shut down ...
95+
# zoneadm -z <zonename> list -v
96+
# zoneadm -z <zonename> detach
97+
```
98+
It is also a good idea to take a ZFS snapshot of the zone root in
99+
case it's needed for rollback (such as if there are issues with the zone
100+
upgrade.)
101+
```terminal
102+
# zfs snapshot -r /path/to/zone@<old-release>
103+
```
104+
100105
### Troubleshooting
101106

102-
In case a boot environment (BE) is not updating to the latest release, try to enable an older BE (in the example below `omnios-r151044`) and reboot. Then, update the BE.
103-
Make sure to use a new BE for the update.
107+
In case a boot environment (BE) is not updating to the latest release, try to enable an older BE (in the example below `omnios-r151044`) and reboot. Then, update the BE.
108+
Make sure to use a new BE for the update.
104109

105110
For example:
106111

107112
```terminal
108113
# beadm activate omnios-r151044
109114
# init 6
110-
# pkg update -f -r --be-name={{site.omnios_stable}}
115+
# pkg update -f -r --be-name={{site.omnios_stable}}
111116
```
112117

113118
## Installing the OmniOS CA Certificate

0 commit comments

Comments
 (0)