How to solve the 11 digit character
issue while taking alt_disk clone in aix?
Sometimes we are facing the 11 digit
character issue when we taking alt_disk (because the lv name's character is more than 11 digit). yes, we cant take alt_disk clone if the lv name is more than 11 character.
For example: If we have a LV name as
testpurpose_lv (toally it has 14 character) If we are trying to take the
alt_disk then surely it will end up with the 11 digit character issue. Hence we
cant take the alt_disk.
Please find the solutions below:
* Generate image.data using mkszfile.
* Copy image.data to /tmp/image.data_old
* Edit
/tmp/image.data_old (vi
/tmp/image.data_old), go to LV stanza and change the LV name to the smaller
one. i.e reduce the number of character in
lv name.
"testpurpose_lv" to "testlv" (Note that the new lv name (testlv) character is below 11 digit)
* Run alt_disk_copy with "i"
alt_disk_install
-i /tmp/image.data_old -C -B <hdisk_name>
Actually
what happen: When alt disk reads the LV name in image.data, it will create
the alt_disk LV with the new name as in the modified image.data file. i.e
/tmp/image.data.old