Unix Technical Forum

Where is OS installed?

This is a discussion on Where is OS installed? within the AIX Operating System forums, part of the Unix Operating Systems category; --> We recently got some IBM servers which came with AIX 5.3 pre- installed. I mirrored the OS and then ...


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-05-2008, 11:50 AM
MJB
 
Posts: n/a
Default Where is OS installed?

We recently got some IBM servers which came with AIX 5.3 pre-
installed. I mirrored the OS and then grew the filesystems:

Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 8.00 7.97 1% 1980 1% /
/dev/hd2 6.00 4.56 24% 31977 3% /usr
/dev/hd9var 8.00 7.90 2% 706 1% /var
/dev/hd3 2.00 1.78 12% 225 1% /tmp
/dev/fwdump 0.12 0.08 39% 5 1% /var/
adm/ras/platform
/dev/hd1 2.00 2.00 1% 10 1% /
export/home
/proc - - - -
- /proc
/dev/hd10opt 8.00 7.63 5% 6089 1% /opt

So the way I see it is I have 34.12GB partitoned and only 1.3GB being
used. This includes 3rd party stuff we've added and TL5 stored under /
usr for now. On Solaris the / partiton grows by GBs after installing
from CD. Is AIX really only 300MB or so?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:50 AM
Jurjen Oskam
 
Posts: n/a
Default Re: Where is OS installed?

On 2007-06-22, MJB <helios123@cox.net> wrote:

> Filesystem GB blocks Free %Used Iused %Iused Mounted on
> /dev/hd4 8.00 7.97 1% 1980 1% /
> /dev/hd2 6.00 4.56 24% 31977 3% /usr
> /dev/hd9var 8.00 7.90 2% 706 1% /var
> /dev/hd3 2.00 1.78 12% 225 1% /tmp
> /dev/fwdump 0.12 0.08 39% 5 1% /var/
> adm/ras/platform
> /dev/hd1 2.00 2.00 1% 10 1% /
> export/home
> /proc - - - -
> - /proc
> /dev/hd10opt 8.00 7.63 5% 6089 1% /opt
>
> So the way I see it is I have 34.12GB partitoned and only 1.3GB being
> used. This includes 3rd party stuff we've added and TL5 stored under /
> usr for now. On Solaris the / partiton grows by GBs after installing
> from CD. Is AIX really only 300MB or so?


No, it's not. You seem to assume that the OS lives in / only, but on many
UNIX or UNIX-like operating systems, / is actually quite small. A default
installation of AIX puts much more in /usr than it puts in /. (Of course,
all this assumes that you don't put /usr in the same filesystem as /)


--
Jurjen Oskam

Savage's Law of Expediency:
You want it bad, you'll get it bad.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 11:50 AM
0xbeef
 
Posts: n/a
Default Re: Where is OS installed?

On Jun 22, 9:00 pm, MJB <helios...@cox.net> wrote:
> We recently got some IBM servers which came with AIX 5.3 pre-
> installed. I mirrored the OS and then grew the filesystems:


Why oh why??

AIX is not pre-partitioned. You can and should create new file-systems
separately to the the O/S...

Your O/S file-systems are huge for no good reason. You can increase
their sizes dynamically at any stage, why be wasteful upfront? Things
like the AIX installer (installp) will automatically grow file-systems
during installations.

If you simply keep the O/S file-systems at a sane utilisation (e.g.
70% or so), you should never have a problem.

Third party apps. are usually installed to non-O/S disks (usually fast
external disk subsystems), and in non-O/S FS.

Installing to the O/S areas just increases the risk of accidentally
overwriting libraries & binaries that should be left untouched.

Keep the O/S in rootvg and your apps. in another VG.

Regards,
Niel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 11:50 AM
RR
 
Posts: n/a
Default Re: Where is OS installed?

MJB wrote:
> We recently got some IBM servers which came with AIX 5.3 pre-
> installed. I mirrored the OS and then grew the filesystems:


It's probably unnecessary to allocate such large chunks of unneeded
space to your filesystems, and instead shrink them back down to a more
reasonable size in case you need disk space for something else (e.g. /
export/home seems like a consistent space hog). You can always make
any file system larger later, so there's not necessarily a need to pre-
allocate a huge chunk of free space.

Run something like this to defrag your rootvg file systems in
preparation for shrinking:

for fs in $(lsvgfs rootvg); do
defragfs $fs
done

Then adjust your file system sizes thusly:

chfs -a size=1G /
chfs -a size=3G /usr
chfs -a size=1G /var
chfs -a size=1G /tmp
chfs -a size=1G /opt

--
RR

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 11:50 AM
MJB
 
Posts: n/a
Default Re: Where is OS installed?

On Jun 23, 3:20 pm, RR <oss...@gmail.com> wrote:
> MJB wrote:
> > We recently got some IBM servers which came with AIX 5.3 pre-
> > installed. I mirrored the OS and then grew the filesystems:

>
> It's probably unnecessary to allocate such large chunks of unneeded
> space to your filesystems, and instead shrink them back down to a more
> reasonable size in case you need disk space for something else (e.g. /
> export/home seems like a consistent space hog). You can always make
> any file system larger later, so there's not necessarily a need to pre-
> allocate a huge chunk of free space.
>
> Run something like this to defrag your rootvg file systems in
> preparation for shrinking:
>
> for fs in $(lsvgfs rootvg); do
> defragfs $fs
> done
>
> Then adjust your file system sizes thusly:
>
> chfs -a size=1G /
> chfs -a size=3G /usr
> chfs -a size=1G /var
> chfs -a size=1G /tmp
> chfs -a size=1G /opt
>
> --
> RR


RR-

Thanks for the advice. Coming from a Solaris background which usually
allocates parttion sizes up front. Will follow your advice -

Thanks

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 12:34 AM.


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