Updated: Pushed version-05 of – Creating A DevOps Like Environment In Oracle Solaris

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

I just pushed version-05 of – Creating A DevOps Like Environment In Oracle Solaris

Below are the details of this update, for the code and full detail please check out the git repository here.

Version 0.5

Added: This version adds the VM/Zone image rotate i.e. -r (–rotateImg) option.

With this version you can now update/rollback an image using the newest ZFS copy.

For example:

z-12345-jir1 was created on 10/1


z-12345-jir2 was created on 10/2


z-12345-jir3 was created on 10/3

If you remove z-12345-jir2 all changes/updates consume disk space eve it was deleted, it will only be freed if z-12345-jir1 will be removed which is still in use.

To get around this issue.

You can use the option -r which will clone/create a new zfs file system in z-12345-jir1 with the prefix of _clone.

Next, it will copy by using rsync –delete to back-date the clone with the original content.

Finlay, it will switch / rename mount points and snaps.

Note: Currently the original image / snap will only be renamed with a time stamp and original name,
if all checks out to be good you manually deleted the image, once this functionally is fully tested I will add to auto delete the old original image/snap.

Updated: With this updated the VM/Zone deleted option was also updated.

Since you can now have multiple snaps/clones for the same VM/zone.

If you use the -d option the system will remove the VM/zone as well as all associated snaps/clones.

Updated: Created new directory cloneFiles/conf and cloneFiles/bin, all executable files ware moved to bin and all xml ware moved to conf, the xml files ware updated with the new file path.

Updated: Added a service for rsync application/apps1_mount:apps1sync, it will look like the below.

Rotaing a zone.

Log output – rotaing a zone.

For a batter explanation you can check out Part 1 and Part 2 on how Creating A DevOps Like Environment In Oracle Solaris.

You might also like – Articles related to Oracle Solaris 11.4/Solaris 12.

Like what you’re reading? please provide feedback, any feedback is appreciated.

Leave a Reply

Notify of