Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Restore mksysb on hard drive with larger PP size

101 views
Skip to first unread message

sst...@cusa.com

unread,
Feb 11, 2000, 3:00:00 AM2/11/00
to
I have a RISC6000 modem E30 that has an internal 2.2GB drive with a PP
size of 4MB. I have created a bootable mksysb, in AIX 4.2.1 and would
like to lay that mksysb down on a different E30 with an internal 9.1GB
drive which would have a minimum PP size 0f 16. Is this possible to do,
and are there special considerations that need to be made? I am
getting logical volume errors saying that it cannot create hd6 because
there is not enough space, and other strictness errors.


Sent via Deja.com http://www.deja.com/
Before you buy.

Leonard Salika

unread,
Feb 13, 2000, 3:00:00 AM2/13/00
to
sst...@cusa.com wrote:
: I have a RISC6000 modem E30 that has an internal 2.2GB drive with a PP

I thought that by AIX 4.2.1, the programs that reload from mksysb were
smart enough to do the arithmetic automatically. If you need to, you
can always edit the /image.data file (carefully) on your source system
so that the target is set up exactly the way you want. [Another more
extreme approach is to provide a disk allocation map at reload time.]
If you edit image.data on the source system before you create your
mksysb tape, your modified one will be on the tape and will be used
during the reload. If your source system has a diskette drive, you
can supply an image.data file on diskette that will override the one
on your mksysb image.

If you look at /image.data with a text editor, you wiil see that it has
a stanza for the volume group, for each logical volume, and for each
filesystem. Change the PPSIZE and PP_SIZE consistently to 16 for rootvg
and for each logical volume. For each logical volume, you need to
recalculate LPs, PP (for a simple non-mirrored volume group these two
will be the same), MAX_LPS, and LV_MIN_LPS. In general, to go from 4 MB
partitions on a 2.2 GB disk to 16 MB partitions on a 9.1 GB disk, you
need to divide each value in the original /image.data by four and round
any fractional result up to the next greatest integer. You have the
opportunity to reduce some logical volume sizes here, but don't try to
reduce any to a size smaller than what would be required to hold the
original LV_MIN_LPS. Assuming that you are making your PP_SIZE 16 MB,
for each filesystem stanza, make FS_SIZE=32768*LPs for the corresponding
logical volume and FS_MIN_SIZE=32768*LV_MIN_LPS. [The FS...SIZE
parameters are in 512-byte blocks; one 16 MB partition is
16*2*1024 blocks.] BTW, you can create (or re-create) the /image.data
file on your source system with the mkszfile command without having
to run an entire mksysb.

To supply an alternate /image.data file on diskette, you need to put
the files ./image.data and ./signature on diskette in AIX backup by
name format. [Since these path names are relative, you can copy
/image.data to some other directory before you start hacking at it,
and then create your diskette from there.] The ./signature file is a
text file with just the word, "data". For example:

# mkszfile <-- make a /image.data for current config.
# mkdir /tmp/junk <-- create a working directory
# cd /tmp/junk <-- work in working directory
# echo data >signature <-- create a signature file
# cp /image.data . <-- prototype image.data from current sys.
# vi image.data <-- modify image.data
# format <-- format a diskette (DOS format not reqd.)
# ls ./image.data ./signature | backup -ivq <-- write image.data and
signature to diskette
using relative path
name (IMPORTANT)

When you go to reload your target system, this diskette has to be in
the drive at the same time as your mksysb tape. You will see the
stderr output from it being restored on the console right after the
target system gets done checking that your tape in in valid mksysb
format.

You can also use an image.data file on diskette during an install from
an AIX distributuion CD-ROM. To do this, you have to also change the
value of PRODUCT_TAPE from "no" to "yes" near the top of the file. If
you add a paging logical volume using this technique, it will not be
varied on automatically. Fix that with smit when your system first
comes up. If you add a filesystem using this technique, it will be
created but will be missing in /etc/filesystems when the system first
comes up and will not be mounted. I just fix /etc/filesystems by hand
and then run fsck and synclvgodm for good measure.

NoneSuch

unread,
Feb 13, 2000, 3:00:00 AM2/13/00
to
I thought this just 'worked' (magic, etc.) Not too long ago, I replaced
a 540MB drive with a 9GB drive. I used MKSYSB on AIX 4.2.1, swapped the
drives and restored. The PP size was adjusted for me, and everything has
been working fine since. Next project, mirroring...

None

Bob Mariotti

unread,
Feb 14, 2000, 3:00:00 AM2/14/00
to
On Fri, 11 Feb 2000 20:56:40 GMT, sst...@cusa.com wrote:

>I have a RISC6000 modem E30 that has an internal 2.2GB drive with a PP
>size of 4MB. I have created a bootable mksysb, in AIX 4.2.1 and would

Just boot into service mode and select "restore from a mksysb tape" .
If you have multiple hard disks but sure all of them are selected as
the target(s) for the restore and the pp size will be automatically
set to the largest required. Works fine.


0 new messages