Difference between revisions of "ClusterUpdate"
From pressy's brainbackup
(Created page with "== Cluster Update == let's update our cluster running a flying zone: On both nodes: <pre> # scinstall -u update -b 11.3.26.0.5.0 -L accept </pre> [...] disable the zone-res...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
<pre> clrg switch -n <node> name-zone-rg </pre> | <pre> clrg switch -n <node> name-zone-rg </pre> | ||
− | Now set the BE UUID from the first node to the second | + | Now set the BE UUID from the first node to the second (DO NOT - if you are using 11.4 / 4.4 - destroyed the grub entry and system was not bootable; worked without setting it) |
<pre> first# /opt/SUNWsczone/sczbt/util/ha-solaris-zone-boot-env-id get | <pre> first# /opt/SUNWsczone/sczbt/util/ha-solaris-zone-boot-env-id get | ||
second# /opt/SUNWsczone/sczbt/util/ha-solaris-zone-boot-env-id set <uuid> | second# /opt/SUNWsczone/sczbt/util/ha-solaris-zone-boot-env-id set <uuid> | ||
Line 20: | Line 20: | ||
Having the storage-res/RG on the second node and the right UUID you can attach the zone: | Having the storage-res/RG on the second node and the right UUID you can attach the zone: | ||
− | <pre> # zoneadm -z <name> attach -x destroy-orphan-zbes </pre> | + | <pre> # zoneadm -z <name> attach -U -x destroy-orphan-zbes </pre> |
Check if the zone comes up with a normal state (boot and svcs -xv). If ok, shutdown the zone again. | Check if the zone comes up with a normal state (boot and svcs -xv). If ok, shutdown the zone again. | ||
Line 30: | Line 30: | ||
Now you can try to switch back... | Now you can try to switch back... | ||
− | + | And you could also upgrade your resource type version | |
+ | |||
+ | <pre> | ||
+ | |||
+ | # clrt list | ||
+ | SUNW.LogicalHostname:5 | ||
+ | SUNW.SharedAddress:3 | ||
+ | SUNW.HAStoragePlus:11 | ||
+ | ORCL.ha-zone_sczbt:2 | ||
+ | # clrt register ORCL.ha-zone_sczbt | ||
+ | # clrt register SUNW.HAStoragePlus | ||
+ | # clrt list | ||
+ | SUNW.LogicalHostname:5 | ||
+ | SUNW.SharedAddress:3 | ||
+ | SUNW.HAStoragePlus:11 | ||
+ | ORCL.ha-zone_sczbt:2 | ||
+ | ORCL.ha-zone_sczbt:4 | ||
+ | SUNW.HAStoragePlus:12 | ||
+ | # clrs list | ||
+ | pressy-zone-rs | ||
+ | pressy-zp-rs | ||
+ | # clrs show -p Type_version pressy-zone-rs | ||
+ | === Resources === | ||
+ | Resource: pressy-zone-rs | ||
+ | Type_version: 2 | ||
+ | --- Standard and extension properties --- | ||
+ | # /opt/SUNWsczone/sczbt/util/rt_upgrade + | ||
+ | Migration of resource:pressy-zone-rs to latest resource type version succeeded. | ||
+ | # clrs show -p Type_version pressy-zone-rs | ||
+ | === Resources === | ||
+ | Resource: pressy-zone-rs | ||
+ | Type_version: 4 | ||
+ | --- Standard and extension properties --- | ||
+ | # | ||
+ | # clrs show -p Type_version pressy-zp-rs | ||
+ | === Resources === | ||
+ | Resource: pressy-zp-rs | ||
+ | Type_version: 11 | ||
+ | --- Standard and extension properties --- | ||
+ | # clrs set -p Type_version=12 pressy-zp-rs | ||
+ | # clrt unregister SUNW.HAStoragePlus:11 | ||
+ | # clrt unregister ORCL.ha-zone_sczbt:2 | ||
+ | # | ||
+ | </pre> |
Latest revision as of 08:12, 22 August 2020
Cluster Update
let's update our cluster running a flying zone:
On both nodes:
# scinstall -u update -b 11.3.26.0.5.0 -L accept
[...]
disable the zone-resource
# clrs disable name-zone-res
reboot second cluster node where the RG is not running into the new BE after coming back, switch the RG to the updated node
clrg switch -n <node> name-zone-rg
Now set the BE UUID from the first node to the second (DO NOT - if you are using 11.4 / 4.4 - destroyed the grub entry and system was not bootable; worked without setting it)
first# /opt/SUNWsczone/sczbt/util/ha-solaris-zone-boot-env-id get second# /opt/SUNWsczone/sczbt/util/ha-solaris-zone-boot-env-id set <uuid>
Having the storage-res/RG on the second node and the right UUID you can attach the zone:
# zoneadm -z <name> attach -U -x destroy-orphan-zbes
Check if the zone comes up with a normal state (boot and svcs -xv). If ok, shutdown the zone again.
Now we can give the control back to the cluster
# clrs enable name-zone-res # clrg resume name-zone-rg
Now you can try to switch back...
And you could also upgrade your resource type version
# clrt list SUNW.LogicalHostname:5 SUNW.SharedAddress:3 SUNW.HAStoragePlus:11 ORCL.ha-zone_sczbt:2 # clrt register ORCL.ha-zone_sczbt # clrt register SUNW.HAStoragePlus # clrt list SUNW.LogicalHostname:5 SUNW.SharedAddress:3 SUNW.HAStoragePlus:11 ORCL.ha-zone_sczbt:2 ORCL.ha-zone_sczbt:4 SUNW.HAStoragePlus:12 # clrs list pressy-zone-rs pressy-zp-rs # clrs show -p Type_version pressy-zone-rs === Resources === Resource: pressy-zone-rs Type_version: 2 --- Standard and extension properties --- # /opt/SUNWsczone/sczbt/util/rt_upgrade + Migration of resource:pressy-zone-rs to latest resource type version succeeded. # clrs show -p Type_version pressy-zone-rs === Resources === Resource: pressy-zone-rs Type_version: 4 --- Standard and extension properties --- # # clrs show -p Type_version pressy-zp-rs === Resources === Resource: pressy-zp-rs Type_version: 11 --- Standard and extension properties --- # clrs set -p Type_version=12 pressy-zp-rs # clrt unregister SUNW.HAStoragePlus:11 # clrt unregister ORCL.ha-zone_sczbt:2 #