Managing cDOT images and packages

When you’re upgrading cDOT clusters, we keep copies of both the installation files (i.e. the tarballs) and the installation packages.

Note that the downloaded images are kept on each node, hence we’re using a system image command to manipulate them:

dot83cm::> system image package show
             Package
Node         Repository     Package File Name
------------ -------------- -----------------
dot83cm-01
             mroot
                            823_q_image.tgz
                            831RC1_q_image.tgz
                            83P1_q_image.tgz
                            83P2_q_image.tgz
                            83RC2_q_image.tgz
dot83cm-02
             mroot
                            822P2_q_image.tar.gz
                            823_q_image.tgz
                            831RC1_q_image.tgz
                            83P1_q_image.tgz
                            83P2_q_image.tgz
                            83RC2_q_image.tgz
11 entries were displayed.

Those can be deleted simply:

dot83cm::> system image package delete -node * -package 83P1_q_image.tgz
1 entries were deleted.

You can delete them off one or multiple nodes. To verify that it’s gone:

dot83cm::> system image package show
             Package
Node         Repository     Package File Name
------------ -------------- -----------------
dot83cm-01
             mroot
                            823_q_image.tgz
                            831RC1_q_image.tgz
                            83P2_q_image.tgz
                            83RC2_q_image.tgz
dot83cm-02
             mroot
                            822P2_q_image.tar.gz
                            823_q_image.tgz
                            831RC1_q_image.tgz
                            83P2_q_image.tgz
                            83RC2_q_image.tgz
9 entries were displayed.

Note that we also keep the unpacked tarball, only this time it’s cluster-wide hence we’re using a cluster image command to see what’s out there:

dot83cm::> cluster image package show
Package Version  Package Build Time
---------------- ------------------
8.3.1            8/31/2015 08:42:08
8.3.2            2/23/2016 22:29:11
8.3.2P1          4/14/2016 11:58:25
8.3.2P3          6/22/2016 04:16:50
8.3.2RC1         11/5/2015 08:41:17
8.3.2RC2         12/8/2015 05:24:13
8.3P1            4/7/2015 12:05:35
8.3P2            5/19/2015 03:34:02
8 entries were displayed.

They can also be deleted:

dot83cm::> cluster image package delete -version 8.3P1      
                                                                               
Package Delete Operation Completed Successfully

Because it’s a cluster-wide operation, there’s no need to specify a node.

dot83cm::> cluster image package show
Package Version  Package Build Time
---------------- ------------------
8.3.2            2/23/2016 22:29:11
8.3.2P1          4/14/2016 11:58:25
8.3.2P3          6/22/2016 04:16:50
8.3.2RC1         11/5/2015 08:41:17
8.3.2RC2         12/8/2015 05:24:13
8.3P1            4/7/2015 12:05:35
8.3P2            5/19/2015 03:34:02
7 entries were displayed.
Advertisements