Unix Technical Forum

Restoring mksysb on bigger disk

This is a discussion on Restoring mksysb on bigger disk within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi all, I have RS/6K running 4.2.1 with mirrored ROOTVG on 4.3 GB disks (hdisk0 & hdisk1). I want ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 08:45 PM
ketsak
 
Posts: n/a
Default Restoring mksysb on bigger disk


Hi all,

I have RS/6K running 4.2.1 with mirrored ROOTVG on 4.3 GB disks (hdisk0
& hdisk1). I want to take a system backup and JUST FOR verification
purpose wants to restore it on the SAME system (as I don't have any
spare system), but on DIFFERENT spare hard disks, of the size 18 GB
each. While restoring I may not be able to power down/disable hdisk0 &
hdisk1, i.e these two disks would be on line with 18GB disks.



I know that before running mksysb I need to edit /image.data file to
change PP size to 32 MB (currently it is 8 MB for 4.3 GB disks) under
vg_data stanza. Also I need to verify PROMPT=YES in /bosinst.data file.
Now my questions are :



1) Do I need to change PP size to 32 MB under all 'lv_data' stanza in
/image.data ?



2) According to new PP size do I need to change FS_SIZE under 'fs_data'
stanza in /image.data ?



4) After selecting target disks under Installation & Maintenance menu,
still is there any possibility that restore process may affect
existing rootvg on hdisk0 & hdisk1 ?



5) To avoid probable problem mentioned in Q-4, do I need to edit
/bosinst.data file to reflect location of the target disks (18 GB
disks) under 'target_disk_data' stanza ?



6) Suppose I succeed in restoring mksysb tape on new hard disks, now on
simply physically removing those disks, will I be able to boot from
hdisk0 again without any problem ?



6) Do you see any other potential problem in restoring this way ? Or
please let me know if I may be missing some steps for successful
restoration on bigger disks.



Your interest and responses will be highly appreciated..... TIA


--
KPS


Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 08:46 PM
ketsak
 
Posts: n/a
Default Re: Restoring mksysb on bigger disk


Originally posted by ketsak

> Hi all,


> I have RS/6K running 4.2.1 with mirrored ROOTVG on 4.3 GB disks
> (hdisk0 & hdisk1). I want to take a system backup and JUST FOR
> verification purpose wants to restore it on the SAME system (as I
> don't have any spare system), but on DIFFERENT spare hard disks, of
> the size 18 GB each. While restoring I may not be able to power
> down/disable hdisk0 & hdisk1, i.e these two disks would be on line
> with 18GB disks.


>


> I know that before running mksysb I need to edit /image.data file to
> change PP size to 32 MB (currently it is 8 MB for 4.3 GB disks) under
> vg_data stanza. Also I need to verify PROMPT=YES in /bosinst.data
> file. Now my questions are :


>


> 1) Do I need to change PP size to 32 MB under all 'lv_data' stanza in
> /image.data ?


>


> 2) According to new PP size do I need to change FS_SIZE under
> 'fs_data' stanza in /image.data ?


>


> 4) After selecting target disks under Installation & Maintenance menu,
> still is there any possibility that restore process may affect
> existing rootvg on hdisk0 & hdisk1 ?


>


> 5) To avoid probable problem mentioned in Q-4, do I need to edit
> /bosinst.data file to reflect location of the target disks (18 GB
> disks) under 'target_disk_data' stanza ?


>


> 6) Suppose I succeed in restoring mksysb tape on new hard disks, now
> on simply physically removing those disks, will I be able to boot
> from hdisk0 again without any problem ?


>


> 6) Do you see any other potential problem in restoring this way ? Or
> please let me know if I may be missing some steps for successful
> restoration on bigger disks.


>


> Your interest and responses will be highly appreciated..... TIA
>






No responses ????!!!!!! Need some expert advice..........


--
KPS


Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 08:46 PM
Dale Talcott
 
Posts: n/a
Default Re: Restoring mksysb on bigger disk

ketsak <member44158@dbforums.com> writes:

>No responses ????!!!!!! Need some expert advice..........


Okay, I'll speak first. Don't do it. The odds of getting it right are
too small.

>> I have RS/6K running 4.2.1 with mirrored ROOTVG on 4.3 GB disks
>> (hdisk0 & hdisk1). I want to take a system backup and JUST FOR
>> verification purpose wants to restore it on the SAME system (as I
>> don't have any spare system), but on DIFFERENT spare hard disks, of
>> the size 18 GB each. While restoring I may not be able to power
>> down/disable hdisk0 & hdisk1, i.e these two disks would be on line
>> with 18GB disks.


>> I know that before running mksysb I need to edit /image.data file to
>> change PP size to 32 MB (currently it is 8 MB for 4.3 GB disks) under
>> vg_data stanza. Also I need to verify PROMPT=YES in /bosinst.data
>> file. Now my questions are :


>> 1) Do I need to change PP size to 32 MB under all 'lv_data' stanza in
>> /image.data ?


