Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mksysb to different hardware with AIX 4.3.3 2

Status
Not open for further replies.

comtec17

Vendor
Jun 18, 2002
2,338
US
Hello,
I have a mksysb from an IBM S80 that I am trying to recover to a 43p-150. I have the same size disks in the 43P that are in the S80. I have installed AIX 4.3.3 along with the same Maintenance Pack as teh S80. Here is the issue:

When I boot to the tape and go into recovery mode, I am receiving an error that states "Not enough space".

If anyone has any ideas, please let me know.

Thanks in advance,
CoMteC17
 
Try cloning the MKSYSB onto the 43p since it is a different machine type. Is your 43p a UP or MP?

Best bet is to do the clone procedure.



FrankSoprano
 
Hi,
43P is more older model as S80. This is the problem I think.
Some years ago I could not recover mksysb from IBM590 to IBM580. More that S80 has PSI bus, 43P MCI bus.
Regards Boris
 

You can't do this unless you created it as a generic mksysb.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
This problem will be solved if you choose two disks when you at the 150 machine. Because you made mksysb from machine with mirror and now that you try to restore the image searches for second disk. Also I can suggest you to accomplish successful restore boot from an aix4.3.3 cdrom and then choose to restore from tape this will ensure successful restore of the image (this will allow the filesets that are missing with the new platform to be installed).
 
If you have mirrored disks on the source machine and not in the second you must do this below to fix

Alex

Creating a mksysb without mirroring

If the ability to rerun the mksysb is available, the following procedure will
allow you to create a mksysb without preserving mirroring.

1. To create a new image.data file, run the following command:
mkszfile

2. Change into the / directory and vi the image.data file. Enter:

cd /
vi image.data

3. The following examples show an lv_data stanza of an image.data file. The
first example is with mirroring, while the second example shows the edited
version without mirroring. The lines that need changes are marked by -->
and are boldfaced. In the second example, the changes are made to those
lines.

To view and edit the file, enter:

vi image.data

Example 1

lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0
LV_IDENTIFIER= 00000001113f3c62.5
LOGICAL_VOLUME= hd2
VG_STAT= active/complete
TYPE= jfs
MAX_LPS= 512
--> COPIES = 2
LPs = 70
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /usr
MIRROR_WRITE_CONSISTENCY= on
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 4
SCHED_POLICY= parallel
--> PP = 140
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /usr
MAPFILE=
LV_MIN_LPS= 68

Example 2

lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0
LV_IDENTIFIER= 00000001113f3c62.5
LOGICAL_VOLUME= hd2
VG_STAT= active/complete
TYPE= jfs
MAX_LPS= 512
--> COPIES = 1
LPs = 70
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /usr
MIRROR_WRITE_CONSISTENCY= on
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 4
SCHED_POLICY= parallel
--> PP = 70
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /usr
MAPFILE=
LV_MIN_LPS= 68

In Example 2 the COPIES value has been changed to 1 and the PP value is
set equal to the LPs value. Make these changes to each of the lv_data
stanzas in the image.data file. Once the changes are made, save the file
and exit.
4. Run another mksysb from the command line that will utilize your edited
image.data file.

mksysb /dev/rmtX (where X is the number of your tape drive)

WARNINGS:
o Do not run the mksysb in SMIT because this will update the image.data
file and overwrite any changes made.
o Do not run the mksysb with the -i flag because this will update the
image.data file as well.

-------------------------------------------------------------------------------

Breaking mirrors on an existing mksysb

If another mksysb cannot be run, the following procedure can be used to restore
a mksysb without mirroring.

NOTE: Access to another AIX system and an AIX formatted diskette is required to
perform this procedure.

All references to the tape device in the next section are as rmt0.

1. On another AIX system, place the mksysb tape in the tape drive. Change the
block size of the tape drive to 512 by running:

chdev -l rmt0 -a block_size=512

2. Create a temporary directory in /tmp called newdata.

mkdir /tmp/newdata

3. Change to the /tmp/newdata directory. Enter:

cd /tmp/newdata

4. Make sure that the tape is rewound. Enter:

tctl -f /dev/rmt0 rewind

5. Restore the image.data file from the second image of the mksysb tape.
Enter:

restore -s2 -xqvf /dev/rmt0.1 ./image.data

6. Edit the /tmp/newdata/image.data file and make changes to each of the
lv_data stanzas as indicated in the examples that follow. The lines that
need changes are marked by --> and are boldfaced. In Example 4, the
changes are made to those lines.

To view and edit the file, enter:

vi image.data

Example 3

lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0
LV_IDENTIFIER= 00000001113f3c62.5
LOGICAL_VOLUME= hd4
VG_STAT= active/complete
TYPE= jfs
MAX_LPS= 512
--> COPIES = 2
LPs = 120
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /
MIRROR_WRITE_CONSISTENCY= on
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 4
SCHED_POLICY= parallel
--> PP = 240
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /
MAPFILE=
LV_MIN_LPS= 68

Example 4

lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0
LV_IDENTIFIER= 00000001113f3c62.5
LOGICAL_VOLUME= hd4
VG_STAT= active/complete
TYPE= jfs
MAX_LPS= 512
--> COPIES = 1
LPs = 120
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /
MIRROR_WRITE_CONSISTENCY= on
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 4
SCHED_POLICY= parallel
--> PP = 120
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /
MAPFILE=
LV_MIN_LPS= 120

In Example 4 the COPIES value has been changed to 1 and the PP value is
set equal to the LPs value. Make these changes to each of the lv_data
stanzas in the image.data file. Once the changes are made, save the file
and exit.
7. After making the changes to the image.data file, create a signature file.
The signature file is required by the restore procedure.

echo data > signature

8. Format the diskette.

format /dev/rfd0

9. Back up the two files (image.data and signature) to the diskette drive.

find . -print |backup -iqvf /dev/rfd0

10. Verify that the two files were backed up and that the diskette can be
read.

restore -Tqvf /dev/rfd0

11. Reboot the target system off of the mksysb tape with the diskette in the
floppy drive and follow the normal mksysb restore procedures. The edited
version of the image.data file will be used to recreate the logical
volumes without mirroring.

 
Oh, there is a simple way to restore to 43p-150.

First, you must have same quanty of disk as root in S80
for restore. otherwise you have to do what alexhu said.

Second, boot from CDROM with OS disk(same version on S80)
to service mode.

Third, restore tape(mksysb) from tape.

It should be work.
I have restored one image tape to different types of S6000.
 
Many thanks go out to all that replied. Alexhu, you hit the nail right on the head. I have done as you suggested and all is working now.

Herzel, you were also correct in your response, it had to do with mirroring.

Thanks for all your help, this is why I always come to this site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top