Re: Restore mksysb/shrink filesystems

From: Green, Simon (Simon.Green@EU.ALTRIA.COM)
Date: Wed Oct 15 2003 - 05:43:48 EDT


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