Unix Technical Forum

AIX LVM Considerations

This is a discussion on AIX LVM Considerations within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi all, I recently got a spare 7012-39H up and running. It is now running AIX 4.3.3 after much ...


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, 10:38 PM
Kevin Bowling
 
Posts: n/a
Default AIX LVM Considerations

Hi all,
I recently got a spare 7012-39H up and running. It is now running AIX
4.3.3 after much experimenting and reading. I'm used to fixed partitioning
schemes on Linux and Windows and have a few questions on what should be done
in terms of adding space to the LVs. My drive is 9.1GB with 542
16MB-PPs. As I add space to the other LVs, should I increase the 'jfslog'
allocations? What is this LV used for? Any recommendations percentage wise
for all the default partitions ( /, /usr, /var, /tmp, /home, jfslog)? I'm
starting with a fresh ASCII BOS install and I plan to install CDE and all
the other goodies to use it as a basic UNIX workstation and PHP/Apache/MySQL
test server.
Regards,
Kevin


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 10:38 PM
Steve Nottingham
 
Posts: n/a
Default Re: AIX LVM Considerations

"Kevin Bowling" <kevin.bowlingNO.SPAM@wans.REMOVETHIS.net> wrote in message news:<QXSsc.13155$Sx2.10907@okepread01>...
> Hi all,
> I recently got a spare 7012-39H up and running. It is now running AIX
> 4.3.3 after much experimenting and reading. I'm used to fixed partitioning
> schemes on Linux and Windows and have a few questions on what should be done
> in terms of adding space to the LVs. My drive is 9.1GB with 542
> 16MB-PPs. As I add space to the other LVs, should I increase the 'jfslog'
> allocations? What is this LV used for? Any recommendations percentage wise
> for all the default partitions ( /, /usr, /var, /tmp, /home, jfslog)? I'm
> starting with a fresh ASCII BOS install and I plan to install CDE and all
> the other goodies to use it as a basic UNIX workstation and PHP/Apache/MySQL
> test server.
> Regards,
> Kevin


There is no need to increase the size of the JFS log. JFS stands for
Journalled File Systems and the JFSLOG is the journal log, also jfslog
isn't a filesystem, the only way to see if it isn't big enough is if
you get jfslog_waits in errpt.. I try and keep the percentages below
95% but as these areas are usually pretty static apart from /var. /usr
only generally increases when you install new software, use the -X
option on installp to increase the filesytems.

Personally I think use percentage is not the right thing to use for
working out space utilisation. If a 16 Mb filesystem is 99% full, then
this can be a problem, but if a 2 Tb filesystem is 99% full, you've
still got gigabytes of free space.

I have one other suggestion. Consider purchasing another disk
(preferably of the same size) so you can mirror rootvg, you have the
opportunity of learning more about the capabilities of the LVM
(Logical Volume Manager).

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 10:39 PM
Markus Baertschi
 
Posts: n/a
Default Re: AIX LVM Considerations

Kevin Bowling wrote:

> Hi all,
> I recently got a spare 7012-39H up and running. It is now running AIX
> 4.3.3 after much experimenting and reading. I'm used to fixed partitioning
> schemes on Linux and Windows and have a few questions on what should be done
> in terms of adding space to the LVs. My drive is 9.1GB with 542
> 16MB-PPs. As I add space to the other LVs, should I increase the 'jfslog'
> allocations? What is this LV used for? Any recommendations percentage wise
> for all the default partitions ( /, /usr, /var, /tmp, /home, jfslog)? I'm
> starting with a fresh ASCII BOS install and I plan to install CDE and all
> the other goodies to use it as a basic UNIX workstation and PHP/Apache/MySQL
> test server.
> Regards,
> Kevin
>


Kevin,

Your strategy to work with disk space must change completely:

Just allocate the amount of space to a filesystem you need, don't
increase the size without necessity !
-> Making it bigger is online at no cost or overhead
-> Making it smaller is a pain (backup/restore or copy)

