Giter Club home page Giter Club logo

aix-export's People

Contributors

aka17034 avatar jlaneskytap avatar johnybradshaw avatar mlindahl avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aix-export's Issues

pigz?! really?

Most of the systems do not have pgzip installed as required by the export_lpar.ksh script.

Compressing file: /image/skytap-aix72.ova
./export_lpar.ksh[182]: ./pigz: not found.
mv: 0653-401 Cannot rename /image/skytap-aix72.gz to /image/skytap-aix72.ova:
A file or directory in the path name does not exist.

Export script should check size of exported disks against the actual size

Attempting to export my LPAR reports everything is fine:

autoadmin@my-aix-host:/dest/exportaix$ sudo ./export_lpar.ksh hdisk0 hdisk1 hdisk2 hdisk3

Disks:
Found device hdisk0, 17408 MB
Found device hdisk1, 2048 MB
Found device hdisk2, 3072 MB
Found device hdisk3, 4096 MB

Disk images will be created uncompressed in local directory.
Create these image(s)? (Yes/No)
Yes

Creating disk hdisk0.img
Creating disk hdisk1.img
Creating disk hdisk2.img
Creating disk hdisk3.img
Disks images created

Creating OVF file: my-aix-host.ovf
OVF Completed Successfully

However, from the disk files it is clear that the export failed:

autoadmin@my-aix-host:/dest/exportaix$ ll

total 8388656
drwxr-xr-x 2 autoadmi staff 256 Mar 08 11:40 ./
drwxr-xr-x 4 autoadmi staff 256 Mar 07 17:53 ../
-rwxr-xr-x 1 autoadmi staff 2226 Mar 07 17:49 export_lpar.ksh*
-rw-r--r-- 1 root system 1073741312 Mar 08 11:36 hdisk0.img
-rw-r--r-- 1 root system 1073741312 Mar 08 11:37 hdisk1.img
-rw-r--r-- 1 root system 1073741312 Mar 08 11:38 hdisk2.img
-rw-r--r-- 1 root system 1073741312 Mar 08 11:40 hdisk3.img
-rwxr-xr-x 1 autoadmi staff 7624 Mar 07 17:50 make_ovf.ksh*
-rw-r--r-- 1 root system 5206 Mar 08 11:40 my-aix-host.ovf

Expect:
The script should not blindly eat any errors while reporting everything was successful. A rough comparison of the physical disk size compared to the created file would have quickly indicated a failure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.