Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Tuesday 21 July 2020

Facing issue while Restoring /image.data from mksysb image in aix?


Facing issue while Restoring /image.data from mksysb image in aix?


Facing issue while Restoring /image.data from mksysb image in aix

testnim# alt_disk_mksysb -m testserver.mksysb -d hdisk3
Restoring /image.data from mksysb image.
checking disk sizes
0505-111 alt_disk_install: There is not enough disk space on target
disks specified.
Total disk space required is 67072 megabytes and target
disk space is only 34175 megabytes.
testnim#

(or)

testnim# alt_disk_mksysb -m testserver.mksysb -d hdisk3
Restoring /image.data from mksysb image.
checking disk sizes
creating cloned rootvg volume group and associated logical volumes.
Creating logical volume alt_hd5
0516-404 allocp: This system cannot fulfill the allocatioin request.
          There are not enough free partitions or not enough physical volumes to keep restrictness and satisfy allocation requests.
          The command should be retried with different allocaiton characteristics.
0516-822 mklv: unable to create logical volume.
0505-115 alt_disk_install: mklv failed to create logical volume hd5
cleaning up.
testnim#

 Solution:

We will get the above error only if the rootvg was mirrored priror to taking the mksysb.

As long as your rootvg was mirrored you can break the mirror and retry the installation. You need to edit image.data so that you can use it to restore to a single disk.

we need to manually break the mirror in the mksysb with a custom image.data file.

#mkdir /export/idata
#cd /export/idata
#restore -xqvf // ./image.data
#vi /export/idata/image.data
 for each lv_data stanza.
   -Change the COPIES=2 to COPIES=1
   -Note the size of the LPs=XX value
   -change the PP=YY to match the Ps=XX value


Define a customized image_data resource:

#smitty nim_mkres
>>Resource Type: image_data
>>Resource Name: [nomirror_idata]
>>Resource Type: image_data
>>Server to Resource: [master]
>>Location of Resource: [/export/idata/image.data]

From the steps which you have you shoud go back and use the following migration command.

#nimadm -s -l -i -j -Y -T -O -N

No comments:

Post a Comment