Solaris cluster clone: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „Kategorie:Solaris If you need to recreate a cluster node from a survived node, you need to do the following steps ==Clone system disk== For example via m…“)
 
m (Text replacement - "</source" to "</syntaxhighlight")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Kategorie:Solaris]]
[[Category:Solaris|Cluster Clone]][[Category:SunCluster|Clone]]
If you need to recreate a cluster node from a survived node, you need to do the following steps
If you need to recreate a cluster node from a survived node, you need to do the following steps


Line 16: Line 16:
# Edit /etc/vfstab of the clone to normal Devices
# Edit /etc/vfstab of the clone to normal Devices
# Edit /etc/system:
# Edit /etc/system:
<source lang=bash>
<syntaxhighlight lang=bash>
* Begin MDD root info (do not edit)
* Begin MDD root info (do not edit)
** rootdev:/pseudo/md@0:0,10,blk
** rootdev:/pseudo/md@0:0,10,blk
* End MDD root info (do not edit)
* End MDD root info (do not edit)
</source>
</syntaxhighlight>


Umount cloned disk
Umount cloned disk
Line 27: Line 27:
==Edit Cluster parameter==
==Edit Cluster parameter==
Get the right id from:
Get the right id from:
<source lang=bash>
<syntaxhighlight lang=bash>
# nawk '/cluster\.nodes\.[^.]*\.name/{split($1,field,"."); print field[3],$NF}' /etc/cluster/ccr/global/infrastructure  
# nawk '/cluster\.nodes\.[^.]*\.name/{split($1,field,"."); print field[3],$NF}' /etc/cluster/ccr/global/infrastructure  
1 node-a
1 node-a
2 node-b
2 node-b
</source>
</syntaxhighlight>


Edit the
Edit the

Latest revision as of 01:00, 26 November 2021

If you need to recreate a cluster node from a survived node, you need to do the following steps

Clone system disk

For example via metattach to the metaroot.

Edit normal Solaris parameter

/etc/nodename /etc/hostname.*

Check: /etc/inet/hosts

If mirrored by SVM do

  1. Edit /etc/vfstab of the clone to normal Devices
  2. Edit /etc/system:
* Begin MDD root info (do not edit)
** rootdev:/pseudo/md@0:0,10,blk
* End MDD root info (do not edit)

Umount cloned disk fsck cloned disk root slice

Edit Cluster parameter

Get the right id from:

# nawk '/cluster\.nodes\.[^.]*\.name/{split($1,field,"."); print field[3],$NF}' /etc/cluster/ccr/global/infrastructure 
1 node-a
2 node-b

Edit the

echo <nodeid> > /etc/cluster/nodeid

for example node-b:

echo 2 > /etc/cluster/nodeid

of the clone.