Skip to content

Commit 1497bc0

Browse files
committed
Clarify ipkg zone detach process
1 parent f3df804 commit 1497bc0

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

upgrade.md

Lines changed: 24 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,
68+
[detach them following the instructions below](#detach).
8169

8270
* Perform the update, optionally specifying the new boot-environment name:
8371
```terminal
@@ -92,22 +80,40 @@ 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+
<a name="detach"></a>
89+
### _ipkg_-branded zones **only** - detach procedure
90+
91+
For _ipkg_ branded zones only, it is necessary to shut down and detach prior
92+
to upgrading:
93+
```terminal
94+
# zoneadm -z <zonename> shutdown
95+
... use the following command to check when the zone has shut down ...
96+
# zoneadm -z <zonename> list -v
97+
# zoneadm -z <zonename> detach
98+
```
99+
It is also a good idea to take a ZFS snapshot of the zone root in
100+
case it's needed for rollback (such as if there are issues with the zone
101+
upgrade.)
102+
```terminal
103+
# zfs snapshot -r /path/to/zone@<old-release>
104+
```
105+
100106
### Troubleshooting
101107

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.
108+
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.
109+
Make sure to use a new BE for the update.
104110

105111
For example:
106112

107113
```terminal
108114
# beadm activate omnios-r151044
109115
# init 6
110-
# pkg update -f -r --be-name={{site.omnios_stable}}
116+
# pkg update -f -r --be-name={{site.omnios_stable}}
111117
```
112118

113119
## Installing the OmniOS CA Certificate

0 commit comments

Comments
 (0)