Re: Restore mksysb/shrink filesystems

From: Bill Verzal (BVerzal@KOMATSUNA.COM)
Date: Wed Oct 15 2003 - 08:47:05 EDT


That was my agenda for today. I had planned on doing it that way.
Question is - where is this menu option now ?

BV
--------------------------------------------------------

Bill Verzal
AIX Administrator, Komatsu America
(847) 970-3726 - direct
(847) 970-4184 - fax

|---------+---------------------------->
| | "Green, Simon" |
| | <Simon.Green@EU.A|
| | LTRIA.COM> |
| | Sent by: IBM AIX |
| | Discussion List |
| | <aix-l@Princeton.|
| | EDU> |
| | |
| | |
| | 10/15/2003 04:43 |
| | AM |
| | Please respond to|
| | IBM AIX |
| | Discussion List |
| | |
|---------+---------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
  | |
  | To: aix-l@Princeton.EDU |
  | cc: |
  | Subject: Re: Restore mksysb/shrink filesystems |
>-------------------------------------------------------------------------------------------------------------------------------|

First, run mkszfile.
Then edit /image.data. You could simply change the logical_volume_policy
stanza to specify SHRINK= yes, which will affect every LV, or you could
change individual LV stanzas to specify a new size.
Once that's done, run a mksysb without the -i or -m flags.
Finally, use this mksysb to restore your system. Since it's been taken on
the same system you can boot straight from tape, if you like: no need to go
through the full cloning procedure.

Simon Green
Altria ITSC Europe Ltd

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will not be appreciated.

> -----Original Message-----
> From: Bill Verzal [mailto:BVerzal@KOMATSUNA.COM]
> Sent: 14 October 2003 22:28
> To: aix-l@Princeton.EDU
> Subject: Restore mksysb/shrink filesystems
>
>
> OK - got a question for ya...
>
> I have an R50 I just upgraded to 5.1, then applied ML4.
>
> After the upgrade, I removed all of the junk that used to be
> on the system
> before it was given to me as a sandbox (printers, DB2, etc).
>
> This left me with lots of freespace in /usr and /.
>
> So I took a mksysb (actually, 2 of them), and booted off the
> AIX 5.1 CD and
> wanted to restore with a "Shrink Filesystems". But I could
> not find the
> option to shrink them.
>
> Anyone got any ideas ?



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:16 EDT