If you allocate too much space to a filesystem you will end up with
unused space in places you don't need it (/usr, /tmp, /var, /, etc.)

Once in a while you check the space remaining (lsvg rootvg) to know when
you will run out of space.

On most other platforms (Windows, Linux, other Unixes) you tend to
allocate all disk space immediately. This is unnecessary on AIX and will
kill the big flexibility advantage of the LVM right at the beginning.

Markus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 10:39 PM
Uli Link
 
Posts: n/a
Default Re: AIX LVM Considerations


> I recently got a spare 7012-39H up and running. It is now running AIX
> 4.3.3 after much experimenting and reading. I'm used to fixed partitioning
> schemes on Linux and Windows and have a few questions on what should be done
> in terms of adding space to the LVs. My drive is 9.1GB with 542
> 16MB-PPs. As I add space to the other LVs, should I increase the 'jfslog'
> allocations? What is this LV used for? Any recommendations percentage wise
> for all the default partitions ( /, /usr, /var, /tmp, /home, jfslog)? I'm
> starting with a fresh ASCII BOS install and I plan to install CDE and all
> the other goodies to use it as a basic UNIX workstation and PHP/Apache/MySQL
> test server.


Hi Kevin,

when starting with AIX 4.3.3 the man pages are missing.
They are on the Base Documentation CD.

You can increase the size of any filesystem with
"chfs -a size=<number of 512 Byte blocks> /mountpoint"

With AIX's volume manager you can wait until the fs is filled and you
need more space. When installing software packages with smit, the fs are
automatically increased.

Compared to linux / is very small and /usr needs the very most.
When you install CDE, the App Dev Bundle and docs /usr will grow above
1GB. Whith a full set of GNU dev tools 2GB are filled easily.

You cannot shrink filesystems, but you can create a new, mount, unmount
and delete a new, temporary fs when needed.



--


Uli

(Reply to ulrich <dot> link <domain-delimiter> epost <dot> de)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2008, 10:39 PM
Kevin Bowling
 
Posts: n/a
Default Re: AIX LVM Considerations


"Uli Link" <spamkuebel.csiph@linkitup.homeunix.com> wrote in message
news:40b509f2$0$13305$9b4e6d93@newsread2.arcor-online.net...

>
> Hi Kevin,
>
> when starting with AIX 4.3.3 the man pages are missing.
> They are on the Base Documentation CD.
>
> You can increase the size of any filesystem with
> "chfs -a size=<number of 512 Byte blocks> /mountpoint"
>
> With AIX's volume manager you can wait until the fs is filled and you
> need more space. When installing software packages with smit, the fs are
> automatically increased.

Hi Uli et al,
After some fiddling, I see that it isn't the LVs I need to increase,
but the JFS sizes. Thanks for all the comments.. I've put these in to
effect and see that /usr does indeed fill up fast but have left plenty of
disk space slack. I began installing packages and am building up to get a
GNU suite on to compile apps myself.
Thanks for all the suggestions!
Kevin


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-04-2008, 10:39 PM
Markus Baertschi
 
Posts: n/a
Default Re: AIX LVM Considerations

Kevin Bowling wrote:
>
> Hi Uli et al,
> After some fiddling, I see that it isn't the LVs I need to increase,
> but the JFS sizes. Thanks for all the comments.. I've put these in to
> effect and see that /usr does indeed fill up fast but have left plenty of
> disk space slack. I began installing packages and am building up to get a
> GNU suite on to compile apps myself.
> Thanks for all the suggestions!
> Kevin


Yup,

I forgot to say: Never increase the size of the lv because the
filesystem will not grow, but increase the filesystem and the underlying
lv will grow automatically.

-> use 'chfs -a size=+<addtional blocks> <mount point>'

One nifty trick is to use +1 to increase the filesystem by one pp.

-> 'chfs -a size=+1 /usr' will increase /usr by a couple of megs

Markus
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:47 PM.


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