If you have just file systems, not raw LVs, I *think* you can leave
the PP stuff alone and just set SHRINK=yes. I'm pretty sure I've done
this at least once with no problems (but this might have been on AIX
later than 4.2.1).

If 4.2.1 doesn't support the SHRINK option, then you should adjust
all PP/LP sizes and counts. At least, I have done this and had the
restore work.

>> 2) According to new PP size do I need to change FS_SIZE under
>> 'fs_data' stanza in /image.data ?


The FS_SIZE is in blocks and doesn't need to change. You might end up
with unused space at the end of the LVs, but that is not important.

>> 4) After selecting target disks under Installation & Maintenance menu,
>> still is there any possibility that restore process may affect
>> existing rootvg on hdisk0 & hdisk1 ?


Yes! That's why I wouldn't try this without disconnecting hdisk0 and 1.
Especially with such an old AIX. If I remember correctly, if you had
two sets of disks that internally claimed to have the same LVs and you
somehow activated them both at the same time, the ODM got very confused.

>> 5) To avoid probable problem mentioned in Q-4, do I need to edit
>> /bosinst.data file to reflect location of the target disks (18 GB
>> disks) under 'target_disk_data' stanza ?


I would. Just in case.

>> 6) Suppose I succeed in restoring mksysb tape on new hard disks, now
>> on simply physically removing those disks, will I be able to boot
>> from hdisk0 again without any problem ?


Depends on how you've set your bootlist. If you set it to try the new
disks first, then hdisk0, you should be okay. After you are done with
the testing, change the bootlist to hdisk0 and 1 only again.

>> 6) Do you see any other potential problem in restoring this way ? Or
>> please let me know if I may be missing some steps for successful
>> restoration on bigger disks.


Create two mksysb images, one normal and one with your edited image.data and
bosinst.data files. That way, if the second one proves unreadable part way
through, and hdisk0 gets clobbered in spite of your care, you'll still
have the first tape to recover with.

--
Dale Talcott, IT Research Computing Services, Purdue University
aeh@quest.cc.purdue.edu http://quest.cc.purdue.edu/~aeh/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 08:53 PM
Russ
 
Posts: n/a
Default Re: Restoring mksysb on bigger disk

Just use Storix. It will let you select the disks to restore to, change
the LV and filesystem sizes, etc from the menus after you boot from the
tape. I know it will also look at your disk sizes and automatically
change the PP size of the VG and number of LPs in all the LVS if needed.
I have the full version, but I think I did all this even when I just had
the free version.

ketsak wrote:
> Hi all,
>
> I have RS/6K running 4.2.1 with mirrored ROOTVG on 4.3 GB disks (hdisk0
> & hdisk1). I want to take a system backup and JUST FOR verification
> purpose wants to restore it on the SAME system (as I don't have any
> spare system), but on DIFFERENT spare hard disks, of the size 18 GB
> each. While restoring I may not be able to power down/disable hdisk0 &
> hdisk1, i.e these two disks would be on line with 18GB disks.
>
>
>
> I know that before running mksysb I need to edit /image.data file to
> change PP size to 32 MB (currently it is 8 MB for 4.3 GB disks) under
> vg_data stanza. Also I need to verify PROMPT=YES in /bosinst.data file.
> Now my questions are :
>
>
>
> 1) Do I need to change PP size to 32 MB under all 'lv_data' stanza in
> /image.data ?
>
>
>
> 2) According to new PP size do I need to change FS_SIZE under 'fs_data'
> stanza in /image.data ?
>
>
>
> 4) After selecting target disks under Installation & Maintenance menu,
> still is there any possibility that restore process may affect
> existing rootvg on hdisk0 & hdisk1 ?
>
>
>
> 5) To avoid probable problem mentioned in Q-4, do I need to edit
> /bosinst.data file to reflect location of the target disks (18 GB
> disks) under 'target_disk_data' stanza ?
>
>
>
> 6) Suppose I succeed in restoring mksysb tape on new hard disks, now on
> simply physically removing those disks, will I be able to boot from
> hdisk0 again without any problem ?
>
>
>
> 6) Do you see any other potential problem in restoring this way ? Or
> please let me know if I may be missing some steps for successful
> restoration on bigger disks.
>
>
>
> Your interest and responses will be highly appreciated..... TIA
>
>
> --
> KPS
>
>
> Posted via http://dbforums.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com