Hello,
I writing some ansible playbooks for AIX tasks automation and I am encountering a issue that I am not understanding :
I would like use the module ibm.power_aix.alt_disk for doing the following command line :
alt_disk_copy -d $DISK -b update_all -l $NFS_MOUNT
I am using the module like this but seems, it is creating the alternate rootvg disk but not updating the filesets with the new AIX versions ...
Is someone have an idea how to use this module to be able to update all the filesets with the new AIX version ?
- name: Create the alternate disk copy
ibm.power_aix.alt_disk:
action: copy
bundle_name: 'update_all'
targets: '{{ alternate_disk }}'
image_location: '{{ aix_nfs_mount_point }}'
bootlist: true
This is my logs :
TASK [alternate_disk_creation : Create the alternate disk copy] **************************************************************************************************************
changed: [wwfcsunia264.fcs.ww.corp]
TASK [alternate_disk_creation : Display .msg] ********************************************************************************************************************************
ok: [wwfcsunia264.fcs.ww.corp] =>
msg: alt_disk copy operation completed successfully
TASK [alternate_disk_creation : Display .stderr] *****************************************************************************************************************************
ok: [wwfcsunia264.fcs.ww.corp] =>
msg: |-
Could not load program /usr/sbin/hdcryptmgr:
Could not load module /usr/lib/libhdcrypt.a(shr_64.o).
Dependent module /usr/lib/libcurl.a(libcurl.so.4) could not be loaded.
The module has an invalid magic number.
cannot access ./var/tmp/lpar2rrd-agent-10.223.2.70-lpar2rrd-wlmstat-36503950.txt: No such file or directory
0505-148 alt_disk_install: WARNING: an error occurred during backup.
TASK [alternate_disk_creation : Display .stdout] *****************************************************************************************************************************
ok: [wwfcsunia264.fcs.ww.corp] =>
msg: |-
Calling mkszfile to create new /image.data file.
Checking disk sizes.
Creating cloned rootvg volume group and associated logical volumes.
Creating logical volume alt_hd5.
Creating logical volume alt_hd6.
Creating logical volume alt_hd8.
Creating logical volume alt_hd4.
Creating logical volume alt_hd2.
Creating logical volume alt_hd9var.
Creating logical volume alt_hd3.
Creating logical volume alt_hd1.
Creating logical volume alt_hd10opt.
Creating logical volume alt_hd11admin.
Creating logical volume alt_dumplv1.
Creating logical volume alt_livedump.
Creating logical volume alt_fslv00.
Creating /alt_inst/ file system.
Creating /alt_inst/admin file system.
Creating /alt_inst/db2 file system.
Creating /alt_inst/home file system.
Creating /alt_inst/opt file system.
Creating /alt_inst/tmp file system.
Creating /alt_inst/usr file system.
Creating /alt_inst/var file system.
Creating /alt_inst/var/adm/ras/livedump file system.
Generating a list of files
for backup and restore into the alternate file system...
Backing-up the rootvg files and restoring them to the alternate file system...
Modifying ODM on cloned disk.
Building boot image on cloned disk.
forced unmount of /alt_inst/var/adm/ras/livedump
forced unmount of /alt_inst/var/adm/ras/livedump
forced unmount of /alt_inst/var
forced unmount of /alt_inst/var
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/home
forced unmount of /alt_inst/home
forced unmount of /alt_inst/db2
forced unmount of /alt_inst/db2
forced unmount of /alt_inst/admin
forced unmount of /alt_inst/admin
forced unmount of /alt_inst
forced unmount of /alt_inst
Changing logical volume names in volume group descriptor area.
Fixing LV control blocks...
Fixing file system superblocks...
Bootlist is set to the boot disk: hdisk1 blv=hd5
thanks a lot.
Aurélien.