AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  AIX 6.1 Server disk space question

    Posted Tue April 24, 2012 11:38 PM

    Originally posted by: SystemAdmin


    Hi, we are doing a project in which we needed to run DB2 8.2 on an AIX 6.1 Server. So we purchased a used PS520 server running AIX 6.1. We had a little trouble getting it up and running but it is running now. However, the server is supposed to have 146G of disk space installed, but when I logon to it and look at the file systems I see that there is only about 3.3G. Given what is already installed on the drive, there isn't even room for the DB2 installation file. Using ASM web console I've tried changing i5/OS boot mode from A,B,C,D - no difference. Is it possible that the vendor did not install the disks? Or, is there some other thing I need to run to recognize the missing 143G?

    Thanks, any help appreciated.


  • 2.  Re: AIX 6.1 Server disk space question

    Posted Wed April 25, 2012 04:02 AM

    Originally posted by: SystemAdmin


    Hi,

    please provide outputs of following commands :

    
    lsdev -Cc disk lspv lsvg | lsvg -i
    


  • 3.  Re: AIX 6.1 Server disk space question

    Posted Wed April 25, 2012 07:38 AM

    Originally posted by: SystemAdmin


    Hi, here is the output from the commands:

    $ lsdev -Cc disk
    hdisk0 Available 00-08-00 SAS Disk Drive
    hdisk1 Available 00-08-00 SAS Disk Drive

    $ lspv
    hdisk0 000c9c41a6b945c7 rootvg active
    hdisk1 none None
    $ lsvg | lsvg -i
    VOLUME GROUP: rootvg VG IDENTIFIER: 000c9c410000d90000000136a6b95463
    VG STATE: active PP SIZE: 128 megabyte(s)
    VG PERMISSION: read/write TOTAL PPs: 546 (69888 megabytes)
    MAX LVs: 256 FREE PPs: 514 (65792 megabytes)
    LVs: 11 USED PPs: 32 (4096 megabytes)
    OPEN LVs: 10 QUORUM: 2 (Enabled)
    TOTAL PVs: 1 VG DESCRIPTORS: 2
    STALE PVs: 0 STALE PPs: 0
    ACTIVE PVs: 1 AUTO ON: yes
    MAX PPs per VG: 32512
    MAX PPs per PV: 1016 MAX PVs: 32
    LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
    HOT SPARE: no BB POLICY: relocatable

    Thanks.


  • 4.  Re: AIX 6.1 Server disk space question

    Posted Wed April 25, 2012 08:26 AM

    Originally posted by: SystemAdmin


    You have 2 disks in your system, I think each one is 73 GB, please confirm with the output of this commands :

    
    bootinfo -s hdisk0 bootinfo -s hdisk1
    


    In rootvg volume group, there is 65792 megabytes available and not allocated.

    If you have only this storage solution (and no SAN for example), you have 2 solutions :
    • create a data volume group with hdisk1 in order to separate system and data, but in case of a drive failure, you 'll lose data or your system won't boot
    • create application filesystems in rootvg, I don't like this solution but it's more secure as you'll use second drive (hdisk1) to keep your system in a mirrored configuration, so in case of crash of one drive, your system will be still up and running on the other disk

    Please make a search to document yourself on the LVM (Logical Volume Manager) commands you'll need
    • extendvg, mirrorvg
    • mklv
    • crfs, chfs


  • 5.  Re: AIX 6.1 Server disk space question

    Posted Wed April 25, 2012 11:12 AM

    Originally posted by: SystemAdmin


    Thanks, you've been very helpful. I'm making some progress, but...

    I ran one of the commands that resulted in activating hdisk1.

    I ran this command:

    crfs -v jfs -g rootvg -a size=50G -m /thd

    which gave me a 50G file system.

    However, I need to install DB2 v8.2, yet the install script insists on installing in /usr/opt - which doesn't have enough space and I don't see an option for me to be able to change it.

    I was hoping that maybe the chfs command would let me give /usr/opt more space - but not sure if that's possible.


  • 6.  Re: AIX 6.1 Server disk space question

    Posted Wed April 25, 2012 11:25 AM

    Originally posted by: SystemAdmin


    You should use jfs2 filesystem instead of jfs.

    To increase a filesystem to desired size, or to add some space you could use (3GB in this example) :

    
    chfs -a size=3G /your_filesystem chfs -a size=+1G /your_filesystem
    


  • 7.  Re: AIX 6.1 Server disk space question

    Posted Thu April 26, 2012 08:37 AM

    Originally posted by: flodstrom


    As already mentioned you just need to extend the size of your file system (/usr in your case for the db2 install).

    Keep in mind that a fresh install of AIX always look very tight in terms of file systems, there's nearly no space left! However, it's very easy to extend or even shrink file systems on a live system. I usually always up the size on the /, /tmp and /var from the initial tiny sizes.

    In my oppinion the / should be at least 512MB othervise even a small core file will fill the / to 100%. The /tmp should be at least 1G or as much as you deem necessary. The /var you need to monitor, remember that all log files are stored there and over time it may be filled to 100% as well if forgotten about.

    Also remember to leave some disk space for extending the page space (the default page space is quite small!). Since you intend to run a data base you should probably up the PS to at least the size of physical RAM. Extending PS is similar to extending file systems, except that you add PS in terms of PP's. To add 1GB of PS (asuming the PP size is 256MB and your PS is the default hd6).
    
    chps -s 4 hd6