Difference between revisions of "Bright:Node image management"
Jump to navigation
Jump to search
(Created page with "Node images are all stored in: <syntaxhighlight> chroot /cm/images/xxx </syntaxhighlight> == Edit the list of files not to be synchronised == <syntaxhighlight> cmsh -c "category use default; set exclude...") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
cmsh -c "category use default; set excludelistupdate; commit" | cmsh -c "category use default; set excludelistupdate; commit" | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == Update the Provisioning Nodes == | ||
| + | * Only applicable with multiple head nodes | ||
| + | <syntaxhighlight> | ||
| + | [root@head1 OpenFOAM]# cmsh | ||
| + | [head1]% softwareimage updateprovisioners | ||
| + | Provisioning nodes will be updated in the background. | ||
| + | [head1]% | ||
| + | Tue May 6 12:47:03 2014 [notice] head1: Provisioning started: sending head1:/cm/images/default-image to head2:/cm/images/default-image | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 26: | Line 36: | ||
Thu Jan 16 16:42:45 2014 [notice] head-boston: Provisioning completed: sent head-boston:/cm/images/GPU-image to gpu2:/, mode UPDATE, dry run = no | Thu Jan 16 16:42:45 2014 [notice] head-boston: Provisioning completed: sent head-boston:/cm/images/GPU-image to gpu2:/, mode UPDATE, dry run = no | ||
imageupdate -n gpu2 -w [ COMPLETED ] | imageupdate -n gpu2 -w [ COMPLETED ] | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == Sync the whole cluster == | ||
| + | <syntaxhighlight> | ||
| + | imageupdate -n gpuNode01..gpuNode16 -w | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == Prevent Nodes from Updating on reboot == | ||
| + | * Set the install mode to 'NOSYNC' | ||
| + | <syntaxhighlight> | ||
| + | [root@head-Boston ~]# cmsh | ||
| + | [head-Boston]% device | ||
| + | [head-Boston->device]% use hft1 | ||
| + | [head-Boston->device[hft1]]% show | grep -i install | ||
| + | Install boot record no | ||
| + | Install mode NOSYNC | ||
| + | Next install mode NOSYNC | ||
| + | [head-Boston->device[hft1]]% set installmode | ||
| + | auto full main nosync | ||
| + | [head-Boston->device[hft1]]% set installmode nosync | ||
| + | [head-Boston->device*[hft1*]]% commit | ||
| + | [head-Boston->device[hft1]]% | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 15:06, 16 February 2015
Node images are all stored in:
chroot /cm/images/xxxEdit the list of files not to be synchronised
cmsh -c "category use default; set excludelistupdate; commit"Update the Provisioning Nodes
- Only applicable with multiple head nodes
[root@head1 OpenFOAM]# cmsh
[head1]% softwareimage updateprovisioners
Provisioning nodes will be updated in the background.
[head1]%
Tue May 6 12:47:03 2014 [notice] head1: Provisioning started: sending head1:/cm/images/default-image to head2:/cm/images/default-imageSync an image without rebooting
[root@head-boston GPU-image]# cmsh
[head-boston]% device
[head-boston->device]% imageupdate -n gpu2
Performing dry run (use synclog command to review result, then pass -w to perform real update)...
[head-boston->device]%
Thu Jan 16 16:42:35 2014 [notice] head-boston: Provisioning started: sending head-boston:/cm/images/GPU-image to gpu2:/, mode UPDATE, dry run = yes, no data changes!
Thu Jan 16 16:42:40 2014 [notice] head-boston: Provisioning completed: sent head-boston:/cm/images/GPU-image to gpu2:/, mode UPDATE, dry run = yes, no data changes!
imageupdate -n gpu2 [ COMPLETED ]
[head-boston->device]% imageupdate -n gpu2 -w
[head-boston->device]%
Thu Jan 16 16:42:40 2014 [notice] head-boston: Provisioning started: sending head-boston:/cm/images/GPU-image to gpu2:/, mode UPDATE, dry run = no
[head-boston->device]%
Thu Jan 16 16:42:45 2014 [notice] head-boston: Provisioning completed: sent head-boston:/cm/images/GPU-image to gpu2:/, mode UPDATE, dry run = no
imageupdate -n gpu2 -w [ COMPLETED ]Sync the whole cluster
imageupdate -n gpuNode01..gpuNode16 -wPrevent Nodes from Updating on reboot
- Set the install mode to 'NOSYNC'
[root@head-Boston ~]# cmsh
[head-Boston]% device
[head-Boston->device]% use hft1
[head-Boston->device[hft1]]% show | grep -i install
Install boot record no
Install mode NOSYNC
Next install mode NOSYNC
[head-Boston->device[hft1]]% set installmode
auto full main nosync
[head-Boston->device[hft1]]% set installmode nosync
[head-Boston->device*[hft1*]]% commit
[head-Boston->device[hft1]]%